Skip to main content

How Large Language Models Actually Work: The 2026 Mechanics

How Large Language Models Actually Work: The 2026 MechanicsPhoto: N43 and Hermes
N43 ANALYSIS
TECHNOLOGY · 01
N43 ANALYSIS · ARTIFICIAL INTELLIGENCE

Next-token prediction, a three-stage training pipeline, and an industrial-scale compute buildout turned a text-completion trick into the defining technology of 2026. N43 and Hermes walk through how large language models work, what scaling bought, what inference costs, and where the limits are.

Source video: Large Language Models explained briefly · 3Blue1Brown · approximately 7,277,406 views observed via yt-dlp on 2026-08-30. Independently researched by N43 and Hermes.

Published parameter counts for landmark language model generations, 2018 to 2024 Bar chart with a logarithmic parameter axis showing published parameter counts of 117 million for GPT-1, 1.5 billion for GPT-2, and 175 billion for GPT-3, followed by widely reported estimates of about 220 billion for GPT-4 in 2023 and about 1.8 trillion for the Llama-3-class generation of open models in 2024. 10M 100M 1B 10B 100B+ 117M 1.5B 175B ~220B est. ~1.8T est. GPT-1 GPT-2 GPT-3 GPT-4 Llama 3 2018 2019 2020 2023 2024 Parameters

Published parameter counts for GPT-1 through GPT-3 (OpenAI papers); GPT-4 and Llama 3 shown as widely reported estimates (amber = published, purple = estimated).

01 What an LLM actually is — and why 2026 is the milestone year

A large language model is, at its core, a probability machine over text. Feed it a sequence of words and it produces a distribution over what token — a word fragment, a character, a punctuation mark — should come next. Everything that looks like reasoning, creativity, or conversational memory in 2026's models is built on top of that single, almost embarrassingly simple operation, repeated billions of times per second across specialized hardware. As 3Blue1Brown explains in the source video above, the surprising part is not that the mechanism is complicated; it is that something so simple, scaled hard enough, produces behavior that looks like understanding.

Why call 2026 a milestone? Three curves crossed at roughly the same time. Model capability stopped being the exclusive property of one or two labs: GPT, Claude, Gemini, Grok, and DeepSeek now trade benchmark leadership within weeks of each other, and open-weight releases close the gap almost as fast. Inference got cheap enough that a mid-tier model handles a full working day of questions for the price of a coffee. And the models stopped being just chat windows — they became the reasoning core of agents that browse, code, and take actions. The technology matured from novelty to infrastructure in the space of about eighteen months, and understanding what is underneath matters more than ever.

02 Next-token prediction: the mechanism underneath everything

The training objective is exactly what it sounds like: given a sequence of tokens, predict the next one. The model encodes each token into a high-dimensional vector — an embedding — where similar meanings land in similar neighborhoods. Stacks of transformer attention layers then let every token look back at every other token in its context window, building up a contextual representation of the whole passage. A softmax at the end turns those representations into a probability for every token in the vocabulary: what follows "The capital of France is" should be "Paris" with overwhelming probability.

What makes this powerful rather than a parlor trick is the richness of what the model must implicitly learn to get next-token prediction right. Predicting the next token in a physics textbook is impossible without encoding something about physics; predicting the next move in a chess commentary is impossible without encoding something about chess. Scale that across trillions of tokens of text and the model's internal representations organize into a remarkably structured map of language, facts, and patterns. Two practical consequences matter in 2026: the model has no persistent memory between sessions unless you engineer one, and it is always, at every instant, doing the same thing — generating a plausible next token. There is no inner monologue, no fact lookup table, just a very good statistical continuation.

03 The training pipeline: pretraining, fine-tuning, RLHF

A deployed model goes through three distinct stages, and conflating them is the most common misconception in popular coverage. First comes pretraining: the next-token prediction marathon. The model ingests trillions of tokens — web text, books, code, academic papers — and learns raw language structure, world knowledge, and reasoning patterns by gradient descent over weeks or months on tens of thousands of GPUs. This is the expensive stage: a frontier pretraining run in 2026 is reported to cost anywhere from tens of millions to over a hundred million dollars in compute alone.

Second, supervised fine-tuning: the pretrained base model is further trained on curated examples of instruction-following, question answering, and dialogue, so it stops behaving like an autocomplete engine and starts behaving like an assistant. Third, reinforcement learning from human feedback (RLHF) — and its more recent constitutional and preference-optimization variants: human raters (or a rubric, or another model) compare candidate outputs, and the model is nudged toward the responses people prefer. This is where helpfulness, tone, refusal behavior, and much of the personality of a GPT, Claude, or Gemini model actually come from. The base model wrote the encyclopedia; fine-tuning and RLHF taught it to have a conversation.

04 Scaling and the emergence of capabilities nobody designed

For most of the last decade, the field ran on an empirical regularity now called scaling laws: as you increase parameters, data, and compute together, the model's loss on held-out text falls predictably, following a smooth power law. The 2020 GPT-3 paper documented this across three orders of magnitude of model size, shown in the chart below, and the pattern held well enough that labs could — and did — budget multi-hundred-million-dollar training runs on extrapolation.

The stranger half of scaling is emergence. Capabilities do not arrive gradually. A model too small to do multi-digit arithmetic at all suddenly crosses a size threshold and can; in-context learning, chain-of-thought reasoning, and translation-quality jumps all appeared as step functions rather than gentle slopes. In 2026 the frontier debate has shifted: raw parameter scaling has largely been traded for scaling along other axes — more training tokens, longer reasoning chains at inference time, better data curation, and reinforcement learning on verifiable tasks like math and code. The parameter-count race of 2018 to 2023, charted below, has quietly become a compute-and-data-quality race instead — one reason labs no longer announce model sizes at all.

