Skip to content

llama-modchip v3.1.0 — RouteCrack 2.0 Unified Speculative Engine & 832B L1 Micro-Arbiter

Choose a tag to compare

@synchopate synchopate released this 19 Nov 15:25
· 33 commits to main since this release

Release Notes — llama-modchip (v3.1.0)

Quick Links: Overview (README.md) · LUT-VQ3-64 & MaxQ-v4 Quality Gate (benchmarks/QUALITY_GATE_VQ3_64.md) · Technical Architecture (ARCHITECTURE.md) · Windows Port & Hybrid Pack (windows/README.md) · Fractal-MoE Quality Gate (benchmarks/FRACTAL_MOE_QUALITY_GATE.md) · RouteCrack 2.0 Techniques (speculative/ROUTECRACK_TECHNIQUES.md) · Engineering FAQ (FAQ.md)


v3.1.0 — RouteCrack 2.0 (--spec-type routecrack2) Unified 3-Method Speculative Engine, 832 B RouteCrack 2.0 L1 Micro-Arbiter (AVX-512 / AVX2 / NEON), MoE-Bandwidth-Aware 284B Scaling, & Verified Wins Across All 3 Flagship Families

Release Date: November 2026
Highlights:

  1. RouteCrack 2.0 (--spec-type routecrack2) — Unification of All 3 Speculative Mechanisms (speculative/cpp/rc_routecrack2.h, speculative/cpp/rc_arbiter_l1.h, patches/llama-modchip-v3.1.patch):
    • Root Architectural Bottleneck Solved: On 1-layer NextN MTP models (Qwen3.8-Flash-Next blk.48, chain_heads == false), standard --spec-type draft-mtp (n_max = 3) executes 3 × ~15 ms sequential 248K lm_head passes feeding its own pending_h without target intermediate hidden states or symbolic suffix extension, and immediately halts fallback drafting (dp.drafting = false) — never invoking context n-gram or Zobrist TT drafters to extend [prompt..., id_last, mtp_t0] into [mtp_t0, d_1..d_4]. Conversely, on non-MTP models (DeepSeek-V4 284B & Nemotron-3.5 30B), uncalibrated multi-token tails can over-draft weak prose tokens or suffer single-occurrence prompt self-corroboration and JSON/prose mode-bleed.
    • Unified 3-Method Pipeline:
      1. Phase A — Sub-250ns Fast-Path Suffix Bypass: Queries an incremental O(1) Two-Zone 3-Gram Index (16,384-token Hot Zone + 24,576-token Prefix Zone with O(1) rollback undo) cross-checked against Stockfish TT refutations. When in-context consensus satisfies the L1 Micro-Arbiter's fastpath_q0_min gate, RouteCrack 2.0 drafts up to 5 tokens in < 250 ns, skipping the ~15 ms MTP 248K lm_head pass altogether.
      2. Phase B + C — Neural MTP / RCPredictor Anchor + Anchored Suffix & Stockfish-PVS Extension: When MTP is present (n_layer_nextn > 0), runs a single d = 0 NextN decode, arbitrates mtp_t0 against Stockfish tt6..tt3 + collision-free 28-bit Tagged Mode Refutation (JSON / Code / Prose session heat), and queries Two-Zone Suffix + Stockfish TT anchored on [prompt..., id_last, mtp_t0] to extend [d_1..d_4], keeping ctx_dft 100% KV-position-aligned across partial acceptances (180-step multi-turn ASan/UBSan invariant test PASS). When n_layer_nextn == 0 (Nemotron-30B & DeepSeek-V4 284B), fuses RCPredictor (8-level FNV-64 Hash Cascade + 300 hot rules + 11,382 macro chains + online 248K-safe RCTrie / PPM / Skipgram, requiring trie_obs >= 2 on prompt-warmed suffix candidates to prevent single-hit self-corroboration) with Two-Zone Suffix and Stockfish-PVS.
    • 832 B RouteCrack 2.0 L1 Micro-Arbiter (common/rc_arbiter_l1.h):
      • Compact [10 -> 16 -> 1] ClippedReLU network (sizeof(RC2L1ArbiterWeights) == 832 B = 13 cache lines, 100% L1d-resident) with unaligned AVX-512F (_mm512_loadu_ps), AVX2 + FMA (_mm256_loadu_ps), ARM64 NEON (vld1q_f32), and scalar execution (Windows PE/COFF .rdata safe), plus a NaN/Inf-guarded degree-5 Remez minimax fast_sigmoid (< 3e-6 error).
      • Ships three hardware-calibrated cost profiles selected automatically at model load:
        • kRC2DefaultArbiter (n_layer_nextn > 0, e.g., Qwen3.8 32GB/64GB): accounts for 0.13 × T_1 MTP pass cost + ~0.285 × T_1 (+0.275..0.295 × T_1) MoE batch slope.
        • kRC2DraftlessArbiter (n_layer_nextn == 0 & <= 35 GiB, e.g., Nemotron-3.5 30B): zero MTP pass overhead + Mamba-2/MoE batch verification curve.
        • kRC2HeavyMoEDraftlessArbiter (n_layer_nextn == 0 & n_expert > 0 & model_bytes > 35 GiB, e.g., DeepSeek-V4 284B): reflects the steep +0.395 × T_1 DDR5 256-expert pull cost per extra token so 284B models accelerate code/JSON bursts without over-drafting prose tails (plus automatic n_max = 3 cap on dense n_expert == 0 CPU models to stay inside a single mr = 4 GEMM weight pass).
  2. Verified Live Head-to-Head Benchmarks Across All 3 Flagship Model Families (benchmarks/results/qwen38_routecrack2_v31.json, benchmarks/results/dsv4_routecrack2_v31.json, benchmarks/results/nemotron_routecrack2_v31.json):
    • Evaluated across 4 realistic coding & agentic workloads (W1: 152-LOC Claude Code refactor, W2: multi-tool JSON synthesis, W3: greenfield C++20/C99, W4: bilingual IT/EN technical prose; temperature = 0, 16 Zen 5 cores, 0 GPU):
      • Qwen3.8-Flash-Next-MaxQ-64GB-Abliterated (176.5B, 5B Active, 256 tok/wl):
        • Pure N=1 (none): 8.78 tok/s (W1 = 8.78, W2 = 8.75, W3 = 8.76, W4 = 8.84) | MTP-1 (draft-mtp --draft-max 1): 12.24 tok/s (90.62% acc) | v3.0 Release (draft-mtp n_max = 3): 13.87 tok/s (71.62% acc; W1 = 13.79, W2 = 15.10, W3 = 12.90, W4 = 13.87)
        • RouteCrack 2.0 (routecrack2): 15.88 tok/s (+80.83% vs N=1, +29.73% vs MTP-1, +14.49% vs v3.0, 4 / 4 workload wins: W1 = 21.98, W2 = 17.85, W3 = 12.98, W4 = 13.47 tok/s; 82.40% accept, mean_len = 3.71; 100% greedy bit-exact on structured code & multi-tool JSON W1+W2 [254/254], with lossless target-argmax verification on W3+W4 where batch > 1 GEMM vs batch = 1 GEMV FP32 FMA rounding diverges at near-tied logits — identical to MTP-1 and v3.0 draft-mtp).
      • DeepSeek-V4-Flash-0731-MaxQ-v4 (284.3B, 13.2B Active, 192 tok/wl, --load-mode none --repack, unpruned Top-6):
        • Pure N=1 (none): 6.80 tok/s (W1 = 6.48, W2 = 6.70, W3 = 6.90, W4 = 7.01, VmHWM = 58.71 GiB) | v3.0 Release (ngram-map-k): 7.73 tok/s (W1 = 11.90, W2 = 7.39, W3 = 6.74, W4 = 6.55, 85.49% acc, mean_len = 2.42, VmHWM = 59.11 GiB; W2 diverged at token 120)
        • RouteCrack 2.0 (routecrack2 + kRC2HeavyMoEDraftlessArbiter): 7.79 tok/s (+14.51% vs N=1, +0.84% vs v3.0: W1 = 12.31 [+90.0% vs N=1, +3.4% vs v3.0, 100% exact], W2 = 7.55 [+12.7% vs N=1, +2.2% vs v3.0, 100% exact], W3 = 6.74 [-2.4% vs N=1, tied vs v3.0, 59.3% vs 55.6% acc], W4 = 6.49 tok/s [-7.4% vs N=1 on high-entropy prose where 284B DDR5 256-expert pull cost dominates n-gram misses, 36.4% acc]; 45.0–50.5 tok/s prefill, 85.92% accept, mean_len = 2.97, VmHWM = 59.11 GiB).
      • NVIDIA-Nemotron-3.5-30B-A3B (30B, 3B Active, 256 tok/wl, benchmarked on Fractal-MXFP4):
        • Pure N=1 (none): 22.60 tok/s (W1 = 22.20, W2 = 22.57, W3 = 22.69, W4 = 22.61) | v3.0 Release (ngram-map-k): 27.13 tok/s (W1 = 42.54, W2 = 26.08, W3 = 22.65, W4 = 23.80, 71.86% acc, mean_len = 3.18; W2 diverged at token 57)
        • RouteCrack 2.0 (routecrack2 + kRC2DraftlessArbiter): 28.20 tok/s (+24.78% vs N=1, +3.96% vs v3.0: W1 = 42.18 [+90.0% vs N=1, -0.85% vs v3.0, 100% exact], W2 = 28.83 [+27.7% vs N=1, +10.5% vs v3.0, 100% exact], W3 = 22.97 [+1.4% vs v3.0], W4 = 24.72 tok/s [+3.9% vs v3.0]; 78.59% accept, mean_len = 3.35).
  3. Engine Polish, Shallow-Clone b12416 UI Pinning, & Cross-Platform Fleet Defaults (modchip, install.sh, scripts/build_zen5_llama.sh, apple-silicon/, windows/, fedora/):
    • Eliminated spurious common_fit_params extra-model context warnings (common/fit.cpp) when --spec-type routecrack2 runs in draftless mode on non-MTP models (n_layer_nextn == 0).
    • Pinned HF_UI_VERSION=b12416 and -DLLAMA_BUILD_NUMBER=12416 in scripts/build_zen5_llama.sh, apple-silicon/build-dsv4-engine.sh, and windows/build_patched_engine.ps1 so --depth 1 shallow clones of llama.cpp @ de32b268c never hit b1 web-UI asset hash mismatches.
    • Defaulted all presets across ./modchip, install.sh, scripts/llama_modchip.py, scripts/check_cpu_readiness.py, apple-silicon/, windows/, fedora/, and systemd/ to --spec-type routecrack2 while retaining MODCHIP_SPEC_TYPE overrides (draft-mtp, ngram-map-k, ngram-simple, none). Zero GGUF checkpoint changes — all v3.0 GGUF SHA-256s remain 100% identical.
  4. 12 Static-libgomp Portable GLIBC_2.30 Linux x86_64 Binaries, Tarball & Patch (SHA256SUMS):
    • Built on ubuntu:20.04 (GLIBC <= 2.30, static libgomp.a + libstdc++.a + libgcc.a, 0 %zmm in -avx2, 0 vdpbf16ps in -avx512, 0 dynamic libgomp.so dependencies):
      • 796b6d3c3659bb3b96910b9de8650b67e6bb93455b055a25cd7148a4bd39b57b llama-modchip-v3.1.patch
      • 6d9af61a8e4aaf79a3d3f023369154eedca192a8e1b47b251ef14934685d75d6 llama-server-modchip-linux-x86_64-avx512
      • 32f819919aa494938c909531ad5484c8fa432968d0cfa0c0e2b27a11aa2dc3ee llama-server-modchip-linux-x86_64-avx2 (and llama-server-modchip-linux-x86_64)
      • 882ab9e9726a4096b6b66c3ac4a88294ea1f5cdeb63f5b24af80abd70daf6f8a llama-cli-modchip-linux-x86_64-avx512
      • 1bc612972acad80774530d7d423c8676cfdeecbe5f1cfda2691aa2df4d6e28b2 llama-cli-modchip-linux-x86_64-avx2 (and llama-cli-modchip-linux-x86_64)
      • 607de30d0396057267d2db9ebd5c0717367e42f97d35d1bef137f8db01facd9f llama-bench-modchip-linux-x86_64-avx512
      • a1f42baa9116cd2e36dc72382a24cac753a0129901b698c7f351de6b664e0617 llama-bench-modchip-linux-x86_64-avx2
      • a880a7a98db53de0a579dd1c15a7efb1a614ecec0787d5319b91e58f51e28a53 llama-perplexity-modchip-linux-x86_64-avx512
      • 071845a173efa1dbe1253eced68913a05199445f677fe72dd4e862917cb40724 llama-perplexity-modchip-linux-x86_64-avx2
      • 97930d119cc54913c2f5b4494566bc563bd18f285722ed41cb16df3de4a36cd2 llama-quantize-modchip-linux-x86_64-avx512
      • 1e7b5d489e5b064b10479eed5ecf3d8c48ed9e42a996eada191cada94a97c576 llama-quantize-modchip-linux-x86_64-avx2
      • 258c85d4d9a4b4953fb82fbfa18cb0e3dd867b00ccff74e04d9867376c4ea60b llama-modchip-v3.1.0-linux-x86_64.tar.gz

