Skip to content

llama-modchip v3.2.3 — Non-AVX-512 x86 Acceleration (Inkling-2 AVX2/AVX-VNNI Fusion, 8x4 VNNI GEMM, SIMD Helpers)

Latest

Choose a tag to compare

@synchopate synchopate released this 01 Dec 18:03
· 6 commits to main since this release

llama-modchip v3.2.3 — Non-AVX-512 x86 Acceleration (Inkling-2 AVX2/AVX-VNNI Runtime Fusion, AVX-VNNI 8×4 Panel GEMM, Generic AVX-512/AVX2 SIMD Helpers), Nix Flake & CLI Fixes

What's New

  1. Runtime-Dispatched AVX2+FMA+F16C & AVX-VNNI Fusion for Inkling-2-Mini (PR #68 by @aldonation-gif)
    • Adds runtime CPUID-dispatched AVX2+FMA+F16C and AVX-VNNI (target("avx2,avxvnni,f16c,fma")) fallbacks across all 15 fused Inkling-2 operators while keeping AVX-512 ZMM priority 100% untouched.
    • nt_stream_enabled() preserves the 1 default on AVX-512 and defaults off on smaller-L3 non-AVX-512 CPUs unless LLAMA_NT_STREAM_MM is explicitly set.
    • Active out of the box inside our portable v3.2.3 -avx2 release binaries (gcc-11/g++-11 + GNU gas 2.38 on ubuntu:20.04, GLIBC <= 2.30, static libstdc++/libgcc/libgomp, 0 %zmm instructions, 52 runtime-dispatched VEX vpdpbusd instructions).
  2. Non-AVX-512 AVX2 + AVX-VNNI 8×4 Panel GEMM & vec_dot Fast Paths (PR #66 by @aldonation-gif)
    • Adds cache-tuned 8×4 YMM panel GEMM (IQ4_NL, MXFP4, Q8_0) and AVX-VNNI vec_dot fast paths (Q4_0, Q4_1, MXFP4, IQ4_NL) for native builds on non-AVX-512 AVX-VNNI CPUs (e.g., Intel Alder Lake / Raptor Lake), guarded with !defined(__AVX512F__) so Zen 5 / Sapphire Rapids remain untouched on 16×8 AVX-512.
  3. Generic CPU SIMD Helpers (PR #67 by @aldonation-gif)
    • Adds 16-wide AVX-512 + 8-wide AVX2 ggml_vec_mul_f32, FP64-accumulated AVX2 rms_norm strictly behind AVX-512, and drops redundant _mm256_round_ps before _mm256_cvtps_epi32 in Q8 quantization.
  4. Community Tooling & CLI Fixes
    • Minimal flake.nix for x86_64 and aarch64 Linux (PR #52).
    • Fixed scripts/llama_modchip.py --print-cmd Inkling launch profile handling (PR #63).
    • Zero GGUF checkpoint changes — all v3.1.1/v3.2.2 Fleet GGUF SHA-256s remain identical.

Verification Matrix

  • test-quantize-fns (all 38 types incl. FRACTAL_64=44, VQ3_64=45): PASS (AVX-512, AVX2, AVX2+AVXVNNI)
  • test-backend-ops (RMS_NORM, MUL, MUL_MAT, MUL_MAT_ID): PASS (AVX-512, AVX2, AVX2+AVXVNNI)
  • test-llama-archs (156/156 incl. inkling2_loop 0.00e+00): PASS (AVX-512, AVX2 w/ runtime AVX-VNNI)
  • preflight_release_check.py --strict --run-cpp-tests (Multi-ISA ASan/UBSan + Paper PDF + OPSEC): 12/12 PASS (0 errors, 0 warnings)