Skip to main content

Glossary

Requests, workloads, and performance

40 terms

Request
One invocation of a model-serving API, including input, generation/configuration, identity/policy context, and lifecycle.
Input sequence length (ISL)
Number of input tokens processed for a request after the relevant tokenizer/template pipeline.
Output sequence length (OSL)
Number of output tokens generated for a request; distinguish requested maximum from actual output.
Context length
Tokens or modality-derived positions visible to a model at a point in execution; not always equal to the advertised maximum.
Arrival rate
Requests entering a system per unit time.
Request rate
Offered or completed requests per second; state which one.
Concurrency
Requests simultaneously outstanding or active; client, queue, engine, and GPU concurrency can differ.
Service time
Time a request spends receiving service, excluding or including queueing only if explicitly defined.
Queue time
Time from admission/arrival until execution begins or makes its first scheduled progress.
End-to-end latency
Client-observed time from request start to final response completion.
Time to first token (TTFT)
Time from the declared request start until the first generated token/chunk becomes observable.
Inter-token latency (ITL)
Time gaps between consecutive output tokens/chunks; report a distribution, not only an average.
Time per output token (TPOT)
A derived decode latency, often (E2E - TTFT)/(output_tokens - 1); definitions vary and must be stated.
Time between tokens (TBT)
Often used as a synonym for ITL; verify whether the source means per-request or aggregate timing.
Tokens per second per user
Per-request generation rate, commonly the inverse of average TPOT; not fleet throughput.
Output token throughput
Completed/generated output tokens across the service per second.
Input token throughput
Input/prefill tokens processed per second.
Total token throughput
Input plus output token count per second; can hide the user-visible mix.
Request throughput
Completed requests per second.
Goodput
Work completed while satisfying declared SLO/quality constraints; the exact qualification rule is part of the metric.
Tail latency
High percentile latency such as p95/p99/p99.9, often driven by queueing, rare shapes, failures, or interference.
Saturation
Regime where increasing offered load no longer increases useful throughput proportionally and queues/tails grow sharply.
Saturation knee
Operating point near the transition from increasing goodput to rapidly worsening latency/queueing.
Head-of-line blocking
Small/short work waits behind a long or expensive item due to queue/batch/scheduler structure.
Burstiness
Time-varying arrivals clustered more strongly than a smooth constant or simple Poisson process.
Open-loop load
Client issues arrivals according to a schedule independent of response completion.
Closed-loop load
Each client/user waits for completion before issuing more work, so server slowdown reduces offered load.
Coordinated omission
Load generator fails to record delay for requests it never issued while blocked, understating latency under overload.
Workload trace
Dated request-level sequence preserving some combination of timing, lengths, sessions, features, failures, or content.
Synthetic workload
Artificially generated requests/arrivals; useful only when the modeled properties and omissions are explicit.
Warm-up
Requests/iterations used to establish compilation, graph, cache, allocator, clock, and thermal state before measurement.
Steady state
Declared interval after transient startup effects where the measured process is sufficiently stable for the question.
Cold start
Time/resources from an unavailable/unallocated state to a declared usable state; define the start and readiness milestone.
Benchmark manifest
Exact model, runtime, commit, flags, hardware, software, workload, metrics, warm-up, and artifact metadata for a run.
Ablation
Experiment removing/changing one mechanism to attribute its contribution.
Pareto frontier
Configurations not dominated simultaneously on all relevant axes such as latency, throughput, quality, cost, and power.
Service-level indicator (SLI)
Measured quantity used to judge service behavior.
Service-level objective (SLO)
Target range/threshold for an SLI over a stated window/population.
Service-level agreement (SLA)
External contractual commitment and consequences; not interchangeable with an internal SLO.
Error budget
Allowed amount of SLO failure over a window.

Model execution

38 terms

