ik_llama.cpp PR adds AVX2/VNNI kernels for Q2_0_R8, +45% prompt processing on CPU

Any_Bus9205 · reddit · 2026-11-01

PR #2785 in ikllama.cpp adds Q20R8, an 8-row repacked layout for Q20 tensors (2.25 bpw) with dedicated AVX2/AVX-VNNI kernels (dpbusd/maddubs), plus fixes for odd block counts in legacy Q20. It targets recent GSQ/RCO low-bit releases (e.g. ISTA-DASLab collections) and ternary-weight models.

Benchmarks (i5-13420H, Ternary-Bonsai-2-4B Q20):

Two workflows: run existing Q20 GGUFs with the -rtr flag for dynamic in-memory repacking at startup, or pre-convert with llama-quantize --repack into a Q20R8 file. The PR includes full build and test commands.

Original post →

More from Infra

Infra channel →