Expert-lookahead delivers 10%+ speedup for MoE inference on low-memory Macs

carloslfu · reddit · 2026-09-15

Developer carloslfu implemented expert-lookahead for MoE models running via expert-offloading/SSD-streaming (slotstream) on low-memory Macs, gaining 10%+ performance on top of prior optimizations in Qwen 3.8 flash.

The initial idea was training a small model to predict experts N layers ahead; experiments showed the model itself is the best predictor. The final setup uses N=2: while current computation runs, slotstream runs the router 2 layers ahead on the current hidden state to prefetch the next experts into memory.

A small correction model trained on top adds another 3-4%. Docs are open-sourced in the slotstream GitHub repo.

Original post →

More from Infra

Infra channel →