Tokenizer
Procedure/model mapping text or structured input to token IDs and back; version/template differences change semantics and accounting.
Vocabulary
Set of token IDs and their mappings used by a tokenizer/model.
Chat template
Formatting that converts messages, roles, tools, and special tokens into model input tokens.
Embedding
Vector representation produced from a token/item or used as the input lookup for token IDs.
Hidden size
Width of the model's main per-token representation.
Layer
Repeated model block, typically containing attention/state mixing, feed-forward computation, normalization, and residual paths.
Transformer
Architecture based on attention and feed-forward blocks operating over token representations.
Attention
Operation weighting value vectors according to query-key similarity and masking.
Causal mask
Mask preventing a position from attending to future positions in autoregressive generation.
Multi-head attention (MHA)
Attention with separate query, key, and value projections across multiple heads.
Multi-query attention (MQA)
Multiple query heads share one set of key/value heads, reducing KV state and bandwidth.
Grouped-query attention (GQA)
Query heads are grouped to share fewer key/value heads, between MHA and MQA.
Multi-head latent attention (MLA)
Attention family compressing key/value state through a latent representation; implementations vary by architecture.
Attention head
Subspace performing one attention computation with its own query and usually key/value projections.
Head dimension
Width of the query/key/value vector for one head.
Feed-forward network (FFN/MLP)
Per-token dense or expert computation around nonlinear projections, often a major FLOP/weight component.
Autoregressive generation
Producing each output token conditioned on previously visible tokens/state.
Prefill
Processing input tokens—usually in parallel across sequence positions—to create first logits and cached state.
Decode
Iterative generation phase, typically one or a few new tokens per active sequence per model step.
Logits
Unnormalized scores over the output vocabulary before sampling/selection.
Softmax
Transformation from scores to a normalized probability distribution.
Sampling
Selecting output tokens from the model distribution, possibly after transforms/constraints.
Temperature
Scaling applied to logits that changes distribution sharpness; zero-like behavior is often implemented as greedy selection.
Top-k
Restriction to the k highest-scoring candidate tokens before sampling.
Top-p / nucleus sampling
Restriction to the smallest high-probability set whose cumulative mass reaches p.
Beam search
Search retaining multiple high-scoring partial sequences, multiplying state and compute.
Stop condition
Token/string/schema/budget/client event that ends generation and should trigger correct state cleanup/accounting.
Random-number generator (RNG) state
State controlling stochastic sampling; batching/parallelism changes can affect reproducibility.
Mixture of experts (MoE)
Model where a router selects a subset of expert FFNs for each token.
Active parameters
Parameters executed for a token/request, distinct from total stored parameters in sparse/MoE models.
Expert
One routed subnetwork, commonly an FFN, in an MoE layer.
Expert router
Component assigning tokens to experts and weights/capacity.
Expert imbalance
Unequal token assignment causing compute/communication stragglers or capacity overflow.
State-space model (SSM)
Sequence architecture maintaining recurrent state rather than a full attention KV history.
Hybrid model
Model combining attention with recurrent/SSM/convolutional or other layer types and therefore multiple state layouts.
RoPE
Rotary positional embedding applied to queries/keys; configuration/scaling mismatches can corrupt long-context behavior.
Sliding-window attention (SWA)
Attention restricted to a recent window, bounding some KV state while changing long-range access.
Multimodal processor
Input pipeline converting image/audio/video and text into model-ready tensors/tokens.

KV cache, batching, and scheduling

36 terms

