Skip to content
SurogateSurogateDocs
↑↓ to move↵ to openesc to close

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.

TermWhat it meansRead more
CISPOA 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
DistillationTraining 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
DPODirect Preference Optimization: learns from pairs of a preferred and a rejected answer, with no reward model and no sampling during training.Quickstart: DPO
GRPOGroup 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
KitA 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
LoRALow-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
Pretraining (PT)Training on raw text with next-token prediction, from scratch or to continue a model’s training on new data.Quickstart: Pretraining
QLoRALoRA on top of quantized base weights (for example 4-bit or FP8), to fine-tune models that would not otherwise fit in memory.QLoRA
RULERRewards from an LLM judge that ranks a group of answers against each other, for tasks with no exact checker.RL training
SFTSupervised fine-tuning: training on example conversations or prompt/answer pairs, with the loss on the answers.Quickstart: SFT
TermWhat it meansRead more
AdvantageHow 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
Avg@k / Pass@kEvaluation 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
ColocateRunning inference and training on the same GPU, taking turns, so a GRPO run needs a single card (surogate grpo-colocate).Single-GPU GRPO
EnvironmentThe 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
Held-out setQuestions kept out of training and scored before and after, so a gain is measured on data the model never trained on.GRPO kits
OrchestratorThe GRPO component between the inference server and the trainer: it samples rollouts, computes rewards and advantages, and hands batches to the trainer.RL training
RewardA score for one rollout, from a checker (exact match, a schema, a test run) or a judge.RL environments
RolloutOne generated attempt at a prompt, with any tool calls and replies, that gets a reward.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
Token clientSends and receives token IDs instead of text between orchestrator and inference, so the tokens trained on are exactly the tokens generated.RL training
TermWhat it meansRead more
BF1616-bit brain floating point, the default training and serving precision.Precision & recipes
Chat templateThe 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
FP88-bit floating point, for faster training and smaller weights and KV cache on GPUs that support it.Precision & recipes
GGUFA single-file model format used by llama.cpp and similar CPU and edge runtimes.Serving models
MoEMixture 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
NVFP4NVIDIA’s 4-bit floating-point format for Blackwell GPUs, for serving large models in about a quarter of their BF16 memory.Serving models
RecipeA named precision setup for training (for example fp8_hybrid) that sets the dtypes of weights, activations and gradients together.Precision & recipes
TermWhat it meansRead more
Dispatch pipeline parallelismSplits a model’s layers across GPUs as pipeline stages, alongside the data-parallel paths.Dispatch-PP
OffloadingMoving optimizer state, weights or activations to CPU memory or NVMe to fit a bigger model on the GPU.Offloading
RecomputeDropping activations in the forward pass and recomputing them in the backward pass, trading time for memory.Memory
Sample packingPutting several short examples in one sequence, so no compute is spent on padding.Datasets
ZeROSharding optimizer state, gradients and weights across GPUs (stages 1–3), so each GPU holds only its share.Multi-GPU
TermWhat it meansRead more
Candidate lossA supervised loss over a supplied set of allowed answer tokens instead of the whole vocabulary, for classification-style training.Candidate loss
DFlashA drafter model for speculative decoding, run with --spec.Serving CLI
KV cacheThe 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
MTPMulti-token prediction: extra heads that propose the next few tokens, used for speculative decoding by models that ship them.Serving CLI
Speculative decodingA 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

Next: Training Modes puts the training methods above side by side, and the Configuration Reference lists every config key.