Glossary: How LLM Inference Works, Every Term Explained From Zero

54 min read

Glossary: How LLM Inference Works, Every Term Explained From Zero

The problem

This series talks about tokens, KV caches, prefill, speculative decoding and batch-invariant kernels as if everyone already knows them. Most people do not, and one unknown word in a sentence is enough to lose the whole idea. This page explains every term the series uses, starting from nothing.

You can read the series in order and come back here whenever a word is unclear. Every term has its own entry, and every article links straight to the entry the first time it uses the word.

Start here

What a language model is. A language model is a computer program that has read a huge amount of text and learned to predict what text comes next. Give it "The capital of France is" and it predicts "Paris". A chatbot is a language model wrapped in a chat window. A large language model, or LLM, is simply a very big one, with billions of internal numbers.

Training versus inference. A model's life has two phases. Training is the slow, expensive phase where the model learns: it reads text, guesses the next piece, checks the real answer, and nudges its internal numbers (called weights or parameters) to guess better next time. That happens once, before you ever use the model. Inference is everything after: you send the finished model some text and it produces an answer. Nothing is learned during inference. This whole series is about inference: how the answer is produced, how fast, how much memory it takes, and how much it costs.

What a GPU and VRAM are. A CPU is the general-purpose chip in every computer. It does one complicated thing after another very quickly. A GPU, or graphics processing unit, was built to draw graphics, which means doing thousands of simple calculations at the same time. A language model is mostly simple multiplications done in huge numbers, so GPUs run models far faster than CPUs. A GPU has its own memory on the card, called VRAM. The model's weights must sit in VRAM, and so must the working notes the model makes while it answers. VRAM is fixed and limited, for example 16 GB or 80 GB, so it is often the real limit on what you can run.

What a token and a prompt are. A model does not read letters or whole words. Text is chopped into tokens, small chunks that are often a whole short word or part of a longer one. The prompt is the text you send in: your question, plus anything you paste or attach, plus any hidden instructions the app adds. Prices, memory use and limits are all counted in tokens.

How an answer gets written. Most models write one token at a time. They read the prompt and every token written so far, predict a score for every possible next token, pick one, add it to the end, and repeat. One run of the model to produce one token is called a forward pass. This one-at-a-time style is called autoregressive generation.

Why memory and speed get hard. To pick each new token, the model looks back at all earlier tokens using a step called attention. Rather than redo that work every time, it saves notes about each earlier token, called the KV cache. Those notes grow with every token and every user, so they decide how many people one GPU can serve. Running a model for many users at once is called serving, and it needs tricks such as batching (handling many requests together) and paging (storing the notes in small blocks).

Making it faster. Because each forward pass mostly waits on memory, a GPU has spare arithmetic. Speculative decoding uses it: a small model guesses several tokens and the big model checks them all at once. Parts 6 to 8 are about that trick and two newer versions of it.

Randomness. When the model scores every possible next token, it still has to choose one. Temperature is the setting that decides how adventurous that choice is. At temperature 0 it always takes the top choice, yet answers can still change, for reasons that come down to how computers add decimal numbers.

A different way to write. Diffusion language models skip the one-token-at-a-time rule. They start with a row of blanks and fill them in over several rounds. Part 11 compares the two styles.

With those ideas in place, every entry below is one step away.

The basics

Language model

A program trained on large amounts of text to predict the next piece of text. Chatbots, coding assistants and writing tools are all built on one. Why it matters: Every other term in this series describes how a language model produces its answer. Covered in: Part 2: Tokens, Part 11: Diffusion vs autoregressive

LLM

Short for large language model: a language model with billions of internal numbers, such as GPT, Claude, Llama or Qwen. Why it matters: "LLM" appears in titles and docs everywhere; it just means a big language model. Covered in: Part 5: Paging the KV cache, Part 8: Phrase drafting

Model

In this series, a model is a trained language model: a big file of numbers plus the code that runs them. Why it matters: When an article says "the model", it means the program producing the text. Covered in: Part 2: Tokens, Part 9: Temperature

Training

The phase where a model learns, by reading text, guessing the next token and adjusting its numbers to guess better. It is done once, before release, and costs far more than using the model. Why it matters: Some techniques need extra training (like EAGLE or a phrase head) and some need none, which changes how easy they are to adopt. Covered in: Part 7: Fork-aware draft trees, Part 8: Phrase drafting

Inference

Using a trained model to produce an answer. You send text in, the model writes text out, and nothing is learned along the way. Why it matters: Inference is what you pay for on every request, so its speed, memory and cost are the subject of this series. Covered in: Part 5: Paging the KV cache, Part 10: Temperature 0

Pretrained

A model that has already been trained on a large amount of general text and can be reused as a starting point. Why it matters: Dream 7B was built by starting from a pretrained model instead of from nothing. Covered in: Part 11: Diffusion vs autoregressive

Trained from scratch

Trained starting from random numbers, without reusing any earlier model. Why it matters: LLaDA was trained from scratch as a diffusion model, which makes its results a cleaner test of the idea. Covered in: Part 11: Diffusion vs autoregressive

Frozen model

A model whose weights are not changed. Extra parts can be added and trained around it, but the original stays exactly as it was. Why it matters: The phrase drafter in Part 8 trains only a small head and keeps the target frozen, so the served output does not change. Covered in: Part 8: Phrase drafting

Weights

The numbers inside a model that it learned during training. Running the model means multiplying your input by these numbers, layer after layer. Why it matters: The weights must be loaded into GPU memory, and reading them on every step is the main reason decoding is slow. Covered in: Part 4: KV cache, Part 6: Speculative decoding

Parameters

Another word for the learned numbers in a model. "8 billion parameters" means 8 billion such numbers. Why it matters: Parameter count is a rough guide to how big, slow and memory hungry a model is. Covered in: Part 6: Speculative decoding, Part 8: Phrase drafting

Model size names

Labels like 7B, 8B, 70B or 0.6b give the parameter count in billions. "21.94M" means 21.94 million. Why it matters: The size in the name tells you roughly how much memory the weights need. Covered in: Part 4: KV cache, Part 8: Phrase drafting

CPU

The central processing unit, the general-purpose chip in every computer. It does a few complex tasks very quickly, one after another. Why it matters: It explains why models run on GPUs instead: they need many simple sums at once, not a few complex ones. Covered in: Part 4: KV cache

GPU

