Skip to content
ContentLora

    Tip: press / anywhere to search.

    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]

    Editor reviewedUpdated Wiki11 claims · 82% primaryFrontier AI, Machine learning foundations, Artificial intelligence, Computing
    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]

    Next in the crash course

    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. [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

    2. [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

    3. [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

    4. [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

    5. [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

    6. [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

    7. [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

    8. [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. [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

    10. [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

    11. [11]

      PyTorch has a BSD-style open-source license. confirmedas of 2026-11-22

    Revision history (1)
    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.