# Glossary

Source: https://docs.surogate.ai/engine/appendix/glossary/

New to some of the vocabulary? This page defines the terms the docs use, grouped by topic. Each entry links to the page that covers it in full.

## Training methods

| Term | What it means | Read more |
|---|---|---|
| **CISPO** | A GRPO policy loss that clips the importance-sampling weight instead of the update, so every token still contributes a gradient. Used for the Surogate 3.7 RL runs. | [RL training](/engine/guides/rl-training/) |
| **Distillation** | Training a smaller *student* model to match a larger *teacher*. Offline distillation learns from the teacher's stored outputs; on-policy distillation scores the student's own generations with the teacher. | [Distillation](/engine/guides/distillation/) |
| **DPO** | Direct Preference Optimization: learns from pairs of a preferred and a rejected answer, with no reward model and no sampling during training. | [Quickstart: DPO](/engine/getting-started/quickstart-dpo/) |
| **GRPO** | Group Relative Policy Optimization: reinforcement learning that samples a group of answers per prompt, scores each with a reward, and pushes the model towards the answers that beat their group's average. | [RL training](/engine/guides/rl-training/) |
| **Kit** | A ready-made GRPO task: an environment, a reward and three configs that teach a small model one job on one GPU, with the before/after score measured in the run. | [GRPO kits](/engine/examples/kits/) |
| **LoRA** | Low-Rank Adaptation: trains small adapter matrices beside frozen base weights, so fine-tuning needs a fraction of the memory and the result is a small adapter file. | [Training modes](/engine/getting-started/training-modes/) |
| **Pretraining (PT)** | Training on raw text with next-token prediction, from scratch or to continue a model's training on new data. | [Quickstart: Pretraining](/engine/getting-started/quickstart-pretraining/) |
| **QLoRA** | LoRA on top of quantized base weights (for example 4-bit or FP8), to fine-tune models that would not otherwise fit in memory. | [QLoRA](/engine/guides/qlora/) |
| **RULER** | Rewards from an LLM judge that ranks a group of answers against each other, for tasks with no exact checker. | [RL training](/engine/guides/rl-training/) |
| **SFT** | Supervised fine-tuning: training on example conversations or prompt/answer pairs, with the loss on the answers. | [Quickstart: SFT](/engine/getting-started/quickstart-sft/) |

## Reinforcement learning

| Term | What it means | Read more |
|---|---|---|
| **Advantage** | How much better one sampled answer scored than the others for the same prompt. GRPO trains on advantages, so a group where every answer scored the same teaches nothing. | [RL training](/engine/guides/rl-training/) |
| **Avg@k / Pass@k** | Evaluation scores over *k* samples per question: the average reward, and the share of questions where at least one sample was right. The orchestrator logs them as `Avg@1=` and `Pass@1:`. | [Metrics](/engine/guides/metrics/) |
| **Colocate** | Running inference and training on the same GPU, taking turns, so a GRPO run needs a single card (`surogate grpo-colocate`). | [Single-GPU GRPO](/engine/guides/rl-colocate/) |
| **Environment** | The task a model is trained on in RL: the dataset of prompts, how a rollout runs (single-turn, multi-turn, with tools) and the reward. Built with the verifiers library. | [RL environments](/engine/guides/rl-environments/) |
| **Held-out set** | Questions kept out of training and scored before and after, so a gain is measured on data the model never trained on. | [GRPO kits](/engine/examples/kits/) |
| **Orchestrator** | The GRPO component between the inference server and the trainer: it samples rollouts, computes rewards and advantages, and hands batches to the trainer. | [RL training](/engine/guides/rl-training/) |
| **Reward** | A score for one rollout, from a checker (exact match, a schema, a test run) or a judge. | [RL environments](/engine/guides/rl-environments/) |
| **Rollout** | One generated attempt at a prompt, with any tool calls and replies, that gets a reward. | [RL training](/engine/guides/rl-training/) |
| **Routing replay (R3)** | For mixture-of-experts RL: the trainer reuses the expert choices the inference engine made during the rollout, so training and sampling see the same experts. | [RL training](/engine/guides/rl-training/) |
| **Token client** | Sends and receives token IDs instead of text between orchestrator and inference, so the tokens trained on are exactly the tokens generated. | [RL training](/engine/guides/rl-training/) |

## Models and precision

| Term | What it means | Read more |
|---|---|---|
| **BF16** | 16-bit brain floating point, the default training and serving precision. | [Precision & recipes](/engine/guides/precision-and-recipes/) |
| **Chat template** | The format that turns a list of messages into the token sequence a model was trained on. Training and serving must use the same one. | [Datasets](/engine/guides/datasets/) |
| **FP8** | 8-bit floating point, for faster training and smaller weights and KV cache on GPUs that support it. | [Precision & recipes](/engine/guides/precision-and-recipes/) |
| **GGUF** | A single-file model format used by llama.cpp and similar CPU and edge runtimes. | [Serving models](/engine/inference/serving-models/) |
| **MoE** | Mixture of experts: each token runs through a few of many expert layers, picked by a router, so a large model computes like a small one. | [MoE](/engine/guides/moe/) |
| **NVFP4** | NVIDIA's 4-bit floating-point format for Blackwell GPUs, for serving large models in about a quarter of their BF16 memory. | [Serving models](/engine/inference/serving-models/) |
| **Recipe** | A named precision setup for training (for example `fp8_hybrid`) that sets the dtypes of weights, activations and gradients together. | [Precision & recipes](/engine/guides/precision-and-recipes/) |

## Scale and memory

| Term | What it means | Read more |
|---|---|---|
| **Dispatch pipeline parallelism** | Splits a model's layers across GPUs as pipeline stages, alongside the data-parallel paths. | [Dispatch-PP](/engine/guides/dispatch-pp/) |
| **Offloading** | Moving optimizer state, weights or activations to CPU memory or NVMe to fit a bigger model on the GPU. | [Offloading](/engine/guides/offloading/) |
| **Recompute** | Dropping activations in the forward pass and recomputing them in the backward pass, trading time for memory. | [Memory](/engine/guides/memory/) |
| **Sample packing** | Putting several short examples in one sequence, so no compute is spent on padding. | [Datasets](/engine/guides/datasets/) |
| **ZeRO** | Sharding optimizer state, gradients and weights across GPUs (stages 1–3), so each GPU holds only its share. | [Multi-GPU](/engine/guides/multi-gpu/) |

## Serving

| Term | What it means | Read more |
|---|---|---|
| **Candidate loss** | A supervised loss over a supplied set of allowed answer tokens instead of the whole vocabulary, for classification-style training. | [Candidate loss](/engine/reference/candidate-loss/) |
| **DFlash** | A drafter model for speculative decoding, run with `--spec`. | [Serving CLI](/engine/inference/cli/) |
| **KV cache** | The attention keys and values kept for every token in flight. Its size decides how many requests and how much context fit; FP8 halves it. | [Serving models](/engine/inference/serving-models/) |
| **MTP** | Multi-token prediction: extra heads that propose the next few tokens, used for speculative decoding by models that ship them. | [Serving CLI](/engine/inference/cli/) |
| **Speculative decoding** | A fast drafter proposes several tokens and the model checks them in one pass, keeping the ones it agrees with. The output is the same, with fewer passes. | [Serving CLI](/engine/inference/cli/) |

Next: [Training Modes](/engine/getting-started/training-modes/) puts the training methods above side by side, and the [Configuration Reference](/engine/reference/config/) lists every config key.
