Typing-time speculation cuts local MoE model first-token delay from 412 to 114 ms
The author describes typing-time speculation, in which a local language model starts work while the user is still typing instead of waiting for Enter. The approach was tested on a sparse MoE[1] model, Qwen3.8-FN-Uncensored-NVFP4-DQ6_K.basalt, with 48 layers and 512 routed experts per layer, on a 32 GB RTX 5090, a 16 GB RTX 5060 Ti and a dual-GPU machine.
The speculation covers the prompt prefix state, expert placement in VRAM[2], and a read-only tool cache, and it works alongside token-level speculative decoding[3]. The final stack uses 2,055 J per turn, against 1,443 J per turn for the baseline. Preemption fixes cut the total engine wait for a 7,167-token prompt from 3,504 to 202 ms, and event-driven HTTP hang-ups removed a 500 ms polling delay. Fork-safe checkpoints lowered the worst paste TTFT[4] from 2,286 to 341 ms.
Over 84 turns per configuration, median TTFT fell from 518 to 215 ms with the first method (S1) and to 122 ms with the S123 stack. The author also reports three empirical laws about expert placement, for example that reading a 1.3k–3.3k-token file activates 72–87% of the 24,576 experts.
Read the original kemerd.github.ioDiscussion
Sources
-
kemerd.github.io
Why Wait For Enter? Typing-Time Speculation for MoEs: 3.6× Lower TTFT (412→114 ms) & +74% Opening Speed (166→288 tok/s)


