Repository navigation
llama-modchip v3.2.1 — 16×8 VNNI Panel GEMM & Inkling-2-Mini AVX-512 Fusion (+144.6% Prefill / +27.8%–33.4% Decode)
Release v3.2.1 — 16×8 VNNI Panel GEMM & Bounded-Error Inkling-2-Mini AVX-512 Fusion (+144.6% Prefill / +27.8%–+33.4% Decode), Non-Temporal mul_mat Streaming, & 11.3× Batched HARP-Cache Acceleration
Release Date: November 2026
Highlights
- 16×8 A-Packed Broadcast-B VNNI Panel GEMM (
MODCHIP_GEMM_TILE=1) & Bounded-Error (<1 ULP)Inkling-2-MiniAVX-512 Graph Fusion (src/llama-inkling2-fused.h,src/models/inkling2.cpp,ggml/src/ggml-cpu/arch/x86/quants.c,MODCHIP_INK2_FUSE=1, default ON):- 16-Row On-the-Fly A-Packed +
{1to16}Broadcast-B ILP-8 VNNI Panel GEMM (ggml_gemm_panel_{iq4_nl,mxfp4,q8_0}_q8_0,MODCHIP_GEMM_TILE=1default ON): L1d-resident blocking (KB=12, JB=64,38 KBstack, zero register spills, zero AVX-512DQ instructions, unlimitedK % 32 == 0), verified to<= 5.4e-7max relative error against exact FP64 across 4.1M independent stress checks, plus AVX-512 VNNI1x{8,4,3,2}IQ4_NLdot kernels. - 12-Bit
Inkling-2/Inkling-2-MiniGraph Fusion (MODCHIP_INK2_FUSE_MASK=0xEFFdefault ON; standalonenorm_rmsbit 8 opt-in via0xFFF): Collapses~4,300+per-token cross-CCD threadpool barriers and intermediate DRAM passes across fused SiTU (0x001), L2 row clip + scale + log-tau (0x002), depth-attentionmix()(0x004), shortconv + 4-lag dynamic taps (0x008), loop control (0x010/ AVX-512F0x200), relative-bias gather (0x020), gated attention (0x040), final logit softcap + unpad (0x080), fused N=1 multi-outputQ8_0attention +lm_headGEMV (0x400), and fused N=1IQ4_NL/MXFP4MoE pipeline (0x800,GGML_TYPE_I32route_pack). - Cross-Platform & Repack Safety: Runtime AVX-512F/BW/DQ/VNNI/F16C/FMA dispatch (
__builtin_cpu_supports+<cpuid.h>F16C check for GCC 10+ compatibility) with clean scalar fallback and compile-time-DMODCHIP_INK2_DISABLE_AVX512isolation (0%zmmin-avx2). Strictmodchip_ink2::tensor_is_plain_cpu()(extra == nullptr && ggml_backend_buft_is_host()) gates all raw-block fused ops soCPU_REPACK(LLAMA_REPACK_MOE=1), AMX, Metal, CUDA, and Vulkan offloaded tensors fall back cleanly with zero sync stalls. Optional L3/CCD-interleaved physical-core pinning (MODCHIP_PIN_CORES=1,pthread_once, glibc Linux__gnu_linux__only; silent no-op on musl/Android/macOS/Windows; on musl Alpine builds setOMP_STACKSIZE >= 256K). - Verified Zen 5 CPU Speedup & WikiText-2 Parity (published portable
v3.2.1binaryllama-bench-modchip-linux-x86_64-avx512,Inkling-2-Mini-Monza-RS-v3-Ultimate.gguf14.34 GiB,Ryzen 9 9955HX,-p 512 -n 128 -r 3 -t 16 -ngl 0 -fa 1):227.43 tok/sprefill (+144.6%,2.45×) and13.29 tok/sdecode (+27.8%) with defaultMODCHIP_INK2_FUSE=1 LLAMA_NT_STREAM_MM=1 MODCHIP_GEMM_TILE=1vs. same-binary unfusedFUSE=0 NTA=0 TILE=0(92.98 / 10.40 tok/s;+146.7%/+24.8%vs.FUSE=0 NTA=1 TILE=092.19 / 10.65 tok/s), reaching13.87 tok/s(+33.4%,94.4%of DDR5 bandwidth ceiling) at-t 8 -lm nonewithMODCHIP_PIN_CORES=1(13.80 tok/smmap;10.57 tok/satd=8192-t 16). Measured WikiText-2 parity:PP512(5,120 tok)Mean KLD = 0.00183(99.96%log-PPL corr,98.08%top-1); 50-chunkN=1decode (3,200 tok)ΔPPL = +0.003%(Mean KLD = 0.00266,97.10%top-1, zero directional bias; bit 100x400and bit 70x080measure0.00000KLD /100.00%top-1).
- 16-Row On-the-Fly A-Packed +
- Non-Temporal Decode Streaming for Large
mul_matMatrices (ggml/src/ggml-cpu/ggml-cpu.c,ggml/src/ggml-cpu/arch/x86/quants.c,LLAMA_NT_STREAM_MM=1):- Enables non-temporal (
_MM_HINT_NTA) weight streaming on decode (nr1 <= 4) for large weight matrices (>= 4 MiB, e.g.,lm_headand largeQ8_0attention projections) gated uniformly across all quantized dot kernels (ggml_cpu_nt_stream_active) soLLAMA_NT_STREAM_MM=0cleanly disables NTA across all quants and multi-token prefill (nr1 > 4) never suffers cache eviction, and widensnr0 >= 32768decode chunking tochunk_size = 512. - Updated unified
patches/llama-modchip-v3.2.patchcleanly ontoggml-org/llama.cpp @ 46eb1742d(b12604,SHA256 = 23b45516877cb0e7acb87e6b9c1586e5d5b7e0b1e4b103ffa558c3fd36fa02c8) — verified 156/156test-llama-archsPASS (includinginkling2&inkling2_loop) and 1,488/1,488test-backend-ops(MUL_MAT,MUL_MAT_ID,GET_ROWS,CPY) PASS on both-avx2and-avx512.
- Enables non-temporal (
- Community Runtime, KV-Cache & Gateway Hardening (PRs
#51,#53–#61):11.3×Faster Python HARP-Cache Hashing & O(1) Radix Eviction (kv_cache/fnv_accel.py,kv_cache/harp_cache.py, PRs#56,#59,#61): Native + batched FNV-1a hashing, O(1) radix tree parent tracking, direct LRU scanning, struct packing, full radix-depth collision eviction, and anonymous fallbackclose()guard (#51).- Vectorized EAKV Quantizer (
kv_cache/eakv_quantizer.py, PR#55): Vectorized RoPE rotation, batchedQ4_0quantization, and LUT unpacking. - Gateway, Readiness, Speculative & Apple Silicon Polish (PRs
#53,#54,#57,#58,#60): Distinct content-block indices for native thinking in SSE gateway (#58), accurate macOSvm_statavailable memory (#54), C++17 strict-fail RouteCrack build (#60), and graceful offline error handling inscripts/chat.py&apple-silicon/tools (#53,#57). - Zero GGUF checkpoint changes — all
v3.0/v3.1.1/v3.2.0GGUF SHA-256s remain 100% identical.
- 12 Rebuilt Static-
libgompPortableGLIBC_2.30Linuxx86_64Binaries, Tarball & Patch (v3.2.1SHA256SUMS):- Built on
ubuntu:20.04(gcc-10/g++-10,GLIBC <= 2.30, staticlibgomp.a+libstdc++.a+libgcc.a,0%zmmin-avx2,0vdpbf16psin-avx512,0dynamiclibgomp/libstdc++/libssldependencies):23b45516877cb0e7acb87e6b9c1586e5d5b7e0b1e4b103ffa558c3fd36fa02c8 llama-modchip-v3.2.patch6cc390594f9906b18866eb0d3af534fcb2d3fa486d8b7193aa93597c703886c7 llama-server-modchip-linux-x86_64-avx512d4416540f0e7fa50c42048e2ff072b37d85593c3e4bb54cf534a8024f330905b llama-server-modchip-linux-x86_64-avx2(andllama-server-modchip-linux-x86_64)011ff32668f891fd14334cfdd47bf574592c062a4f6ec6ce05ac49d9af255cea llama-cli-modchip-linux-x86_64-avx51285838adb22a95c4f8e645a37b8567889e4cb9c4744c2ebbb2cfd686c66e6f249 llama-cli-modchip-linux-x86_64-avx2(andllama-cli-modchip-linux-x86_64)4b923d9a4d7ad804154a890d101255985096abd1c360b7fe430239c068a09588 llama-bench-modchip-linux-x86_64-avx512e0cc573b2cd9cf333d1105edf21b926994cd18d3a60f7985cde0a45df8c5df7f llama-bench-modchip-linux-x86_64-avx2e9b676c7d8012b3831dfef43cf883e94a2788d5ffdd8606f87c09b12fb677f41 llama-perplexity-modchip-linux-x86_64-avx512397f95e83ced02d864804e4993c666a45ccc640b35c5b99c44ed4dd758ee85aa llama-perplexity-modchip-linux-x86_64-avx269fc09f1948c0057c9cc86ff3fd74e80cf9876fe8b19d6f97113e7957ce65573 llama-quantize-modchip-linux-x86_64-avx51246836e4fd1cb54ab581f6429be77735695dc63dfe15a16d65f4f276a19f767ec llama-quantize-modchip-linux-x86_64-avx29403629e54b9134cb3f9784ba77a47b8bb5da81565e8e236e8836e2892477022 llama-modchip-v3.2.1-linux-x86_64.tar.gz
- Built on
Featured Model: Inkling-2-Mini Monza-RS v3
Built cleanly from Thinking Machines Lab's thinkingmachines/Inkling-2-Mini (Apache 2.0): Inkling-2-Mini-Monza-RS-v3-Ultimate.gguf (15,398,405,888 B = 14.341 GiB / 15.40 GB, 100% standard upstream llama.cpp b12604+ GGUF, SHA-256 = 5f1df36927b56d761ede5359c1212d8443cee8330269062c0a0a3c96ed616038) is the checkpoint used for the Zen 5 +144.6% prefill / +27.8% decode (+33.4% at -t 8 pinned) figures above.
1-Command Install (SHA-256 verified): ./modchip setup --preset monza && ./modchip chat
Full model card, 102k-token KLD decomposition, paired McNemar / Holm-Bonferroni / uncapped parity scorecard, SHA256SUMS, and ./reproduce_monza_v3_ultimate.sh live on Hugging Face: Synchopate/Inkling-2-Mini-Monza-RS-v3-GGUF