A graphics processing unit, a chip that does thousands of simple calculations at the same time. That suits language models, which are mostly huge numbers of multiplications. Why it matters: Almost all serving happens on GPUs, and their memory size sets the limits discussed in this series. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

VRAM

The GPU's own memory, built onto the graphics card. Model weights and the KV cache both have to fit in it. Why it matters: Running out of VRAM is what caps context length and the number of users per GPU. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

RAM

The computer's main working memory, used by the CPU and normal programs. Why it matters: Part 5 explains how operating systems split RAM into pages, the idea PagedAttention borrows for VRAM. Covered in: Part 5: Paging the KV cache

Memory

In this series, usually the GPU's memory (VRAM), where weights and cached notes are stored. Why it matters: Most serving limits here are memory limits, not arithmetic limits. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

Compute

The arithmetic a chip does, measured in how many calculations it can run per second. Why it matters: Prefill is limited by compute, decode by memory, and speculative decoding uses spare compute. Covered in: Part 4: KV cache, Part 6: Speculative decoding

Compute units

The parts of a GPU that actually do the arithmetic, separate from the memory that stores the numbers. Why it matters: During decode, data has to travel from memory to these units, and that travel is the bottleneck. Covered in: Part 4: KV cache

TPU

A tensor processing unit, Google's own chip built for AI math. It plays the same role as a GPU. Why it matters: The original speculative decoding results were measured on a TPU-v4, so they may differ on GPUs. Covered in: Part 6: Speculative decoding

A5000

An NVIDIA professional graphics card, a single GPU. Why it matters: The phrase drafter speedups in Part 8 were measured on one of these, at one request at a time. Covered in: Part 8: Phrase drafting

Text, tokens and prompts

Token

A small chunk of text a model reads and writes, often a short word or a piece of a longer one. In plain English one token is about three quarters of a word. Why it matters: Prices, context limits and memory are all counted in tokens. Covered in: Part 2: Tokens, Part 4: KV cache

Tokeniser

The program that chops text into tokens and turns them into numbers. Each model family has its own, so the same sentence can give different token counts. Why it matters: You cannot guess a token count; you have to run the right tokeniser. Covered in: Part 2: Tokens, Part 8: Phrase drafting

BPE

Byte pair encoding, a common way to build a tokeniser. It starts from single characters or bytes and keeps merging the most frequent neighbouring pair into a new token. Why it matters: Because of how BPE is set up, whole multi-word phrases never become single tokens, which Part 8 works around. Covered in: Part 8: Phrase drafting

Pretokenizer

The first step of a tokeniser that splits text into rough pieces, for example at spaces, before any merging happens. Why it matters: Splitting on spaces first is why "United States of America" can never be one token. Covered in: Part 8: Phrase drafting

Whitespace

Spaces, tabs and line breaks between words. Why it matters: Tokenisers split on whitespace, so tokens rarely cross word boundaries. Covered in: Part 8: Phrase drafting

Merges

The pairs a BPE tokeniser learned to join into bigger tokens, such as "summar" plus "ised". Why it matters: Merges decide which words are one token and which are several. Covered in: Part 8: Phrase drafting

Vocabulary

The fixed list of every token a model knows, each with an ID number. Why it matters: A model can only output tokens from its vocabulary, which limits what a drafter can propose in one step. Covered in: Part 8: Phrase drafting

Draft vocabulary

A separate list of entries used only by a drafter, here made of one to three word phrases. Why it matters: It lets a drafter propose a whole phrase as one guess, then expand it into normal tokens. Covered in: Part 8: Phrase drafting

cl100k_base

The name of one of OpenAI's tokeniser encodings, used by several GPT models. Why it matters: All the GPT token counts in Part 2 were measured with it. Covered in: Part 2: Tokens, Part 3: Context window

tiktoken

OpenAI's free Python library for running its tokenisers and counting tokens. Why it matters: It is the tool the series uses to count tokens on your own text. Covered in: Part 2: Tokens

Prompt

The text you send to the model: your question, plus anything you paste or attach, plus any instructions the app adds. Why it matters: Every token in the prompt is read, stored and billed. Covered in: Part 2: Tokens, Part 4: KV cache

System prompt

Hidden instructions an app sends at the start of every conversation, such as "You are a helpful assistant". Why it matters: Many users share the same system prompt, so servers can store it once and reuse it. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

Prefix

The start of a sequence of tokens: the shared opening of many prompts, or everything a model has generated so far. Why it matters: Shared prefixes can be cached once, and a different prefix makes every later token different. Covered in: Part 4: KV cache, Part 10: Temperature 0

Input tokens

The tokens in what you send, the prompt. Why it matters: They are billed at the input price, usually the cheaper of the two. Covered in: Part 2: Tokens

Output tokens

The tokens the model writes back. Why it matters: They usually cost five to ten times more than input tokens, so long answers cost more. Covered in: Part 2: Tokens

Price per million tokens

How providers quote cost: a dollar amount for every million tokens read or written. Why it matters: Multiply your token count by this price to estimate a bill. Covered in: Part 2: Tokens

Context window

The maximum number of tokens a model can look at in one go, covering the prompt, attachments and its own answers. When the chat grows past it, the oldest part falls out of view. Why it matters: It explains why long chats "forget" their start, and every token in it costs memory. Covered in: Part 3: Context window, Part 4: KV cache

Context length

How many tokens are actually in use in a request, up to the context window. Why it matters: The KV cache grows in direct proportion to it. Covered in: Part 4: KV cache

Sequence length

The number of tokens in a sequence the model is handling, the prompt plus what it has written. Why it matters: It is one of the six numbers in the KV cache size formula. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

Chatbot

A chat app built on a language model, such as ChatGPT or Claude. Why it matters: It is the everyday case behind most examples here: one user, one stream of tokens. Covered in: Part 2: Tokens, Part 6: Speculative decoding

PDF

A common document file format. Why it matters: Attaching a 20 page PDF to a chat fills thousands of tokens of the context window. Covered in: Part 3: Context window

Corpus

A collection of text used to train or test a model. Why it matters: The toy diffusion demo in Part 11 learned from a corpus of only six sentences. Covered in: Part 11: Diffusion vs autoregressive

Inside the model

Transformer

The design almost every modern language model uses. It is a stack of layers, and each layer lets every token look at other tokens through attention. Why it matters: The KV cache, attention heads and QK-norm all live inside a transformer. Covered in: Part 4: KV cache

