Sparse MoE Routing & Active vs. Total Parameters
How gating networks, top-k routing, and shared experts let 125B checkpoints run with ~14B compute cost.
Clear, consistent engineering definitions for the architecture, memory-hierarchy, and quantization terms used across StrataLLM.org’s setup guides, model profiles, and benchmark reports.
How gating networks, top-k routing, and shared experts let 125B checkpoints run with ~14B compute cost.
How local inference engines keep cold MoE experts in DDR5 RAM and stream them asynchronously into CUDA cores.
Why long context windows exhaust 12GB GPUs and how GQA + Q8_0 KV quantization halve VRAM consumption.
A sparse neural network architecture that replaces each dense feed-forward layer with multiple specialized sub-networks (experts) and a gating router that activates only a small subset (top-k) per token.
Total parameters measure the full checkpoint size stored in RAM/VRAM, while active parameters measure only the weights executed per generated token (e.g., ~14B active out of 125B total).
Always-on expert sub-networks present in modern fine-grained MoE models (such as Qwen and DeepSeek) that fire on every token alongside routed experts—making them top priority to pin in GPU VRAM.
A hybrid memory placement strategy that pins shared attention layers, KV cache, and hot experts in fast GPU VRAM while storing cold routed experts in larger host DDR4/DDR5 RAM.
System RAM marked non-pageable by the OS so the NVIDIA GPU DMA controller can stream tensors directly over PCIe without extra CPU staging copies.
The sustained transfer rate (GB/s) at which cold expert weights travel from host RAM across PCIe lanes into GPU memory (~25–27 GB/s on PCIe 4.0 x16; ~50–55 GB/s on PCIe 5.0 x16).
Cached attention Key and Value tensors from all prior tokens in the prompt and generation so the model avoids recomputing full self-attention from scratch on every new token.
An attention variant where multiple query heads share fewer Key/Value heads, cutting KV cache VRAM requirements by 4x–8x compared to classic Multi-Head Attention.
DeepSeek’s low-rank KV compression architecture that projects Key/Value states into a compact latent vector, dramatically reducing VRAM consumption at long context lengths.
Mixed-precision GGUF quantization profiles that compress large FFN expert matrices to 4–6 bits while keeping sensitive router gates and attention projections at higher precision.
Elapsed time between dispatching an HTTP prompt and receiving the first non-empty visible output token. Dominated by prompt prefill compute and cold weight loading.
Prefill processes all input prompt tokens in parallel (compute-bound); Decode generates output tokens sequentially one at a time (memory-bandwidth-bound).