v3.0 — Unified 3-Tier RAM Lineup (16 GB Nemotron-3.5 · 32 GB & 64 GB Qwen3.8-Flash-Next + DeepSeek-V4 284B), Zero-Collision ABI (types 44/45), 512-Bit Q1_0/Q2_0/GDN Engine, Zero-Copy 3D MoE --repack, & Static-libgomp GLIBC_2.30 Binaries

Release Date: November 2026
Highlights:

  1. Donor-Free Qwen3.8-Flash-Next (MaxQ-64GB & MaxQ-32GB Aligned) + Opt-In Heretic-2 Abliterated Twins & Complete 3-Tier RAM Matrix:
    • MaxQ-64GB (57,969,748,352 B = 53.9885 GiB, 1,086 standard ggml tensors, max_type = 42, 0 custom types):
      • Shard 1 (46,449,692,736 B = 43.2596 GiB, SHA256 = f2b8bc79acb4b4d79033acd91c9c360ba96da92cd5841512befc450e15f4786f) + Shared Shard 2 (11,520,055,616 B = 10.7289 GiB, SHA256 = 86b79714867743ddf5911ee7dff2717ae275f870551d86469cbdbf026c6b552e, per_layer_token_embd.weight [256, 320001536] in Q1_0 = 41) + optional mmproj-Qwen3.8-Flash-Next-BF16.gguf (907,542,880 B, SHA256 = ef2af1d6aa8a22740c7252bc7ce40c5c2f1249aa8d9c8499a4d4572c3cfdf9df).
      • Compresses the 320M-row Per-Layer Embedding (PLE) table from 26.82 GiB (IQ4_NL) to 10.73 GiB (PCA-Wiener D=256 + RaBitQ Q1_0), reinvesting +16.09 GiB into all 512/512 unpruned routed experts (K = 640), FP64 Woodbury DualGram signed-scale Q2_0, and the built-in blk.48 NextN Multi-Token Prediction (MTP) module (0.81 GiB).
      • Blind wiki-alt.txt (40 × 512 chunks, 0.000000% 8/13-gram overlap with calibration) vs. Donor-Free BF16 Reference (Mean PPL(base) = 2.776624 ± 0.054868): Achieves Mean PPL = 3.432500 ± 0.070829 (3.43825 ± 0.07119 under v3.0 default --repack), Mean KLD = 0.497117 ± 0.009892, Median KLD = 0.105952, and Same top p = 78.314 ± 0.408%, outperforming ISTA-DASLab GSQ-RCO-Coder-IQ1_M (54.397 GiB / 58,408,584,928 B, 256/512 pruned experts, no MTP: Mean PPL = 5.091640 ± 0.121418, Mean KLD = 0.930241, Median KLD = 0.296442, Same top p = 69.382%) by -1.6591 PPL (3.53× smaller PPL degradation over BF16), -46.6% Mean KLD, and -64.3% Median KLD while 0.41 GiB smaller.
    • MaxQ-32GB (38,341,683,424 B = 35.7085 GiB, 1,128 standard ggml tensors, max_type = 42, 0 custom types):
      • Shard 1 (26,821,627,808 B = 24.9796 GiB, SHA256 = 06cb65f9cf6e510cd16500ca1719701a0ffa13dcaa4c4d0cc135e4f2071a8b4d, 42 ConeCollapsed K = 512 layers with 42 × F32 ffn_down_exps.bias + 7 K = 640 boundary layers + blk.48 MTP) + Shared 10.7289 GiB Shard 2 (86b79714...) demand-paged via NVMe mmap.
      • 32 GB Consumer Exclusivity (18-Checkpoint Hugging Face Audit): Across all 18 published Unsloth and ISTA-DASLab Qwen3.8-Flash-Next GGUFs (54.40–329.72 GiB), 0 / 18 fit inside a 32 GB host (<= 28.5 GiB). MaxQ-32GB passes strict Linux Cgroup v2 enforcement (memory.max = 28.5 GiB, MemorySwapMax = 0, oom_kill = 0) at VmHWM = 26.91–27.44 GiB <= 28.5 GiB with blind wiki-alt.txt Mean PPL = 5.812001 ± 0.140197 (5.80406 repack) and Mean KLD = 1.006916 ± 0.014944.
    • Opt-In Gated-Residual Over-Projected Abliterated Twins (qwen38-64gb-ablit & qwen38-32gb-ablit, v3.0-r2):
      • Applies TPE-optimized signed multi-layer over-projection (beta = 1.83 - 2.39 across blk.31..47 from trohrbaugh/Qwen3.8-Flash-Next-heretic-2, achieving 0 / 100 refusals at 0.0818 KLD by compensating for Qwen3.8's widened multi-stream Gated Residual branches, plus signed beta = 2.2508 blk.48 NextN MTP alignment so speculative drafting stays synchronized on uncensored completions) directly onto virgin MaxQ-64GB and MaxQ-32GB (blk.0..30 & token_embd 100% untouched):
        • MaxQ-64GB-Abliterated: Shard 1 = 46,449,692,736 B (1,085 tensors: 27 edited [16 blk.32..47 ssm_out/attn_output + 5 blk.31..35 ffn_down_shexp + 5 blk.31..35 512-expert ffn_down_exps + 1 blk.48 MTP attn_output], 1,058 bit-identical to MaxQ-64GB; SHA256 = 1dac27e81a3a73dcec21edea78f224eb48393a726e3f9ee7676c603d3174e82f) + Shared Shard 2 (11,520,055,616 B, SHA256 = 86b79714867743ddf5911ee7dff2717ae275f870551d86469cbdbf026c6b552e) + optional mmproj (907,542,880 B, SHA256 = ef2af1d6aa8a22740c7252bc7ce40c5c2f1249aa8d9c8499a4d4572c3cfdf9df).
        • MaxQ-32GB-Abliterated: Shard 1 = 26,821,627,808 B (1,127 tensors: 32 edited [27 weight tensors + 5 blk.31..35 F32 ffn_down_exps.bias aligned with signed layer beta_m = 0.449..1.710], 1,095 bit-identical to MaxQ-32GB; SHA256 = 09b54c335505f9f609415dbc774868ad5ae188f17e873dead3ec743ec84e1009) + Shared Shard 2 (86b79714...) + optional mmproj (ef2af1d6...).
      • Gated-Residual Over-Projection, blk.48 MTP Synchronization & Edition Positioning: Because Qwen3.8-Flash-Next routes activations through widened multi-stream Gated Residual Hyper-Connections (hc_attn_*, hc_ffn_*), single-branch beta <= 1.0 projection leaves parallel residual branches carrying refusal state at late layers (blk.32..47). v3.0-r2 encodes Heretic-2's TPE-optimized over-projection (0 / 100 refusals vs. 99 / 100 upstream at 0.0818 KLD) plus signed beta = 2.2508 blk.48 NextN MTP synchronization (81–85% draft-mtp acceptance on live multi-turn tool-calling at 13.2–14.8 t/s, VmHWM = 46.34 GiB on 64GB and 28.40 GiB <= 28.5 GiB on 32GB), positioning Aligned MaxQ-64GB / MaxQ-32GB as the default pure software-engineering flagships and *-ablit strictly for opt-in security research, reverse engineering, red-team auditing, and uncensored legal/policy analysis (configure --temp 0.6 --top-p 0.95 --top-k 20 --presence-penalty 0.2 --repeat-penalty 1.05 on 32GB presets to prevent low-bit greedy tail loops).
    • 16 GB NVIDIA-Nemotron-3.5-30B-A3B Donor-Free MaxQ-16GB + Zero-Recompute 42/43 -> 44/45 Fleet Unification:
      • NVIDIA-Nemotron-3.5-30B-A3B-MaxQ-16GB (14,382,336,640 B = 13.3946 GiB < 13.50 GiB, SHA256 = 26b884d70a52046a7198c4e01cac397af8bf44584b04cdcf59f896145587db67): Built 100% donor-free from nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16 (401 standard ggml tensors: {F32: 237, Q4_0: 70, Q8_0: 48, MXFP4(39): 28, Q2_0(42): 18}, max_type = 42, 0 custom types; 0.000000% 8/13-gram calibration overlap vs wiki-alt.txt) for native unmodified llama.cpp, Apple Silicon Metal, CUDA, Vulkan, and LM Studio. Certified under hardware-enforced Linux Cgroup v2 (MemoryMax = 15.0G, MemorySwapMax = 0, -c 32768 -ub 512 -fa on -ctk q8_0 -ctv q4_0, oom = 0) at /proc/<pid>/status VmHWM = 14.3040 GiB <= 15.0 GiB (RssAnon = 0.9097 GiB + RssFile = 13.3942 GiB; process VmHWM quoted over cgroup memory.peak = 0.949 GiB ARC/page-cache delta), delivering 188.29 t/s mean (194.05 peak) pp512 and 15.10 t/s mean (15.75 peak) tg128 pure N=1 (3/3 bit-exact) plus 27.80 t/s (94.44% accept) on MiniLRU code refactoring (merge_intervals + OpenAI multi-turn tool-calling PASS).
      • Zero-Recompute 42/43 -> 44/45 Migration & Transparent 40 × 512 wiki-alt.txt Ladder (vs. 16.07 GiB MXFP4 ref 6.5962 ± 0.1729): Patches strictly 47 header bytes (46 ttype + 1 general.file_type, 0 payload bytes altered) across VQ3-64 (14,282,559,040 B, SHA256 = 04a460cdd831002d80b2f47ec5d70e7a92227abcf0a57f31ad73fe0bd50e711f, PPL = 6.7614, Mean KLD = 0.0871 — highest-accuracy 16 GB CPU-Turbo flagship), Fractal-64 (15,420,034,624 B, SHA256 = 3a3a09eac29b5906397ca6a93d2ff0f566fca0bdd365294d067aeb5d0ebf4a1b, PPL = 6.6533, Mean KLD = 0.0688), and Abliterated-VQ3-64 (14,282,559,488 B, SHA256 = 75da8372f3896bfacd103f3cb85bf22b729d39cb1efce82fb3c838ab2af53e57), alongside universal std-ggml MaxQ-16GB (PPL = 7.3129 ± 0.1923, Mean KLD = 0.1722, Median KLD = 0.0698, Same top p = 83.431%) and 64 GB DeepSeek-V4-Flash-0731-MaxQ-v4 (57.99 GiB, 6112e887... / 5d85c740... / a8654d4d...). (Note: Nemotron's default Jinja template enables <think>...</think> reasoning; set max_tokens >= 4096 for thinking or pass enable_thinking: false / --reasoning-budget 0 for concise direct/JSON replies.)
  2. Unified llama-modchip v3.0 Engine Patch (patches/llama-modchip-v3.0.patch) & Zero-Collision Custom Types (44 & 45):
    • Zero Upstream Type Collision: Preserves upstream GGML_TYPE_Q2_0 = 42 (18 B / 64 W = 2.25 bpw, QK2_0 = 64) and GGML_TYPE_F8_E4M3 = 43 untouched; relocates Fractal-64 (30 B / 64 W) to GGML_TYPE_FRACTAL_64 = 44 and LUT-VQ3-64 (24 B / 64 W) to GGML_TYPE_VQ3_64 = 45. A single binary built from ggml-org/llama.cpp @ de32b268c4ad55d45f3b7b16c029f4e077f4ba74 + llama-modchip-v3.0.patch (SHA256 = b14475aa5350d632551b5f4261017e5ccb648750f8c6c9975255a171c367fbf0) runs the entire 16 GB / 32 GB / 64 GB fleet across Linux, macOS Metal, Windows, CUDA, and Vulkan.
    • Zero-Copy 3D MoE --repack Cure & q8_cache / params->wdata Aliasing Fixes: Fixes upstream ggml_compute_forward_mul_mat_tiled / mul_mat_id_tiled q8_cache workspace aliasing (ggml_cpu_get_q8_wdata), clears last_mmid_ids_data on every non-MUL_MAT_ID node, fixes repack.cpp stride/unaligned-load bugs, skips heap repacking on 3D MoE tensors (ne[2] >= 64) so zero-copy mmap is preserved (MaxQ-64GB RssAnon reduced 5.4× from 9.81 GiB to 1.81 GiB, draft-mtp acceptance restored from 0% to 93.00%, batch=1 --repack vs --no-repack KLD = 0.00000 ± 0.00000), and aligns MADV_HUGEPAGE inward to 2 MiB boundaries (src/llama-mmap.cpp) so lazy PLE ranges are never pre-faulted.
    • 512-Bit Q1_0/Q2_0/MXFP4 Kernels & Multi-Threaded GATED_DELTA_NET: Adds AVX-512 VNNI/BW single-col & multi-col (1x8/4/3/2) kernels for Q1_0 (41), signed-scale Q2_0 (42), overflow-free Q8_0, and MXFP4, eliminates inner barriers in multi-threaded 8-zmm FMA GATED_DELTA_NET, restores 4*nth dynamic causal-triangle load balancing on FLASH_ATTN_EXT prefill (neq1 > 1), and widens Stockfish-PVS v2 / RouteCrack token IDs to 32-bit llama_token (248,320 vocab safe).
  3. Empirical Speedups, Transparent Attribution, & Runtime Defaults (modchip, install.sh, scripts/llama_modchip.py):
    • Combined v3.0 Engine + Non-Convoy -t $((N_CORES - 1)) --poll 0 Throughput (16 Zen 5 vCPUs, default --repack ON):
      • MaxQ-64GB (draft-mtp): pp512 39.24 -> 71.97 t/s (+83.4%), tg128 7.329 -> 12.662 t/s (+72.8% vs Stage 4C --no-repack, 4.95× vs broken pre-v3.0 repack, peak 12.82 t/s, 1.988× over v3.0 none 6.368 t/s, 93.00% MTP accept, VmHWM = 45.08 GiB).
      • MaxQ-32GB (draft-mtp): pp512 61.39 -> 74.55 t/s (+21.5%), tg128 9.455 -> 11.454 t/s (+21.1% on p512, 14.29 t/s avg / 14.77 t/s peak on inplace_edit, 1.718× over v3.0 none 6.668 t/s, VmHWM = 26.91 GiB <= 28.5 GiB).
      • (Transparent Attribution Note: Stage 4C ran oversubscribed -t 16 --poll 50 --no-repack on 16 vCPUs, whereas Stage 4D-1 ran -t 15 -tb 15 --poll 0 --poll-batch 0 with v3.0 default --repack ON; isolated non-convoy threading accounted for +25.9% pp / +31.3% tg on 32GB none, and ./modchip + install.sh now default llama-server to -t $((N_CORES - 1)) -tb $((N_CORES - 1)) --poll 0 --poll-batch 0.)
    • 248K Speculative Shootout & RC_TABLES_DIR=/nonexistent Isolation: Built-in draft-mtp won cold single-turn rep 0 tg128 on 6 / 6 (100%) of (edition, prompt) pairs; zero-weight Stockfish-PVS v2 (--spec-type ngram-simple --spec-ngram-simple-size-n 3 --spec-ngram-simple-size-m 3 --spec-ngram-simple-min-hits 1) achieved 10.58–12.82 t/s (1.67×–1.87×) on cold rep 0 source-in-context refactoring with +5.6% to +11.0% faster prefill and -0.53 to -0.85 GiB lower VmHWM. ./modchip and start_server.sh automatically export RC_TABLES_DIR=/nonexistent whenever serving non-Nemotron models so ./workspace/routecrack Nemotron tables are never loaded by mistake.
    • /dev/shm Hybrid State Save/Restore (MaxQ-32GB, 512 tok): Restores the 233.14 MiB (244,461,872 B) 36 GDN + 12 QSA state in 38.49 ms avg (38.16 ms min, 6.11 GiB/s, 161.96× faster than 6.18s prefill; ~19 ms / 120.6 MiB with --ctx-checkpoints 0) with 100% bit-exact continuation (SHA256 = 8e5a6444...).
    • Sampling & <think> Guidance: MaxQ-32GB (1.63 bpw: 2/8 blind pass at greedy temp=0, 3/8 greedy repetition loops without penalties vs. MaxQ-64GB 5/8 pass [5/5 within 4,096 cap, 0/8 loops]) defaults to --temp 0.6 --top-p 0.95 --top-k 20 --presence-penalty 0.2 --repeat-penalty 1.05 in ./modchip; when enabling <think> mode, set max_tokens >= 16384 (or enable_thinking=False for <= 4096 caps). Unpatched upstream llama.cpp users should pass --no-repack (-nr); not needed on v3.0.
  4. 12 Static-libgomp Portable GLIBC_2.30 Linux x86_64 Binaries (SHA256SUMS):
    • Links libgomp.a, libstdc++.a, and libgcc.a statically (NEEDED = [libdl.so.2, libpthread.so.0, libm.so.6, libc.so.6, ld-linux-x86-64.so.2], max_glibc <= 2.30, 0 external OpenMP runtime needed) and removes internal weight-building scripts from the public runtime tree:
      • 54af3232375ede820f91143c106a594c83b815a3dca66fe98ab08bcb8b63d4f0 llama-server-modchip-linux-x86_64-avx512
      • 0f0c07f97a98d8aeb9a012264fdeff5a787d2104a2afb122052bfe0a21c2d1a9 llama-server-modchip-linux-x86_64-avx2 (and llama-server-modchip-linux-x86_64)
      • 531d870988dcc580322341d2bbd7f0cf6b6cc3b3376a2e86d092a021f7cddba2 llama-cli-modchip-linux-x86_64-avx512
      • 49a918206afe371d16ab14fd66d9cc87e35c7f8c0471c2cc13c759f2e0350d03 llama-cli-modchip-linux-x86_64-avx2 (and llama-cli-modchip-linux-x86_64)
      • 7ad8253fb9c3a779be58122adc51ea9786bb391acb49d3cbfa6280cedb01e9d8 llama-bench-modchip-linux-x86_64-avx512
      • fa8a055799bb2f65df8c6077f1377b81bfeda4efe3851639d05c1b44c3fa45e8 llama-bench-modchip-linux-x86_64-avx2
      • 003f452008972fb8696f7ea2800cfede360ba2a2c32f0a605fba2463b66bcadb llama-perplexity-modchip-linux-x86_64-avx512
      • f77c3581d37fa6920daec6938abc5767675b430130eed03ec05e68c6e6d4b624 llama-perplexity-modchip-linux-x86_64-avx2
      • befa4842fa09a061d4fe3376d226ed4ad2dafa8c149db10c06b37f85e59e3f94 llama-quantize-modchip-linux-x86_64-avx512
      • 521d9bf53f888c71e158732cd2c0b14e80a5e3d2005aed5f7a3e204ebfba9bbb llama-quantize-modchip-linux-x86_64-avx2

v2.5.5 — 100% Donor-Free DeepSeek-V4-Flash-0731-MaxQ-v4 (57.99 GiB ConeCollapse + DualGram, Universal Metal/CUDA/Vulkan/CPU Compatibility), Hardened Cross-Platform Loader, & Full 51-Chunk / 49-Chunk Blind ref5632.kld Evaluation

Release Date: November 2026
Highlights:

  1. 100% Donor-Free DeepSeek-V4-Flash-0731-MaxQ-v4 (57.99 GiB / 62,270,037,248 B < 58.000 GiB, 1,362 Tensors, Zero Custom Tensor Types) (scripts/build_dsv4_maxq_v4.py, scripts/maxq_v4_collapse.c, scripts/make_calib_v4_clean_utf8.py):
    • Built hermetically from upstream deepseek-ai/DeepSeek-V4-Flash-0731 (@ 7872f01b1d1fe23eabc4c98b48bffcef5a386062) with zero donor GGUF weights:
      • Universal Upstream Backend Compatibility (0 GGML_TYPE_Q2_0 = 42 / 0 GGML_TYPE_VQ3_0 = 43 tensors): Replaces all 317 custom Fractal-64 tensors of MaxQ-Fractal with 0731-imatrix-weighted standard ggml formats (43 × Q8_0 attn_kv, 145 × Q6_K KV/Indexer compressors & indexer.attn_q_b, 3 × Q5_K L00 MLA, 3 × Q6_K L42 MLA, 123 × Q4_K L01..L41 MLA, plus 172 × Q6_K shared experts, attn_q_a, and output.weight), making MaxQ-v4 the first < 58 GiB MaxQ checkpoint 100% natively compatible with Apple Metal GPU, NVIDIA CUDA (with automatic MUL_MAT_ID + ADD_ID kernel fusion), Vulkan, ARM64 NEON, and x86 AVX2/AVX-512.
      • Pareto-Dominant ConeCollapse + FP64 Woodbury DualGram (NC = 384): Retains 9 full-width K = 2048 anchor layers ({0, 30, 34, 36, 37, 39, 40, 41, 42}, uncentered ridge, alpha = 1.0000) and gently collapses 34 interior layers to K = 1792 (7 × 256, -12.5% tail) with post-IQ2_XXS shrunk residual centroid bias (0.60 * mu in blk.*.ffn_down_exps.bias), MSE-optimal MXFP4 (4.25 bpw) on L41–L42 ffn_down_exps, IQ2_XXS (2.06 bpw) on L42 gate/up and L00..L40 down, and IQ1_M (1.75 bpw) across 17 sensitive layers (L20, L26..L41).
    • Lineage & Algorithmic Disclosures:
      • Imatrix Provenance: The 23 reused single-pass IQ1_S gate/up layers ({0, 2, 3, 5..19, 21..25}) inherit diagonal activation weights from @antirez's public 1.5M-token DeepSeek-V4-Flash-chat-v2-routed-moe-ds4-1p5m.dat (antirez/deepseek-v4-gguf @ f71f23d5, collected on pre-0731 chat-v2 activations; zero donor weights) reordered by 0731 ||Wd[:,j]||^2, whereas the 20 freshly quantized MoE layers (L01, L04 IQ1_S, 17 IQ1_M, L42 IQ2_XXS) blend BETA_0731 = 0.50 0731 routed input $\mathbb{E}[x^2]$ and all 43 ffn_down_exps (BETA_HD = 0.80) + all 446 2D K-quant projections (imatrix_v4_clean_24k.dat, 769 entries, 6 × 4096 ctx = 24,576 natural UTF-8 tokens) use pure 0731 activations (Shard-1 records combined entries_count = 898, chunks_count = 7, and deepseek4.expert_feed_forward_lengths).
      • DualGram Token Selection: For each expert, NC = 384 calibration vectors are selected via Deterministic Routed-Stride (pos = (k * n_routed) / NC when n_routed >= NC) plus Router sqrt(softplus) Top-Score Fill (n_routed < NC), solving the $\kappa_2 \le 86.33$ FP64 Cholesky dual system $(H_c H_c^\top + \lambda I_{384}) Z = H_c$.
      • Calibration Register: calib_v4_clean_utf8.txt (191,300 B, SHA256 = 8a4440b6...) has 0.0000% $\ge 8$-gram overlap with wiki-alt.txt, wiki.test.raw, and eval_quality_and_tools.py, deriving ~78% natural Moses-detokenized wikitext-2 train paragraphs (encyclopedic register) interleaved with ~22% C++/Python source code, JSON tool-calling, math, and multilingual prose.
  2. Full 51-Chunk ref5632.kld & Gate-Free 49-Chunk Blind Split (3..51) Certification (benchmarks/results/atomicchat_wikialt_ctx5632_51c_dsv4_maxq_v4.log, benchmarks/QUALITY_GATE_VQ3_64.md):
    • Full 51-Chunk AtomicChat ref5632.kld (1..51, 143,565 scored tokens vs. Mean PPL(base) = 4.331017 ± 0.027402):
      • MaxQ-v4 (57.99 GiB, 100% Donor-Free): Mean PPL(Q) = 6.8592 ± 0.0482 (-6.01% vs MaxQ-Fractal 7.2977 ± 0.0504), Mean KLD = 0.648514 ± 0.003535 nats (-12.36% vs MaxQ-Fractal 0.739998), Median KLD = 0.183817 nats (-32.02% vs MaxQ-Fractal 0.270386), 90% KLD = 1.706097, Max KLD = 20.542444 (-3.74% vs MaxQ-Fractal 21.341202), RMS Δp = 27.562 ± 0.095%, Median Δp = -0.733%, and Same top p = 73.283 ± 0.117% (+2.886 pp vs MaxQ-Fractal 70.397%).
    • Strictly Unseen 49-Chunk Partition (3..51, 137,935 scored tokens — excluding diagnostic gate chunks 1..2):
      • Because chunks 1..2 (5,630 tokens) were inspected 4 times during K=2048 uncentered DualGram & output_norm tau=1.0 validation, separating 3..51 eliminates gate selection bias: on unseen chunks 3..51, MaxQ-v4 achieves PPL(Q) = 6.8471 (-6.12% vs MaxQ-Fractal 7.2938), Mean KLD = 0.625743 nats (-12.84% vs MaxQ-Fractal 0.717907), RMS Δp = 26.726% (vs 29.054%), and Same top p = 73.595% (+2.894 pp vs 70.701%). Relative to an internal AtomicChat AD-BF16 + AD-IQ1_M donor hybrid ablation (MaxQ-v3, 57.88 GiB), donor-free MaxQ-v4 significantly wins on unseen 3..51 Mean KLD (0.62574 vs 0.64872, -3.54%, 39/49 chunks, paired $p = 6.58 \times 10^{-5}$), RMS Δp (26.726% vs 27.519%, 43/49 chunks, $p = 8.84 \times 10^{-10}$), and Same top p (73.595% vs 72.443%, +1.152 pp, 46/49 chunks, $p = 1.26 \times 10^{-13}$), while matching unseen PPL(Q) (6.8471 vs 6.8556, -0.12%, statistical parity $p = 0.840$).
  3. Cross-Platform ConeCollapse Loader, Header Bounds Validation, & deepseek4.cpp IPC Cleanup (patches/deepseek-v4-flash-fractal-256k.patch, patches/dsv4-64gb-cpu.patch, scripts/build_zen5_llama.sh, scripts/llama_modchip.py):
    • Unified per-layer n_ff_exp_i (1792 / 2048), o_lora_rank_i, and optional blk.*.ffn_down_exps.bias (GGML_OP_ADD_ID) loading across both deepseek-v4-flash-fractal-256k.patch (Linux/Windows) and dsv4-64gb-cpu.patch (macOS Apple Silicon Metal), and removed all remaining /tmp/dsv4_moe_cfg.bin / /opt/models paths from src/models/deepseek4.cpp.
    • Added strict GGUF dimension & superblock alignment checks in llama_model_deepseek4::load_arch_tensors (n_ff_exp_i in [256, 8*n_ff_exp], % 256 == 0, % ggml_blck_size(down_meta->type) == 0; o_lora_rank_i in [64, 4*o_lora_rank], % 64 == 0), raising a clean std::runtime_error on malformed GGUFs instead of triggering GGML_ASSERT abort().
    • Updated install.sh, modchip, windows/modchip_dsv4.ps1, apple-silicon/run-dsv4.sh, and scripts/llama_modchip.py to auto-detect MaxQ-v4 and variable-width deepseek4.expert_feed_forward_lengths, and hardened C11 _Atomic initialization in scripts/maxq_v4_collapse.c and scripts/dsv4_singlepass.c.

v2.5.4 — ./modchip bench & Chat UX Fixes, Non-BMI2 VQ3_0 Scale Unpack & Kernel Test Fixes, Cross-Platform Windows/macOS/Docker Onboarding, & Benchmark Table Precision

Release Date: November 2026
Highlights:

  1. ./modchip bench Crash Fix & Dynamic Neutral System Prompt in ./modchip chat (scripts/chat.py):
    • Fixed a NameError: name 'prompt_label' is not defined (and remote-endpoint UnboundLocalError on cpu/ram) at the end of run_benchmark_suite() when generating the pre-filled GitHub Leaderboard submission URL in ./modchip bench and /bench.
    • Replaced the hardcoded Italian DeepSeek-V4 / Ryzen 9 9955HX system prompt in ./modchip chat with build_chat_system_prompt(), which reflects the active served model (Nemotron, DeepSeek-V4, Qwen, etc.) and detected host hardware, responds in the user's language, and updates dynamically on /model.
  2. Non-BMI2 VQ3_0 Scale Unpack Fix, test-quantize-fns Coverage, & Transcode Layout Parity (vq3/vq3_codebook.h, patches/lut-vq3-64-avx512-vbmi.patch, vq3/test_vq3_ggml_kernels.c, vq3/vq3_enc_lib.c, patches/dsv4-ipc-hardening.patch):
    • Fixed a bit-carry bug (|= $\to$ +=) in the #else non-__BMI2__ fallback of ggml_vq3_unpack_scales (m_all = 0x0202020202020202ULL), eliminating scale error when compiled without -mbmi2 (such as MSVC or non-BMI2 scalar builds; distributed Linux -avx512/-avx2 binaries use __BMI2__ _pdep_u64 and were unaffected, and zero GGUF weights changed).
    • Replaced AVX512DQ _mm512_extractf32x8_ps in ops.cpp with pure AVX512F _mm512_extractf64x4_pd, added GGML_TYPE_VQ3_0 thresholds to tests/test-quantize-fns.cpp (verified PASS on both -avx2 and -avx512 GLIBC_2.30 builds), aligned dequantize_row_q2_0_local in vq3/vq3_enc_lib.c (--aggressive optional transcoder) to quants.c's transposed qh layout, and tightened vq3/test_vq3_ggml_kernels.c to validate both near-zero cancellation and positive-signal relative error (exit 0 under both -mbmi2 and -mno-bmi2).
  3. Windows 11 Speculative Flag Detection (Issue #33), -Target nemotron, & -Cuda ISA Auto-Detection (windows/modchip_win.ps1, windows/build_patched_engine.ps1, patches/zen5-nemotron-256k-optimizations.patch, windows/modchip_dsv4.ps1):
    • Fixed modchip_win.ps1 matching --spec-ngram-size-n inside llama-server.exe --help removal warnings before checking --spec-ngram-simple-size-n (thanks to @kevinblo in Issue #33), and removed legacy --draft-max.
    • Guarded POSIX <sys/mman.h> / <fcntl.h> / <unistd.h> includes directly with #if defined(__linux__) in zen5-nemotron-256k-optimizations.patch, made build_patched_engine.ps1 -Target nemotron idempotent, and replaced unconditional -DGGML_AVX512=ON under -Cuda with host AVX-512 VBMI auto-detection so AVX2 + RTX PCs never hit STATUS_ILLEGAL_INSTRUCTION.
  4. macOS (Darwin), .modchip_workspace, Docker /dev/shm Guard, & Standalone llama_modchip.py Parity (install.sh, modchip, scripts/build_zen5_llama.sh, apple-silicon/run-server.sh, scripts/llama_modchip.py):
    • Replaced GNU-only realpath -m and bare sha256sum with portable POSIX/Python + shasum -a 256 helpers, persisted custom --workspace paths via .modchip_workspace across ./modchip and ./scripts/chat.py, automatically bypassed /dev/shm slot-snapshot allocation in 64 MiB Docker containers (< 1 GiB tmpfs), routed Darwin dsv4 source builds to patches/apple-silicon and Darwin ./modchip start to ${WORKSPACE_DIR} with unified-memory --load-mode mmap, and added RAM-safe -c 32768 -ub 512, --load-mode, and DSV4_MOE_CFG_PATH defaults to standalone llama_modchip.py --print-cmd (marking boot-time #2/#9 controls as BOOT in --tui).
  5. Benchmark Table Separation, Documentation Precision, & Historical Release Sanitization (README.md, benchmarks/QUALITY_GATE_VQ3_64.md, docs/NEMOTRON_OPTIMIZATIONS.md, ARCHITECTURE.md, FAQ.md):
    • Explicitly separated Raw Pure Decode (N=1) from Served Gate Decode (Stockfish-PVS E2E) and In-Context Refactor Burst (M=7), footnoted the 13.08 GiB --all-up-exps eval_nemotron_vq3_64.json telemetry and Abliterated-VQ3-64 (401 total tensors = 76 re-quantized + 325 copied), added @kevinblo's Ryzen 9 9950X3D (9.47 tok/s Top-4 / 8.11 Top-6 284B & 24.92 tok/s Nemotron Q4_0) leaderboard entries, synchronized all 8 v2.5.4 GLIBC_2.30 binaries + SHA256SUMS + model cards across all 7 Hugging Face repos (0 GGUF weight changes), and added IPC security supersession banners across historical GitHub Releases.

v2.5.3 — Donor-Free Single-Pass MaxQ-Fractal (1,328 / 1,328 Tensors), Clean GGUF Provenance Headers, IPC-Hardened GLIBC_2.30 Binaries, Full 51-Chunk AtomicChat wiki-alt.txt & True-BF16 Benchmarks

Release Date: November 2026
Highlights:

  1. Donor-Free Single-Pass DeepSeek-V4-Flash-0731-MaxQ-Fractal Across All 1,328 Tensors (scripts/build_dsv4_maxq_singlepass.py, scripts/dsv4_singlepass.c):
    • Rebuilt Synchopate/DeepSeek-V4-Flash-0731-MaxQ-Fractal-64GB-CPU-GGUF (56.93 GiB / 61,129,364,160 B, 1.72 bpw across 3 shards) in a pure single pass across all 1,199 non-MoE tensors (173 × Q6_K + 1 × Q8_0 dense bottlenecks + 317 × Fractal-64 MLA/Indexer tensors) and all 129 3D routed-MoE tensors directly from deepseek-ai/DeepSeek-V4-Flash-0731 (@ 7872f01b1d1fe23eabc4c98b48bffcef5a386062) weighted by Salvatore Sanfilippo's (@antirez) 1.5M-token DeepSeek-V4-Flash-chat-v2-routed-moe-ds4-1p5m.dat (antirez/deepseek-v4-gguf @ f71f23d552d664e523b422157b2befbf74040380, calibrated 2026-05-12 on April DeepSeek-V4-Flash chat-v2 activations), eliminating v2.5.2's donor routed-MoE copying and ffn_down_exps double-quantization. Note: Abliterated-Fractal Shards 2 & 3 (6e3f499c..., 0063f3a9...) remain the v2.5.1 single-pass build (with Shard-1 metadata cleaned in v2.5.3), verified byte-identical to HEAD's --mode aligned output on unedited control experts (blk.20.ffn_down_exps experts 0, 1) and differing on prem-research's abliterated top-8 routed down_proj experts in blk.17..36 ({53, 61, 70, 149, 156, 187, 210, 219}).
    • Measured Impact on 16C Zen 5 (AMD Ryzen 9 9955HX, 0 GPUs, Unpruned Top-6):
      • Functional Quality Gate (benchmarks/eval_quality_and_tools.py): Jumps from 64.0 / 80.0 (24/30 Tools) to 70.0 / 80.0 (30.0/30 Agentic Tool-Calling, 20.0/30 Code Gen, 20.0/20 Long-Context Needle & Math), matching Abliterated-Fractal (70.0 / 80.0) point-for-point (under --target-tps 9.0, MaxQ-Fractal scores 89.56 / 100.0 [8.80 tok/s, 78.69% Stockfish-PVS acceptance, 58.13 GiB VmRSS], Abliterated-Fractal 89.44 / 100.0 [8.75 tok/s], and Fractal-64 / VQ3 84.0 / 100.0). Isolated pure N=1 unpruned Top-6 decode (tg64, zero speculation) is 8.66 tok/s at 57.54 GiB idle / 57.58 GiB active VmRSS (36.11 tok/s cold pp67 prefill; telemetry_n1_dsv4_maxq_v253.json).
      • Same-Recipe ARA Abliteration Delta (Abliterated-Fractal vs. MaxQ-Fractal v2.5.3): 32-probe unconditional step-0 Logit KLD drops 10.6× from 1.0219 down to 0.0959 nats/tok (75.0% Top-1, 96.9% Top-5), with prefix-matched rollout KLD (172 positions) at 0.0512 nats/tok (90.7% Top-1, 99.4% Top-5; kld_dsv4_ablit_vs_maxq.json).
      • Standard WikiText-2 (wiki.test.raw, 8,192 tok) Perplexity: MaxQ-Fractal v2.5.3 improves from 11.7434 to 11.6139 ± 0.58453 (statistically tied within < 0.15σ with 56.57 GiB Fractal-64 11.5288 ± 0.55630, while gaining +6.0 pts on Tool-Calling; Abliterated: 11.3944 ± 0.56500, VQ3: 12.2345 ± 0.59759).
  2. Full 51-Chunk AtomicChat/dsv4-eval-artifacts (wiki-alt.txt, -c 5632 -b 5632) & Direct Nemotron-30B True-BF16 Benchmarks (benchmarks/QUALITY_GATE_VQ3_64.md, benchmarks/results/):
    • Full 51-Chunk wiki-alt.txt (143,565 scored positions) on MaxQ-Fractal v2.5.3: Achieves standalone llama-perplexity Final estimate: PPL = 7.2977 ± 0.0504 across all 51 chunks on Zen 5 CPU (+60.8% vs 150.75 GiB bullerwins MXFP4_MOE-BF16 4.5381 ± 0.0292, +22.2% vs 76.87 GiB Unsloth UD-IQ1_S 5.9734, and +14.4% vs 65.42 GiB AtomicChat AD-IQ1_M 6.3813 Mean PPL(Q) on 8× RTX 5090, where UD-IQ1_S and AD-IQ1_M exceed 64 GB host RAM and AtomicChat notes a 4–5% RTX 5090 vs H100 hardware gap) and 7.3180 ± 0.1039 at cumulative chunk 12 (33,780 scored positions, down from 7.5133 in v2.5.2).
    • Direct Nemotron-3.5-30B-A3B True-BF16 (58.84 GiB, SHA256 = fd513c91...) Perplexity & 32-Probe / Multi-Step KLD Ladder: Measured WikiText-2 (12,288 tok) directly on the uncompressed 58.84 GiB BF16 master (6.9582 ± 0.24151) and computed direct BF16 Logit KLD across all variants (Fractal-64: 0.1254 step-0 / 0.0929 nats matched [81.2% / 89.8% Top-1]; VQ3-64: 0.1495 / 0.0944 nats; Abliterated-VQ3-64 vs VQ3-64 across the 76 Darkstar-edited tensors: 0.0308 / 0.0312 nats [92.4% Top-1, 100.0% Top-5]). Committed all four reference Top-64 logit snapshots (nemotron_bf16, nemotron_fractal, nemotron_vq3, dsv4_maxq) for offline reproducibility.
  3. Clean GGUF Shard-1 Provenance Metadata Across All 4 DeepSeek-V4 Repos & OpenMDW-1.1 Alignment (gguf_shard1_metadata_audit.txt):
    • Replaced inherited unsloth tags and provenance headers in Shard-1 across all four 284B repositories: MaxQ-Fractal and Abliterated-Fractal carry general.quantized_by = "Synchopate (llama-modchip)", exact general.base_model.0.revision (7872f01b... / 457210de...), and quantize.imatrix.* (antirez/deepseek-v4-gguf@f71f23d5/...), while VQ3 and Fractal explicitly record general.quantized_by = "Synchopate (llama-modchip); routed-MoE gate/up donor: Unsloth (UD-IQ1_S @ fbbb5b93)" (@ fbbb5b93fb787c21338159b0af3318bb3f4d9768) alongside dedicated donor attribution sections, and aligned all three Nemotron 30B model cards to upstream openmdw-1.1 (https://openmdw.ai/license/1-1/).
  4. C++ IPC Security Hardening Across All Portable GLIBC_2.30 Binaries & Source Builds (patches/dsv4-ipc-hardening.patch, scripts/build_zen5_llama.sh, apple-silicon/build-dsv4-engine.sh, windows/build_patched_engine.ps1):
    • Removed legacy world-writable /tmp/dsv4_moe_cfg.bin (0666), %TEMP%\dsv4_moe_cfg.bin, and global /dev/shm/llama_modchip.bin fallbacks from compiled C++ binaries (ggml-cpu.c, ops.cpp, ngram-map.cpp) and deleted unreferenced patches/llama-modchip-dsv4-10tps.patch.
    • DSV4_MOE_CFG_PATH is now strictly opt-in (0600, O_NOFOLLOW, S_ISREG, st_uid == geteuid()), llama_modchip SHM resolves per-user (MODCHIP_SHM_PATH / $XDG_RUNTIME_DIR/llama_modchip.bin / /dev/shm/llama_modchip_<uid>.bin with (st_mode & 0022) == 0 + magic check), all 8 GLIBC_2.30 Linux x86_64 binaries (0 /tmp/dsv4_moe_cfg.bin & 0 global /dev/shm/llama_modchip.bin strings) are synchronized across GitHub Release v2.5.3 and all 7 Hugging Face repos, and all 7 commit-pinned MODEL_REV + SHA256 manifests are updated in install.sh and modchip.

Note

v2.5.2 Historical Errata (Superseded by v2.5.3): In v2.5.2, MaxQ-Fractal rebuilt the 1,199 dense/MLA tensors from 0731 @ 7872f01b while still inheriting routed-MoE tensors from the VQ3 (Unsloth UD-IQ1_S @ fbbb5b93fb787c21338159b0af3318bb3f4d9768) donor lineage, the 12-chunk wiki-alt.txt note below highlighted -20.3% vs. an uncalibrated Q2_K outlier, and standalone C++ invocations without DSV4_MOE_CFG_PATH still fell back to /tmp/dsv4_moe_cfg.bin (0666). All three are superseded in v2.5.3 above.

v2.5.2 — Pure-0731 MaxQ-Fractal Rebuild, Cross-Vendor AtomicChat wiki-alt.txt (ctx=5632) Benchmarks, 7-Repo SHA256SUMS + GLIBC_2.30 Sync, & CLI/Runtime Hardening

Release Date: November 2026
Highlights:

  1. Pure-0731 DeepSeek-V4-Flash-0731-MaxQ-Fractal Rebuild & Upload (scripts/build_dsv4_maxq_singlepass.py, install.sh):
    • Rebuilt Synchopate/DeepSeek-V4-Flash-0731-MaxQ-Fractal-64GB-CPU-GGUF (56.93 GiB, 61,129,363,936 B) cleanly from deepseek-ai/DeepSeek-V4-Flash-0731 (7872f01b1d1fe23eabc4c98b48bffcef5a386062), correcting v2.5.1's default --base-model which had pulled dense/MLA weights from the April DeepSeek-V4-Flash repository (60d8d707) while copying 0731 routed MoE tensors.
    • Re-measured all continuous and functional metrics on pure 0731 (benchmarks/QUALITY_GATE_VQ3_64.md, benchmarks/results/): WikiText-2 (wiki.test.raw, 8,192 tok) PPL = 11.7434 ± 0.57170 (-4.01% vs VQ3-0731 12.2345), 2-pass Top-64 Logit KLD vs VQ3-0731 reduced from 0.8302 down to 0.3146 nats/tok (83.3% Top-1, 100.0% Top-5), Logit KLD vs Abliterated-0731 1.0219 nats/tok (58.3% Top-1, 91.7% Top-5), 84.0 / 100.0 Gate (64.0/80 quality + 20/20 speed at 11.31 tok/s 80.3% Stockfish-PVS acceptance), and 8 / 8 Dual-Use Security Audit.
  2. Cross-Vendor AtomicChat/dsv4-eval-artifacts (wiki-alt.txt, -c 5632 -b 5632) Evaluation (benchmarks/QUALITY_GATE_VQ3_64.md §3C):
    • Evaluated both 64 GB resident checkpoints across 12 chunks (67,584 tokens / 33,780 scored positions) on AtomicChat's held-out wiki-alt.txt corpus (-c 5632 -b 5632 --ppl-output-type 1): MaxQ-Fractal-0731 (56.93 GiB) achieves PPL = 7.5133 ± 0.1054 and VQ3-0731 (56.40 GiB) achieves PPL = 7.6579 ± 0.1077, outperforming 103.06 GB Q2_K (9.4237 ± 0.1402 at chunk 12) by -20.3% PPL while saving 41.9 GB of footprint and running 100% resident in 64 GB RAM (superseded in v2.5.3 above by the donor-free single-pass 51-chunk 7.2977 ± 0.0504 evaluation against MXFP4_MOE-BF16, UD-IQ1_S, and AD-IQ1_M).
    • Committed reference Top-64 logit snapshots (dsv4_maxq_ref_logits.json, nemotron_fractal_ref_logits.json) and raw llama-perplexity logs, and retired the small n=6 Hard-60 suite from headline comparisons.
  3. 7-Repo Hugging Face GLIBC_2.30 Binary + SHA256SUMS Synchronization & Supply-Chain Re-Pinning:
    • Synchronized identical GLIBC_2.30 Linux x86_64 binaries (llama-{server,cli,perplexity}-modchip-linux-x86_64*), SHA256SUMS, and updated v2.5.2 model cards across all 7 Synchopate/* Hugging Face repositories (0 SHA-256 mismatches) and pinned all 7 updated 40-char MODEL_REV commits in install.sh.
  4. Unpruned Top-6 Default in llama_modchip.py, CLI Flag Forwarding, & Cross-Platform Installer Polish (scripts/llama_modchip.py, install.sh, modchip, windows/modchip_dsv4.ps1):
    • Changed scripts/llama_modchip.py default moe_top_k from 4 to 0 (unpruned Top-6 across both Nemotron-30B and DeepSeek-V4; Top-4 remains opt-in via LLAMA_MOE_TOP_K=4 or --tui).
    • Added CLI flag forwarding ("$@") to generated start_server.sh and ./modchip start (e.g., ./modchip start -n 4096), start_server.sh.bak backup preservation, configurable REASONING_FORMAT / REASONING_BUDGET, macOS sysctl RAM/core detection in install.sh, libgomp1 diagnostic hints on --version smoke-test failure, and safety-aligned default model ordering (MaxQ -> VQ3 -> Fractal -> Abliterated) in windows/modchip_dsv4.ps1.

v2.5.1 — Single-Pass MaxQ-Fractal 284B Aligned Default, Opt-In Abliterated Presets (284B & 30B), Portable GLIBC_2.30 Linux Binaries, Supply-Chain Pinning, & Reproducible WikiText-2 Perplexity

Release Date: November 2026
Highlights:

  1. Single-Pass DeepSeek-V4-Flash-0731-MaxQ-Fractal (56.93 GiB, Aligned Default 284B) & Opt-In Abliterated Presets (scripts/build_dsv4_maxq_singlepass.py, scripts/build_nemotron_abliterated_vq3.py, scripts/dsv4_singlepass.c):
    • Publishes Synchopate/DeepSeek-V4-Flash-0731-MaxQ-Fractal-64GB-CPU-GGUF (56.93 GiB, 3 shards; rebuilt from pure deepseek-ai/DeepSeek-V4-Flash-0731 in v2.5.2) with 173 × Q6_K + 1 × Q8_0 (174 total dense bottlenecks, upgrading 130 tensors from Fractal/VQ3 + 43 from Q5_K) and 317 × Fractal-64 MLA/Indexer tensors, paired with @antirez 1.5M-token imatrix routed MoE. Makes dsv4-maxq the safety-aligned 284B default alongside dsv4-ablit.
    • Publishes Synchopate/NVIDIA-Nemotron-3.5-30B-A3B-Abliterated-VQ3-64-CPU-GGUF (13.30 GiB) alongside Synchopate/DeepSeek-V4-Flash-0731-Abliterated-Fractal-64GB-CPU-GGUF (56.93 GiB) as explicit opt-in presets (nemotron-ablit and dsv4-ablit), gated behind interactive [y/N] confirmation or --accept-abliterated in non-interactive mode.
  2. Portable GLIBC_2.30 Linux x86_64 Binaries (-avx2 & -avx512) & CPUID Fix (scripts/build_zen5_llama.sh, install.sh, modchip):
    • Rebuilt all Linux x86_64 release assets (llama-server, llama-cli, llama-perplexity) inside ubuntu:20.04 (GLIBC <= 2.30, static libstdc++/libgcc, zero libssl/OPENSSL_3), compatible out of the box with Ubuntu 20.04/22.04/24.04, Debian 11/12, and RHEL/Rocky/Alma 8/9.
    • Removed -mavx512bf16 (0 vdpbf16ps instructions) from -avx512 so Intel Ice Lake / Tiger Lake / Rocket Lake (AVX512_VBMI without AVX512_BF16) and AMD Zen 4/5 execute without SIGILL, verified 0 %zmm instructions in -avx2, and added post-download SHA-256 + --version smoke-test verification with automatic source fallback.
  3. Supply-Chain Pinning, Per-User 0700 Runtime Config, modchip claude Hardening, & 64 GB / 16 GB OS Headroom Guards:
    • Pinned exact 40-char Hugging Face commit hashes (MODEL_REV), byte sizes (MODEL_SHARD_SIZES), and SHA-256 digests (MODEL_SHARD_SHA256S) across all 8 presets in install.sh, and aligned Nemotron HF model cards to NVIDIA Open Model License (OpenMDW-1.1).
    • Isolated DSV4_MOE_CFG_PATH inside a 0700 per-user runtime directory and reset routing to unpruned Top-6 ([6,6,0,3,43,1,0,0]) on every server start; removed default --dangerously-skip-permissions and personal config paths from ./modchip claude.
    • Added -ub 512 and disk slot-cache defaults on <= 68 GB hosts (deepseek4) and <= 18 GB hosts (nemotron), updated scripts/check_cpu_readiness.py to 59.13 GiB anonymous-heap VmRSS, and added AMD Zen 1/2 microcoded-PDEP detection (nemotron-fractal default).
  4. Reproducible Standard WikiText-2 (wiki.test.raw) Perplexity & Committed Benchmark Artifacts (benchmarks/QUALITY_GATE_VQ3_64.md, benchmarks/eval_perplexity_and_kld.py, benchmarks/eval_hard60_and_refusal.py, benchmarks/results/):
    • Fixed the fallback WikiText-2 URL in eval_perplexity_and_kld.py to genuine raw wiki.test.raw (with <unk> pre-tokenized rejection guard), ran reproducible llama-perplexity evaluations across both 30B and 284B families, and committed single-pass builders, eval_hard60_and_refusal.py, and raw JSON results.

v2.5.0 — LUT-VQ3-64 (GGML_TYPE_VQ3_0 = 43, 3.00 bpw AVX-512 VBMI 3D Vector Quantizer), Native Windows 11 1M-Context Engine Port, Apple Silicon Metal Q2_0 Fast-Decode Kernel, & Build Hardening

Release Date: November 2026
Highlights:

  1. LUT-VQ3-64 (GGML_TYPE_VQ3_0 = 43, 24 Bytes / 64 Weights = 3.00 bpw) 3D Vector Quantizer in 6 AVX-512 ZMM Registers (vq3/, patches/lut-vq3-64-avx512-vbmi.patch, patches/vq3_codebook.h):
    • Block Layout (block_vq3_0): Packs 64 weights into 24 bytes (3.00 bpw): 2B FP16 super-block scale d plus 22B (qs[22]), where the low 7 bits (qs[k] & 0x7F) store 20 × 7-bit 3D spherical Lloyd-Max indices (k = 0..19, stride-22 weight triples) and 2 × 6-bit 2D tail indices (k = 20..21, placed in the lower/upper 64-centroid half of the 128-entry codebook to encode bits 22..23 of s24), while bit 7 (qs[k] >> 7 across k = 0..21) packs bits 0..21 of s24 (8 × 3-bit unsigned sub-block scales, mult = 2 + u_b ∈ {2..9}).
    • Signal Fidelity on Uncompressed BF16 MoE Weights (blk.1.ffn_up_exps.weight):
      • Q4_0 (4.50 bpw): 21.09 dB SQNR (99.61% Cosine Similarity, 8.82% RelL2).
      • Fractal-64 (GGML_TYPE_Q2_0 = 42, 3.75 bpw, 30 B / 64 W with {-14,-8,-4,-1,+1,+4,+8,+14} dyadic LUT + 8 × 4-bit sub-scales): 17.75 dB SQNR (99.15% Cosine Similarity, 12.96% RelL2), +1.45 dB above ggml Q3_K (16.30 dB, 98.84%).
      • LUT-VQ3-64 (GGML_TYPE_VQ3_0 = 43, 3.00 bpw, 24 B / 64 W): 13.57 dB SQNR (97.78% Cosine Similarity, 20.97% RelL2), +3.42 dB above ggml Q2_K (10.15 dB, 95.37%) by placing 128 antipodally symmetric 3D centroids on the populated spherical/cross-polytope shell rather than empty hypercube corners.
    • Register-Resident AVX-512 VBMI VPERMI2B Decode: The 128-entry 3D int8 codebook (384 bytes) stays in 6 ZMM registers during matrix-vector and matrix-matrix kernels (_1x8, _1x4, _1x3, _1x2, 1x1), resolving 64 byte lookups per _mm512_permutex2var_epi8 instruction without L1/L2 cache reads, with portable AVX2 and scalar fallbacks.
  2. Shipped Domain-Aware Hybrid Checkpoints & Full-VQ3 Ablations (benchmarks/QUALITY_GATE_VQ3_64.md, scripts/build_nemotron_vq3.py, scripts/build_dsv4_vq3.py):
    • NVIDIA-Nemotron-3.5-30B-A3B-VQ3-64 (13.30 GiB shipped Hybrid / 13.08 GiB --all-up-exps ablation): Shipped checkpoint preserves boundary MoE layers (blk.1, 3, 49, 51) and all 23 ffn_down_exps tensors in Fractal-64 (3.75 bpw) while encoding the 19 interior blk.6..47.ffn_up_exps tensors from BF16 into VQ3_0 (3.00 bpw). On the full 23-layer up_exps ablation (13.08 GiB disk / 16.04 GiB VmRSS), benchmarks/eval_quality_and_tools.py scores 100.0 / 100.0 (30/30 Tool-Calling, 30/30 Code Gen, 20/20 Needle & Math, 20/20 Telemetry) at 24.18 tok/s E2E (+23.7% vs Q4_0) and 70.19% Stockfish-PVS acceptance, saving -5.67 GiB RAM vs Q4_0.
    • DeepSeek-V4-Flash-0731-VQ3 284B (56.40 GiB shipped 3-shard Hybrid / 56.07 GiB --aggressive ablation): Shipped checkpoint keeps 100% of MLA attention projections (attn_q_b, attn_output_a, attn_output_b, attn_kv, compressor_*) in Fractal-64 (3.75 bpw), boundary shared experts (blk.0..4, 39..42) and all ffn_down_shexp in Q5_K/Q6_K, and encodes the 68 interior blk.5..38 ffn_gate_shexp & ffn_up_shexp projections in VQ3_0 (3.00 bpw). The 255-tensor --aggressive ablation (56.07 GiB disk / 58.31 GiB VmRSS) accelerates raw N=1 tg64 decode by +16.9% (9.05 tok/s vs 7.74 tok/s) and pp128 prefill by +8.8% (41.11 tok/s), with 10.4 ms /dev/shm Claude Code 40-tool Slot-0 restore (0.16s TTFT).
  3. Native Windows 11 Patched Engine Port, 1M-Context Verification, & x64 AVX-512 ABI Fix (docs/WINDOWS_PORT.md, windows/build_patched_engine.ps1, windows/modchip_dsv4.ps1, windows/AVVIA_DSV4.bat):
    • Contributed by @MR1KRAKEN (PR #27, Issue #28): automated MSYS2 MinGW-w64 UCRT64 + Ninja build pipeline (build_patched_engine.ps1 -Target dsv4|nemotron) and dedicated launcher (modchip_dsv4.ps1 / AVVIA_DSV4.bat), verified up to 1,048,576 (1M) tokens on an 8C/16T AMD Ryzen 7 9800X3D (64 GB DDR5, 21.3–22.6 tok/s pp512, 6.35–8.04 tok/s tg128).
    • Fixed Windows x64 MinGW-w64 AVX-512 crash (Issue #31, commit 54c89bf): eliminated GCC UCRT64 XMM6..XMM15 callee-saved register clobbers at 16 MB stack boundaries (-Wl,--stack,16777216 + non-inlined SIMD kernel helpers) and replaced aligned vmovdqa64 .rdata table loads with unaligned vmovdqu64 (_mm512_loadu_si512) for PE/COFF 16-byte section alignment compatibility.
  4. Apple Silicon Q2_0 Metal Fast-Decode Kernel & M5 Max DeepSeek-V4 284B Support (apple-silicon/):
    • Merged PR #24 by @austindixson: register-tiled Metal Q2_0 (Fractal-64) matrix-vector decode kernel boosting Apple M1 Max decode by +86% (57.65 tok/s) and reaching 78.60 tok/s on Apple M3 Max.
    • Added Apple M5 Max (64 GB Unified Memory) DeepSeek-V4-Flash 284B build and launch scripts (apple-silicon/build-dsv4-engine.sh, apple-silicon/run-dsv4.sh, apple-silicon/results/dsv4-m5max.md) by @notactuallytreyanastasio (169.4 tok/s pp512, 27.0 tok/s tg128, 20.7–23.6 tok/s served with 0 swapouts) and M5 Max CPU memory bandwidth measurements by @kulesh (Issue #21).
    • Added community CPU leaderboard entries for AMD Ryzen 7 5700X (@germanpsycho, Issue #23) and AMD Ryzen 5 2600X (@lawsochi, Issue #26).
  5. Build Pipeline, Self-Contained Encoder, & Repository Hardening:
    • Made vq3/vq3_enc_lib.c fully self-contained (zero external -lggml-base dependency) with automatic compilation from scripts/build_nemotron_vq3.py and scripts/build_dsv4_vq3.py, added --vq3-nemotron and --vq3-dsv4 to ./modchip quantize, made scripts/build_zen5_llama.sh and windows/build_patched_engine.ps1 idempotent across repeated runs, and hardened gateway/sse_gateway.py, kv_cache/harp_cache.py, scripts/llama_modchip.py, scripts/transcode_dsv4.c, modchip, and install.sh.

v2.4.0 — DeepSeek-V4-Flash 284B 4-Level Cache-Tiled Prefill (44.36 tok/s, +77.1%) & Mathematical Co-Design (9.06–10.74 tok/s Pure CPU Decode, $L_2$-Quadrature MoE Tail Pruning, wo_b * wo_a SVD Spectrum), Native Windows 10/11 Hybrid GPU+CPU Pack (windows/), & 80.8 tok/s AMD Vulkan MXFP4

Release Date: November 2026
Highlights:

  1. DeepSeek-V4-Flash 284B (13.17B Active) 4-Level Register (ZMM AVX-512BW) + L1D + L2 + L3 Kernel & Graph Co-Design (+77.1% Prefill & +53.3%–81.7% Pure Decode — patches/deepseek-v4-flash-fractal-256k.patch):
    • 512-Bit AVX-512BW Register-Stationary Multi-Column Kernels (_1x8, _1x4, _1x3, _1x2, 1x1), Zero-Remainder {8, 4, 3, 2} MoE Tiling, AVX-512 quantize_row_q8_K, & MQA8 FlashAttention: Unpacks each quantized weight superblock (Q2_0, IQ1_S, IQ2_XXS with BMI2+SWAR parity masks, IQ1_M, Q5_K, Q6_K) once in ZMM registers across up to 8 token columns (64 weights/instruction), decomposes any $M \ge 2$ into ${8, 4, 3, 2}$ with zero 1x1 fallback, vectorizes quantize_row_q8_K in AVX-512, and halves FLASH_ATTN_EXT time (415.1 ms -> 208.5 ms) via Register-Stationary AVX-512 MQA8.
    • Zero-Rebuild Dynamic CSA/LID Skip (ggml_dsv4_skip_csa_comp), 8-Slot Q8_K/Q8_0 Activation Cache, MUL_MAT_ID Row-Group Reuse, & L1D/L2 Token-Affinity HC_PRE/HC_POST: Eliminates full 4,551-node compute-graph rebuilds on non-compressor decode steps (7 out of every 8 tokens) by tagging dummy CSA/LID compressor nodes with flags |= 0x100 (GGML_TENSOR_FLAG_DSV4_SKIP), caches quantized Q8_K/Q8_0 input activations across shared-input projections (s_q8_cache_buf), and pins each token it to thread ith = it % nth across DSV4_HC_POST -> DSV4_HC_PRE -> RMS_NORM to eliminate cross-CCD Infinity Fabric snoops.
    • Verified Speedup on 16C/32T Zen 4/5 (AMD Ryzen 9 9955HX, 0 GPUs): Accelerates warm multi-turn prompt prefill & agentic turns from 24.70–25.05 tok/s to 43.16–44.36 tok/s (+77.1%) and pure unpruned Top-6 single-token decode (N=1, zero speculation) from 5.91 tok/s (169.3 ms/tok) to 9.06–9.95 tok/s (100.5–110.3 ms/tok, +53.3%–68.4%) (and 10.12–10.74 tok/s with Top-4 L2 + Gate-First SwiGLU).
  2. Mathematical Structure of DeepSeek-V4-Flash: $L_2$-Quadrature Adaptive MoE Tail Pruning (9.68–10.12 tok/s) & Exact SVD of wo_b * wo_a:
    • Why MoE Tail Pruning Requires $L_2$-Quadrature Rescaling (Not Linear $L_1$ Rescaling): Layers 0..2 (dsv4_hash_layer_count = 3) use deterministic token-ID hash tables (ffn_gate_tid2eid) with flat weights (~0.25 each) and are preserved at 6/6 experts. In the 40 learned-router layers (il = 3..42), the 6 expert output vectors $\mathbf{e}_1(\mathbf{x}), \dots, \mathbf{e}_6(\mathbf{x}) \in \mathbb{R}^{4096}$ are nearly orthogonal ($\langle \mathbf{e}i, \mathbf{e}j \rangle \approx 0$), so their norms add in quadrature ($|\sum w_i \mathbf{e}i|2^2 \approx \sum w_i^2 |\mathbf{e}i|2^2$). Rescaling kept experts via $L_2$-quadrature ($\alpha{L_2} = \sqrt{\sum{i=1}^6 w_i^2 / \sum{i=1}^k w_i^2}$) instead of linear $L_1$ sum ($\alpha{L_1} = \sum{i=1}^6 w_i / \sum{i=1}^k w_i$) preserves the balance against the unscaled dense shared expert (ffn_out = moe_out + ffn_shexp) and cuts KL-divergence by -58%.
    • Cross-Platform Zero-Overhead Runtime Control (DSV4_MOE_CFG_PATH — hardened in v2.5.1/v2.5.3 from legacy /tmp/dsv4_moe_cfg.bin & %TEMP%\dsv4_moe_cfg.bin to 0700 per-user runtime dirs): Switchable on the fly in 0.3 ns (zero syscalls per token via mmap on Linux/macOS and CreateFileMappingA / MapViewOfFile on Windows _WIN32).
    • Exact SVD Spectral Analysis of wo_b * wo_a (31% of Total DRAM Traffic = 991.6 MB/token): Shows that the linear chain attn_output_a ([4096, 8192]) $\to$ attn_output_b ([8192, 4096]) retains 99.64% of Frobenius energy and 0.998204 (99.82%) output cosine similarity at rank $r = 768 / 1024$ (-25% DRAM = -248 MB/token, -6.9 ms/tok), and 99.30% cosine similarity at rank $r = 640 / 1024$ (-37.5% DRAM = -372 MB/token, -10.3 ms/tok).
  3. Native 1-Click Windows 10/11 Hybrid GPU+CPU MoE Support (windows/, modchip):
  4. AMD Vulkan Hybrid MXFP4 Verification (75.1 / 80.8 tok/s at 256K Context) & Security Hardening (FAQ.md, gateway/sse_gateway.py):
    • Community benchmark on AMD Ryzen 9 7945HX3D + Radeon RX 9070 XT 16GB (RADV/Vulkan) running Nemotron-30B-A3B at 256K context: Fractal-MXFP4 (15.2 GB) hits 75.1 tok/s (new code) / 80.8 tok/s (in-context refactor), outperforming Q4_0 (69.7 / 76.2 tok/s at 16.1 GB) while saving 0.9 GB of VRAM. Documented in FAQ.md Q8 why Fractal-64 (Q2_0) is CPU/Metal-only until Vulkan/CUDA add a custom q2_0 shader.
    • Merged PR #4 (commit 83767ca): hardened gateway tool schema whitelist, boundary checks, 2MB THP alignment, dynamic sysfs L3 CCD topology detection, and /dev/shm IPC validation.
DeepSeek-V4-Flash 284B (13.17B Active) Mode (il = 0..2 kept at 6/6) Pure Decode (tok/s) Latency (ms/tok) Speedup vs Initial (5.91 tok/s) Prob Cosine Similarity Top-10 $D_{\text{KL}}$ (nats) Local Top-10 $\Delta$PPL Top-1 / Top-3 Match
0. Pre-Optimization Baseline (v2.3.0 initial N=1) 5.91 tok/s 169.30 ms 1.00x 1.00000 0.0000 0.00% 100% / 100%
1. v2.4.0 Unpruned (Top-6 All Layers, Default) 9.06 tok/s 110.33 ms +53.3% 1.00000 0.0000 0.00% (Same-GGUF Ref) 100% / 100%
2. v2.4.0 Adaptive Tail (min_w=0.11, $L_2$ Quadrature) 9.52 tok/s 105.02 ms +61.1% 0.99634 0.0047 +0.47% (Negligible) 95.8% / 100%
3. v2.4.0 Sweet-Spot (Top-5 on il >= 3, $L_2$ Quadrature) 9.68 tok/s 103.27 ms +63.8% 0.99714 0.0042 +0.42% (Negligible) 95.8% / 100%
4. v2.4.0 Hybrid 6/4/6 (il = 16..39 at 4, $L_2$ Quadrature) 9.83 tok/s 101.74 ms +66.3% 0.99660 0.0184 +1.86% (Very Low) 95.8% / 100%
5. v2.4.0 Hybrid 5/4/5 (il = 12..40 at 4, $L_2$ Quadrature) 9.95 tok/s 100.55 ms +68.4% 0.99463 0.0215 +2.17% (Low) 95.8% / 100%
6. v2.4.0 Turbo 10+ tok/s (Top-4 on il >= 3, $L_2$ Quadrature) 10.12 tok/s 98.84 ms +71.2% 0.99587 0.0281 +2.85% (Moderate) 95.8% / 100%
7. v2.4.0 Top-5 L2 + Gate-First SwiGLU (80/128, cfg[6..7]=80) 10.15 tok/s 98.49 ms +71.7% 0.99385 0.0531 +5.45% (100% Tool-Call) 100% / 100%
8. v2.4.0 Top-4 L2 + Gate-First SwiGLU (96/128, cfg[6..7]=96) 10.60 tok/s 94.37 ms +79.4% 0.99126 0.0694 +7.19% (100% Tool-Call) 100% / 100%
9. v2.4.0 Top-4 L2 + Gate-First SwiGLU (64/128, cfg[6..7]=64) 10.74 tok/s 93.15 ms +81.7% 0.98059 0.1159 +12.29% (100% Tool-Call) 100% / 100%
Comparison: Top-4 with Naive Linear $L_1$ Rescaling ($\alpha_{L_1}$) 10.10 tok/s 98.97 ms +70.9% 0.98698 0.0671 +6.94% (Distorted) 95.8% / 95.8%

v2.3.0 — DeepSeek-V4-Flash 284B in < 60 GiB RAM at 256K Context (56.57 GiB SwiGLU-H2 + Fractal-64), Single-Cycle AVX2 Q2_0 Kernels (+55%), & Community Leaderboard (111.62 tok/s Threadripper, 44.97 tok/s AWS Graviton3 ARM64, 66.5 tok/s AMD Vulkan)

Release Date: November 2026
Highlights:

  1. DeepSeek-V4-Flash 284B (13.17B Active) Inside < 60 GiB RAM at 256K Context on a 64 GB CPU Host:
    • Analytical Second-Order SwiGLU-H2 MoE Compression + Fractal-64 (GGML_TYPE_Q2_0 = 42, 3.75 bpw) MLA Transcoding (scripts/transcode_dsv4.c, scripts/transcode_dsv4_shard.py, scripts/build_fractal_moe_gguf.sh --deepseek): Shrinks DeepSeek-V4-Flash-0731 (43 layers: 3 hash-routed + 40 learned-router, 256 routed + 1 shared expert/layer, MLA + Indexer Compressors) from 76.87 GiB (4-shard UD-IQ1_S, which OOMs on 64 GB RAM) down to 56.57 GiB (-20.30 GiB, 3 transcoded GGUF shards) on disk and 58.9 GiB total VmRSS at full -c 262144 (256K) context.
    • Computes closed-form second-order SwiGLU Hessian importance weights $I_{e,j} = |W_{\text{gate}}^{(e)}[j,:]|2^2 \cdot |W{\text{up}}^{(e)}[j,:]|_2^2$ directly from the paired Gate and Up expert slices while transcoding dense Q8_0 MLA & Indexer projections (attn_q_b, attn_output_a, attn_output_b, attn_compressor_gate, attn_compressor_kv, attn_kv, indexer_compressor_gate, indexer_compressor_kv) to Block-64 Fractal-64 (Q2_0, 3.75 bpw).
  2. Single-Cycle AVX2 Variable-Shift dot_q2_0_q8_0 (+55% Speedup) & 3D L1D Tiling (wo_a):
    • Vectorizes 64-bit upper bit-plane unpacking (qh[8]) and 8×4-bit shifted sub-scales (scales[4]) in ggml_vec_dot_q2_0_q8_0_generic (ggml/src/ggml-cpu/quants.c) using single-cycle AVX2 variable bit-shifts (_mm256_sllv_epi32 / _mm256_srlv_epi32) fused into _mm256_madd_epi16(p01, vmult01) (vpmaddwd), cutting 10M-block Q2_0 × Q8_0 runtime from 86.5 ms to 55.8 ms (+55% faster).
    • Adds 3D L1D Cache Tiling (TILE_I0 = 64) in ggml_compute_forward_mul_mat (ggml/src/ggml-cpu/ggml-cpu.c) for 3D multi-head tensors (ne02 > 1, wo_a), keeping [ne00, 64] slices inside the 48 KB Zen 5 L1D cache across all 32 threads.
  3. MLA-Aware HARPCache, 8-Step Sparse Indexer Lookahead Prefetching, & $O(1)$ llama_kv_cache_dsv4 Speculative Rollback Fix (patches/deepseek-v4-flash-fractal-256k.patch):
    • Auto-detects DeepSeek MLA compressed KV tensors (ne11 == 576, ne21 == 512, LLAMA_KV_L3_WINDOW=1024) for _MM_HINT_NTA L3 isolation and prefetches (_mm_prefetch(..., _MM_HINT_T0)) sparse csa_top_k_mask rows 8 steps ahead (ic_pf = i + 8).
    • Fixes state_snapshot plane indexing (std::min(n_rs_seq, rollback + (d - n_seq_tokens)) * state_rows) and kv_csa/hca/lid->seq_rm in src/llama-kv-cache-dsv4.cpp, achieving 94.5% draft acceptance (9.67 tok/s avg / 11.50–14.69 tok/s peak) and clean EOS termination on both ./modchip chat and ./modchip claude (Claude Code).
  4. Unified ./modchip chat + Claude Code Compact Tool Snapshot (32.6 ms Slot 0 Restore):
    • Updates modchip, scripts/chat.py, and gateway/sse_gateway.py with automatic active-model detection (/v1/models), MODCHIP_COMPACT_TOOLS=1 (2,940 prefix tokens, 32.6 ms /dev/shm restore), and automatic Slot 0 restoration (_last_endpoint_was_chat) when switching between ./modchip chat and Claude Code.
  5. New Community CPU & Hybrid Benchmarks (README.md, FAQ.md):
    • AMD Threadripper PRO 7985WX (64C/128T Zen 4, 256 MB L3, 8-Ch DDR5-6000) by @aifartist (Issue #1): Full thread-scaling sweep (16/24/32/48/64 threads) + 111.62 tok/s warm decode (80.14 tok/s cold, 386.00 tok/s prefill at -t 32 4C/CCD).
    • AWS Graviton3 m7g.2xlarge (8 vCPU ARM64 Neoverse-V1, 32 MB L3, 31 GB DDR5) by @gerchik (Issue #2): 44.97 tok/s refactoring / 41.05 tok/s C++20 (101.67 tok/s prefill).
    • AMD Ryzen 9 7945HX3D + Radeon RX 9070 XT 16GB (Vulkan/RADV Hybrid) (FAQ.md Q8): 66.50 tok/s decode / 563.00 tok/s prefill at 256K context via tensor-role offloading (-ngl 99 --n-cpu-moe 30 --no-mmap).
Thread Scaling & Warm Promotion on Threadripper PRO 7985WX (@aifartist, Issue #1) -t 16 (2C/CCD) -t 24 (3C/CCD) -t 32 (4C/CCD Sweet Spot) -t 48 (6C/CCD) -t 64 (8C/CCD)
Prefill (tok/s) 238.12 314.85 386.00 tok/s 361.40 312.18
Stage 1: Cold C++20 Generation (tok/s) 58.40 68.92 73.84 tok/s 64.15 51.80
Stage 2: Cold In-Context Refactoring (tok/s) 62.10 74.50 80.14 tok/s 69.30 55.42
Stage 2: Warm Session Trie + b5 Promotion (Run 4+) — — 111.62 tok/s (+39.3%) — —

v2.2.0 — Block-64 2-Level Hierarchical Non-Linear MoE Quantization (14.36 GiB Fractal-64 & 15.95 GiB Fractal-MXFP4), 100/100 Quality Gate, & 8-CCD Threadripper PRO 7985WX (80.14 tok/s)

Release Date: November 2026
Highlights:

  1. Block-64 2-Level Hierarchical Non-Linear MoE Quantization (Fractal-64, GGML_TYPE_Q2_0 = 42, 30 bytes / 64 weights = 3.75 bpw): Solves the 1856 × 2688 non-divisibility constraint that causes 256-block K-quants (Q3_K, IQ3_S) in llama.cpp to fall back to Q4_0 on Nemotron-3.5-30B-A3B. Starting directly from the unquantized 58.84 GiB BF16 master weights, Fractal-64 shrinks the model to 14.36 GiB on disk and 15.40 GiB idle VmRSS (-6.01 GiB RAM saved vs Baseline-Q4_0), achieves 17.75–17.78 dB SQNR on real BF16 expert weights (+1.45–1.53 dB above Q3_K), fuses 8-weight sub-block rescaling (mult ∈ {4..19}) directly into AVX2 vpmaddwd (_mm256_madd_epi16) at zero extra SIMD instruction cost, and scores 100.0 / 100.0 on benchmarks/eval_quality_and_tools.py while running +28.0% faster (25.02 tok/s vs 19.54 tok/s).
  2. Asymmetric Fractal-MXFP4 (15.95 GiB / 4.25 bpw from Q4_0): For users re-quantizing an existing Q4_0 GGUF via scripts/build_fractal_moe_gguf.sh --profile mxfp4, shrinks the model to 15.95 GiB (17.46 GiB idle VmRSS), adds _MM_HINT_NTA cache-bypass streaming to ggml_vec_dot_mxfp4_q8_0, runs +33.5% faster (26.08 tok/s), and scores 100.0 / 100.0 on the Quality & Tool-Calling Gate.
  3. 100-Point Reproducible Quality, Tool-Calling, Coding & Long-Context Needle Gate (benchmarks/eval_quality_and_tools.py): Ships an executable grader + raw JSON outputs (benchmarks/results/) testing 5 multi-tool JSON schema calls (30 pts), 3 sandbox-executed Python algorithms (30 pts), an 8,512-token Needle-in-a-Haystack passkey + symbolic math check (20 pts), and live speed/RAM telemetry (20 pts).
  4. 8-CCD AMD Threadripper PRO 7985WX Verification (80.14 tok/s decode / 386.00 tok/s prefill): Community benchmark by @aifartist (Issue #1) + deterministic per-CCD taskset -c core mask generation in scripts/llama_modchip.py.
  5. External Code Review Hardening (commit 8191367 + v2.2.0): Minimal clean llama.cpp patch (patches/zen5-nemotron-256k-optimizations.patch) verified with git apply --check against d2f83055, exact full-context attention (LLAMA_ATTN_WINDOW=0) by default across all code paths, safe O_NOFOLLOW + owner/mode validation on /dev/shm/llama_modchip.bin, and gateway shell-quoting hardening.
Metric / Suite (benchmarks/eval_quality_and_tools.py) Baseline-Q4_0 (17.60 GiB) Fractal-MXFP4 (15.95 GiB) Fractal-64-BF16 (14.36 GiB) Fractal-64-BF16 Delta
1. Agentic Tool-Calling (30 pts) 30.0 / 30.0 30.0 / 30.0 30.0 / 30.0 100.0% parity
2. Executable Code Gen (30 pts) 30.0 / 30.0 30.0 / 30.0 30.0 / 30.0 100.0% parity
3. Long-Context Needle (8.5K) & Math (20 pts) 20.0 / 20.0 20.0 / 20.0 20.0 / 20.0 100.0% parity
Quality Subtotal (80 pts) / Total (100 pts) 80.0 / 100.0 80.0 / 100.0 80.0 / 100.0 100.0% parity
Single-Turn Decode Throughput (tok/s) 19.54 tok/s 26.08 tok/s 25.02 tok/s +28.0% (+33.5% MXFP4)
Idle / Peak Resident RAM (VmRSS, 256K Context) 21.41 / 21.71 GiB 17.46 / 18.86 GiB 15.40 / 17.27 GiB -6.01 GiB idle / -4.44 GiB peak

v2.1.0 — Stockfish-PVS v2 (Sweet Spot, M=7), 4 Unlocked RouteCrack Techniques (60.40 tok/s Peak), & Multi-Platform Expansion (Apple Silicon M4 Pro + Fedora Ryzen 8745HS)

Release Date: November 2026
Highlights: Combines Principal Variation Search (PVS) + Multi-Order Zobrist Transposition Tables (StockfishDrafter, 192 KB L2-resident) with the RouteCrack statistical speculative engine, unlocking 4 previously dormant RouteCrack techniques (including Singular Horizon Extension M=7), pushing live 25K-context code refactoring on AMD Ryzen 9 9955HX (0 GPUs) to 48.39 tok/s average / 60.40 tok/s peak (mean len = 6.90 tokens/step, 96.39% acceptance) and 85.00% draft acceptance on technical prose, while adding community-verified support for Apple Silicon (M4 Pro 24 GB) and Fedora 44 (AMD Ryzen 7 8745HS GEEKOM A8).


1. Stockfish-PVS v2 (Sweet Spot, M=7) Speculative Acceleration (rc_stockfish.h, ngram-map.cpp)

On a CPU-hosted Sparse MoE + Mamba-2 hybrid (Nemotron-3.5-30B-A3B), every drafted token activates additional routed experts from DDR5 RAM (~0.30x single-token cost per drafted token) and any rejected token triggers an 18.4 MB Mamba-2 recurrent state rollback (slot.spec_ckpt). Consequently, net wall-clock speedup follows the CPU-MoE Golden Equation:
$$\text{WallGain} = A - 0.30 \times D = 0.70 \times A - 0.30 \times W_{\text{wasted}}$$

During the RouteCrack research campaign (96+ techniques documented in speculative/ROUTECRACK_TECHNIQUES.md), several high-recall predictors could not be enabled in production because static predictors trained on the same corpus make correlated errors when confidence drops below 84%.

StockfishDrafter (speculative/cpp/rc_stockfish.h) + ngram-map.cpp address this by maintaining a 192 KB L2-resident (3 × 64 KB Zobrist Transposition Tables tt5, tt4, tt3, < 19% of Core 0's 1 MB L2 cache on Zen 5), zero-allocation search state updated continuously on the live session stream:

  • Multi-Order Lockless Zobrist Transposition & Refutation Tables (tt5, tt4, tt3 = 192 KB) with 32-bit verification keys (key32), verified best_move, explicit refuted_move tracking, and Stockfish History Gravity ([-512, +512]).
  • 1-Ply Quiescence Lookahead & Multi-Branch Conflict Disambiguation (in ngram-map.cpp): Queries StockfishDrafter::query() at each rollout step $d=0..6$ (M=7) to resolve 1-ply horizon choices and disambiguate conflicting in-context suffix matches.

The 4 RouteCrack Techniques Unlocked by Stockfish-PVS v2:

  1. Technique #1 — Online Session Trie Rescue (rc_trie_v2.h + Stockfish-PVS Gate):
    • Rescues novel in-session identifiers, variable names, and file paths when the static 8-level FNV-64 Hash Cascade misses (best_conf < min_c), provided OnlineTrieV2 has session support (ot_cnt >= 2, ot_conf >= 0.78) and is confirmed by the orthogonal Stockfish Zobrist TT (sf_has_cand, or ot_cnt >= 4 && ot_conf >= 0.90).
    • Marginal Precision: 92.19% (+59 accepted tokens, only 5 wasted).
  2. Technique #2 — Top-4 Cascade Disambiguation via Orthogonal Zobrist TT:
    • Inspects tok[1..3] in hc_top4_k*.bin whenever tok[0] falls in the uncertain band (0.55 <= c0 < min_c). If an alternative alt_t has a strong live-session Zobrist TT match (alt_sf >= 640, exact tt5/tt4 hit) that strictly beats tok[0] (alt_sf > sf_t0 + 250), Stockfish-PVS promotes alt_t.
  3. Techniques #5 & #89 — 11,382-Entry Multi-Token Macro Codebook (macro_codebook.bin):
    • Enables multi-token structural chains (1..15 tokens long, >= 90% empirical precision) at $d=0$ and unlocks Singular Horizon Extension across the macro chain.
    • Marginal Precision: 91.81% -> 96.44% (+92 accepted tokens, only 8 wasted).
  4. Techniques #17 & #73 — Singular Horizon Extension (--spec-ngram-simple-size-m 7) & Consensus Integrity Fix:
    • Extends the draft horizon from $D=4$ (M=5) up to $D=7$ (M=7) exclusively on singular beams: verified 2-hit in-context trajectories (true_consensus_hits == d), Macro Codebook chains (used_macro), or Singular Cascade + Stockfish TT locks (best_conf >= 0.95 && sf_best >= 600).
    • Consensus Integrity Fix: Separates true_consensus_hits (strictly 2-hit in-context matches) from consensus_hits so single-hit context matches rescued by RouteCrack at $d=0..2$ cannot masquerade as 2-hit trajectories at $d \ge 3$.
    • Marginal Precision at $D=5..7$: 98.18% (M=6) to 98.74% (M=7: +78 accepted tokens, 1 wasted, -7 rollbacks).

2. Verified Benchmarks: Held-Out Ablation (77,456 Tokens) & Live Production Telemetry

A. Held-Out Corpus Ablation (77,456 Nemotron-3.5 Tokens, 351 Contexts — speculative/cpp/test_synergy.cpp)

Speculative Configuration Drafted ($D$) Accepted ($A$) Wasted ($W$) Token Precision 0-Rollback Steps Mamba-2 Rollbacks CPU-MoE WallGain
1. RouteCrack Baseline (M=5, Static Cascade) 6,332 5,440 892 85.91% 87.31% 482 +3,540.4
2. + Stockfish-PVS v1 (M=5, Zobrist TT + PVS) 6,329 5,459 870 86.25% (+0.34%) 87.84% (+0.53%) 461 (-21) +3,560.3 (+19.9)
3. + Stockfish-PVS v2 Sweet Spot (M=7, +Trie +Top4 +Macro +Singular) 6,555 5,663 892 **86.39% (+0.48%) ** **88.35% (+1.04%) ** **450 (-32) ** **+3,696.5 (+156.1) **
  • +223 additional accepted tokens (5,440 -> 5,663) with zero additional wasted tokens (892 -> 892, 100.0% net marginal precision) and -32 fewer Mamba-2 rollbacks (482 -> 450).

B. Live 5-Stage Production Benchmark (AMD Ryzen 9 9955HX, 0 GPUs, 22.2K -> 27.7K Context)

Stage & Workload (Nemotron-3.5-30B-A3B-Q4_0) Active Context M=5 Speed (Avg / Peak) Stockfish-PVS v2 (M=7) Speed (Avg / Peak) Draft Acceptance (Acc / Drafted) Mean Spec Length (tok/step)
Atto 1A: Warm TTFT + <tool_call> Read (50 tok) 22,299 tok 30.84 tok/s (2.60 s) 34.52 tok/s (2.45 s wall) 83.33% (35 / 42) 4.18 tok/step
Atto 1B: Prefill harp_cache.py (3,089 tok) + 500 tok Code 25,388 tok 40.91 / 45.43 tok/s (12.22 s) 48.39 tok/s avg / 60.40 tok/s peak (10.33 s) 96.39% (401 / 416) 6.90 tok/step (up from 5.47)
Atto 2A: Thread-Safe Refactoring (400 tok Mixed Code) 26,419 tok 27.80 / 41.20 tok/s 28.61 tok/s avg / 48.47 tok/s peak 86.10% (223 / 259) 4.66 tok/step
Atto 2B: From-Scratch Concurrent Stress Test (350 tok) 26,431 tok 18.61 / 21.84 tok/s 18.66 tok/s avg / 21.89 tok/s peak 56.38% (53 / 94) 2.33 tok/step
Atto 3: Architectural & Security Audit in Italian (350 tok) 26,959 tok 18.58 / 20.50 tok/s (80.6% acc) 18.76 tok/s avg / 20.78 tok/s peak 85.00% (34 / 40) (up from 67.4%) 2.48 tok/step
Live Multi-Turn Claude Code Session (4,096 tok Turn 3) 27,713 tok 19.00 / 30.87 tok/s (59.1% acc) 20.68 tok/s avg / 39.28 tok/s peak (-17.5 s) 67.98% (1,055 / 1,552) 2.68 tok/step

3. Multi-Platform Support & SSE Gateway Enhancements (Co-Authored with @jarorosFork / Oleksandr Nazar)

Integrated community contributions from Oleksandr Nazar (@jarorosFork) (commits 9509f4c, 93b6381, d740063 -> 6694b0b):

  • apple-silicon/ — Apple Silicon (M4 Pro 24 GB Unified Memory) Metal Stack:
  • fedora/ — Fedora 44 / AMD Ryzen 7 8745HS (GEEKOM A8, 8C/16T Zen 4, 64 GB DDR5):
  • gateway/sse_gateway.py — Tool-Call Resilience & Cross-Platform Portability:
    • _write_as_bash() Fallback: Automatically converts raw multiline Write tool calls into safe cat << 'EOF' > ... Bash commands via shlex.quote() when unescaped quotes in 100+ line code payloads break LLM JSON string serialization.
    • _coerce_xml_param() Schema-Aware Coercion: Coerces XML <function=Name><parameter=key>value</parameter></function> parameters to native JSON integers, numbers, booleans, arrays, or objects using the client's tool JSON schema (_extract_param_types()).
    • Portable HARP_CACHE & Environment Config: Safely guards /dev/shm usage on macOS (os.path.isdir("/dev/shm")) and adds GATEWAY_HOST, GATEWAY_CORS_ORIGIN, and GATEWAY_SYSTEM_PROMPT environment variables.

4. Microarchitectural & Documentation Audit Fixes


v2.0.0 — llama-modchip (v0.9 Public Beta): Runtime Controller & Profiler for CPU GGUF Inference

  • Introduced scripts/llama_modchip.py: Model-agnostic .gguf binary header inspector (< 5 ms), Linux CPU/L3/THP topology profiler, Architecture Safety Locks (LLAMA_SWA_STRIDE=4 3:1 Interleaved SWA for Pure GQA models), and live 48-byte /dev/shm/llama_modchip.bin runtime controller + Curses TUI.
  • Verified across 4 GGUF architectures on Dual-CCD AMD Ryzen 9 9955HX (Nemotron-3.5-30B-A3B at 256K, Qwen3-30B-A3B at +38.5% decode via LLAMA_MOE_TOP_K=4, Nemotron-H-8B, and Llama-40L).