Layer

One stage in the model's stack. Each layer takes the numbers for every token, transforms them, and passes them up to the next layer. Why it matters: Every layer keeps its own cached notes, so more layers means a bigger KV cache. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

Vector

A list of numbers. Models represent each token as vectors. Why it matters: Keys, values and queries are all vectors, and storing them is what fills memory. Covered in: Part 4: KV cache

Query vector

The vector a new token uses to ask "which earlier tokens matter to me?" Why it matters: It is computed fresh for each new token, which is why it is not cached. Covered in: Part 4: KV cache

Key vector

A vector for each token that is matched against queries to decide how relevant that token is. Why it matters: Keys for every past token are stored in the KV cache. Covered in: Part 4: KV cache

Value vector

A vector for each token that carries what that token contributes once it is judged relevant. Why it matters: Values are the other half of the KV cache. Covered in: Part 4: KV cache

Attention

The step where a token scores every earlier token by matching its query against their keys, then blends their values by those scores. It is how the model uses context. Why it matters: Attention needs the keys and values of all past tokens, which is why they are cached. Covered in: Part 4: KV cache, Part 11: Diffusion vs autoregressive

Attention head

One of several parallel attention units inside a layer. Each head can track a different kind of relationship between tokens. Why it matters: The number of heads that keep keys and values sets the size of the KV cache. Covered in: Part 4: KV cache

KV heads

The heads that store their own keys and values. With grouped-query attention there are fewer KV heads than query heads. Why it matters: Fewer KV heads means a smaller cache; Llama-3-8B has 8. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

Head dimension

The length of each key or value vector in one head, often the hidden size divided by the number of query heads. Why it matters: It is one of the numbers in the KV cache formula. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

Hidden size

The length of the main vector that represents each token inside the model. Why it matters: You can work out the head dimension from it when a config does not list it. Covered in: Part 4: KV cache

Hidden state

The numbers inside a model for a token at some layer, between input and output. Why it matters: EAGLE and the phrase drafter read the target model's hidden states to make their guesses. Covered in: Part 6: Speculative decoding, Part 8: Phrase drafting

Forward pass

One full run of the model through all its layers. In normal generation, one forward pass produces one token. Why it matters: Counting forward passes is the simplest way to understand why speculative decoding saves time. Covered in: Part 6: Speculative decoding, Part 11: Diffusion vs autoregressive

Matrix math

Multiplying large grids of numbers, which is most of what a model does. Why it matters: GPUs are built for it, and prefill is mostly this work. Covered in: Part 4: KV cache

Causal attention

Attention where each token can only look at earlier tokens, never later ones. Why it matters: Earlier tokens' notes never change, so they can be cached and reused. Covered in: Part 11: Diffusion vs autoregressive

Bidirectional attention

Attention where every position looks at every other position, before and after. Why it matters: It lets diffusion models use both sides of a gap, but it breaks the KV cache. Covered in: Part 11: Diffusion vs autoregressive

Grouped-query attention

A design where several query heads share one set of keys and values. Llama-3-8B has 32 query heads sharing 8 KV heads. Why it matters: It cuts the KV cache four times in that model, with a small quality cost fixed at training. Covered in: Part 4: KV cache

GQA

Short for grouped-query attention. Why it matters: The name of the paper and of the technique in many model docs. Covered in: Part 4: KV cache

Multi-query attention

The extreme version of grouped-query attention: all query heads share a single key-value head. Why it matters: It shrinks the cache even further. Covered in: Part 4: KV cache

Sliding window attention

Attention that only looks at the most recent tokens, a fixed window, and drops older ones. Mistral 7B uses a window of 4,096 tokens. Why it matters: It caps how big the cache can grow, at the cost of not seeing the dropped past directly. Covered in: Part 4: KV cache

Rolling buffer cache

A fixed-size cache that overwrites the oldest entry when a new one arrives, like a looping tape. Why it matters: It is how sliding window attention keeps memory flat. Covered in: Part 4: KV cache

QK-norm

Normalising the query and key vectors inside attention, which helps training stay stable. Why it matters: People ask whether it fixes temperature 0 drift; Part 10 explains why it does not. Covered in: Part 10: Temperature 0

Normalising

Rescaling numbers into a standard range so they do not get too big or too small. Why it matters: It is what QK-norm does, and it does not change addition order. Covered in: Part 10: Temperature 0

Mixture of experts

A model with many smaller sub-networks, called experts, where only a few are switched on for each token. Why it matters: Which experts are chosen can shift between runs, a suspected cause of temperature 0 drift. Covered in: Part 10: Temperature 0

Expert

One of the sub-networks inside a mixture-of-experts model. Why it matters: A different expert for one token means a different calculation and possibly a different answer. Covered in: Part 10: Temperature 0

Routing

The step in a mixture-of-experts model that picks which experts handle each token, based on scores. Why it matters: Routing scores come from the same floating-point arithmetic, so they can shift slightly too. Covered in: Part 10: Temperature 0

MLP head

A small add-on network (a multi-layer perceptron, the simplest kind of neural network) placed on top of a model to make a specific prediction. Why it matters: The phrase drafter in Part 8 is just such a head, about half a percent of the target's size. Covered in: Part 8: Phrase drafting

Output layer

The last layer of a network, which turns its numbers into a score for every possible output. Why it matters: In the phrase head, each draft vocabulary entry costs one row in this layer. Covered in: Part 8: Phrase drafting

Score

The number a model gives each possible next token; higher means more likely. Why it matters: Temperature and greedy decoding both act on these scores. Covered in: Part 10: Temperature 0, Part 7: Fork-aware draft trees

Argmax

"The position of the biggest value": the single top scoring choice. Why it matters: The phrase drafter only accepts a guess while it matches the target's argmax. Covered in: Part 8: Phrase drafting

Probability distribution

A list of possible outcomes with how likely each one is, all adding up to 100 percent. A model outputs one over its vocabulary at every step. Why it matters: Speculative decoding keeps the same output distribution, which is why it changes speed but not answers. Covered in: Part 6: Speculative decoding, Part 7: Fork-aware draft trees

Memory, numbers and the KV cache

KV cache

The stored key and value vectors for every token the model has already read, kept in GPU memory so they are not recomputed for each new token. Like margin notes you glance at instead of rereading the book. Why it matters: Its size decides how many users and how much context one GPU can serve. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

KV cache formula