Reported context window sizes of frontier models, 2020 to 2026 Bar chart with a linear axis in thousands of tokens showing published or reported context windows: GPT-3 at 2,048 tokens in 2020, GPT-4 class around 8,000 to 32,000 in 2023, 128,000 by 2024, roughly one million by 2025, and reported multi-million-token windows in the 2026 model generation. 0 250K 500K 750K 1000K 1250K 2K 4K 8K 32K 128K ~1000K GPT-3 2022 GPT-4 2024 2025 2026 2020 2023 est. Context…

Context-window growth, published figures through 2025; 2026 multi-million-token values shown as reported estimates (amber = published, purple = reported/estimated).

05 Inference economics and the 2026 release race

Training a frontier model is a capital expense; running one is an operating expense, and in 2026 the operating expense is what shapes the market. Every token you receive passes through the full model once (or many times, for reasoning models that generate long internal chains of thought before answering). Prices for frontier-tier inference have fallen by roughly two orders of magnitude since 2023 in published API price lists — a trend that made it economical to put a capable model behind every search box, IDE, and customer-service line. Model distillation, quantization, and specialized serving hardware all push the same direction: smaller models trained on outputs of larger ones now deliver 90 percent of the quality at a tiny fraction of the cost.

The competitive picture is unlike anything the software industry has run before. OpenAI's GPT line, Anthropic's Claude, Google's Gemini, xAI's Grok, and DeepSeek's open-weight models now release on overlapping cycles measured in weeks. Benchmark leads that once lasted a year evaporate in a month; DeepSeek's efficient training runs in particular punctured the assumption that capability requires the largest compute budget. The result for users is a buyers' market — capable models at every price point — and the practical question is no longer whether to use an LLM but which tier per task: cheap fast models for classification and extraction, mid-tier for most reasoning, frontier models only where the marginal quality actually pays for itself.

06 The honest limits: hallucination, the data wall, and reasoning bounds

The most important thing to know about an LLM is that it is a plausible-text generator that is only incidentally a truth generator. Hallucination — fluent, confident fabrication — is not a bug to be patched but a direct consequence of the objective: the model is rewarded for producing likely tokens, not verified ones. Retrieval augmentation, tool use, and citation-grounded generation in 2026's systems reduce the frequency and make claims checkable, but the failure mode itself remains intrinsic to the architecture.

Then there is the data wall. Pretraining corpora are finite — the high-quality public text on the open web is largely spoken for, and the best estimates put frontier training sets at multiple passes over the genuinely useful material already. Labs are turning to synthetic data, curated licensed content, and reinforcement learning on verifiable domains to keep the scaling engine fed, but easy token-level gains are behind us. And reasoning has bounds: models make arithmetic slips that a calculator never would, lose track of long multi-step plans, and remain trivially vulnerable to confident-sounding misinformation in their prompts. Reasoning-mode models can think longer and check themselves, at real cost in latency and price — an improvement, not a cure.

07 What to watch next

Three directions are worth tracking. Efficiency: sparse attention, better distillation, and purpose-built inference chips are collapsing costs, which moves intelligence further into everything — a model per device, not a single model per platform. Agency: the frontier labs are converging on LLMs as reasoning cores for autonomous agents that use tools, browse, and execute multi-step work; the quality of those systems in 2026 is defined by the reliability of the loop around the model, not just the model itself. Verification: with AI-generated text now a large fraction of new web content, provenance standards, watermarking, and retrieval-grounded citations are moving from research topics to product requirements.

The through-line is this: the next-token prediction core you watched 3Blue1Brown explain is not going away, and none of the 2026 frontier advances replace it. Everything now being built — agents, reasoning modes, verification — is scaffolding around a statistical engine that predicts the next token. Understanding that engine, its training pipeline, and its failure modes is what separates informed use of these systems from cargo-cult use. The models will keep changing on a monthly cadence; the mechanism underneath them changes on a generational one.

N43 and Hermes is an independent analytical publication. Numbers are identified as measured, estimated, or illustrative where appropriate.

References

  1. Wikipedia: Large language model — overview of transformer-based language models, training, and capabilities
  2. OpenAI, "Language Models are Few-Shot Learners," https://arxiv.org/abs/2005.14165 — the GPT-3 paper, source of the published 175-billion-parameter figure and scaling-law analysis
  3. Source video: Large Language Models explained briefly (3Blue1Brown, ~7,277,406 views, observed 2026-08-30)
N43 ANALYSIS

N43 and Hermes · Independent Analysis

By N43 and Hermes for Sailor Bob News.

📰 Related Stories

OpenAI's Jalapeno chips: inside the custom accelerator that claims to beat Nvidia
📰 technology

OpenAI's Jalapeno chips: inside the custom accelerator that claims to beat Nvidia

N43 and Hermes20m ago
No Nvidia needed: inside Amazon's massive AI data center built for Anthropic
📰 technology

No Nvidia needed: inside Amazon's massive AI data center built for Anthropic

N43 and Hermes20m ago
How Claude actually works: a practical guide to Anthropic's AI assistant
📰 technology

How Claude actually works: a practical guide to Anthropic's AI assistant

N43 and Hermes20m ago
Apple's M6 chip is weird: why the newest Apple silicon breaks the pattern
📰 technology

Apple's M6 chip is weird: why the newest Apple silicon breaks the pattern

N43 and Hermes20m ago
ChatGPT Atlas: OpenAI enters the browser wars
📰 technology

ChatGPT Atlas: OpenAI enters the browser wars

N43 and Hermes2h ago
Gemini Omni: Google's anything-from-anything model arrives
📰 technology

Gemini Omni: Google's anything-from-anything model arrives

N43 and Hermes2h ago
← Back to News