• Get Started
  • Ecosystem
    Models (Beta)

    Discover, publish, and reuse pre-trained models

    Tools & Libraries

    Explore the ecosystem of tools and libraries

  • Mobile
  • Blog
  • Tutorials
  • Docs
  • Resources
    Developer Resources

    Find resources and get questions answered

    About

    Learn about PyTorch’s features and capabilities

  • GitHub
  • X

Resources

Explore educational courses, get your questions answered, and join the discussion with other PyTorch developers.

Docs

Access comprehensive developer documentation.

Tutorials

Get in-depth tutorials for beginners and advanced developers.

GitHub

Report bugs, request features, discuss issues, and more.

PyTorchDiscuss

Browse and join discussions on deep learning with PyTorch.

Slack

Discuss advanced topics. Request access: https://bit.ly/ptslack

Examples

View example projects for vision, text, RL, and more.

中文文档

Docs and tutorials in Chinese, translated by the community.

파이토치(PyTorch)

Tutorials in Korean, translated by the community.

fast.ai

Get up and running on PyTorch quickly with free learning courses.

MobileDemo

Check out the PyTorch Mobile demo app for iOS and Android.

Deep Learning w/PyTorch

Get a detailed intro to PyTorch with real-world examples.

Quick Start
Locally

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, 1.5 builds that are generated nightly. Please ensure that you have met the prerequisites below (e.g., numpy), depending on your package manager. Anaconda is our recommended package manager since it installs all dependencies. You can also install previous versions of PyTorch. Note that LibTorch is only available for C++.

PyTorch Build
Your OS
Package
Language
CUDA
Run this Command:
PyTorch Build
Stable (1.5.1)
Preview (Nightly)
Your OS
Linux
Mac
Windows
Package
Conda
Pip
LibTorch
Source
Language
Python
C++ / Java
CUDA
9.2
10.1
10.2
None
Run this Command:
conda install pytorch torchvision -c pytorch

Previous versions of PyTorch

Quick Start With
Cloud Partners

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

Alibaba Cloud
  • Alibaba Cloud PAI
Amazon Web Services
  • PyTorch on AWS
  • Amazon SageMaker
  • AWS Deep Learning Containers
  • AWS Deep Learning AMIs
Google Cloud Platform
  • Cloud Deep Learning VM Image
  • Deep Learning Containers
Microsoft Azure
  • Azure Machine Learning
  • Learn More

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources
  • PyTorch
  • Get Started
  • Features
  • Ecosystem
  • Blog
  • Contributing
  • Resources
  • Tutorials
  • Docs
  • Discuss
  • GitHub Issues
  • Brand Guidelines
  • Stay Connected
  • Terms
  • |
  • Privacy
  • Get Started
  • Features
  • Ecosystem
  • Mobile
  • PyTorch Hub
  • Blog
  • Tutorials
  • Docs
  • Resources
  • 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.