KV cache bytes = 2 x layers x KV heads x head dimension x sequence length x bytes per number. The 2 is for keys and values. Why it matters: With a model's config numbers you can work out its memory cost per token yourself. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

Byte

The basic unit of computer memory, 8 bits. One bit is a single 0 or 1. Why it matters: Every memory figure here is bytes per number times how many numbers are stored. Covered in: Part 4: KV cache

KiB, GiB and GB

KiB is 1,024 bytes and GiB is 1,073,741,824 bytes (powers of two). GB is 1,000,000,000 bytes (powers of ten). So 1 GiB is about 1.07 GB. Why it matters: Articles switch between them, so a number can look slightly different for the same amount. Covered in: Part 4: KV cache

Precision

How many bytes are used to store each number. More bytes means finer detail and more memory. Why it matters: Halving the bytes per number halves the cache. Covered in: Part 4: KV cache

Floating point

The way computers store decimal numbers with a fixed number of digits, rounding off the rest. Why it matters: That rounding is the root of why temperature 0 is not perfectly repeatable. Covered in: Part 10: Temperature 0, Part 4: KV cache

bfloat16

A 16-bit floating point format that stores each number in 2 bytes. Most open models ship in it. Why it matters: It is the precision used in all the KV cache sums in the series. Covered in: Part 4: KV cache

Half precision

Any 16-bit, 2-byte number format, such as bfloat16. Why it matters: Part 5 uses it for the same 2 bytes per value. Covered in: Part 5: Paging the KV cache

Float32

A 32-bit, 4-byte floating point format, more exact than 16-bit. Why it matters: Part 10 adds float32 numbers in different orders to show the rounding effect. Covered in: Part 10: Temperature 0

64-bit float

An 8-byte floating point number, the default in Python. Why it matters: Even this precise format shows that addition order changes the answer. Covered in: Part 10: Temperature 0

8-bit precision

Storing each number in a single byte. Why it matters: An 8-bit KV cache takes half the memory of bfloat16, with a small quality loss to measure. Covered in: Part 4: KV cache

Quantisation

Storing numbers in fewer bytes, for example 8 bits instead of 16, at a small cost in accuracy. Why it matters: A quantised cache fits more requests on the same GPU. Covered in: Part 4: KV cache

Prefill

The first phase of answering: the model reads your whole prompt at once and fills the KV cache. It is limited by arithmetic. Why it matters: Long prompts make this phase slow, and prefix caching speeds it up. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

Decode

The second phase: the model writes one token at a time, reading the whole cache each step. It is limited by memory speed. Why it matters: Most of the time you wait for an answer is decode, and speculative decoding targets it. Covered in: Part 4: KV cache, Part 6: Speculative decoding

Memory bound

When the speed limit is moving data from memory, not doing the arithmetic. Why it matters: Decode is memory bound, which leaves spare arithmetic for tricks like speculative decoding. Covered in: Part 4: KV cache, Part 6: Speculative decoding

Compute bound

When the speed limit is the arithmetic itself. Why it matters: Prefill is compute bound, so it behaves differently from decode. Covered in: Part 4: KV cache

Memory bandwidth

How fast data can move between memory and the compute units, in bytes per second. Why it matters: It is the bottleneck of the decode phase. Covered in: Part 4: KV cache

Fragmentation

When free memory is broken into small scattered gaps too small to reuse, like empty seats spread across a cinema. Why it matters: Older serving systems wasted 60 to 80 percent of cache memory this way. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

Contiguous memory

One unbroken stretch of memory. Why it matters: Reserving a contiguous block per request for the maximum length wastes space. Covered in: Part 5: Paging the KV cache

Operating system

The base software that runs a computer and shares its memory and chips between programs, such as Linux, Windows or macOS. Why it matters: PagedAttention copies the way operating systems manage memory. Covered in: Part 5: Paging the KV cache

Process

A running program, as the operating system sees it. Why it matters: An OS gives each process memory in pages, not one big chunk. Covered in: Part 5: Paging the KV cache

Paging

Splitting memory into fixed-size pages that can sit anywhere and are handed out only when needed. Why it matters: It is the operating system idea that removes most KV cache waste. Covered in: Part 5: Paging the KV cache

Page table

The lookup list that records where each page of a program's memory actually sits. Why it matters: PagedAttention keeps a similar table for each request's cache blocks. Covered in: Part 5: Paging the KV cache

Block

A fixed-size chunk. In PagedAttention, a block holds the cache for a few tokens; in block diffusion, a block is a run of tokens generated together. Why it matters: The word means different things in Parts 5, 7 and 11, so watch the context. Covered in: Part 5: Paging the KV cache, Part 11: Diffusion vs autoregressive

PagedAttention

A method that stores the KV cache in small fixed-size blocks allocated on demand, like operating system pages, so nothing is reserved for tokens that do not exist yet. Why it matters: It cut cache waste to under 4 percent and is now standard in serving. Covered in: Part 5: Paging the KV cache, Part 4: KV cache

Copy on write

Two users share the same block until one of them changes it, and only then is a private copy made. Why it matters: It lets requests with the same prefix share cache blocks safely. Covered in: Part 5: Paging the KV cache

Prefix caching

Storing the keys and values for a shared prompt start once and reusing them for every request that begins the same way. vLLM calls it Automatic Prefix Caching. Why it matters: It speeds up prefill for repeated prompts, but not decode. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

Prompt cache

Stored work from earlier prompts that a server reuses. Why it matters: Turning it off removes one more source of variation when you need repeatable output. Covered in: Part 10: Temperature 0

Recompute

Doing the same calculation again because its saved result was thrown away. Why it matters: Evicting a request's cache means recomputing it later, which adds delay. Covered in: Part 4: KV cache

Eviction

Throwing a request's data out of memory to make room for others. Why it matters: When the cache fills, requests get evicted or wait. Covered in: Part 4: KV cache

Serving many users

Serving

Running a model so that users or apps can send it requests and get answers, usually many at once. Why it matters: Serving is where memory, speed and cost decisions all meet. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

Serving framework

The software that runs a model behind an API and handles many requests, such as vLLM or SGLang. Why it matters: Many speed and memory tricks in this series are switches in a serving framework. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

Provider

A company that runs models for you and charges per token, such as OpenAI, Anthropic or Google. Why it matters: Two providers running the same model can differ in speed and cost because of how they manage the cache. Covered in: Part 2: Tokens, Part 4: KV cache