KV cache
Stored attention keys/values for visible prior tokens so decode avoids recomputing earlier layers' K/V.
KV bytes per token
State memory per cached token, derived from layers, KV heads, head dimension, precision, and layout.
Static batching
Fixed group/shape processed together, often with padding and synchronized completion.
Dynamic batching
Server forms batches from arriving requests within size/time constraints.
Continuous batching
Requests join/leave scheduling iterations as sequences progress instead of waiting for an entire static batch.
Iteration-level scheduling
Scheduler decides work at each model/token iteration, the core idea behind systems such as Orca.
Batch token budget
Maximum scheduled tokens across requests in an iteration.
Active sequence
Sequence currently resident/runnable in an engine; definitions vary for paused/preempted state.
Chunked prefill
Splits a long prefill across iterations to control memory and interleave decode/other work.
Admission control
Decides whether to accept, queue, reject, or degrade work based on bounded resource/SLO policy.
Preemption
Temporarily removes/delays running work to admit or prioritize other work, requiring state handling.
Recompute
Discards state and regenerates it later as a memory/preemption strategy.
Swap/offload
Moves weights/KV/state to slower memory/storage, trading transfer for capacity.
Page/block
Fixed allocation unit used to manage KV memory without one contiguous maximum reservation per request.
Logical block
Sequence-visible position/unit mapped through a table to physical storage.
Physical block
Actual allocated KV storage page in device/host/remote memory.
Block table
Mapping from a sequence's logical blocks to physical KV blocks.
Internal fragmentation
Wasted space inside allocated blocks/pages.
External fragmentation
Free memory split into pieces that cannot satisfy a larger contiguous allocation.
PagedAttention
vLLM paper/system design applying page/block-style KV management and paged attention kernels.
Prefix caching
Reuses cached state for token prefixes shared across requests/turns.
Automatic Prefix Caching (APC)
vLLM feature indexing reusable full KV blocks through chained hashes.
RadixAttention
SGLang design indexing token prefixes/KV state with a radix tree for automatic reuse.
Radix tree / Patricia trie
Compressed prefix tree supporting longest-prefix matching.
Chained block hash
Block identity incorporating prior-prefix hash so equal token blocks at different histories are distinguished.
Copy-on-write
Shares physical prefix blocks until a writer must diverge, then copies the affected state.
Cache hit rate
Fraction of lookups/tokens/requests found; state the unit and translate it to work/time saved.
Eviction
Removing cached state to free capacity according to a policy such as LRU/importance/cost.
LRU
Least-recently-used eviction policy.
Hierarchical cache
KV or artifact storage across multiple tiers such as GPU, host, local disk, and remote/object store.
KV connector
Interface moving/retrieving KV state between engine and another tier/engine/system.
KV event
Notification that a cache block/state object was stored/removed/available, used by external indexing/routing.
Cache-aware routing
Routes a request toward a replica likely to hold useful prefix/state while balancing load.
Longest-prefix-match scheduling
Prioritizes/orders requests to increase shared-prefix reuse.
Retraction
SGLang term/event for removing running work when KV capacity is exhausted; related to preemption.
Scheduler trace
Time-ordered record of request states, batch composition, token budgets, allocations, and decisions.

Decoding and structured output

18 terms

Structured generation
Constraining generation to a schema/grammar/regex or higher-level program.
Grammar-constrained decoding
Masks invalid next tokens according to a formal language state.
Token mask
Allowed/disallowed vocabulary entries at one decoding step.
FSM / DFA
Finite-state machine/automaton used to represent some constraints efficiently.
CFG
Context-free grammar capable of representing nested structures beyond regular languages.
Token healing
Adjusts boundary tokenization to avoid constraint/prompt suffix mismatches.
Logits processor
Per-step transformation/mask applied to logits before sampling.
Speculative decoding
Drafts multiple candidate tokens cheaply and verifies them with the target model while preserving a declared distribution.
Draft model
Faster/cheaper proposal model or mechanism in speculative decoding.
Target model
Authoritative model whose distribution/output correctness is preserved/approximated.
Acceptance rate/length
Fraction or mean run of proposed tokens accepted; insufficient alone without draft/verification cost.
Tree verification
Verifies branching candidate token paths in parallel.
Multi-token prediction (MTP)
Model heads/architecture predicting multiple future tokens, usable as a speculation source.
Medusa
Multiple decoding-head approach producing tree candidates for verification.
EAGLE
Feature-level speculative drafting family.
Lookahead/Jacobi decoding
Parallel/iterative alternatives that relax the strictly serial next-token process through candidate updates.
Self-speculation
Uses layers/early exits or the target model itself as a draft rather than a separate model.
Cancellation
Request/branch termination before normal completion; must stop work and release state/accounting safely.

Precision, quantization, and artifacts

36 terms

