Repository navigation
llama-modchip v3.2.5 — AVX2/AVX-VNNI Batched 1x2/1x3/1x4/1x8 Dot Kernels (1.42x-4.23x), Q1_0 UBSan Fix & Portable GLIBC<=2.30 Binaries
v3.2.5 — AVX2 & AVX-VNNI Batched 1×2/1×3/1×4/1×8 Speculative & Prefill Dot Kernels (Q1_0, Q2_0, Q8_0, MXFP4, IQ4_NL, FRACTAL_64, VQ3_64), Q1_0 UBSan Fix & Portable GLIBC<=2.30 Binaries
Release Date: December 2026
Highlights:
- True AVX2 / AVX-VNNI Batched
1×2,1×3,1×4,1×8Quantized Dot Kernels (arch/x86/quants.c,ggml-cpu/quants.c):- Previously,
ggml_get_vec_dot_multidispatched1×2/1×3/1×4/1×8batched matrix-vector kernels duringRouteCrack 2.0/draft-mtpspeculative verification and prompt prefill, but on non-AVX-512 AVX2 CPUs (Zen 1–3, Skylake, Alder/Raptor/Meteor Lake) all 7 quantized formats (Q1_0,Q2_0,Q8_0,MXFP4,IQ4_NL,FRACTAL_64,VQ3_64) silently fell back to a serialfor (int k = 0; k < K; ++k)loop that re-read and re-unpacked weights4×–8×per step. - Adds zero-spill single-load AVX2 (and optional
-mavxvnnivpdpbusd)1×Kbatched kernels for all 7 formats (splitting1×8into two register-clean1×4passes with zero aligned SIMD loads for strict Windows PE/COFF safety), leaving all AVX-512 paths 100% untouched. - Verified AVX2 Speedups & Numerical Accuracy (
-mavx2 -mfma -mf16c -mno-avx512f,M=2048 × K=4096,5,712/5,712stress checks +3,059/3,059MUL_MAT+1,420/1,420MUL_MAT_IDPASS):VQ3_64:4.23×(N=4) /3.83×(N=8)FRACTAL_64:1.93×(N=4) /1.85×(N=8)Q8_0:1.87×(N=4) /1.24×(N=8)IQ4_NL:1.64×(N=4) /1.39×(N=8)MXFP4:1.54×(N=4) /1.35×(N=8)Q2_0:1.42×(N=4) /1.45×(N=8)Q1_0:1.17×(N=4) /1.19×(N=8)- (L3-resident microbenchmark; DRAM-streaming 32 GB / 64 GB MoE workloads benefit even further from
4×fewer weight reads during speculative verify & prefill.)
- Previously,
Q1_0AVX2 Unaligned Pointer UBSan Fix (arch/x86/quants.c):- Replaces misaligned
(const uint32_t *) x[ib].qscasts inggml_vec_dot_q1_0_q8_0(block_q1_0is 18 bytes -> 2-byte aligned) withmemcpy, achieving 0 errors under-fsanitize=address,undefined -fno-sanitize-recover=all. - Zero GGUF checkpoint changes — all
v3.1.1/v3.2.4Fleet GGUF SHA-256s remain 100% identical.
- Replaces misaligned
- 12 Rebuilt Static-
libgompPortableGLIBC_2.30Linuxx86_64Binaries, Tarball & Patch (v3.2.5SHA256SUMS):- Built on
ubuntu:20.04(gcc-11/g++-11+ GNUgas 2.38,GLIBC <= 2.30, staticlibgomp.a+libstdc++.a+libgcc.a,0%zmmin-avx2,0vdpbf16psin-avx512,0dynamiclibgomp/libstdc++/libssldependencies; runtimeAVX-VNNIInkling-2 FMV active inside-avx2):9c1e8815f71dc673bece491fa836191bb02d6f3420b372dceed995b975145760 llama-modchip-v3.2.patch0bdd029b230539c49810ef330e44d8d9e3d294f0e7dad8ddff7122d7ca0dba70 llama-server-modchip-linux-x86_64-avx512b3e020b79c90b6e74a0cbbf5139328b0f3c6846f4df9dc87b2b02b0d254e04a0 llama-server-modchip-linux-x86_64-avx2(andllama-server-modchip-linux-x86_64)9b8882d9a2d06eb63c677f3134f1d867dda40868cf2ac9632cff5491f2b4d5b9 llama-cli-modchip-linux-x86_64-avx5126f2cefe4ebde0a17f48f4806f78864199234b16bce058f0d940a8de8936562ed llama-cli-modchip-linux-x86_64-avx2(andllama-cli-modchip-linux-x86_64)cc12a5c421524d3677f4d013efa1ca97dc77568889c951fd716e295554583b34 llama-bench-modchip-linux-x86_64-avx512b3f49ea43ce3160045d16a39f5c911f904deeae1bd55e5c5fac86f17746865fe llama-bench-modchip-linux-x86_64-avx2426ae9e60088c046a3176fb5adf1d7d2255c34caa56d101511ff4a341091328c llama-perplexity-modchip-linux-x86_64-avx51223fe1848171a3f987aebb724181ac60e30b20edcb3326f3569f801238f48b5d0 llama-perplexity-modchip-linux-x86_64-avx2e252d4b064ed55d9f0c216b36942955461bd7e183365fa8a4ab37c98a6d553da llama-quantize-modchip-linux-x86_64-avx512d24d290280a2bfcae02ae8823f90b3d4c941ce3d85c4e3362e5f7e08f7169704 llama-quantize-modchip-linux-x86_64-avx275d7517bab912b4af4554507fe647878c581cf0805101c154c637654c8c6eba7 llama-modchip-v3.2.5-linux-x86_64.tar.gz
- Built on