Offloading only "hot" MoE experts to VRAM boosts llama.cpp throughput 50%
nbvehrfr · reddit · 2026-08-29
A developer forked llama.cpp with a twist: when a MoE model doesn't fit entirely in VRAM (here Qwen 3.8 Flash Next), instead of offloading whole layers, only the "hot" experts go to VRAM—raising throughput from 20 t/s to 30 t/s (+50%).
Key observation: certain groups of experts stay relatively stable across coding, refactoring and code-review workloads, making them worth pinning. PR: github.com/timadinorth/llama.cpp/pull/1.
Caveats: tested only on coding workloads, and only useful when the full model exceeds VRAM. The author doubts upstream will accept it—the low-level implementation was written by Opus, and he doesn't feel like defending every line.
More from Infra
- Which free local AI model to download for your GPU, from 6GB to 24GB VRAM — alex_verem · 2026-11-30
- tqLLM 1.9.0: C++ LLM engine claims 4.6x Strata on 16GB, adds AMD RX 580 support — pmttyji · 2026-11-30
- oMLX 0.8.4 doubles Inkling 2 Mini decode speed on Mac, adds concurrent MTP — pcuenq · 2026-11-30
- Tencent issues $5.4B notes as AI costs turn cash flow negative; AMD closes World Labs deal with Fei-Fei Li — YvesMulkers · 2026-11-30
- Banks in Europe and Asia plan higher spending on local data storage to cut US cloud reliance — AIFlow_ML · 2026-11-30
- Air New Zealand to offer free Starlink Wi-Fi across entire fleet by end of 2028 — elonmusk · 2026-11-30