API

An application programming interface: a way for programs to send requests to a service. For models, you send a prompt over the internet and get text back. Why it matters: The API is where you set temperature and other options that chat apps hide. Covered in: Part 9: Temperature, Part 10: Temperature 0

Request

One call to the model: one prompt in, one answer out. Why it matters: Each request carries its own KV cache. Covered in: Part 4: KV cache

Batch

A group of requests the GPU handles together. Why it matters: Each request in the batch has its own cache, so batches multiply memory use. Covered in: Part 4: KV cache, Part 10: Temperature 0

Batch size

How many requests are in a batch. "Batch size 1" means one request at a time. Why it matters: Speedup figures depend on it, and on shared servers it changes with traffic. Covered in: Part 6: Speculative decoding, Part 10: Temperature 0

Batching

Grouping requests to use the GPU more fully. Why it matters: It saves money, but it also changes the order of arithmetic, which can change answers. Covered in: Part 10: Temperature 0, Part 5: Paging the KV cache

Continuous batching

Swapping requests in and out of the batch at every decoding step, instead of waiting for a whole batch to finish. Why it matters: It keeps the GPU busy and is part of today's serving baseline. Covered in: Part 5: Paging the KV cache

Chunked prefill

Splitting a long prompt's prefill into pieces so one huge request cannot block everyone else. Why it matters: It keeps the queue moving for other users. Covered in: Part 5: Paging the KV cache

Concurrency

How many requests run at the same time. Why it matters: It is capped by cache memory, not by compute. Covered in: Part 4: KV cache, Part 6: Speculative decoding

Latency

Delay: how long you wait for a response. Why it matters: Many tricks trade a little latency for more throughput, or the other way round. Covered in: Part 4: KV cache, Part 6: Speculative decoding

Throughput

How much work gets done per second, for example tokens per second across all users. Why it matters: PagedAttention raised throughput 2 to 4 times in its paper. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

Time to first token

The delay before the first word of the answer appears. Why it matters: Speculative decoding can raise it, because the draft must run first. Covered in: Part 6: Speculative decoding

Tokens per second

How many tokens a model produces each second. Why it matters: It is the number to measure when you switch on a speed trick. Covered in: Part 6: Speculative decoding

Speedup

How many times faster something runs compared with a baseline, written like 2x or 4.75x. Why it matters: Every speed claim in the series is a speedup over a stated baseline. Covered in: Part 6: Speculative decoding, Part 8: Phrase drafting

Baseline

The standard setup something is compared against. Why it matters: A speedup means little unless you know what it was measured against. Covered in: Part 5: Paging the KV cache, Part 8: Phrase drafting

Kernel

A small program that runs on the GPU to do one job, such as one kind of sum or attention step. Why it matters: How a kernel splits a sum depends on batch size, which is why answers can drift. Covered in: Part 10: Temperature 0

Tensor parallelism

Splitting one model across several GPUs so each holds part of every layer. Why it matters: Big models like a 70B one need it; the vLLM example splits across 4 GPUs. Covered in: Part 6: Speculative decoding

Instruct model

A version of a model given extra training to follow instructions and chat, often marked "Instruct" in its name. Why it matters: The example commands use Instruct versions because they answer prompts directly. Covered in: Part 5: Paging the KV cache, Part 6: Speculative decoding

vLLM

A popular free, open-source serving engine for language models, built around PagedAttention. Why it matters: Most code examples in the series use it. Covered in: Part 5: Paging the KV cache, Part 6: Speculative decoding

SGLang

Another open-source serving framework for language models. Why it matters: It has a flag for deterministic inference. Covered in: Part 10: Temperature 0

FasterTransformer

An NVIDIA library for running transformer models quickly. Why it matters: It was one of the baselines vLLM was compared against. Covered in: Part 5: Paging the KV cache

Orca

A research serving system for language models. Why it matters: The other baseline in the vLLM comparison. Covered in: Part 5: Paging the KV cache

FastChat

An open-source platform from LMSYS for serving and evaluating chat models. Why it matters: Listed as a source in Part 5. Covered in: Part 5: Paging the KV cache

Ollama

A free tool for running language models on your own computer, with a local API. Why it matters: The temperature experiment in Part 9 ran on it. Covered in: Part 9: Temperature

Local model

A model running on your own machine instead of a provider's servers. Why it matters: A local server with one request at a time is far more repeatable. Covered in: Part 9: Temperature, Part 10: Temperature 0

Faster generation: speculative decoding

Speculative decoding

A small draft model guesses several tokens ahead, the big model checks all of them in one pass, keeps the ones it agrees with and fixes the first wrong one. The answer stays the same; it just arrives faster. Why it matters: It is one of the main ways to speed up decode without changing output. Covered in: Part 6: Speculative decoding, Part 7: Fork-aware draft trees

Speculative sampling

DeepMind's independent version of speculative decoding, published in 2023 with the same guarantee. Why it matters: You will see both names for the same idea. Covered in: Part 6: Speculative decoding

Draft model

The small, fast model that guesses tokens in speculative decoding. Also called a drafter. Why it matters: Picking the right draft model matters more than anything else. Covered in: Part 6: Speculative decoding, Part 7: Fork-aware draft trees

Target model

The large model whose output you actually want. It checks the drafts and always has the final say. Why it matters: Because the target decides, the output does not change. Covered in: Part 6: Speculative decoding, Part 8: Phrase drafting

Verifier

The model that checks draft tokens, normally the target model. Why it matters: Part 7 keeps the verifier fixed so only the tree building changes. Covered in: Part 7: Fork-aware draft trees

Speculation length

How many tokens the draft guesses per round, often written K or gamma. Why it matters: The sweet spot reported is 4 to 5; longer adds rejected tokens. Covered in: Part 6: Speculative decoding

Acceptance rate

The share of draft tokens the target agrees with, often written alpha. Why it matters: It matters more than speculation length for the final speedup. Covered in: Part 6: Speculative decoding

Bonus token

The extra token the target adds when it accepts every draft token in a round. Why it matters: It means a round always produces at least one new token. Covered in: Part 6: Speculative decoding

Draft chain

Draft tokens in a single line, one after another. Why it matters: Trees should beat chains, and Part 7 explains why they often do not by enough. Covered in: Part 7: Fork-aware draft trees

Draft tree

