Glossary
The words on the model pages, each explained at four depths: a sentence, a paragraph, the math with tensor shapes and parameter counts, and a table of how the 96 models here use it. The formulas link to Notation Decoder, which reads them symbol by symbol.
The shape of a model
What a decoder-only transformer is made of, and what its parameter count counts.
- Transformer block
- The unit a language model repeats L times: an attention layer, then a feed-forward layer, each wrapped in a norm and a residual connection.
- Parameters
- The learned numbers in a model: every entry of every weight matrix, bias and norm vector. "8B" means about eight billion of them.
Attention
How tokens look at each other, and the variants that shrink the KV cache.
- Self-attention
- The layer where each token builds a weighted average of earlier tokens: a query is scored against every key, and the softmax of the scores weights the values.
- Multi-head attention (MHA)
- Attention run as H independent heads of size h in parallel, each with its own query, key and value, their outputs concatenated and projected back to width d.
- Grouped-query attention (GQA)
- Attention where groups of query heads share one key/value head, shrinking the KV cache by the group size with little loss in quality.
- Multi-query attention (MQA)
- The extreme of grouped-query attention: every query head shares a single key/value head, for the smallest possible KV cache.
- Multi-head latent attention (MLA)
- DeepSeek's attention: keys and values are compressed into one small latent vector per token, which is all that is cached, and expanded per head when needed.
- QK-norm
- An extra RMSNorm applied to queries and keys before their dot product, which keeps attention scores from blowing up during training.
- Attention sinks
- A place for attention to go when a head has nothing to look at: the first token in most models, a learned per-head logit in gpt-oss.
- Linear attention (Gated DeltaNet)
- Attention replaced by a fixed-size memory that each token updates and reads: cost and memory stay constant however long the context. Hybrid models keep full attention on a few layers.
- Mamba (state-space layers)
- A recurrent layer that carries a fixed-size state from token to token instead of attending to the past; hybrids such as Nemotron-H mix many Mamba layers with a few attention layers.
- Sparse attention (DSA indexer)
- Attention where a small, cheap scorer (the indexer) picks the top k earlier tokens for each query, and full attention runs only over those.
Position and context
How a model knows where a token is, and how far back it looks.
- RoPE (rotary position embedding)
- Position encoded by rotating pairs of query and key dimensions by an angle proportional to the token's position, so their dot product depends on relative distance.
- Sliding-window attention
- Attention limited to the last W tokens on some or all layers, which caps those layers' KV cache and attention cost at W however long the context gets.
Feed-forward and experts
The per-token MLP, its gated variants, and mixtures of experts.
- Feed-forward network (FFN)
- The per-token MLP in every block: widen the vector from d to f, apply a nonlinearity, project back to d. It holds most of a dense model's parameters.
- SwiGLU
- The gated feed-forward layer most LLMs use: one projection, passed through SiLU, multiplies another elementwise before the down projection.
- Mixture of experts (MoE)
- An FFN split into many expert FFNs, of which a router picks a few per token: the model stores all of them but runs only the chosen ones, so total and active parameters differ.
Normalization
The small layers that keep activations in range.
- RMSNorm
- Divide a vector by its root mean square and multiply by a learned gain: LayerNorm without the mean subtraction or the bias, and what nearly every LLM uses.
Tokens in, tokens out
The vocabulary, the embedding table, the output head and what else ships in a checkpoint.
- Vocabulary and tokenizer
- The fixed list of tokens a model reads and writes (V of them), set by its tokenizer. V sets the size of the embedding table and the output head.
- Embedding and output head
- The table that turns each token id into a vector of d numbers at the start, and the matrix that turns the last vector back into a score for every token at the end.
- Tied embeddings
- Using the same [V, d] matrix as both the input embedding and the output head, which saves V × d parameters.
- Multi-token prediction (MTP)
- Extra modules trained to predict tokens further ahead than the next one; they help training and can drive speculative decoding, and they add weight to the checkpoint.
Memory, precision and compute
Bytes per weight, the KV cache and FLOPs: what decides whether a model fits and how fast it runs.
- KV cache
- The keys and values of every earlier token, stored so each new token does not recompute them. It grows with context length and batch size, and often rivals the weights.
- BF16 (bfloat16)
- A 16-bit floating-point format with FP32's range and less precision: the format most models are trained and released in, at 2 bytes per parameter.
- Quantization
- Storing weights (and sometimes the KV cache) in fewer bits, 8 or 4 instead of 16, with a scale per block of weights, to cut memory and speed up memory-bound decoding.
- MXFP4 and NVFP4
- 4-bit floating-point formats where each small block of weights shares one scale: 32 weights and an 8-bit power-of-two scale for MXFP4, 16 and an FP8 scale for NVFP4.
- FLOPs per token
- The arithmetic to process one token: about 2 FLOPs per (active) parameter for the matmuls, plus attention scores that grow with the context. Training is about 3 times that.