OpenFlowLM-Next icon indicating copy to clipboard operation
OpenFlowLM-Next copied to clipboard

Dense models have no batched prefill route — only the 35B got one

Open Cyronius opened this issue 2 months ago • 0 comments

#89 gave the 35B (Qwen3.6-MoE) a batched prefill route: instead of dispatching attention and every projection one token at a time, a whole 256-token block goes through in a handful of dispatches. The seven other dense families (Qwen3, Llama 3, Granite, Phi-3, ...) never got the same treatment — the C++ engine has actually supported a dense version of this route for a while, but the recipe that builds a model's kernel set never emitted it, so dense prefill has stayed fully sequential.

Measured on Qwen3-4B, a 981-token prompt, paired against the closed engine on one box:

closed open (sequential) gap
time to first token 1.98 s 64.55 s 32.8x

Filing this so the gap is recorded and tracked separately from the power-mode measurement issue (#94).

Cyronius avatar Sep 18 '26 18:09 Cyronius