From
       Research To
Production

An open source deep learning platform that provides a seamless path from research prototyping to production deployment.

Get Started

Key Features &
Capabilities

See all Features
Hybrid Front-End

A new hybrid front-end seamlessly transitions between eager mode and graph mode to provide both flexibility and speed.

Distributed Training

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

Python-First

Deep integration into Python allows popular libraries and packages to be used for easily writing neural network layers in Python.

Tools & Libraries

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

Quick Start
Locally

Select your preferences and run the install command. Stable represents the most currently tested and supported version of PyTorch 1.0. This should be suitable for many users. Preview is available if you want the latest, not fully tested and supported, 1.0 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.0)
Preview (Nightly)
Your OS
Linux
Mac
Windows
Package
Conda
Pip
LibTorch
Source
Language
Python 2.7
Python 3.5
Python 3.6
Python 3.7
C++
CUDA
8.0
9.0
10.0
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.

Companies & Universities
Using PyTorch

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

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

Educating the next wave of AI Innovators using PyTorch.

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