Several branching draft guesses checked at once, covering more possible futures per check. Why it matters: Building the tree from the right scores is what DForkTree fixes. Covered in: Part 7: Fork-aware draft trees, Part 8: Phrase drafting

Tree depth and width

Depth is how many tokens ahead a draft tree reaches; width is how many branches it has. Why it matters: The phrase trick works alongside these, not instead of them. Covered in: Part 8: Phrase drafting

Main path

In a draft tree, the branch that follows the drafter's own top guesses. Why it matters: The drafter is accurate on it and much worse off it. Covered in: Part 7: Fork-aware draft trees

Off-path branch

A tree branch that leaves the drafter's main path. Why it matters: Top-1 accuracy drops from 89 percent to 18 percent on these. Covered in: Part 7: Fork-aware draft trees

Fork token

The token where a branch splits away from the main path. Why it matters: Re-running the drafter from the fork token is usually correct, which led to the fix. Covered in: Part 7: Fork-aware draft trees

Top-1 accuracy

How often the single top guess is right. Why it matters: It shows where a drafter is reliable and where it is not. Covered in: Part 7: Fork-aware draft trees

Candidate list

The short list of most likely tokens the drafter offers at a position. Why it matters: Off the main path, these lists miss the right token far more often. Covered in: Part 7: Fork-aware draft trees

Conditioning

What a prediction is based on, the text it assumes came before. "Conditioned on" means "computed given". Why it matters: DForkTree's insight is that branch scores were conditioned on the wrong prefix. Covered in: Part 7: Fork-aware draft trees, Part 11: Diffusion vs autoregressive

Re-anchoring

Recomputing a branch's scores from that branch's own tokens instead of the main path. Why it matters: It is DForkTree's main fix. Covered in: Part 7: Fork-aware draft trees

Block diffusion drafter

A drafter that drafts a whole block of tokens in one forward pass using diffusion, instead of one token at a time. Why it matters: DFlash is one, and DForkTree builds on it. Covered in: Part 7: Fork-aware draft trees

DFlash

A block diffusion drafter used in speculative decoding. Why it matters: DForkTree is up to 41.5 percent faster than it. Covered in: Part 7: Fork-aware draft trees, Part 8: Phrase drafting

DDTree

A method that builds a draft tree from DFlash's per-position scores. Why it matters: DForkTree is up to 15.1 percent faster than it. Covered in: Part 7: Fork-aware draft trees

DForkTree

A training-free method that rebuilds draft trees from branch-aware scores, with n-gram statistics added after the fork. Why it matters: It reached a 4.75x average speedup over plain decoding in its paper. Covered in: Part 7: Fork-aware draft trees

Training-free

A method that works without any extra training, just by changing how things are run. Why it matters: Training-free fixes are easy to try on an existing setup. Covered in: Part 7: Fork-aware draft trees

N-gram

A short run of N tokens in a row. An n-gram drafter guesses by matching recent text against text that already appeared. Why it matters: It needs no second model, so it is the cheapest speculative method to try. Covered in: Part 6: Speculative decoding, Part 7: Fork-aware draft trees

Pointwise mutual information

A measure of how much more often two things appear together than chance would predict. Why it matters: DForkTree uses it to mix n-gram statistics into the drafter's scores. Covered in: Part 7: Fork-aware draft trees

EAGLE

A small trained head that predicts the target's next tokens from its hidden states. EAGLE-3 is its third version. Why it matters: It usually gives higher acceptance than a separate small model. Covered in: Part 6: Speculative decoding, Part 8: Phrase drafting

Medusa

A method that adds extra heads to the model to predict several future tokens at once. Why it matters: Named in Part 8 as one of the methods that drafts single tokens. Covered in: Part 8: Phrase drafting

DSpark

Another drafting method named in Part 8 that, like the others, drafts single tokens from the target's vocabulary. Why it matters: It is part of the group the phrase drafter is compared to. Covered in: Part 8: Phrase drafting

Multi-token prediction

Building the ability to predict several tokens at once into the model itself. Why it matters: One of the drafting methods vLLM supports. Covered in: Part 6: Speculative decoding

Phrase-level drafting

Drafting a one to three word phrase as one guess, then expanding it into normal tokens for the target to check. Why it matters: It gets most of the speed gain with a far smaller drafter. Covered in: Part 8: Phrase drafting

Greedy longest-match expansion

Turning a phrase back into tokens by always taking the longest token that fits the remaining text. Why it matters: It is how a phrase guess becomes something the target can verify. Covered in: Part 8: Phrase drafting

Prefix-tree mask

An attention mask that lets several candidates sharing a start be checked in one pass, each only seeing its own branch. Why it matters: It lets N phrase candidates be verified together. Covered in: Part 8: Phrase drafting

Tie-breaking

How a program picks between two options with exactly equal scores. Why it matters: Floating-point tie-breaking is the only way the phrase drafter's output can differ from greedy decoding. Covered in: Part 8: Phrase drafting

HuggingFace generate

The standard text generation function in the Hugging Face Transformers library. Why it matters: It is the plain baseline the phrase drafter's speedups are measured against. Covered in: Part 8: Phrase drafting

Randomness and repeatability

Sampling

Choosing the next token based on the model's scores, with some randomness. Why it matters: Sampling is where the dice roll happens, and temperature controls it. Covered in: Part 9: Temperature, Part 10: Temperature 0

Temperature

A setting that controls how random the choice of next token is. At 0 the model always takes the top choice; higher values let less likely tokens through. Why it matters: It is the usual reason the same prompt gives different answers. Covered in: Part 9: Temperature, Part 10: Temperature 0

Greedy decoding

Always picking the single highest scoring token. Temperature 0 means greedy decoding. Why it matters: It removes sampling randomness, but not every source of variation. Covered in: Part 10: Temperature 0, Part 6: Speculative decoding

Deterministic

Giving exactly the same output every time for the same input. Why it matters: Tests that expect byte-identical answers need it, and shared servers rarely guarantee it. Covered in: Part 9: Temperature, Part 10: Temperature 0

Nondeterminism

When the same input can give different outputs. Why it matters: Part 10 traces it to rounding plus changing batches. Covered in: Part 10: Temperature 0

Seed

A starting number for a random generator. The same seed gives the same random choices. Why it matters: It controls sampling randomness but not batching arithmetic. Covered in: Part 10: Temperature 0

System fingerprint

An ID a provider returns that identifies the backend setup that served your request. Why it matters: If it changes, seeded output can change too. Covered in: Part 10: Temperature 0

