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
- PyTorch works with Hugging Face Transformers
- PyTorch works with PyTorch Lightning
- PyTorch works with ONNX Runtime
- PyTorch works with Python
- PyTorch works with Project Jupyter
- PyTorch competes with TensorFlow
- PyTorch competes with JAX
- Built on PyTorch: Accelerate
- Works with PyTorch: ComfyUI
- Built on PyTorch: Diffusers
- Works with PyTorch: Google Colab
- Built on PyTorch: Keras
- Works with PyTorch: MLflow
- Works with PyTorch: OpenCV
- Works with PyTorch: Ray
- Works with PyTorch: SGLang
- Works with PyTorch: TensorRT-LLM
- Works with PyTorch: Weights & Biases
- Built on PyTorch: Whisper (OpenAI)
- Built on PyTorch: fast.ai
- Works with PyTorch: spaCy
- Built on PyTorch: vLLM