FP32
IEEE-like 32-bit floating point, commonly a reference/accumulation format rather than efficient LLM serving weights.
TF32
NVIDIA tensor-core compute format using FP32 range with reduced mantissa precision.
FP16
16-bit floating point with more mantissa but less exponent range than BF16.
BF16
16-bit floating point with FP32-like exponent range and reduced mantissa.
FP8
Family of 8-bit floating formats requiring explicit scaling/accumulation semantics.
E4M3
FP8 family with four exponent and three mantissa bits (excluding sign); favors precision/range tradeoff differently from E5M2.
E5M2
FP8 family with five exponent and two mantissa bits; larger range, less precision than E4M3.
INT8 / INT4
8-bit/4-bit integer storage/compute quantization families with scale and often zero-point metadata.
FP4 / NVFP4
4-bit floating-point families; NVFP4 refers to NVIDIA-specific microscaled semantics and hardware paths.
MXFP4
Microscaling FP4 family with block-level scale metadata; exact standard/vendor semantics matter.
Quantization
Representing tensors with lower precision using scales/mappings to reduce memory and sometimes compute cost.
Post-training quantization (PTQ)
Quantization applied after model training, usually with limited calibration data.
Quantization-aware training (QAT)
Training/fine-tuning while simulating/using quantization effects.
Weight-only quantization
Lowers stored/loaded weight precision while activations/compute use a higher or converted format.
W4A16 / W8A8
Shorthand for weight and activation bit/format choices; it does not fully specify scales, kernels, or accumulation.
Scale
Factor mapping quantized values to an approximate real-valued range.
Zero point
Quantized integer corresponding to real zero in asymmetric schemes.
Symmetric quantization
Quantized range centered around zero, usually without a nonzero zero point.
Asymmetric quantization
Quantized range with an offset/zero point to better fit non-centered values.
Per-tensor quantization
One scale/parameters for an entire tensor.
Per-channel quantization
Separate scale/parameters along a channel dimension.
Groupwise/blockwise quantization
Separate parameters for fixed groups/blocks, trading metadata and kernels for fidelity.
Calibration
Using representative data/statistics to choose quantization scales/clipping/parameters.
Outlier
Values/channels whose magnitude/distribution makes uniform low-bit representation difficult.
Dequantization
Converting or reconstructing low-precision stored values for a consuming computation.
Fake quantization
Simulating quantization numerically while tensors may still be stored/processed in higher precision.
GPTQ
Second-order post-training weight quantization algorithm; also used loosely for a family of checkpoint formats.
AWQ
Activation-aware weight quantization protecting salient channels/weights and paired with deployment kernels.
SmoothQuant
Transformation moving activation outlier difficulty into weights to enable W8A8-style execution.
KV quantization
Lowering key/value cache precision to increase state capacity/reduce bandwidth, constrained by quality and kernel support.
SafeTensors
Tensor storage format designed for safe, fast loading without arbitrary Python pickle execution.
GGUF
llama.cpp/ggml ecosystem model container with metadata and many quantization variants.
ONNX
Portable graph/model representation consumed by compatible runtimes/execution providers.
TensorRT engine
Hardware/profile-specific compiled runtime artifact; not a portable model checkpoint.
Adapter / LoRA
Small parameter update applied to a shared base model, enabling many variants without full duplicated weights.
Perplexity
Token prediction metric often used for quantization checks but insufficient for all downstream quality/correctness.

Hardware and performance physics

48 terms

