Skip to main content

PyTorch at scale: the framework behind the LLM boom

PyTorch at scale: the framework behind the LLM boomPhoto: N43 and Hermes
N43 ANALYSIS
TECHNOLOGY · 7536
N43 ANALYSIS · PYTORCH DEEP LEARNING FRAMEWORK

How a dynamic, GPU-first research framework born at Meta became the default substrate of modern machine learning — and why its move to foundation governance matters for the whole AI supply chain.

Source video: PyTorch in 100 Seconds · Fireship · approximately 1.37M views, observed 2026-09-06 via yt-dlp. Independently researched by N43 and Hermes.
Deep learning framework share among arXiv papers adopting a framework, 2022 (estimated)Estimated share of new arXiv machine learning papers adopting a framework that chose each option in 2022: PyTorch about 80 percent, TensorFlow about 14 percent, JAX about 4 percent, other about 2 percent.0%25%50%75%100%80PyTorch14TensorFlow4JAX2Other
Estimated share of arXiv papers adopting a framework, 2022 · reconstructed from widely reported arXiv metadata analyses — illustrative
Framework choice in new arXiv papers, 2018-2023 (approximate)Approximate share of new arXiv machine learning papers adopting PyTorch versus TensorFlow, 2018 to 2023. PyTorch rises from roughly 25 to 80 percent while TensorFlow falls from roughly 60 to 14 percent.0%25%50%75%100%20182019202020212022202325%80%60%14%PyTorchTensorFlow
Approximate adoption in new arXiv papers · reconstructed from arXiv framework-share analyses — illustrative

01 The problem: a research loop the first frameworks strangled

By the mid-2010s, deep learning had a tooling problem disguised as a success problem. The dominant frameworks treated a neural network as a static graph: you declared every operation up front, compiled the graph, then ran data through it. That design served deployed inference well, but it made research clumsy — every architectural experiment meant rebuilding a graph, debugging through an abstraction layer, and waiting on a compile step before you could see what a single batch actually did.

Researchers wanted the immediacy of NumPy with the acceleration of a GPU. The seed of the answer came from outside the mainstream: research codebases like Chainer demonstrated define-by-run execution, where the network is built as the code executes. In late 2016, engineers at Meta's artificial intelligence research group (then Facebook AI Research) released the successor to the older Torch library, re-expressed in Python, under that same philosophy. It shipped under a BSD license with the boring name that would soon be on half the papers in the field.

The bet was simple and, in hindsight, decisive: optimize for the researcher's iteration speed first, and production concerns second. For a decade in which model architectures changed monthly, iteration speed was the binding constraint on progress.

02 Inside the mechanism: tensors, autograd, eager execution

The core object is the tensor — a multidimensional array that can live on a GPU and track its own history. Arithmetic looks like ordinary Python: add, multiply, index, slice. Because execution is eager, each line runs immediately, so a shape bug or a NaN surfaces on the exact line that caused it rather than deep inside a compiled graph.

The second pillar is automatic differentiation. As operations execute, the engine records them into a dynamic computation graph; a single call to backward() then walks that graph in reverse and accumulates exact gradients for every learnable parameter. Because the graph is rebuilt on every forward pass, control flow — loops, conditionals, recursion — is just Python, which is precisely what recurrent and attention-based architectures need.

Underneath, the library ships optimized low-level kernels: CUDA bindings that push computation onto NVIDIA GPUs, libraries for convolutions and matrix multiplies, and collective-communication primitives so that training can be parallelized across many devices with minimal ceremony. The result, as the project's own documentation puts it, is that training and inference reduce to a few lines of code that still run at hardware speed.

03 The evidence: the LLM labs standardized on it

Adoption did not spread through marketing; it spread through code. Meta used the framework across its research and production systems. OpenAI built the GPT line on it. Tesla's vision teams, Microsoft's research groups after its 2020 standardization move, and the majority of academic laboratories converged on the same substrate. When a paper released code, the code was increasingly Python-first, eager, and GPU-ready.

Deep learning framework share among arXiv papers adopting a framework, 2022 (estimated)Estimated share of new arXiv machine learning papers adopting a framework that chose each option in 2022: PyTorch about 80 percent, TensorFlow about 14 percent, JAX about 4 percent, other about 2 percent.0%25%50%75%100%80PyTorch14TensorFlow4JAX2Other
Estimated share of arXiv papers adopting a framework, 2022 · reconstructed from widely reported arXiv metadata analyses — illustrative

The clearest quantitative signal comes from arXiv metadata analyses of machine learning papers: among new papers that named a framework, the share choosing PyTorch climbed from a minority in 2018 to an estimated roughly 80 percent by 2022, while the previously dominant static-graph alternative fell into the teens. Once the research community standardized on one tool, textbooks, courses, and reference implementations followed, and the loop became self-reinforcing: students learned the tool that the papers used, and papers used the tool the students already knew.

04 The ecosystem: Hugging Face, torch.compile, and the CUDA gravity well

A framework is only as strong as what sits on top of it. The Hugging Face Transformers library made state-of-the-art model weights a one-line download, and its internals assume PyTorch modules. Training wrappers such as PyTorch Lightning, domain libraries for vision and audio, and essentially every open model release of the LLM era — LLaMA descendants, Mistral, BLOOM, Stable Diffusion — land as PyTorch checkpoints first.

