llama.cpp b4587 released — new IQ quant family
llama.cpp b4587 — release notes
The b4587 build lands a refreshed IQ quant family along with a batch of performance work. Highlights:
- New
IQ4_XSandIQ5_Kmatrices with improved importance-matrix weighting - Flash attention now enabled by default on CUDA and Metal
- KV cache quantization promoted to stable:
--cache-type-k q8_0 --cache-type-v q8_0 - ~12% faster prompt processing on Turing and Ampere cards
# build from source
cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release -j
Prebuilt binaries are up, and the full changelog is on the releases page.
Ran the perplexity suite overnight on my M2 Ultra — here's Llama 3.1 70B across the new family vs the old favourites:
quant size PPL (wikitext-2)
Q4_K_M 42.5 GB 6.841
IQ4_XS 39.1 GB 6.858
IQ5_K 47.3 GB 6.712
Q5_K_M 48.7 GB 6.705
IQ4_XS is within 0.02 PPL of Q4_K_M while saving 3.4GB — that's a whole extra 8B model worth of headroom. Impressive work as always from the team.
Quick question before I re-quantize my whole collection: do the new IQ quants require a fresh imatrix, or can I reuse the ones I generated for b4xxx-era builds? And are older GGUF files still loading fine?
Old GGUFs keep working — the format is backwards compatible as always. But for the IQ family specifically you really want an imatrix computed with the new calibration data:
./llama-imatrix -m model-f16.gguf -f calibration_datascience.txt -o model.imatrix
./llama-quantize --imatrix model.imatrix model-f16.gguf model-IQ4_XS.gguf IQ4_XS
Reusing an old imatrix "works" but you leave 1–2% quality on the table. Worth the hour of compute.