PyTorch

Python-first deep learning framework with eager execution, autograd and a compiler path (torch.compile), governed by the PyTorch Foundation.

PyTorch lets you define neural networks as ordinary Python code and differentiate through them automatically, which makes research code easy to debug. Since 2.x it adds a graph-capturing compiler for faster training and inference without rewriting models. It is the default backend for most open model releases and for libraries such as Transformers, Diffusers and vLLM. The project is hosted by the PyTorch Foundation under the Linux Foundation.

Type
AI framework
Category
AI & ML
Maintainer
PyTorch Foundation (Linux Foundation)
First released
2016
License
Open source (BSD-3-Clause)
Pricing
Open source
Level
Intermediate
Technologies
python, cpp, cuda, deep-learning, machine-learning
GitHub stars
105,984
Weekly downloads
13,195,651 (pypi)
Latest release
[object Object]
Last verified
26 Nov 2026

What PyTorch is used for

  • Training and fine-tuning neural networks
  • Research prototyping
  • Exporting models to serving runtimes
  • Computer vision and NLP pipelines

Strengths

  • Pythonic, debuggable eager mode
  • Broadest ecosystem of open model code
  • First-class GPU support including CUDA and ROCm
  • Compiler and distributed training built in

Limitations

  • Production export paths (ExecuTorch, ONNX) need extra work
  • Large install size with GPU builds
  • Fast-moving APIs between major versions

PyTorch alternatives

How it relates to other tools

Built with the same technologies

Learn PyTorch

Official links

Sources

Explore