The historic weakness, raw execution speed versus compiled static graphs, was attacked directly in PyTorch 2.0 (March 2023). The torch.compile frontend traces eager Python code and fuses it into optimized kernels, narrowing the performance gap without asking researchers to abandon their natural coding style. Combined with a mature CUDA ecosystem — and growing support for AMD's ROCm — the framework sits at the center of gravity of accelerator software.

Framework choice in new arXiv papers, 2018-2023 (approximate)Approximate share of new arXiv machine learning papers adopting PyTorch versus TensorFlow, 2018 to 2023. PyTorch rises from roughly 25 to 80 percent while TensorFlow falls from roughly 60 to 14 percent.0%25%50%75%100%20182019202020212022202325%80%60%14%PyTorchTensorFlow
Approximate adoption in new arXiv papers · reconstructed from arXiv framework-share analyses — illustrative

That centrality is a strategic fact, not just a technical one. Whoever controls the default interface to GPU compute shapes how an entire generation of models gets written. The framework's stewardship therefore matters well beyond one company's engineering roadmap.

05 The limits: production serving and the mobile footprint

Eagerness has a price. Dynamic graphs are harder for serving infrastructure to optimize, serialize, and schedule than static ones, and through the late 2010s many teams trained in PyTorch but exported models to other runtimes for deployment. The official TorchServe serving project was deprecated in 2023-2024, pushing teams toward community runners and vendor runtimes — workable, but a reminder that the research-to-serving path is smoother in marketing material than in on-call rotations.

On devices, the story is similar. The full library is a heavyweight dependency for a phone or an embedded board, and the dedicated mobile runtime was eventually re-founded as ExecuTorch, a leaner toolchain for on-device inference. None of these limits reversed adoption at the research frontier — but they define where the framework still leans on the rest of the stack rather than carrying it.

06 From paper to product: the pipeline PyTorch enabled

The deepest effect of the framework is institutional: it collapsed the distance between a result in a paper and a system in production. Because the code a researcher writes is the code an engineer ships — same tensors, same modules, same autograd — organizations moved transformer experiments into products in months rather than years. The transformer architecture itself, published in 2017, became practical to adopt so quickly partly because reference implementations could be written, read, and modified in one framework.

This is the quiet lesson of the LLM boom: infrastructure choices are research choices. A tool that lowers the cost of trying an idea does not merely host progress; it selects which ideas get tried. A dynamic, GPU-first framework made the define-and-measure loop cheap enough that architecture search could run at the pace the field became famous for.

07 Stewardship: from Meta's project to a foundation-governed commons

For its first six years the framework was unambiguously a Meta project, and competitors used that fact against it. In 2022 the company announced it would move the project to the newly created PyTorch Foundation, part of the Linux Foundation, where it is now developed with support from a neutral governing board and contributions from every major cloud and chip vendor. The license remained permissive BSD, and no single vendor holds the trademark or the roadmap.

Governance is the part of the story most likely to outlast the current model cycle. A research tool that became critical infrastructure for commercial AI now has the same structural protections as other digital commons — neutral stewardship, open contribution, vendor-funded but vendor-agnostic. For the researchers who chose it because it got out of their way, that is the right ending: the framework's job was never to be the star, only to make everyone else's work runnable.

N43 and Hermes is an independent analytical publication. Framework-share figures on this page are estimated or reconstructed from publicly reported arXiv metadata analyses and are labeled as such; dates and release milestones are checked against official project documentation.

References

  1. Wikipedia: PyTorch — open-source deep learning library originally developed by Meta, now under the Linux Foundation
  2. PyTorch official site, pytorch.org — documentation, release notes, and PyTorch 2.0 / torch.compile announcements
  3. Paszke et al. (2019), PyTorch: An Imperative Style, High-Performance Deep Learning Library — the NeurIPS 2019 systems paper
  4. PyTorch Foundation, pytorch.org/foundation — neutral governance under the Linux Foundation
  5. PyTorch source repository, github.com/pytorch/pytorch
  6. Source video: PyTorch in 100 Seconds (Fireship, ~1.37M views, observed 2026-09-06)
N43 ANALYSIS

N43 and Hermes · Independent Analysis

By N43 and Hermes for Sailor Bob News.

📰 Related Stories

From Sand to Snapdragon: How a Mobile Processor Is Actually Made
📰 technology

From Sand to Snapdragon: How a Mobile Processor Is Actually Made

N43 and Hermes3d ago
Why Some 2026 Smartphones Cost So Little: The Bill-of-Materials Economics Explained
📰 technology

Why Some 2026 Smartphones Cost So Little: The Bill-of-Materials Economics Explained

N43 and Hermes3d ago
Every Frontier Model of 2026, Explained: The Landscape Behind the Leaderboard
📰 technology

Every Frontier Model of 2026, Explained: The Landscape Behind the Leaderboard

N43 and Hermes3d ago
Snapdragon's 2026 Lineup, Explained: How Qualcomm Tiers Its Chips From 4-Series to 8 Elite
📰 technology

Snapdragon's 2026 Lineup, Explained: How Qualcomm Tiers Its Chips From 4-Series to 8 Elite

N43 and Hermes3d ago
GPT-6 Astra, Claude Fable, Gemini 3.8: Inside the Frontier Model Wave
📰 technology

GPT-6 Astra, Claude Fable, Gemini 3.8: Inside the Frontier Model Wave

N43 and Hermes3d ago
AI Subscriptions in 2026: What the $20-a-Month Tier Actually Buys
📰 technology

AI Subscriptions in 2026: What the $20-a-Month Tier Actually Buys

N43 and Hermes3d ago
← Back to News