The decoder now runs decode and prefill through one chunked forward pass. Prefill feeds up to 64 tokens
at once: each weight row is read once per chunk and used against every token, MoE tokens are grouped
by expert, and attention runs as a pool region with one work item per (token, KV head). The result is
bit for bit what feeding the tokens one at a time gives (tests: every chunk size, 1 and 3 threads, and
resuming after an earlier prefix). The KV cache sits behind a read-write lock per layer so pool threads
can read it.
cpu-sys gains experimental tile kernels (1-4 MXFP4 or Q8_0 rows against 1-4 activations in the q8r
layout) at the portable, AVX2 and AVX-VNNI levels, with tests that every tile shape equals the 1x1 tile
bit for bit and stays within the float tolerance of the portable reference. They are not wired into the
decoder: in bench_tiles the 4x4 tile is 1.3-1.5x the one-row kernel for 8 activations, and slower for one
activation, where the one-row kernel already reads 31 of about 36 GB/s.
Measured on gpt-oss-20b, 10 threads, 256 synthetic tokens: prefill 51 ms per token (19.6 tokens/s) at
chunk 64, 13 tokens/s per token at chunk 1; decode unchanged (85-92 ms per token, same tokens and log-probs).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>