Skip to content

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.

Primary workload
Primary engine stack
ExLlamaV3 + TabbyAPI
Alt: llama.cpp v1.0 (15-21% faster decode on size-matched GGUFs; broader architecture support)
Quantization & KV cache
EXL3 (4.0-5.0 bpw) or Unsloth Dynamic UD-Q4_K_XL / GSQ-RCO IQ3_S (16 GB fit)
KV: Q8_0 (ExLlamaV3/llama.cpp) or K8V4 above 32K context
Kernel & speculative path
FlashAttention-2 (SM120) + Native MTP Speculative Decoding (1.4-2.2x lossless speedup for ~0.5-2 GB extra VRAM)
Hardware / engine watch-out: Consumer Blackwell (SM120: RTX 5090/5070 Ti/5060 Ti, RTX PRO 6000) lacks datacenter TMEM and runs FlashAttention-2 only — FlashAttention-4 requires B200/B300 (SM100/103). Single-user BS=1 NVFP4 gains are small (+2-10%) compared to MTP.
llama-server -m Qwen3.8-27B-UD-Q4_K_XL.gguf -ngl 99 -c 32768 -fa on -ctk q8_0 -ctv q4_0 --port 8080

Three-tier MoE offloading architecture (VRAM → Host RAM → NVMe SSD)

Tier 1 · GPU VRAM (Pinned Attention + Hot Experts + Active KV)Shared layers & router · Hot expert cache · Fast active KV▲ Lookahead prefetch over PCIeTier 2 · Host System RAM (Warm Pool + CPU SIMD Fallback)Warm experts · Long-context KV · AVX-512 concurrent fallback▲ Direct uncached read-only I/O (zero flash wear)Tier 3 · NVMe SSD (Cold Experts · ≥95.9–97.8% Cache Hit Target)Overlapped ExecutionLayer N GPU ComputeLayer N+1 Expert PrefetchTopic switches trigger temporary cache-miss stalls

MoE offloading throughput by engine (tokens / sec)

Strata (expert streaming, comparative) (community)82–88 tok/s
llama.cpp (experts in RAM, comparative) (community)63–64 tok/s
Magnitude (RTX 3090 + 64 GB RAM + Gen4 SSD) (vendor)41 tok/s
vLLM (pinned RAM, comparative) (community)20.1 tok/s
Ordinary naive layer offload baseline (community)0.16 tok/s

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.

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_LENGTH is 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 _XL FP16 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].