Skip to content

Glossary

  • Token: The smallest numbered text unit consumed by a model; see Tokenization.
  • Tokenizer: The component that maps text to token IDs.
  • Vocabulary: The fixed mapping between tokens and IDs.
  • Embedding: A continuous vector for a discrete symbol; see Embeddings.
  • Context window: The maximum number of tokens a model can read at once.
  • Attention: A mechanism for dynamically selecting relevant context; see Attention.
  • Self-attention: Attention among tokens in the same sequence.
  • Cross-attention: Attention from one sequence to another.
  • Q/K/V: Query, Key, and Value projections in attention.
  • Transformer block: A layer made of attention, MLP, residuals, and normalization.
  • MLP: The feed-forward network applied to each token representation.
  • Residual connection: Adding a layer input back to its output for stable deep training.
  • LayerNorm / RMSNorm: Normalization that stabilizes activation statistics.
  • Positional encoding: Information that tells a model token order and distance; see Positional Encoding.
  • RoPE: Rotary positional embeddings for relative position information.
  • ALiBi: Attention with Linear Biases for relative position.
  • Pretraining: Learning general language patterns from large-scale data; see Pretraining.
  • Fine-tuning: Continuing training on task-specific data; see Fine-Tuning.
  • SFT (Supervised Fine-Tuning): Training on instruction-response pairs.
  • RLHF: Optimizing outputs with rewards learned from human preferences.
  • DPO: Direct Preference Optimization without an explicit reward model.
  • PPO: Proximal Policy Optimization, a common RL algorithm in RLHF.
  • LoRA: Low-Rank Adaptation, a parameter-efficient fine-tuning method.
  • QLoRA: Quantized LoRA for fine-tuning large models on consumer GPUs.
  • Alignment: The process of making model outputs conform to human values.
  • Scaling Law: The empirical observation that model performance improves predictably with scale, data, and compute.
  • Compute-optimal training: Balancing model size and training data under a fixed compute budget.
  • Loss spike: A sudden sharp increase in training loss.
  • Gradient clipping: Limiting gradient norms to prevent explosion.
  • Mixed precision: Accelerating training with FP16/BF16 alongside FP32.
  • AdamW: Adam with decoupled weight decay; the default LLM pretraining optimizer. See Weight Update & Optimizers.
  • Learning rate: The step size of each parameter update; usually annealed over training.
  • Warmup: A linear ramp of the learning rate at the start of training to prevent early large steps from destabilizing it.
  • WSD (Warmup-Stable-Decay): A constant-LR plateau plus a short final decay; friendly to mid-training forks.
  • Gradient accumulation: Accumulating gradients over several micro-batches before one update; effectively enlarges batch size.
  • Muon: An optimizer that orthogonalizes the momentum buffer; a new choice for hidden-layer matrices. See Weight Update & Optimizers.
  • Activation checkpointing: Trading recomputation for reduced memory usage.
  • Data parallelism (DP): Each GPU holds a full replica with the data split; gradients synchronized via all-reduce. See Parallelism & Performance.
  • Tensor parallelism (TP): Split a layer’s matrix multiplications across GPUs; densest communication, must stay inside the NVLink domain.
  • Pipeline parallelism (PP): Split by layers and run stages in a pipeline; micro-batches amortize bubbles.
  • ZeRO / FSDP: Shard optimizer states, gradients, and parameters across the DP group so memory scales down with GPU count.
  • Sequence parallelism (SP): Slice per-token activations along the sequence dimension, complementing TP.
  • Context parallelism (CP): Distribute an ultra-long context as blocks across devices (e.g., Ring Attention).
  • MFU: Model FLOPs Utilization — actual throughput over hardware peak FLOPS.
  • NVLink / NVSwitch: Ultra-fast GPU interconnect and its switch silicon, forming the scale-up domain. See Cluster Networking.
  • NVL72: A rack-scale system with 72 GPUs sharing one NVLink domain.
  • InfiniBand (IB): A natively lossless RDMA fabric, the mainstream scale-out choice in HPC.
  • RoCE: RDMA over Converged Ethernet — cheaper, but losslessness needs careful tuning.
  • RDMA: Remote Direct Memory Access, bypassing the CPU.
  • NCCL: NVIDIA Collective Communications Library, the de facto training standard.
  • All-reduce / All-to-all: Two collective primitives; the former sums gradients across all ranks, the latter exchanges distinct blocks pairwise (used in MoE dispatch/combine).
  • DualPipe: DeepSeek-V3’s bidirectional pipeline schedule, nearly fully overlapping communication with compute.
  • KV cache: Cached Keys and Values used to speed autoregressive generation; see KV Cache.
  • GQA (Grouped-Query Attention): Multiple query heads share the same KV heads.
  • MQA (Multi-Query Attention): All query heads share a single KV head.
  • Quantization: Lower-precision weights or activations to reduce cost; see Quantization.
  • PTQ (Post-Training Quantization): Quantizing an already-trained model.
  • QAT (Quantization-Aware Training): Simulating low precision during training.
  • FlashAttention: An IO-aware attention algorithm that reduces memory traffic; see Efficient Attention.
  • Speculative decoding: Using a small model to draft candidates verified by the large model.
  • Greedy decoding: Always selecting the highest-probability token.
  • Beam search: Keeping multiple candidate sequences during decoding.
  • Temperature: A decoding parameter controlling distribution sharpness.
  • Top-k: Sampling only from the k highest-probability candidates.
  • Top-p (Nucleus sampling): Sampling from the smallest set whose cumulative probability reaches p.
  • Decoding: The strategy for turning probabilities into generated text; see Sampling and Decoding.
  • Prompt: The instruction, context, and examples sent to a model.
  • Few-shot: Guiding a task by including a small number of examples.
  • Chain-of-thought: Prompting the model to write intermediate reasoning steps.
  • RAG: Retrieving external evidence and inserting it into context; see RAG.
  • Embedding model: A specialized model that turns text into vectors.
  • Vector database: A database for storing and retrieving vectors.
  • Reranker: A model that precisely reorders retrieved candidates.
  • Agent: An LLM system that can use tools and execute multi-step tasks; see Agents.
  • Tool calling / Function calling: The mechanism for models to invoke external tools.
  • MCP (Model Context Protocol): Anthropic’s proposed standard protocol for tool calling.
  • ReAct: A reasoning-and-acting alternating framework for agents.
  • Reflection: The ability of an agent to self-reflect and adjust strategy.
  • Multi-agent: Systems where multiple agents collaborate on tasks.
  • Hallucination: A plausible but unreliable model-generated claim.
  • Jailbreak: An attack that bypasses model safety restrictions.
  • Prompt injection: An attack that manipulates model behavior through malicious input.
  • Encoder: The bidirectional input-processing part of a model, e.g., BERT.
  • Decoder: The autoregressive output-generating part of a model, e.g., GPT.
  • Encoder-decoder: An architecture with both encoder and decoder, e.g., T5.
  • Causal mask: A mask that prevents a model from seeing future tokens.
  • MoE (Mixture of Experts): Sparsely activated experts to increase model capacity.
  • SSM (State Space Model): Linear-complexity sequence modeling, e.g., Mamba.
  • RoPE (Rotary Positional Embedding): Rotary positional encoding.