Glossary

1 min readMarkdown

Each term below gets one line and a link to the page that explains it properly. The same definitions appear when you hover a term anywhere in the guide.

If a word is missing, start with What is a model, actually? and What happens when I press enter?, which use most of these terms in context. For numbers rather than words, see Cheat sheets.

Active parameters
The parameters an MoE model actually uses per token. They decide its speed.
Backend
The hardware path an engine uses: Metal, CUDA, Vulkan, ROCm or CPU.
Chat template
The exact wrapper of tags a model expects around each message.
Context window
How many tokens the model can hold in view at once, prompt and answer together.
Continuous batching
Adding new requests to a running batch as old ones finish.
Decode
The phase where the model writes its answer one token at a time. Limited by memory bandwidth.
Dense model
A model where every parameter runs for every token.
Embedding
A list of numbers that captures a text's meaning, used for search.
GGUF
The single-file model format used by llama.cpp and the apps built on it.
Inference engine
The layer that does the actual maths, such as llama.cpp or MLX.
KV cache
Saved work from earlier tokens, so the model does not reread the whole conversation for every new token.
LoRA
Fine-tuning a small add-on instead of the whole model.
MCP
Model Context Protocol. A standard way to plug tools into a model.
Memory bandwidth
How fast data moves out of memory, in GB per second. It sets decode speed.
Mixture of experts
A model split into experts, where only a few run for each token.
MLX
Apple's machine learning framework for Apple silicon.
Offload
Running part of a model on the CPU because it does not fit in VRAM.
Parameter
One learned number inside a model. An 8B model has about eight billion of them.
Pipeline parallel
The model is cut into consecutive slices across devices. Adds memory, not speed.
Prefill
The phase where the model reads your prompt. Limited by compute.
QLoRA
LoRA on top of a quantized model, so it fits consumer memory.
Quantization
Storing each weight with fewer bits so the model takes less memory.
RAG
Retrieval-augmented generation. The app finds relevant passages and pastes them into the prompt.
RDMA
Remote direct memory access. One machine reads another's memory without the CPU in the way.
Reranker
A small model that reorders search results by relevance.
Runtime
The software that loads a model file and runs it.
Speculative decoding
A small draft model guesses ahead and the big model checks the guesses in one pass.
System prompt
Standing instructions placed before the conversation.
Temperature
How much randomness goes into picking each token.
Tensor parallel
Every device works on every token. Needs a very fast link.
Time to first token
How long you wait before the first word of the answer appears.
Token
A chunk of text, usually part of a word. Models read and write in tokens.
Tool calling
A model asking the app to run a function, such as a search or a shell command.
Unified memory
One pool of memory shared by CPU and GPU, as on Apple silicon and some AMD and NVIDIA boxes.
VRAM
Memory on a graphics card. On a PC with a GPU, it is your model budget.
Weights
The full set of a model's parameters, stored in a file.