Skip to content

Glossary

The vocabulary used across these docs, in one place. Deeper explanations live on Architecture & math.

Streaming & memory

TermDefinition
Pinned zoneThe VRAM region for embeddings, final norm, and the LM head — always resident, never streamed.
Streaming zoneThe VRAM region holding the working window of transformer layers — a window of --resident-layers blocks, refilled by a background prefetch worker.
Cache zoneThe PagedAttention KV cache plus residual activations. KV for every layer stays resident in VRAM even while weights stream, so attention always sees the full history.
Resident windowThe set of layers held in VRAM at once. Its size is layers_to_load, tunable with --resident-layers.
layers_to_loadHow many transformer blocks fit resident, from the LayersToLoad budget formula.
Window missA layer the window doesn't hold: it uploads on a dedicated copy stream (overlapping compute on the default stream) and evicts the most recently used layer: layers are read in a cycle, so the most recent one is needed last.
Double buffer (A/B)The planner's DoubleBufferSchedule — the load/compute schedule dlm profile reports. The serve-path streaming zone is the window above, not an A/B swap.
--ram-cache-gbA host-RAM cache of materialized layer weights, so a window miss skips the disk read and re-materialization. On by default when the whole layer set fits under a quarter of RAM, otherwise off; a smaller cache set by hand still hits, since it evicts the most recently used layer. It caches weights, never KV.
Host fallbackThe no-GPU build — page-aligned host buffers with the same layout contract, so the pipeline runs anywhere.

Attention & the KV cache

TermDefinition
KV cacheThe stored keys and values of past tokens, so attention doesn't recompute the whole history each step.
PagedAttentionA KV cache split into fixed-size blocks (pages), so memory is allocated in units rather than one contiguous span.
KV quantization (--kv-quant)The KV cache's precision. The default, auto, is int8 on the GPU (a scale per 32 values, 56% of fp16's memory) and f32 on the CPU kernels; f16 and f32 keep more precision, and int4 saves more on the CPU (the GPU holds it as int8). Independent of --quant, which sizes the weights.
GQAGrouped-query attention — multiple query heads share a smaller set of key/value heads, shrinking the KV footprint.
RoPERotary position embedding — encodes token position by rotating the query/key vectors.
RMSNormRoot-mean-square layer normalization, used before attention and the MLP.
SwiGLUThe gated MLP activation in the feed-forward block.

Kernels & scaling

TermDefinition
ComputeKernelThe trait behind the transformer math; run_block runs one decoder block for one token.
CPU oracleThe CpuKernel — the reference implementation the GPU kernel is validated against, op for op.
Speculative decodingA drafter proposes tokens the target verifies in one pass; accepted tokens advance together.
N-gram speculationSpeculative decoding with no draft model: it proposes what followed the last time the context's latest tokens occurred. On by default on the GPU (--speculative auto).
MoEMixture-of-Experts — a router sends each token through the top-k of many expert FFNs, so only a fraction of the weights run per token.
Continuous batchingA scheduler advancing many in-flight generations one token per tick, admitting new requests as slots free.
Pipeline parallelismSplitting the layer stack into per-GPU stages so only the hidden residual crosses each boundary.
Quantization (--quant)dlm quantizes a float checkpoint at load — int4 (0.5 bytes/param) or int8 (1.0), group-affine in groups of 128. Already-quantized 4-bit GPTQ exports load directly (act-order GPTQ and AWQ with a warning), as do GGUF files.
GGUFllama.cpp's single-file format: weights in ggml's quantized blocks, with the config and tokenizer in its metadata. dlm reads it directly.
LoRAA low-rank adapter fine-tuned on top of a base model. --lora merges a PEFT adapter into the weights at load.
GBNFllama.cpp's grammar format. The grammar request field takes one, and output is constrained to match it.