Prefetching MoE experts 2 layers ahead boosts V100 decode speed 29.9%

WaroftanksPro · reddit · 2026-11-29

A redditor patched llama.cpp to run Inkling 2 Mini at native NVFP4/MXFP8 precision on a single 16GB V100, keeping 10.32 GiB of expert weights in system RAM. A small predictor guesses which 8 of 128 experts each MoE layer will need two layers ahead (81% accuracy, 6.48/8 average hits), letting the GPU copy weights over PCIe while computing intervening layers. Decode went from 6.31 to 8.20 tok/s (+29.9%) on identical 2,915 reference tokens with 128K context and short prompts. The scheme is lossy: missed experts are only fetched if their router weight exceeds 20%. Quality impact was minimal — the lossy mode solved 32/50 tasks vs 31/50 for default Inkling, KL divergence only 0.00802. Author stresses this is an inference experiment, not an optimized upper bound, and credits jalenluorion's SSD-based version for inspiration. Code is open source on GitHub.

Original post →

More from Infra

Infra channel →