The vocabulary used across these docs, in one place. Deeper explanations live on Architecture & math.
Streaming & memory
Term
Definition
Pinned zone
The VRAM region for embeddings, final norm, and the LM head — always resident, never streamed.
Streaming zone
The VRAM region holding the working window of transformer layers — a window of --resident-layers blocks, refilled by a background prefetch worker.
Cache zone
The 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 window
The set of layers held in VRAM at once. Its size is layers_to_load, tunable with --resident-layers.
layers_to_load
How many transformer blocks fit resident, from the LayersToLoad budget formula.
Window miss
A 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-gb
A 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 fallback
The no-GPU build — page-aligned host buffers with the same layout contract, so the pipeline runs anywhere.
Attention & the KV cache
Term
Definition
KV cache
The stored keys and values of past tokens, so attention doesn't recompute the whole history each step.
PagedAttention
A 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.
GQA
Grouped-query attention — multiple query heads share a smaller set of key/value heads, shrinking the KV footprint.
RoPE
Rotary position embedding — encodes token position by rotating the query/key vectors.
RMSNorm
Root-mean-square layer normalization, used before attention and the MLP.
SwiGLU
The gated MLP activation in the feed-forward block.
Kernels & scaling
Term
Definition
ComputeKernel
The trait behind the transformer math; run_block runs one decoder block for one token.
CPU oracle
The CpuKernel — the reference implementation the GPU kernel is validated against, op for op.
Speculative decoding
A drafter proposes tokens the target verifies in one pass; accepted tokens advance together.
N-gram speculation
Speculative 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).
MoE
Mixture-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 batching
A scheduler advancing many in-flight generations one token per tick, admitting new requests as slots free.
Pipeline parallelism
Splitting the layer stack into per-GPU stages so only the hidden residual crosses each boundary.
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.
GGUF
llama.cpp's single-file format: weights in ggml's quantized blocks, with the config and tokenizer in its metadata. dlm reads it directly.
LoRA
A low-rank adapter fine-tuned on top of a base model. --lora merges a PEFT adapter into the weights at load.
GBNF
llama.cpp's grammar format. The grammar request field takes one, and output is constrained to match it.