Glintwell
Glossary

Glossary

Every term on this site, in one or two plain sentences.

Token
A chunk of text, often part of a word, that a model reads and writes as a number.
Tokenizer
The fixed rule set that splits text into tokens and turns them into numbers.
Byte-pair encoding
The usual way to build a tokenizer: repeatedly merge the most common pair of pieces into a new token.
Parameter
One number inside a model that is learned in training. Large models have billions.
Transformer
The model design behind nearly all language models: stacked blocks of attention and feed-forward layers.
Attention
The step where each token looks at earlier tokens and decides which ones matter for predicting the next.
Feed-forward layer
A small neural network applied to each token on its own, inside every block.
Residual connection
Adding a layer's input back to its output, so information and gradients flow easily through deep models.
RMS normalization
Rescaling each token's numbers to a steady size before a layer, which keeps training stable.
Rotary position embedding
Encoding a token's position by rotating parts of its query and key vectors by a position-dependent angle.
Grouped-query attention
Several attention heads share one set of keys and values to save memory.
Latent attention
Keys and values are compressed into one small vector per token and expanded when needed, saving much more memory.
Mixture of experts
A design where each token uses only a few of many expert sub-networks, chosen by a router.
Router
The small part of an expert model that picks which experts handle each token.
Active parameters
In an expert model, the parameters actually used for one token, much fewer than the total.
Loss
A number measuring how wrong the model's predictions are. Training tries to make it smaller.
Gradient
The direction and amount to change each parameter to reduce the loss.
Optimizer
The rule that turns gradients into parameter updates, such as AdamW or Muon.
Learning rate
How big each update step is. Usually warmed up, then lowered over training.
Warmup-stable-decay
A learning-rate schedule that stays flat most of the time and drops quickly at the end.
Batch
The group of examples processed together in one training step.
Epoch
One full pass over the training data. Large models often see most data only once.
Scaling law
A predictable relationship between model size, data, compute and loss.
Compute-optimal
The balance of model size and training data that gives the best result for a fixed budget: about 20 tokens per parameter.
Mixed precision
Doing most math in 16-bit or 8-bit numbers while keeping key values in 32-bit.
FP8
An 8-bit number format used to train and run models faster with less memory.
Data parallelism
Copies of the model on many chips, each training on different data.
Tensor parallelism
Splitting each big matrix across several chips.
Pipeline parallelism
Putting different layers on different machines and streaming data through them.
Checkpoint
A saved copy of a model and its training state, to resume from or release.
Loss spike
A sudden jump in loss during training that can derail a run.
Deduplication
Removing repeated or nearly repeated documents from training data.
MinHash
A fast way to find documents that share most of their word groups.
Quality classifier
A small model that scores how useful a document is, used to filter training data.
Contamination
When test questions leak into training data, inflating scores.
Synthetic data
Training data written by models rather than people.
Context length
How many tokens a model can read at once.
KV cache
Stored keys and values for earlier tokens, so they aren't recomputed for each new token.
Prefill
The phase where the model reads the whole prompt at once.
Decode
The phase where the model writes one token at a time.
Mid-training
A stage near the end of pretraining that focuses on the best data and longer texts.
Supervised fine-tuning
Training on example prompts and good answers.
Chat template
The fixed format, with special tokens, that marks who is speaking in a conversation.
Rejection sampling
Generating many answers and keeping only the ones that pass a check.
Reward model
A model trained to score answers the way people would.
Learning from human feedback
Training a model with people's judgments of which answers are better.
Direct preference optimization
Training directly on pairs of better and worse answers, without a separate reward model.
Reinforcement learning
Learning by trying, getting a score, and doing more of what scored well.
Verifiable reward
A score that can be checked automatically, like a correct math answer or passing tests.
Group relative policy optimization
Reinforcement learning that scores each answer against the average of a group of answers to the same prompt.
Chain of thought
Step-by-step reasoning written out before the final answer.
Reasoning model
A model trained to think at length before answering.
Reward hacking
When a model finds ways to score well without actually doing the task well.
Distillation
Training a smaller model to imitate a larger one.
Teacher and student
In distillation, the large model that teaches and the small model that learns.
Logits
A model's raw scores for every possible next token, before they become probabilities.
Temperature
A setting that sharpens or softens a model's probabilities, used in sampling and distillation.
KL divergence
A measure of how different two probability distributions are, used to keep one model close to another.
On-policy distillation
The student writes answers and the teacher scores every token of them.
Pruning
Removing parts of a model that matter least, to make it smaller.
Quantization
Storing a model's numbers with fewer bits, such as 8 or 4, to save memory and run faster.
Low-rank adapter
Small extra matrices trained alongside a frozen model, for cheap fine-tuning.
Speculative decoding
A fast draft model guesses ahead and the main model checks the guesses in one pass.
Continuous batching
Adding new requests to a running batch as others finish.
Paged attention
Storing the KV cache in small pages to waste almost no memory.
Linear attention
Attention that costs the same per token no matter how long the text is.
Sparse attention
Attention that looks only at a chosen subset of earlier tokens.
Multi-token prediction
Training a model to predict several future tokens at once.
pass@k
The share of problems where at least one of k answers is right.
Benchmark
A fixed set of test questions used to compare models.
Open weights
A model whose trained parameters anyone can download and run.
Fully open
A model released with its weights, training data, code and settings.