Inference Engines, Tiered MoE Offloaders, and Kernel Ecosystems
Inference Stack Builder & Three-Tier MoE Offloading
Select your hardware platform and workload for a matched engine, quantization, kernel path, and launch command.
llama-server -m Qwen3.8-27B-UD-Q4_K_XL.gguf -ngl 99 -c 32768 -fa on -ctk q8_0 -ctv q4_0 --port 8080Three-tier MoE offloading architecture (VRAM → Host RAM → NVMe SSD)
MoE offloading throughput by engine (tokens / sec)
Harness note: Strata, llama.cpp, vLLM, and naive offload rows reflect comparative RAM-resident expert pools. Magnitude's 41 tok/s bar is a first-party vendor claim (2-bit + 64K + speculative decoding from PCIe 4.0 SSD) and is not from the same controlled harness.
The late-2026 inference stack divides cleanly into four specialized domains: desktop foundations, three-tier GPU/RAM/NVMe MoE streaming engines, production/platform/browser runtimes, and low-level GEMM, attention, KV-cache, and speculative-decoding kernels.
1. The Foundational Local Stack
Section titled “1. The Foundational Local Stack”On November 13, 2026, llama.cpp shipped v1.0.0—signaling formal API and GGUF stability across 17 hardware backends (CUDA, Metal, Vulkan, ROCm/HIP, SYCL, CPU, and ggml-rpc-server), with continuous batching (-np), multimodal inputs, MTP speculative decoding, multi-model routing, and native tools [81, 112, 114].
Whenever a model fits cleanly in VRAM, warm single-stream decode across Ollama, LM Studio, and raw llama.cpp sits within 10% [117]. Key workflow differences:
- LM Studio (with
llmster): Adds a true headless systemd daemon with continuous batching, unified KV caching, stateful/v1/chat, and MCP integration (proprietary license) [81]. - Ollama: MIT-licensed with strong automatic layer splitting when overflowing small GPUs (43.6 vs. 27.8 tok/s over LM Studio on an 8 GB laptop GPU), but silently caps default context to 4K under 24 GB VRAM unless
OLLAMA_CONTEXT_LENGTHis explicitly raised [81]. - KoboldCpp: Single-binary creative writing / SillyTavern engine with context shifting and dual KoboldAI/OpenAI APIs [114].
2. Tiered GPU + RAM + NVMe MoE Offloading Engines
Section titled “2. Tiered GPU + RAM + NVMe MoE Offloading Engines”Because frontier MoEs activate only 3–6% of weights per token (e.g., Qwen3.8-Flash-Next activates 10 of 24,576 expert modules per step), hierarchical runtimes treat VRAM → Host RAM → NVMe SSD as an explicit three-tier cache [3]:
- Magnitude (Rust, Apache 2.0): Autotunes chip-specific kernels (TileLang/TVM forks) across CUDA/Metal/Vulkan/CPU; streams cold experts from NVMe via direct uncached read-only I/O (zero flash wear) with 1-click coding agent integrations. Caveat: Vendor 41–54 tok/s claims (2-bit + spec dec) lack independent reproduction, and abrupt topic switches cause SSD cache-miss storms [3, 111].
- Strata (C++20 + Custom CUDA, & RustingStrata): Zero-Python engine for 125B+ MoEs using GGML/GSQ-RCO quants, persistent AVX-512/AVX2 CPU expert fallback, optional NVMe tiering (“Xolotl Direct”), Hadamard 4-bit RAM KV caching (128K on 64 GB RAM), and MTP speculation (82–88 tok/s comparative RAM-expert offload). Caveat: Recent Inkling 2 Mini patches regressed RTX 30/40 series speed—use RustingStrata on older NVIDIA cards [8, 61].
- ik_llama.cpp: SOTA proving ground featuring IQK trellis/ternary quants, FlashMLA, fused Gated DeltaNet, dynamic MoE caching, and BitNet—supports CPU and NVIDIA CUDA only (no ROCm/Vulkan/Metal; avoid Unsloth
_XLFP16 GGUFs) [60]. - KTransformers (Apache 2.0): Expanded to AMD ROCm, Intel Arc, and Ascend NPUs; integrated as a backend library inside SGLang [124].
- Colibri / FreeToken / Janas-LLM: Emerging C/desktop 3-tier MoE engines bringing 80B–284B models to consumer laptops and desktops [7, 125, 126].
3. Production, Platform-Native, Rust, Compiler, and Browser Runtimes
Section titled “3. Production, Platform-Native, Rust, Compiler, and Browser Runtimes”- vLLM (V1 Engine, PyTorch Foundation): Neutral-governance multi-user default with PagedAttention, prefix caching, day-0 frontier models, and bundled Humming kernels [128].
- SGLang (RadixArk, Apache 2.0): Leads branching agent trees via RadixAttention KV reuse and KTransformers offload [124, 128].
- TensorRT-LLM v1.0+: PyTorch default backend ending mandatory AOT builds; compiled paths still lead vLLM by +8–16% at 100 concurrent requests (NVIDIA-only) [128, 132].
- ExLlamaV3 + TabbyAPI: Top single-user NVIDIA quality-per-bit (EXL3 trellis) and 2.5x prefill vs. llama.cpp [46, 55].
- MLX / mlx-lm / oMLX: Leading Apple Silicon speeds (108 tok/s Qwen3.8-Flash-Next on M5 Ultra); use oMLX for continuous batching and SSD/RAM KV caching [41, 131].
- Hallogen (AMD) / TensorFold (GB10): Platform-locked optimizers proving baseline llama.cpp leaves 2x+ speed untapped on unified desktops [85].
- mistral.rs: Zero-Python Rust engine with PagedAttention, In-Situ Quantization (ISQ), and built-in MCP/shell tools [57, 72].
- WebLLM / LlamaWeb / Transformers.js v4: Zero-install browser WebGPU inference (Microsoft Research’s LlamaWeb runs 177K GGUFs at -49% peak RAM and +54% decode vs. WebLLM) [18, 142].
- Legacy / Deprecated: Hugging Face TGI is in maintenance mode; ZLUDA lost commercial backing and returned to hobby status—use native ROCm 10.1 or Vulkan on AMD [145, 146].
4. Kernel Libraries, Attention, KV Fabrics, and Speculative Decoding
Section titled “4. Kernel Libraries, Attention, KV Fabrics, and Speculative Decoding”- Quantized GEMM (Marlin → Machete → Humming → Helion): Ant Group & vLLM’s open-source Humming (~500 KB JIT wheel, bundled in vLLM v0.29.0+) supports arbitrary sub-8-bit weights (1–7 bit, MXFP4, NVFP4) across Dense and MoE layers from Turing through Blackwell and Rubin [5, 71].
- FlashAttention-4 (FA4) Consumer Blackwell Caveat: Written in Python-embedded CuTe-DSL, FA4 hits 1,613 TFLOPs/s BF16 on B200 (and Meta’s LP-FA4 reaches 2.85 PF/s MXFP8), but requires datacenter Blackwell SM100/103 TMEM—consumer/workstation Blackwell cards (RTX 5090, RTX PRO 6000, SM120) run FlashAttention-2 [155, 157, 160].
- KV Data Planes & Rotated Compression: LMCache shares KV pages across VRAM/RAM/NVMe/nodes for vLLM and SGLang; tqLLM / llama-cpp-turboquant brings Walsh-Hadamard rotated KV compression to single-GPU local users [84, 130].
- Speculative Decoding (EAGLE-3 → Native MTP → DFlash / XPress): Co-trained Native MTP delivers 1.4–2.2x lossless llama.cpp speedups for 0.35–2 GB extra VRAM (higher mean acceptance length than EAGLE-3: 2.81 vs. 2.25), while parallel block-diffusion DFlash / XPress eliminates sequential drafting idle valleys (+57% over EAGLE-3; >15x on DGX B300) [6, 162].
- GPU Kernel DSLs: Hand-written CUDA C++ is steadily yielding to Triton, CuTe-DSL, TileLang, and ThunderKittens / HipKittens; beware correctness-only AI kernel benchmarks that pass slow memory-serialized reductions [120, 165].