Near tie

When two tokens have almost the same score. Why it matters: Tiny rounding differences can flip a near tie, and one flip changes everything after it. Covered in: Part 10: Temperature 0

Associative

An operation is associative if grouping does not matter: (a + b) + c equals a + (b + c). Why it matters: Floating-point addition is not associative, which is the root cause of drift. Covered in: Part 10: Temperature 0

Reduction

The step where many numbers are combined into one, for example a big sum. Why it matters: If the reduction order depends on batch size, results can change. Covered in: Part 10: Temperature 0

Batch invariance

The property that a request gets the same result whatever else is in its batch. Why it matters: With batch-invariant kernels, all 1,000 test completions matched. Covered in: Part 10: Temperature 0

Eval

A test you run on a model's output. Why it matters: Evals that check structure and meaning survive small wording changes. Covered in: Part 10: Temperature 0

Semantically right

Having the correct meaning, even if the exact wording differs. Why it matters: It is a better thing to test than byte-identical text. Covered in: Part 10: Temperature 0

JSON

A simple text format for structured data, with named fields in curly brackets. Why it matters: The example commands send and receive JSON, and good evals check it parses. Covered in: Part 9: Temperature, Part 10: Temperature 0

Diffusion and autoregressive models

Autoregressive

Writing text left to right, one token at a time, each based on everything before it. Almost every chat model works this way. Why it matters: It is what makes the KV cache possible. Covered in: Part 11: Diffusion vs autoregressive

Diffusion language model

A model that starts from a row of blanks and fills them in over several rounds, refining the whole passage in parallel. Why it matters: It can revise and fill gaps, but it loses the easy KV cache. Covered in: Part 11: Diffusion vs autoregressive, Part 7: Fork-aware draft trees

Masked diffusion

The best-known form of diffusion for text: training hides random tokens and the model learns to predict them. Why it matters: Generation reuses that skill, starting from all hidden. Covered in: Part 11: Diffusion vs autoregressive

Mask token

A placeholder, shown as [MASK], standing for a token not yet decided. Why it matters: The diffusion trace in Part 11 starts as all masks. Covered in: Part 11: Diffusion vs autoregressive

Remasking

Turning a filled token back into a mask so it can be chosen again. Why it matters: It is how diffusion output recovers from early mistakes. Covered in: Part 11: Diffusion vs autoregressive

Refinement step

One round of a diffusion model updating the whole sequence. Why it matters: Each step reprocesses everything, so fewer steps is not automatically faster. Covered in: Part 11: Diffusion vs autoregressive

Parallel sampling

Choosing several tokens at the same time instead of one after another. Why it matters: It is the speed promise of diffusion, and block diffusion keeps it. Covered in: Part 11: Diffusion vs autoregressive

Block diffusion

A middle way: generate block by block left to right, and use diffusion inside each block. Finished blocks are cached. Why it matters: It brings back the KV cache and allows any length. Covered in: Part 11: Diffusion vs autoregressive, Part 7: Fork-aware draft trees

Infilling

Filling a gap in the middle of a text, using what comes before and after. Why it matters: It is diffusion's clearest win today. Covered in: Part 11: Diffusion vs autoregressive

In-context learning

Learning a task from examples given in the prompt, without retraining. Why it matters: LLaDA's authors report it as competitive with Llama 3 8B on this. Covered in: Part 11: Diffusion vs autoregressive

Bigram model

A very simple model that predicts a word from the previous word only. Why it matters: The toy diffusion demo uses one, so it shows the process, not real quality. Covered in: Part 11: Diffusion vs autoregressive

Positional prior

A guess based on where a word usually sits in a sentence. Why it matters: The toy demo combines it with a bigram model. Covered in: Part 11: Diffusion vs autoregressive

Simulation

A small program that imitates a process to show how it works, not a real model. Why it matters: Part 11's traces are a simulation, so they make no quality claims. Covered in: Part 11: Diffusion vs autoregressive

Models named in the series

GPT

OpenAI's family of language models, here including GPT-6 Luna and GPT-6 Astra. Why it matters: Used for the token counts and price comparisons. Covered in: Part 2: Tokens

Claude

Anthropic's family of language models, here Claude Sonnet 5.5. Why it matters: One of the price comparison points. Covered in: Part 2: Tokens

Qwen

Alibaba's family of open models, including Qwen 2.5, Qwen3 and Qwen3.5. Sizes and versions appear in the name, such as Qwen3-4B or qwen3:0.6b. Why it matters: Used in many of the series' tests and papers. Covered in: Part 2: Tokens, Part 8: Phrase drafting

Qwen3-235B-A22B

A large Qwen3 mixture-of-experts model: 235 billion parameters in total, about 22 billion active per token. Why it matters: It is the model in the 1,000-run Feynman experiment. Covered in: Part 10: Temperature 0

DeepSeek V3

An open model from DeepSeek with its own tokeniser. Why it matters: It counted one token fewer than GPT for the same sentence. Covered in: Part 2: Tokens

Llama-3-8B

An open 8-billion-parameter model released by Meta in 2024. Why it matters: All the KV cache arithmetic uses its public config. Covered in: Part 4: KV cache, Part 5: Paging the KV cache

Mistral 7B

An open 7-billion-parameter model from Mistral AI. Why it matters: The example of sliding window attention. Covered in: Part 4: KV cache

T5-XXL

An 11-billion-parameter model from Google. Why it matters: The original speculative decoding speedups were measured on it. Covered in: Part 6: Speculative decoding

Chinchilla

A 70-billion-parameter model from DeepMind. Why it matters: DeepMind reported 2x to 2.5x speculative sampling speedups on it. Covered in: Part 6: Speculative decoding

LLaDA

An 8-billion-parameter diffusion language model trained from scratch, published in February 2025. Why it matters: The main example of diffusion at scale. Covered in: Part 11: Diffusion vs autoregressive

Dream 7B

A diffusion language model built from Qwen2.5 7B weights, published in August 2025. Why it matters: Shows an autoregressive model can be converted to diffusion. Covered in: Part 11: Diffusion vs autoregressive

Mercury

A commercial diffusion language model for code from Inception Labs. Why it matters: Evidence that diffusion is being sold, not only researched. Covered in: Part 11: Diffusion vs autoregressive

Tools, code and commands

Terminal

