product
What is PyTorch? The open-source deep learning framework explained
Also known as torch
PyTorch is an open-source Python library for tensor computation on GPUs and for building neural networks with automatic differentiation.[1] Development began in 2016 with Meta AI researchers and the Lua Torch community,[2] and since 2022 it has been governed by the independent PyTorch Foundation under the Linux Foundation.[3]
Key facts
This page is part of the machine-learning foundations course. Read how neural networks work and how gradient descent works first; PyTorch is software for putting those ideas into code. For how large runs use it, see how large AI training runs work.
PyTorch is a free, open-source software library for machine learning. Its README describes two core features: tensor computation like NumPy with strong GPU acceleration, and deep neural networks built on a tape-based automatic differentiation (“autograd”) system.[1] When Meta handed it to a new foundation in 2022, it said some 2,400 contributors had built more than 150,000 projects on it.[4]
What it does
PyTorch handles two jobs in training a neural network: fast arithmetic on grids of numbers, called tensors, using GPUs, and automatic calculation of the gradients used to adjust the network.[1] Researchers write ordinary Python code, which the project describes as deeply integrated into Python rather than a thin wrapper around another language.[5]
PyTorch records operations as they run and replays them backwards to compute gradients, using reverse-mode automatic differentiation; the README contrasts this with frameworks such as TensorFlow, Theano, Caffe and CNTK, which had a static view of the network.[6] The 2019 NeurIPS paper on PyTorch argued that frameworks had traded usability against speed, and that PyTorch combines an imperative, Pythonic style with efficient execution on accelerators such as GPUs.[7]
History and governance
PyTorch development started in 2016, a joint effort by people from the Lua Torch community and Meta AI researchers, with much of the funding from Meta.[2] On 12 September 2022, Meta announced that PyTorch would move to a new, independent PyTorch Foundation under the Linux Foundation, with a governing board drawn from AMD, Amazon Web Services, Google Cloud, Meta, Microsoft Azure and NVIDIA.[3] As of November 2026, the foundation also hosts other projects, including the vLLM inference engine, DeepSpeed, Ray, Helion and Safetensors.[8] For how projects like this are run, see how open-source software works.
Use in frontier AI
Large-model research reports name PyTorch directly. NVIDIA’s Megatron-LM paper said its model-parallel method could be built with a few communication operations in native PyTorch, and Meta reports using PyTorch’s built-in NCCL flight recorder to diagnose failures in Llama 3 training.[9] The 2.15.0 release, published on 28 October 2026, made a rewritten NCCL backend for distributed training the default.[10]
Licence
PyTorch is distributed under a BSD-style licence.[11]
Read next
Next in the crash course
How to read an AI research paper: arXiv, baselines and ablations
A reader's guide to AI papers: what an arXiv preprint is, how to judge baselines, ablations, benchmarks and error bars, and what conference checklists ask for.
Questions readers ask
What is PyTorch used for?
Building and training neural networks. It provides NumPy-like tensor computation with GPU acceleration and automatic differentiation for deep learning.[1]
Who owns PyTorch?
Development began in 2016 with Meta AI researchers and Lua Torch community members, largely funded by Meta, but since 2022 PyTorch has been governed by the PyTorch Foundation, part of the Linux Foundation, whose founding board included AMD, AWS, Google Cloud, Meta, Microsoft Azure and NVIDIA.[2][3]
Is PyTorch free to use?
Yes. It is open source under a BSD-style license.[11]
How is PyTorch different from TensorFlow?
PyTorch's README says it builds networks dynamically using reverse-mode automatic differentiation, and contrasts this with frameworks such as TensorFlow, Theano, Caffe and CNTK that took a static view of the network.[6]
Sources
· 11 claims from 7 publishers
Each numbered claim is a statement we checked against the sources listed with it. Tap a number in the text to see its sources in place.
- [1]
PyTorch describes itself as a Python package with two high-level features, tensor computation like NumPy with strong GPU acceleration, and deep neural networks built on a tape-based autograd system. confirmedas of 2026-11-22
- PyTorch README (GitHub, pytorch/pytorch) · PyTorch (GitHub) · Primary source · README, introduction (retrieved 2026-11-22)
- PyTorch README (GitHub, pytorch/pytorch) · PyTorch (GitHub) · Primary source · README, introduction (retrieved 2026-11-22)
- [2]
PyTorch development started in 2016 with people from the Lua Torch community and Meta AI researchers, with much of the funding from Meta. confirmedas of 2026-11-22
- PyTorch strengthens its governance by joining the Linux Foundation · PyTorch (pytorch.org blog) · Primary source · Blog post body (retrieved 2026-11-22)
- Announcing the PyTorch Foundation: A new era for the cutting-edge AI framework · Meta AI · Primary source · 2022-09-12 · A thriving community (retrieved 2026-11-22)
- [3]
On 12 September 2022 Meta announced that PyTorch would move to a new, independent PyTorch Foundation under the Linux Foundation, with a governing board including AMD, Amazon Web Services, Google Cloud, Meta, Microsoft Azure and NVIDIA. confirmedas of 2026-11-22
- Announcing the PyTorch Foundation: A new era for the cutting-edge AI framework · Meta AI · Primary source · 2022-09-12 · Introduction (retrieved 2026-11-22)
- Announcing the PyTorch Foundation: A new era for the cutting-edge AI framework · Meta AI · Primary source · 2022-09-12 · Headline and dateline (retrieved 2026-11-22)
- Announcing the PyTorch Foundation: A new era for the cutting-edge AI framework · Meta AI · Primary source · 2022-09-12 · Introduction (retrieved 2026-11-22)
- PyTorch strengthens its governance by joining the Linux Foundation · PyTorch (pytorch.org blog) · Primary source · Blog post body (retrieved 2026-11-22)
- [4]
At the 2022 announcement, Meta said some 2,400 contributors had built more than 150,000 projects on PyTorch and called it one of the leading platforms for AI research and commercial production use. confirmedas of 2026-11-22
- Announcing the PyTorch Foundation: A new era for the cutting-edge AI framework · Meta AI · Primary source · 2022-09-12 · Introduction (retrieved 2026-11-22)
- [5]
The PyTorch README says PyTorch is not a Python binding into a monolithic C++ framework but is built to be deeply integrated into Python. confirmedas of 2026-11-22
- PyTorch README (GitHub, pytorch/pytorch) · PyTorch (GitHub) · Primary source · README, Python First (retrieved 2026-11-22)
- [6]
The PyTorch README says it builds networks by recording and replaying operations like a tape recorder, using reverse-mode automatic differentiation, which lets users change how a network behaves on the fly, and contrasts this with frameworks such as TensorFlow, Theano, Caffe and CNTK that had a static view of the network. confirmedas of 2026-11-22
- PyTorch README (GitHub, pytorch/pytorch) · PyTorch (GitHub) · Primary source · README, Dynamic Neural Networks: Tape-Based Autograd (retrieved 2026-11-22)
- PyTorch README (GitHub, pytorch/pytorch) · PyTorch (GitHub) · Primary source · README, Dynamic Neural Networks: Tape-Based Autograd (retrieved 2026-11-22)
- PyTorch README (GitHub, pytorch/pytorch) · PyTorch (GitHub) · Primary source · README, Dynamic Neural Networks: Tape-Based Autograd (retrieved 2026-11-22)
- [7]
The 2019 PyTorch paper (NeurIPS 2019) argued that deep learning frameworks had usually focused on either usability or speed, and that PyTorch shows both are compatible, with an imperative, Pythonic style and support for hardware accelerators such as GPUs. reportedas of 2026-11-22
- PyTorch: An Imperative Style, High-Performance Deep Learning Library (arXiv:1912.01703) · Facebook AI Research and collaborators (arXiv; published at NeurIPS 2019) · Secondary source · 2019-12-03 · Abstract (retrieved 2026-11-22)
- PyTorch: An Imperative Style, High-Performance Deep Learning Library (arXiv:1912.01703) · Facebook AI Research and collaborators (arXiv; published at NeurIPS 2019) · Secondary source · 2019-12-03 · Abstract (retrieved 2026-11-22)
- [8]
As of November 2026, the PyTorch Foundation describes itself as a community-driven hub hosted by the Linux Foundation that supports the core PyTorch framework alongside projects including vLLM, DeepSpeed, Ray, Helion and Safetensors. confirmedas of 2026-11-22
- PyTorch Foundation · PyTorch Foundation · Primary source · Home section (retrieved 2026-11-22)
- [9]
Megatron-LM's model-parallel approach can be implemented with a few communication operations in native PyTorch, and Meta reports using PyTorch's built-in NCCL flight recorder to diagnose problems in Llama 3 training. reportedas of 2026-11-22
- Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism (arXiv:1909.08053) · NVIDIA (preprint on arXiv) · Secondary source · 2019-09-17 · Abstract (retrieved 2026-11-22)
- The Llama 3 Herd of Models (arXiv:2407.21783, HTML full text) · Meta (technical report on arXiv) · Secondary source · 2024-07-31 · Section 3.3.4 (retrieved 2026-11-22)
- [10]
PyTorch 2.15.0 was released on GitHub on 28 October 2026, with highlights including a rewritten NCCL backend for distributed training becoming the default. confirmedas of 2026-11-22
- PyTorch releases (GitHub API, pytorch/pytorch) · PyTorch (GitHub) · Primary source · Releases API, first entry, v2.15.0 (PyTorch 2.15.0 Release) (retrieved 2026-11-22)
- PyTorch releases (GitHub API, pytorch/pytorch) · PyTorch (GitHub) · Primary source · v2.15.0 release notes, Highlights (retrieved 2026-11-22)
- [11]
PyTorch has a BSD-style open-source license. confirmedas of 2026-11-22
- PyTorch README (GitHub, pytorch/pytorch) · PyTorch (GitHub) · Primary source · README, License (retrieved 2026-11-22)
Revision history (1)
- Page created.
Created Nov 22, 2026. Last reviewed by an editor on Nov 22, 2026. Next scheduled review: Apr 26, 2027.
Cite this page
"What is PyTorch? The open-source deep learning framework explained." ContentLora, updated Nov 22, 2026. https://contentlora.com/wiki/pytorch
Spotted an error? Suggest a correction or emailcorrections@contentlora.com.