llama.cpp PR Boosts Q2_0 CPU Decoding by 3x, 8B Hits 8.20 tok/s
BTA_Labs · reddit · 2026-08-07
A new llama.cpp PR (#26348) introduces an x86 VNNI implementation for the Q20 × Q80 dot product, achieving a massive 3.0x to 3.6x throughput improvement on x86 CPUs.
- Setup: Benchmarks were performed on an AMD EPYC 9645 (8 cores) with GPU and BLAS disabled, using Bonsai GGUF models.
- Performance Leap: 8B model decode speed jumps from 2.39 to 8.20 tok/s; the 1.7B model sees a 3.26x speedup.
- Consumer Hardware Potential: The reference implementation revealed that Intel 12th-14th Gen desktop CPUs (e.g., i5-13400) were silently missing the fast path due to fused off AVX-512. Fixing this yields a similar 3.2x boost.
- Caveats: The PR is currently open, the optimization is specific to Q20 quantization, and there are tiny numerical differences at the kernel level due to fused multiply-add behavior.
More from Infra
- Chess Transformer hits 2545 Elo after 260x training speedup — realSharonZhou · 2026-11-30
- Tokens/sec alone is misleading: quantized LLM speed hides quality costs — OrganizationAgile361 · 2026-11-30
- Samsung's new memory chief warns record quarters don't mean competitiveness is back — tengyanAI · 2026-11-30
- Which free local AI model to download for your GPU, from 6GB to 24GB VRAM — alex_verem · 2026-11-30
- tqLLM 1.9.0: C++ LLM engine claims 4.6x Strata on 16GB, adds AMD RX 580 support — pmttyji · 2026-11-30
- oMLX 0.8.4 doubles Inkling 2 Mini decode speed on Mac, adds concurrent MTP — pcuenq · 2026-11-30