FLOP
Floating-point operation; counting conventions may treat fused multiply-add as two.
FLOP/s
Floating-point operations per second; peak theoretical and achieved values are different.
Byte/s
Data-transfer bandwidth; specify memory/link, direction, payload, and achieved versus peak.
Arithmetic intensity
Operations performed per byte moved across a chosen memory boundary.
Roofline model
Upper-bound model comparing compute peak with bandwidth times arithmetic intensity.
Ridge point
Arithmetic intensity where roofline limits transition between bandwidth- and compute-bound.
Compute-bound
Performance primarily limited by available arithmetic throughput for the measured regime.
Memory-bound
Performance primarily limited by data movement through a memory level.
Latency-bound
Performance limited by serial delays/launch/synchronization rather than aggregate bandwidth or compute.
HBM
High-bandwidth memory located near an accelerator, used for weights, KV, activations, and workspace.
SRAM/cache
Smaller/faster on-chip memory that can reduce repeated HBM movement when algorithms tile/reuse data.
Register file
Fast per-thread/lane storage; pressure and spills affect kernel occupancy/performance.
Shared memory
Programmer-managed on-chip memory shared within a CUDA block/workgroup.
SM / compute unit
Hardware unit scheduling warps/wavefronts and executing accelerator instructions; NVIDIA calls it SM, AMD calls it CU.
Warp / wavefront
Group of lanes executing in SIMT lockstep (width and terminology depend on architecture).
SIMT
Single-instruction, multiple-thread execution model used by GPUs.
Occupancy
Fraction of possible resident warps/workgroups active on a compute unit; not the same as useful utilization.
Tensor core / matrix engine
Specialized unit accelerating supported matrix operations and numeric formats.
GEMM
General matrix-matrix multiplication.
GEMV
Matrix-vector multiplication, common in low-batch decode and often bandwidth-limited.
Tiling
Partitioning an operation so working data fits/reuses faster memory and maps to execution units.
Coalescing
Arranging lane memory accesses into efficient contiguous transactions.
Kernel
Device function launched to perform an operation or fused set of operations.
Kernel launch overhead
Host/runtime cost of submitting a device kernel, significant for many tiny decode operations.
Kernel fusion
Combining operations to avoid launches/intermediate memory traffic; correctness and shape support must be tested.
CUDA graph
Captured sequence of GPU work replayed with lower launch overhead and stricter memory/shape constraints.
Eager execution
Executes operations as encountered rather than replaying a pre-captured/compiled whole graph.
JIT compilation
Compilation performed during/near runtime for observed code/shapes.
AOT compilation
Compilation performed ahead of deployment/execution for declared targets/shapes.
Graph break
Point where a compiler cannot keep execution inside one compiled graph, causing fallback or separate compilation.
Autotuning
Empirically choosing kernel/configuration variants for target shapes/hardware.
PTX
NVIDIA virtual instruction-set representation compiled further for a concrete GPU.
SASS
NVIDIA machine instructions for a concrete GPU architecture.
Triton
Language/compiler for authoring GPU kernels in a Python-like tile abstraction; not Triton Inference Server.
CUTLASS
NVIDIA C++ template library for high-performance tensor/matrix primitives.
MLIR
Compiler infrastructure for reusable intermediate representations and lowering passes.
XLA
Compiler stack used by JAX/TensorFlow/TPU and other accelerator paths.
DMA
Direct memory access transferring data without CPU core copying each byte.
Pinned memory
Page-locked host memory enabling efficient/asynchronous device transfers but consuming a limited host resource.
NUMA
Host memory/CPU topology where access cost depends on socket/location.
PCIe
Host/device and device/device interconnect with generation/lane/topology-dependent bandwidth and latency.
NVLink
NVIDIA high-bandwidth GPU interconnect; generation/topology and aggregate/per-link numbers differ.
NVSwitch
Switch fabric connecting multiple NVLink GPUs in supported systems.
RDMA
Remote direct memory access allowing network transfer directly to/from registered memory with low CPU overhead.
InfiniBand
Low-latency/high-bandwidth fabric commonly used for GPU clusters and RDMA.
RoCE
RDMA over Converged Ethernet; depends on correctly engineered Ethernet fabric.
EFA
AWS Elastic Fabric Adapter used for low-latency/high-throughput communication.
Topology
Physical/logical connectivity among accelerators, CPUs, NICs, switches, and memory.

Distributed and production systems

37 terms