A text window where you type commands to the computer instead of clicking. Also called the command line. Why it matters: Every "Try this" block runs in a terminal. Covered in: Part 2: Tokens, Part 5: Paging the KV cache

Bash

The most common terminal language on Linux and Mac. Code blocks marked bash are typed into a terminal. Why it matters: It tells you where to paste a code block. Covered in: Part 2: Tokens, Part 5: Paging the KV cache

Python

A popular, beginner-friendly programming language, and the main language of AI work. Why it matters: Most code in the series is Python you can paste and run. Covered in: Part 2: Tokens, Part 4: KV cache

python3 -c

Runs a short piece of Python typed straight into the terminal, without a file. Why it matters: The one-line "Try this" checks use it. Covered in: Part 2: Tokens, Part 3: Context window

Library

Ready-made code you install and reuse instead of writing it yourself. Why it matters: tiktoken, vLLM and transformers are all libraries. Covered in: Part 2: Tokens, Part 8: Phrase drafting

pip install

The command that downloads and installs a Python library. Why it matters: It is the first step of most "Try this" blocks. Covered in: Part 2: Tokens, Part 5: Paging the KV cache

Transformers library

Hugging Face's Python library for loading and running models. Why it matters: Installed in the "Try this" blocks of Parts 7 and 8. Covered in: Part 8: Phrase drafting, Part 7: Fork-aware draft trees

Hugging Face

A website that hosts models, their config files and code libraries. Why it matters: It is where you read a model's layers and heads for the cache formula. Covered in: Part 4: KV cache

Config file

A file listing a model's settings, such as number of layers, heads and hidden size. Why it matters: It gives every number the KV cache formula needs. Covered in: Part 4: KV cache

GitHub

A website that hosts code projects. Why it matters: The papers' code and vLLM are on it. Covered in: Part 5: Paging the KV cache, Part 7: Fork-aware draft trees

git clone

The command that downloads a full copy of a code project from a site like GitHub. Why it matters: Used to fetch vLLM and the DForkTree code. Covered in: Part 5: Paging the KV cache, Part 7: Fork-aware draft trees

curl

A terminal tool that fetches a web address or sends a request to a server. Why it matters: Used to download papers and to talk to Ollama's API. Covered in: Part 9: Temperature, Part 7: Fork-aware draft trees

Localhost

Your own computer, as seen by itself over the network. The address 127.0.0.1 always means localhost. Why it matters: The Ollama commands send requests to a server on localhost. Covered in: Part 9: Temperature

Port

A numbered door on a computer that a program listens on. Ollama listens on port 11434 by default. Why it matters: It is the 11434 in the example commands. Covered in: Part 9: Temperature

ollama pull

The command that downloads a model for Ollama to run. Why it matters: The first step of the temperature experiment. Covered in: Part 9: Temperature

vllm serve

The command that starts vLLM as a server for a model. Why it matters: Used in the speculative decoding example. Covered in: Part 6: Speculative decoding

Flag

An option added to a command, usually starting with two dashes, such as --tensor-parallel-size 4. Why it matters: Many speed and determinism switches are flags. Covered in: Part 6: Speculative decoding, Part 10: Temperature 0

Environment variable

A named setting stored in the terminal session that programs read when they start. Why it matters: vLLM's batch invariant mode is turned on with one. Covered in: Part 10: Temperature 0

VLLM_BATCH_INVARIANT

A beta vLLM environment variable that, set to 1, makes results independent of batch size at a speed cost. Why it matters: One of the fixes for temperature 0 drift. Covered in: Part 10: Temperature 0

enable-deterministic-inference

An SGLang flag, written --enable-deterministic-inference, for deterministic output. Why it matters: SGLang's version of the same fix. Covered in: Part 10: Temperature 0

speculative-config

A vLLM option that sets the draft model and number of speculative tokens. Why it matters: It switches speculative decoding on. Covered in: Part 6: Speculative decoding

num_speculative_tokens

The speculation length setting inside vLLM's speculative config. Why it matters: Start at 5, then try 4 and 3. Covered in: Part 6: Speculative decoding

enable_prefix_caching

A vLLM setting that turns on prefix caching. Why it matters: Used in the Part 5 example. Covered in: Part 5: Paging the KV cache

max_tokens

A setting that caps how many tokens the model may write in one answer. Ollama calls it num_predict. Why it matters: It stops runaway answers and limits cost. Covered in: Part 5: Paging the KV cache, Part 9: Temperature

SamplingParams

vLLM's Python object holding generation settings such as temperature and max_tokens. Why it matters: It is how the Part 5 example sets temperature 0. Covered in: Part 5: Paging the KV cache

Research words

Paper

A written report of research, often first posted on arXiv and later at a conference. Why it matters: Most numbers in the series come from papers, and the article says which. Covered in: Part 5: Paging the KV cache, Part 6: Speculative decoding

arXiv

A free website where researchers post papers, often before formal peer review. Why it matters: Most papers in the series are linked there. Covered in: Part 7: Fork-aware draft trees, Part 8: Phrase drafting

Benchmark

A standard test set used to compare models or methods. Why it matters: Speedups differ by benchmark, so the benchmark matters. Covered in: Part 7: Fork-aware draft trees, Part 8: Phrase drafting

GSM8K

A benchmark of grade-school maths word problems. Why it matters: The phrase drafter ran 2.391 times faster on it. Covered in: Part 8: Phrase drafting

MATH-500

A benchmark of 500 harder maths problems. Why it matters: The phrase drafter's best speedup, 2.444 times. Covered in: Part 8: Phrase drafting

MT-Bench

A benchmark of multi-turn chat questions. Why it matters: Open chat gained least, 1.544 times. Covered in: Part 8: Phrase drafting

ICML

The International Conference on Machine Learning, a major AI research conference. Why it matters: The original speculative decoding paper was an ICML 2023 oral, a paper chosen for a talk. Covered in: Part 6: Speculative decoding

ICLR

The International Conference on Learning Representations, a major AI research conference. Why it matters: Block diffusion was published there in 2025. Covered in: Part 11: Diffusion vs autoregressive

EMNLP

Empirical Methods in Natural Language Processing, a major language research conference. Why it matters: Where the GQA paper was published. Covered in: Part 4: KV cache

SOSP

The Symposium on Operating Systems Principles, a top computer systems conference. Why it matters: Where the PagedAttention paper appeared, fitting its operating system idea. Covered in: Part 4: KV cache

Sources