b70-optimization-lab

2026-06-23T2217 - MTP CPU Cleanup Record

Goal: reduce exact CPU overhead in the fresh-response Gemma 4 26B A4B Q8 draft-MTP lane without changing model precision, draft source, sampler quality, or validity rules.

Patch

Patch artifact:

The patch file is the full current llama.cpp source diff from upstream c926ad098, because the local tree already includes the promoted fast-top-k, profiling, and verifier helper stack. The new incremental CPU-cleanup delta in this experiment is:

No source-level quality shortcut is introduced. The target model still verifies the draft-MTP proposal.

Fresh-Response Validity

This is a valid fresh-response draft-MTP result:

Runs

Smoke:

Full promotion run:

Decision

Promote as the current fresh-response one-B70 Q8 record. It supersedes the previous LocalMaxxing-approved fast-top-k record cmqqsecuk01azqo018ahv0i1s (91.61894213332073 tok/s).

Next fresh-valid stack to test: combine this CPU-cleanup patch with the prior near-best runtime knobs GGML_SYCL_ENABLE_VMM=0, UBATCH_SIZE=512, and POLL=100.