LLM glossary

Plain definitions of the terms you meet when you work with open models, from token and prompt to quantization and evaluation.

Jump to a term
  • Ablation

    Taking out, swapping or switching off one part of a system, then measuring what changes. This shows what that part does. In a model, the part can be a layer, an expert, a tensor or a training step. Everything else stays identical, so any change comes from that part.

  • AI agent

    A model that works toward a goal in several steps. It decides what to do, uses tools, reads the results and continues until the job is done. A coding agent is an AI agent for code. See harness.

  • Amendment

    A recorded change to a pre-registered protocol, with its date and its reason. The old text stays, so a reader can see what changed and why.

  • Attention

    The step in a transformer where each token looks at the other tokens in the text and decides how much each one matters. This is how a model links a pronoun to the right noun, or an answer to the question. The work grows faster than the text, which is why long texts are costly. See KV cache.

  • AWQ

    Activation-aware weight quantization

    A way to quantize a trained model. Using sample text, it finds the small share of weights that matter most: the ones that large activations pass through. It scales those weights up before rounding, so they lose less. It compresses weights only.

  • Base model

    A model after pre-training only. It continues text well and does not follow instructions reliably. Post-training turns it into an instruct model.

  • Benchmark

    A fixed set of tasks with a scoring rule, used to compare models on the same test. A score does not tell you how a model does on your own task, and a model that has seen the test questions can score too high. See GSM8K and MMLU.

  • BFCL

    Berkeley Function-Calling Leaderboard

    A test for tool calling. It checks that the model picks the right function, fills in the right values, and can make several calls at once, including calls in parallel.

  • Calibration

    Calibration set

    A small sample of typical text that you run through a model before quantizing it. It shows which weights matter most and helps set the scales. A different sample can change the result. Methods that need no sample are called data-free.

  • Chain of thought

    Having a model write its reasoning step by step before the final answer. It helps on problems that need several steps. A reasoning model does this by training. With other models, you can ask for it in the prompt.

  • Closed model

    A model whose weights are not published. You reach it through the vendor's API or product, under the vendor's terms, and the vendor can change, reprice or retire it. Some vendors also license a closed model for hosting on your own infrastructure, by contract.

  • Coding agent

    A model in a harness that works on a codebase. It reads files, edits them, runs commands and tests, reads the results and repeats until the task is done or it stops. It can run on a closed model through an API, or on an open model on your own hardware.

  • Context window

    The most text a model can handle at once: your prompt, the conversation so far and the answer, counted in tokens. Text past the limit is cut or ignored. A bigger window takes more memory, because of the KV cache.

  • DARE

    Drop and rescale

    A step before merging. It drops a large share of each model's changes at random, and scales up the rest so the total effect stays the same. With fewer changes, the merged models get in each other's way less.

  • Distillation

    Training a smaller student model on the outputs of a larger teacher model, so that the student takes over part of the teacher's behavior at lower cost.

  • DPO

    Direct preference optimization

    Trains on pairs of a preferred answer and a rejected one. The model learns to make the preferred answer more likely than the rejected one, measured against a frozen copy of itself. It needs no reward model and no reinforcement learning loop.

  • Embedding

    A list of numbers that stands for the meaning of a token, a sentence or an image. Texts with similar meaning get similar numbers. Search and RAG systems use embeddings to find related text.

  • Expert merging

    Joining several experts into one by averaging their weights, instead of deleting them. The new expert keeps some of what the old ones knew. Averaging works better if you first line up the units inside the experts, because two experts can store the same skill in different places.

  • Expert pruning

    Deleting experts from a mixture-of-experts model for good. The file gets smaller and needs less memory. The router then picks only from the experts that are left. Methods differ in how they choose what to delete: by how often the router uses an expert, or by how much its output matters.

  • Fine-tuning

    Continuing to train an existing model on a smaller dataset, to teach it a task, a domain or a style. It can update every weight or only a small added part, as LoRA does.

  • Foundation model

    A large model trained on broad data, built to be adapted to many tasks. Teams adapt it by fine-tuning or by writing good prompts. Most LLMs are foundation models.

  • FP8

    8-bit floating point

    Weights stored in 8 bits instead of 16. That halves their memory. The usual layout for weights is called E4M3: 4 bits for the exponent and 3 for the fraction. The quality loss is usually small, and often no calibration is needed. Recent GPUs run it in hardware. See quantization.

  • GPTQ

    A way to quantize a trained model, layer by layer, using sample text. It rounds the weights one column at a time. After each column, it adjusts the columns not yet rounded to cancel the rounding error. It is common for 4-bit models where only the weights are compressed.

  • GPU and VRAM

    Graphics processing unit

    A GPU is a chip built to do many small calculations at once, which is what models need. VRAM is the memory on the GPU. The weights and the KV cache must fit there, or the model runs slowly or not at all. On a Mac, the processor and the GPU share one memory.

  • GRPO

    Group relative policy optimization

    A reinforcement learning algorithm that samples a group of answers to each prompt and scores each one against the average of its group. It removes the separate value model that earlier algorithms needed, which cuts memory. DeepSeek used it for math reasoning.

  • GSM8K

    Grade School Math 8K

    A test of about 8,500 math word problems at grade-school level, from OpenAI. The model writes its reasoning and gives a final number. The score is the share of final numbers that are right.

  • Hallucination

    An answer that sounds right and is false, or has no basis in the source. The model produces likely text, not checked facts. Giving it the source documents, checking its answers against them, and using tools can reduce it. See RAG.

  • Harness

    The software around a model that turns it into an agent. It builds the prompt, offers the tools, runs the tool calls, feeds the results back, manages the context and decides when to stop. A benchmark score belongs to a model and its harness together, not to the model alone.

  • Held-out items

    Test questions kept apart from everything used to build or choose a method. If a method has already seen the test questions, a good score only shows memory. We use selection items to choose a method, and held-out items to confirm it.

  • HumanEval

    A test of 164 Python programming problems written by hand at OpenAI. Each problem has unit tests. A solution counts only if it passes every test.

  • Inference

    Running a trained model to get answers. Training changes the weights. Inference only reads them. It happens each time you send a prompt.

  • Instruct model

    Chat model

    A base model that post-training has taught to follow instructions and answer like an assistant. It is the version most people use in a chat. Many releases ship both the base model and the instruct model.

  • Kernel

    GPU kernel

    A small program that runs on a GPU to do one job, such as multiplying two matrices or computing attention. A model runs as a long series of kernels. A new number format, such as NVFP4, works only when a kernel exists that can read it. Faster kernels make the same model run faster.

  • KL divergence

    Kullback-Leibler divergence

    A number that says how different two sets of probabilities are. To score a compressed model, we give the original model and the compressed one the same text, compare the probabilities each gives for the next token, and average the difference. Zero means identical. It can show small damage that an accuracy score misses.

  • KV cache

    Key-value cache

    Memory where the model keeps notes about every earlier token, so it does not redo that work for each new token. The cache grows as the conversation gets longer, and it takes memory on top of the model file. This is why long conversations need more memory.

  • Latency and throughput

    Latency is how long you wait: the time to the first token, and the time to the full answer. Throughput is how much work the system does in total, such as tokens per second across all users. Serving more users at once usually raises throughput and slows each answer.

  • LLM

    Large language model

    A language model trained on trillions of tokens, large enough to handle general work such as writing, coding and reasoning without training for each task. No standard sets the cutoff. We call a model large above 30 billion parameters, where the weights start to outgrow one consumer GPU.

  • LoRA

    Low-rank adaptation

    Fine-tuning that freezes the original weights and trains small added matrices next to them. The trained part is a few megabytes to a few hundred, and it can be merged into the base model afterward.

  • MCP

    Model Context Protocol

    An open protocol, introduced by Anthropic in November 2024, for connecting AI applications to tools and data. A provider writes one MCP server for its tool or data source, and any application that supports MCP can use it, whatever model sits behind it.

  • Merging

    Joining the weights of two or more models, all fine-tuned from the same base, into one model, with no more training. Plain averaging works for close relatives. Methods such as TIES settle conflicts between the changes each model made, and DARE thins those changes first.

  • Mid-training

    A shorter stage between pre-training and post-training. Training continues with the same next-token objective, on a smaller and cleaner mix chosen for a purpose, such as math, code, long documents or reasoning traces. Labs use it to prepare a base model for what post-training will teach.

  • Mixture of experts

    MoE

    A model whose layers hold many expert sub-networks, with a router that sends each token to a few of them. Total parameters set the memory the model needs. Active parameters set the compute per token.

  • MMLU

    Massive Multitask Language Understanding

    A test of multiple-choice questions on 57 subjects, from law to chemistry. It measures how much the model knows. The model picks a letter. The score is the share of right letters.

  • Model jury

    LLM-as-judge

    A group of AI models that act as judges. Each one reads an answer without knowing which model wrote it, and says yes or no to a few written questions, such as "is every claim backed by the source?" It does the reading a person would do, on thousands of answers. No judge should be a model that is being tested. The short-list report shows our jury design.

  • Multimodal model

    A model that takes more than one kind of input, such as text and images, and sometimes audio or video. A VLM is a multimodal model that reads images and text.

  • MXFP4

    Microscaling 4-bit floating point

    A 4-bit number format from an open industry standard. Weights are grouped in blocks of 32. Each block shares one scale, which is a power of two stored in 8 bits. The cost is 4.25 bits per weight. See quantization.

  • NVFP4

    NVIDIA 4-bit floating point

    NVIDIA's 4-bit number format. Weights are grouped in blocks of 16. Each block has a scale stored in 8 bits, and each tensor has one more scale stored in 32 bits. The cost is about 4.5 bits per weight. Smaller blocks let each scale fit its values better than in MXFP4, for a little more storage. Blackwell GPUs run it in hardware. See quantization.

  • On-device inference

    Running a model on the hardware where the data is produced, such as a laptop, a phone or an embedded board, with no round trip to a data center.

  • Open model

    In everyday use, a model with published weights, which is the open-weight case. Some writers use it for open source. We write open model for open weight, and open source only when the Open Source AI Definition is met.

  • Open source

    For software, code under a license that allows use, study, modification and redistribution. For a model, the Open Source Initiative's definition asks for the weights, the training code and detailed information about the training data. Most open-weight releases do not meet it.

  • Open weight

    A model whose trained weights anyone can download, inspect, run and modify, under a license the publisher states. The term says nothing about the training code or the training data. Licenses differ: some allow any use, some limit commercial use. Read the license on the model card.

  • ORPO

    Odds ratio preference optimization

    Preference training in one stage. It adds a penalty on rejected answers to the SFT loss, so one run replaces SFT followed by DPO, and it needs no frozen reference copy.

  • Parameter

    One of the numbers a model learns during training. A model with 7 billion parameters holds 7 billion numbers. More parameters take more memory, and usually give a more capable model. The parameters, once trained and saved, are the weights.

  • Perplexity

    How surprised a model is by text it has not seen. Lower is better. It measures fluency, not skill at a task: a model can lose on perplexity and win on tool calling.

  • Physical AI

    AI that senses and acts in the physical world, in machines, vehicles, robots and sensors. Answers must arrive on time, on the hardware at hand, and an error costs more than a bad reply.

  • Post-training

    Everything after pre-training that turns a base model into an assistant: supervised fine-tuning, preference optimization and reinforcement learning, often with merging and synthetic data around them.

  • Pre-registered protocol

    A written plan, fixed before the first run. It states the question, the models and settings to compare, the measures, when to stop, and which result would change the decision. It stops anyone from choosing the test after seeing the results.

  • Pre-training

    The first and largest stage. The model reads trillions of tokens of text and code and learns to predict the next token. The result is a base model: it continues text well, and it does not follow instructions reliably.

  • Prompt

    The input you give a model: your question, instructions, examples and any documents. The answer depends heavily on it, and rewording a prompt can change the result.

  • QLoRA

    Quantized low-rank adaptation

    LoRA on top of a base model stored in 4 bits. The frozen weights take a quarter of the memory, and only the small added matrices train in higher precision. It lets one GPU fine-tune a model that would not fit otherwise.

  • Quantization

    Storing weights with fewer bits, for example 4 or 2 instead of 16. The file shrinks and the model runs faster on the same hardware, at a cost in quality that depends on the method and on which tensors are reduced.

  • RAG

    Retrieval-augmented generation

    The system first searches your documents for passages related to the question, using embeddings. It puts them in the prompt, and the model answers from them. It lets a model use current or private information without training on it.

  • REAP

    Router-weighted expert activation pruning

    A way to prune experts, from Cerebras (arXiv 2510.13999). It gives each expert a score: how strongly the router picks it, times how large its output is, averaged over the tokens sent to it. It deletes the experts with the lowest scores. It needs sample text but no training.

  • Reasoning model

    A model trained to work through a problem in steps before it gives the final answer. It writes a long line of reasoning first, so it answers more slowly and uses more tokens. It often does better on math, code and logic.

  • Right-sizing

    Choosing a model's size, precision and runtime so that it meets a memory, speed and cost budget on the target hardware, with a measured loss of quality.

  • RL

    Reinforcement learning

    The model writes answers, a reward scores them, and the weights move toward the answers that score higher. Unlike SFT, the model learns from its own outputs, so it can find solutions that no training example contained.

  • RLHF

    Reinforcement learning from human feedback

    Reinforcement learning where the reward comes from a separate model trained on human comparisons of two answers. It teaches style, tone and helpfulness, which no program can check.

  • RLVR

    Reinforcement learning with verifiable rewards

    Reinforcement learning where a program checks the answer: the unit tests pass, the math result matches, the output follows the format. The reward needs no human and no learned judge, so it scales, and it only works for tasks that a program can verify.

  • ROUGE-L

    Recall-Oriented Understudy for Gisting Evaluation

    A score for a summary. It counts how many words the summary shares, in the same order, with a reference summary written by a person. It rewards matching words, not true statements. A summary can score high and say things the article never said. That is why the short-list report also has a jury read the summaries.

  • Router

    The part of a mixture-of-experts layer that decides which experts handle each token. It gives every expert a score and picks the top few. It was trained together with the experts, so if you remove or change experts, it can send tokens to the wrong place.

  • Seed

    A number that starts a random process. A different seed gives a different result, so one run with one seed proves little. In our router-training report, one recipe scored from 66.7 to 95.0% across six seeds.

  • SFT

    Supervised fine-tuning

    Fine-tuning on prompt and answer pairs written by people or by another model. The model learns to imitate the answers. It is usually the first step of post-training.

  • Short list of experts

    A small group of experts in each layer, chosen from the prompt. The model uses only that group for the whole answer, and the other experts stay out of memory. It needs no training. It is one way to run a big mixture-of-experts model on a small device. The short-list report tests it on three models.

  • SLM

    Small language model

    A language model with up to 30 billion parameters in total. No standard sets the cutoff, so we use a fit test: at 4 bits, 30 billion parameters take about 15 GB, which one 24 GB consumer GPU or a laptop can hold. For a mixture-of-experts model, count all experts, because memory holds them all. Small describes fit, not quality.

  • Speculative decoding

    A way to make a model answer faster. A small model guesses the next few tokens. The large model checks all the guesses at once and keeps the right ones. The answer is the same as without the trick, and it comes faster when the guesses are good. Our report on Apple's on-device model finds signs that it uses this.

  • Sub-2-bit quantization

    Quantization that uses fewer than 2 bits per weight on average. The average counts the whole file, including the scales: file size in bits divided by the number of parameters. Some tensors can use more bits than others, so which tensors you shrink, and by how much, decides the quality.

  • Synthetic data

    Training data written by a model instead of collected from people or the web. Its quality depends on the model that wrote it and on the checks applied before training, such as filtering, deduplication and verification. Check the generator's terms of use before training on its output.

  • System prompt

    Instructions given to a model before the user's message, usually by the developer. It sets the role, the rules and the style. The user does not normally see it.

  • Temperature

    A setting that controls how random the model's choice of the next token is. A low temperature picks the most likely token almost every time, so answers are steady. A high temperature gives more varied, less predictable answers. At zero, the model always picks the top token.

  • TIES

    Trim, elect sign, merge

    A way to merge models. It looks at how each model changed from the shared base, and drops the small changes. Where models disagree on the direction of a change, it takes a vote, and it averages only the values that agree with the vote.

  • Token

    A piece of text that a model reads or writes: a word, part of a word, or a punctuation mark. Models count length and cost in tokens, not words. In English, 100 tokens are roughly 75 words. See tokenizer.

  • Tokenizer

    The program that cuts text into small pieces called tokens and turns each piece into a number. Each model family has its own tokenizer, so the same text gives a different token count in different models. A model must use the tokenizer it was trained with.

  • Tool calling

    Function calling

    A model's ability to ask the application to run a function instead of answering from memory. The application lists the tools it offers, with their names and parameters. The model answers with a structured call, the application runs it and returns the result, and the model continues from there.

  • Training data

    The text, code, images or other examples a model learns from. Its quality, mix and size shape what the model can do. Many open models publish their weights and not their training data.

  • Transformer

    The design behind most current LLMs. It reads all the tokens of a text together and uses attention to decide which tokens matter to each other. It was introduced in 2017, in the paper "Attention Is All You Need".

  • VLM

    Vision-language model

    A model that reads images, and sometimes video, together with text, and answers in text. It pairs a vision encoder with a language model.

  • Weights

    The trained parameters of a model, stored in a file. They hold what the model learned. When a model is open weight, the weights are what you download. The code that runs them is separate.

To measure these methods on your own task and hardware, work with us. Deep dives on most of them are in the videos.