Replica
Independently serving copy or shard group of a model endpoint.
Rank
One process/device participant in a distributed group.
World size
Number of ranks in a distributed group.
Data parallelism (DP)
Replicates model execution so different requests/batches run independently on replicas.
Tensor parallelism (TP)
Shards tensor operations/weights across devices with per-layer communication.
Pipeline parallelism (PP)
Assigns sequential model stages/layers to different devices.
Sequence/context parallelism (SP/CP)
Shards work/state along sequence/context dimensions for long inputs and attention.
Expert parallelism (EP)
Places MoE experts across devices and routes tokens, often requiring all-to-all communication.
Hybrid parallelism
Composition of DP/TP/PP/CP/EP.
Collective
Coordinated communication across ranks.
All-reduce
Reduces values across ranks and returns the result to all ranks.
All-gather
Collects each rank's shard and returns the concatenation to all ranks.
Reduce-scatter
Reduces values and distributes result shards among ranks.
All-to-all
Each rank sends distinct data to every other rank, common in expert routing.
Communication overlap
Executes transfer/collectives concurrently with useful compute where dependencies allow.
Prefill/decode disaggregation
Runs prefill and decode in separate worker pools and transfers KV/state between them.
KV transfer
Moves cached attention/recurrent state across workers or storage tiers.
Control plane
Reconciles desired/observed state, placement, configuration, rollout, and policy.
Data plane
Carries user requests, tokens, model tensors, KV state, and latency-critical traffic.
Inference gateway
Front layer handling API normalization, auth, quotas, routing, policy, and sometimes CPU-heavy processing.
Load-aware routing
Uses queue/running work/capacity signals rather than blind round robin.
Capability-aware routing
Routes by model, modality, feature, context, adapter, hardware, or semantic support.
Backpressure
Propagates inability to accept work upstream rather than allowing unbounded queues/resources.
Load shedding
Rejects or drops lower-priority work to preserve bounded service under overload.
Circuit breaker
Stops sending/accepting work after failures cross a threshold until recovery criteria are met.
Autoscaling
Changes replica/capacity count based on observed/predicted load and startup delay.
Scale to zero
Removes all warm capacity when idle, saving cost while adding future cold-start risk.
Liveness
Whether a process/system should be restarted because it cannot make progress.
Readiness
Whether a replica is safe/useful to receive traffic; needs stage-specific semantics for inference.
Canary deployment
Sends a small controlled traffic fraction to a new version before broader rollout.
Blue-green / red-black
Maintains separate old/new environments and switches traffic with rollback capability.
Shadow traffic
Copies requests to a candidate without using its response for the user, for comparison/testing.
Multi-tenancy
Multiple users/teams/models/adapters share serving infrastructure with policy/isolation/accounting.
Noisy neighbor
One tenant/workload degrades another through shared resource contention.
Idempotency
Repeating an operation produces no additional unintended effect; important for safe retries/billing.
Blast radius
Scope of users, models, regions, or resources affected by a failure/change.
SLO burn rate
Speed at which observed failures consume the allowed error budget.

Edge and modality terms

17 terms

NPU
Neural processing unit; capabilities/operator/runtime access vary substantially by device/vendor.
Unified memory
CPU/GPU share an addressable memory pool; it changes copy behavior but not total bandwidth/capacity limits.
WebGPU
Browser API exposing GPU computation used by runtimes such as WebLLM.
WASM
WebAssembly portable execution target, commonly used for browser CPU/runtime components.
Execution provider
ONNX Runtime backend implementing graph operations for a device/runtime.
Delegate
Mobile runtime backend offloading supported graph/operators to an accelerator.
Real-time factor (RTF)
Processing time divided by media duration; below one means faster than real time.
Time to first audio
Delay until the first playable TTS/audio output becomes available.
Diffusion step
One iterative denoising update; latency scales with steps and per-step model stages.
Denoiser
Main network predicting noise/velocity/other parameterization during diffusion inference.
VAE
Encoder/decoder mapping between pixels/media and latent space in many diffusion pipelines.
Classifier-free guidance (CFG)
Diffusion guidance technique often requiring conditional/unconditional predictions or optimized equivalents.
Embedding model
Produces vector representations rather than autoregressive text.
Reranker
Scores query-item pairs, often a prefill-only high-QPS workload.
Multi-item scoring
Scores many items while sharing query/context computation through special packing/masks.
Sustained performance
Performance after warm-up over enough time to expose power/thermal/memory/runtime stability.
Joules per output
Energy consumed per declared request/token/frame/second of media; measurement boundary must be stated.