🏳️PyTorch

Website faviconpytorch.org

Join us at PyTorch Conference in San Francisco, October 22-23. CFP open now! [Learn more](https://events.linuxfoundation.org/pytorch-conference/).

[](https://pytorch.org)

*   Learn

    [Get Started

    Run PyTorch locally or get started quickly with one of the supported cloud platforms

    ](/get-started)[Tutorials

    Whats new in PyTorch tutorials

    ](https://pytorch.org/tutorials/)[Learn the Basics

    Familiarize yourself with PyTorch concepts and modules

    ](https://pytorch.org/tutorials/beginner/basics/intro.html)[PyTorch Recipes

    Bite-size, ready-to-deploy PyTorch code examples

    ](https://pytorch.org/tutorials/recipes/recipes_index.html)[Intro to PyTorch - YouTube Series

    Master PyTorch basics with our engaging YouTube tutorial series

    ](https://pytorch.org/tutorials/beginner/introyt.html)

*   Ecosystem

    [Tools

    Learn about the tools and frameworks in the PyTorch Ecosystem

    ](https://landscape.pytorch.org/)[Join the Ecosystem](https://github.com/pytorch-fdn/ecosystem) [Community

    Join the PyTorch developer community to contribute, learn, and get your questions answered.

    ](/#community-module)[Forums

    A place to discuss PyTorch code, issues, install, research

    ](https://discuss.pytorch.org)[Developer Resources

    Find resources and get questions answered

    ](/resources)[Contributor Awards - 2024

    Award winners announced at this year's PyTorch Conference

    ](/ecosystem/contributor-awards-2024)

*   Edge

    [About PyTorch Edge

    Build innovative and privacy-aware AI experiences for edge devices

    ](/edge)[ExecuTorch

    End-to-end solution for enabling on-device inference capabilities across mobile and edge devices

    ](/executorch-overview)[ExecuTorch Documentation](https://pytorch.org/executorch/stable/index.html)

*   Docs

    [PyTorch

    Explore the documentation for comprehensive guidance on how to use PyTorch.

    ](https://pytorch.org/docs)[PyTorch Domains

    Read the PyTorch Domains documentation to learn more about domain-specific libraries.

    ](/pytorch-domains)

*   Blog & News

    [PyTorch Blog

    Catch up on the latest technical news and happenings

    ](/blog)[Community Blog

    Stories from the PyTorch ecosystem

    ](/community-blog)[Videos

    Learn about the latest PyTorch tutorials, new, and more

    ](/videos)[Community Stories

    Learn how our community solves real, everyday machine learning problems with PyTorch

    ](/community-stories)[Events

    Find events, webinars, and podcasts

    ](/events)[Newsletter

    Stay up-to-date with the latest updates

    ](/newsletter)

*   About

    [PyTorch Foundation

    Learn more about the PyTorch Foundation.

    ](/foundation)[Governing Board](/governing-board) [Cloud Credit Program](/credits) [Technical Advisory Council](/tac) [Staff](/staff) [Contact Us](/contact-us)

*   [Become a Member](/join)

*   [

    ](https://github.com/pytorch/pytorch "Go to PyTorch GitHub")

*   X

[](#)

Get Started

==============

Choose Your Path: Install PyTorch Locally or Launch Instantly on Supported Cloud Platforms

[Get started](/get-started)

### Blog

Stay up-to-date on the latest news and technical topics from the PyTorch Foundation.

[Read more](/blog/)

### PyTorch 2.6

Featuring Python 3.13 support for torch.compile, several AOTInductor enhancements, FP16 support on X86 CPUs, and more.

[Learn more](/blog/pytorch2-6/)

### Membership Available

Become an integral part of the PyTorch Foundation, to build and shape the future of AI.

[Join](/join)

Key Features &  

Capabilities

-----------------------------

[See all Features](/features)

##### Production Ready

Transition seamlessly between eager and graph modes with TorchScript, and accelerate the path to production with TorchServe.

##### Distributed Training

Scalable distributed training and performance optimization in research and production is enabled by the torch.distributed backend.

##### Robust Ecosystem

A rich ecosystem of tools and libraries extends PyTorch and supports development in computer vision, NLP and more.

##### Cloud Support

PyTorch is well supported on major cloud platforms, providing frictionless development and easy scaling.

### Install PyTorch

Select your preferences and run the install command. Stable represents the most currently tested and supported version of PyTorch. This should be suitable for many users. Preview is available if you want the latest, not fully tested and supported, builds that are generated nightly. Please ensure that you have **met the prerequisites below (e.g., numpy)**, depending on your package manager. You can also [install previous versions of PyTorch](/get-started/previous-versions). Note that LibTorch is only available for C++.

**NOTE:** Latest PyTorch requires Python 3.9 or later.

PyTorch Build

Your OS

Package

Language

Compute Platform

Run this Command:

PyTorch Build

Stable (2.6.0)

Preview (Nightly)

Your OS

Linux

Mac

Windows

Package

Conda

Pip

LibTorch

Source

Language

Python

C++ / Java

Compute Platform

CUDA 11.8

CUDA 12.4

CUDA 12.6

ROCm 6.2.4

CPU

Run this Command:

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

[Previous versions of PyTorch](/get-started/previous-versions)

### Quick Start With  

Cloud Partners

Get up and running with PyTorch quickly through popular cloud platforms and machine learning services.

Amazon Web Services

*   [PyTorch on AWS](https://aws.amazon.com/pytorch/)

*   [Amazon SageMaker](https://aws.amazon.com/sagemaker)

*   [AWS Deep Learning Containers](https://docs.aws.amazon.com/deep-learning-containers/latest/devguide/deep-learning-containers-ec2-tutorials-training.html#deep-learning-containers-ec2-tutorials-training-pytorch)

*   [AWS Deep Learning AMIs](https://docs.aws.amazon.com/dlami/latest/devguide/tutorial-pytorch.html)

Google Cloud Platform

*   [Cloud Deep Learning VM Image](https://cloud.google.com/deep-learning-vm/docs/pytorch_start_instance)

*   [Deep Learning Containers](https://cloud.google.com/ai-platform/deep-learning-containers/)

Microsoft Azure

*   [PyTorch on Azure](https://azure.microsoft.com/en-us/develop/pytorch/)

*   [Azure Machine Learning](https://docs.microsoft.com/en-us/azure/machine-learning/how-to-train-pytorch)

*   [Azure Functions](https://docs.microsoft.com/en-us/azure/azure-functions/machine-learning-pytorch?tabs=bash)

Lightning Studios

*   [lightning.ai](https://lightning.ai/)

Ecosystem

---------

##### Feature Projects

[See all Projects](https://landscape.pytorch.org/)

Explore a rich ecosystem of libraries, tools, and more to support development.

[

#### Captum

Captum (“comprehension” in Latin) is an open source, extensible library for model interpretability built on PyTorch.

](/ecosystem/Captum/)

[

#### PyTorch Geometric

PyTorch Geometric is a library for deep learning on irregular input data such as graphs, point clouds, and manifolds.

](/ecosystem/pytorch-geometric/)

[

#### skorch

skorch is a high-level library for PyTorch that provides full scikit-learn compatibility.

](/ecosystem/skorch/)

Community

---------

Join the PyTorch developer community to contribute, learn, and get your questions answered.

[

#### PyTorchDiscuss

Browse and join discussions on deep learning with PyTorch.

](https://discuss.pytorch.org)

[

#### Slack

Discuss advanced topics.

](https://join.slack.com/t/pytorch/shared_invite/zt-2j2la612p-miUinTTaxXczKOJw48poHA)

[

#### 中文文档

Docs and tutorials in Chinese, translated by the community.

](https://pytorch.apachecn.org/)

[

#### 파이토치(PyTorch)

Tutorials in Korean, translated by the community.

](https://tutorials.pytorch.kr/)

[

#### 日本語(PyTorch)

Tutorials in Japanese, translated by the community.

](https://yutaroogawa.github.io/pytorch_tutorials_jp/)

[

#### Maintainers

Learn about the PyTorch core and module maintainers.

](https://pytorch.org/docs/master/community/persons_of_interest.html)

[

#### ContributionGuide

Learn how you can contribute to PyTorch code and documentation.

](https://pytorch.org/docs/master/community/contribution_guide.html)

[

#### DesignPhilosophy

PyTorch design principles for contributors and maintainers.

](https://pytorch.org/docs/master/community/design.html)

[

#### Governance

Learn about the PyTorch governance hierarchy.

](https://pytorch.org/docs/master/community/governance.html)

[

#### Newsletter

Stay up-to-date with the latest updates.

](/newsletter)

[

#### PyTorchTraining

Further your education and career goals.

](https://training.linuxfoundation.org/full-catalog/?_sf_s=PyTorch)

Companies & Universities  

Using PyTorch

----------------------------------------

Reduce inference costs by 71% and drive scale out using PyTorch, TorchServe, and AWS Inferentia.

[Learn More](/blog/amazon-ads-case-study/)

Pushing the state of the art in NLP and Multi-task learning.

Learn More

Using PyTorch’s flexibility to efficiently research new algorithmic approaches.

Learn More

[](https://twitter.com/pytorch)

Docs

----

Access comprehensive developer documentation for PyTorch

[View Docs](/docs)

Tutorials

---------

Get in-depth tutorials for beginners and advanced developers

[View Tutorials](https://pytorch.org/tutorials)

Resources

---------

Find development resources and get your questions answered

[View Resources](/resources)

[](https://pytorch.org)[](#)

*   

*   Learn

*   [Get Started](/get-started)

*   [Tutorials](https://pytorch.org/tutorials)

*   [Learn the Basics](https://pytorch.org/tutorials/beginner/basics/intro.html)

*   [PyTorch Recipes](https://pytorch.org/tutorials/recipes/recipes_index.html)

*   [Introduction to PyTorch - YouTube Series](https://pytorch.org/tutorials/beginner/introyt.html)

*   Ecosystem

*   [Tools](https://landscape.pytorch.org/)

*   [Join the Ecosystem](https://github.com/pytorch-fdn/ecosystem)

*   [Community](/#community-module)

*   [Forums](https://discuss.pytorch.org)

*   [Developer Resources](/resources)

*   [Contributor Awards - 2024](/ecosystem/contributor-awards-2024)

*   Edge

*   [About PyTorch Edge](/edge)

*   [ExecuTorch](/executorch-overview)

*   [ExecuTorch Documentation](https://pytorch.org/executorch/stable/index.html)

*   Docs

*   [PyTorch](https://pytorch.org/docs)

*   [PyTorch Domains](/pytorch-domains)

*   Blog & News

*   [PyTorch Blog](/blog)

*   [Community Blog](/community-blog)

*   [Videos](/videos)

*   [Community Stories](/community-stories)

*   [Events](/events)

*   [Newsletter](/newsletter)

*   About

*   [PyTorch Foundation](/foundation)

*   [Governing Board](/governing-board)

*   [Cloud Credit Program](/credits)

*   [Technical Advisory Council](/tac)

*   [Staff](/staff)

*   [Contact Us](/contact-us)

*   [Become a Member](/join)

*   [

    ](https://github.com/pytorch/pytorch "Go to PyTorch GitHub")

To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: [Cookies Policy](https://www.facebook.com/policies/cookies/).