PyTorch is a Python deep learning framework providing GPU-accelerated tensor computation and tape-based autograd for training neural networks in research and production.
- v2.14.1
- Published at
- 27d ago
- 104,936
- Stars
- 70,545
- Download
- Synced at
- 8d ago
Latest release
v2.14.1Sep 30, 2026, 07:14 PMDownloads slow? Switch the source anytime above
README
Project Overview
PyTorch is a Python deep learning framework built on two high-level features: tensor computation with strong GPU acceleration, and deep neural networks on a tape-based autograd system. It integrates deeply with the Python ecosystem, reusing packages such as NumPy and SciPy, with intuitive code and clear error traces. It is a mainstream choice for academic research and production training.
Tensors feel like NumPy, and training a network is as direct as writing ordinary Python.
| Item | Value |
|---|---|
| Platform | Linux, macOS, Windows |
| Language | Python |
| License | BSD-style open license with patent terms |
| Hardware | NVIDIA CUDA, AMD ROCm, Apple silicon, x86 CPUs |
Key Features
- Tensor computation: a NumPy-like API accelerated on GPUs for scientific computing
- Automatic differentiation: tape-based autograd lets network structure change dynamically
- Neural network modules:
torch.nnprovides common layers, losses, and initialization - Distributed training:
torch.multiprocessingand distributed primitives for multi-GPU scaling - Data loading: DataLoader manages batch reading and parallel preprocessing
- Compilation: torch.compile generates and optimizes computation kernels automatically
Target Audience
- Researchers in deep learning
- Algorithm engineers training and deploying neural networks
- Scientific computing users moving NumPy workloads to GPUs
- Beginners learning deep learning
Quick Start
- Pick the install command for your hardware on the official site; the simplest CPU version:
pip install torch- Verify the install and GPU availability:
import torch
print(torch.cuda.is_available())- Follow the official tutorials to learn tensors and model training
Core Advantages
- Dynamic graphs: code is the computation graph, and debugging shows exactly what runs
- Python first: not a binding of a C++ framework; the style matches native Python
- Mature ecosystem: the fullest tooling and community resources from research to deployment
System Requirements
| Item | Requirement |
|---|---|
| OS | Linux, macOS, Windows |
| Architecture | x86_64, arm64 (including Apple silicon) |
| GPU acceleration | NVIDIA CUDA, AMD ROCm (macOS CPU/MPS only) |
Notes
- Install channel: GPU builds need the install command matching your CUDA or ROCm version; the default PyPI package may not include GPU support
- Jetson devices: NVIDIA Jetson platforms need the dedicated wheels from the official site
Release history
Sort