Repository navigation
llama-modchip v3.1.0 — RouteCrack 2.0 Unified Speculative Engine & 832B L1 Micro-Arbiter
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.0Techniques (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:
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-Nextblk.48,chain_heads == false), standard--spec-type draft-mtp(n_max = 3) executes3 × ~15 mssequential248Klm_headpasses feeding its ownpending_hwithout 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:
- 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'sfastpath_q0_mingate,RouteCrack 2.0drafts up to5tokens in< 250 ns, skipping the~15 msMTP248Klm_headpass altogether. - Phase B + C — Neural MTP /
RCPredictorAnchor + Anchored Suffix & Stockfish-PVS Extension: When MTP is present (n_layer_nextn > 0), runs a singled = 0NextN decode, arbitratesmtp_t0against Stockfishtt6..tt3+ collision-free 28-bit Tagged Mode Refutation (JSON/Code/Prosesession heat), and queries Two-Zone Suffix + Stockfish TT anchored on[prompt..., id_last, mtp_t0]to extend[d_1..d_4], keepingctx_dft100% KV-position-aligned across partial acceptances (180-step multi-turn ASan/UBSan invariant testPASS). Whenn_layer_nextn == 0(Nemotron-30B&DeepSeek-V4 284B), fusesRCPredictor(8-level FNV-64 Hash Cascade +300hot rules +11,382macro chains + online248K-safeRCTrie/PPM/Skipgram, requiringtrie_obs >= 2on prompt-warmed suffix candidates to prevent single-hit self-corroboration) with Two-Zone Suffix and Stockfish-PVS.
- Phase A — Sub-250ns Fast-Path Suffix Bypass: Queries an incremental O(1) Two-Zone 3-Gram Index (
832 BRouteCrack 2.0 L1 Micro-Arbiter(common/rc_arbiter_l1.h):- Compact
[10 -> 16 -> 1]ClippedReLU network (sizeof(RC2L1ArbiterWeights) == 832 B=13cache lines, 100% L1d-resident) with unalignedAVX-512F(_mm512_loadu_ps),AVX2 + FMA(_mm256_loadu_ps),ARM64 NEON(vld1q_f32), and scalar execution (Windows PE/COFF.rdatasafe), plus a NaN/Inf-guarded degree-5 Remez minimaxfast_sigmoid(< 3e-6error). - Ships three hardware-calibrated cost profiles selected automatically at model load:
kRC2DefaultArbiter(n_layer_nextn > 0, e.g.,Qwen3.832GB/64GB): accounts for0.13 × T_1MTP 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_1DDR5256-expert pull cost per extra token so284Bmodels accelerate code/JSON bursts without over-drafting prose tails (plus automaticn_max = 3cap on densen_expert == 0CPU models to stay inside a singlemr = 4GEMM weight pass).
- Compact
- Root Architectural Bottleneck Solved: On 1-layer NextN MTP models (
- 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,5BActive,256tok/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-mtpn_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%vsN=1,+29.73%vsMTP-1,+14.49%vsv3.0,4 / 4workload 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 JSONW1+W2[254/254], with lossless target-argmax verification onW3+W4wherebatch > 1GEMM vsbatch = 1GEMV FP32 FMA rounding diverges at near-tied logits — identical toMTP-1andv3.0draft-mtp).
DeepSeek-V4-Flash-0731-MaxQ-v4(284.3B,13.2BActive,192tok/wl,--load-mode none --repack, unprunedTop-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;W2diverged at token 120)RouteCrack 2.0(routecrack2+kRC2HeavyMoEDraftlessArbiter):7.79 tok/s(+14.51%vsN=1,+0.84%vsv3.0:W1 = 12.31[+90.0%vsN=1,+3.4%vsv3.0,100%exact],W2 = 7.55[+12.7%vsN=1,+2.2%vsv3.0,100%exact],W3 = 6.74[-2.4%vsN=1, tied vsv3.0,59.3%vs55.6%acc],W4 = 6.49 tok/s[-7.4%vsN=1on high-entropy prose where284BDDR5256-expert pull cost dominates n-gram misses,36.4%acc];45.0–50.5 tok/sprefill,85.92%accept,mean_len = 2.97,VmHWM = 59.11 GiB).
NVIDIA-Nemotron-3.5-30B-A3B(30B,3BActive,256tok/wl, benchmarked onFractal-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;W2diverged at token 57)RouteCrack 2.0(routecrack2+kRC2DraftlessArbiter):28.20 tok/s(+24.78%vsN=1,+3.96%vsv3.0:W1 = 42.18[+90.0%vsN=1,-0.85%vsv3.0,100%exact],W2 = 28.83[+27.7%vsN=1,+10.5%vsv3.0,100%exact],W3 = 22.97[+1.4%vsv3.0],W4 = 24.72 tok/s[+3.9%vsv3.0];78.59%accept,mean_len = 3.35).
- Evaluated across 4 realistic coding & agentic workloads (
- Engine Polish, Shallow-Clone
b12416UI Pinning, & Cross-Platform Fleet Defaults (modchip,install.sh,scripts/build_zen5_llama.sh,apple-silicon/,windows/,fedora/):- Eliminated spurious
common_fit_paramsextra-model context warnings (common/fit.cpp) when--spec-type routecrack2runs in draftless mode on non-MTP models (n_layer_nextn == 0). - Pinned
HF_UI_VERSION=b12416and-DLLAMA_BUILD_NUMBER=12416inscripts/build_zen5_llama.sh,apple-silicon/build-dsv4-engine.sh, andwindows/build_patched_engine.ps1so--depth 1shallow clones ofllama.cpp @ de32b268cnever hitb1web-UI asset hash mismatches. - Defaulted all presets across
./modchip,install.sh,scripts/llama_modchip.py,scripts/check_cpu_readiness.py,apple-silicon/,windows/,fedora/, andsystemd/to--spec-type routecrack2while retainingMODCHIP_SPEC_TYPEoverrides (draft-mtp,ngram-map-k,ngram-simple,none). Zero GGUF checkpoint changes — allv3.0GGUF SHA-256s remain 100% identical.
- Eliminated spurious
- 12 Static-
libgompPortableGLIBC_2.30Linuxx86_64Binaries, Tarball & Patch (SHA256SUMS):- Built on
ubuntu:20.04(GLIBC <= 2.30, staticlibgomp.a+libstdc++.a+libgcc.a,0%zmmin-avx2,0vdpbf16psin-avx512,0dynamiclibgomp.sodependencies):796b6d3c3659bb3b96910b9de8650b67e6bb93455b055a25cd7148a4bd39b57b llama-modchip-v3.1.patch6d9af61a8e4aaf79a3d3f023369154eedca192a8e1b47b251ef14934685d75d6 llama-server-modchip-linux-x86_64-avx51232f819919aa494938c909531ad5484c8fa432968d0cfa0c0e2b27a11aa2dc3ee llama-server-modchip-linux-x86_64-avx2(andllama-server-modchip-linux-x86_64)882ab9e9726a4096b6b66c3ac4a88294ea1f5cdeb63f5b24af80abd70daf6f8a llama-cli-modchip-linux-x86_64-avx5121bc612972acad80774530d7d423c8676cfdeecbe5f1cfda2691aa2df4d6e28b2 llama-cli-modchip-linux-x86_64-avx2(andllama-cli-modchip-linux-x86_64)607de30d0396057267d2db9ebd5c0717367e42f97d35d1bef137f8db01facd9f llama-bench-modchip-linux-x86_64-avx512a1f42baa9116cd2e36dc72382a24cac753a0129901b698c7f351de6b664e0617 llama-bench-modchip-linux-x86_64-avx2a880a7a98db53de0a579dd1c15a7efb1a614ecec0787d5319b91e58f51e28a53 llama-perplexity-modchip-linux-x86_64-avx512071845a173efa1dbe1253eced68913a05199445f677fe72dd4e862917cb40724 llama-perplexity-modchip-linux-x86_64-avx297930d119cc54913c2f5b4494566bc563bd18f285722ed41cb16df3de4a36cd2 llama-quantize-modchip-linux-x86_64-avx5121e7b5d489e5b064b10479eed5ecf3d8c48ed9e42a996eada191cada94a97c576 llama-quantize-modchip-linux-x86_64-avx2258c85d4d9a4b4953fb82fbfa18cb0e3dd867b00ccff74e04d9867376c4ea60b llama-modchip-v3.1.0-linux-x86_64.tar.gz
- Built on
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:
- Donor-Free
Qwen3.8-Flash-Next(MaxQ-64GB&MaxQ-32GBAligned) + Opt-InHeretic-2AbliteratedTwins & Complete 3-Tier RAM Matrix:MaxQ-64GB(57,969,748,352 B=53.9885 GiB,1,086standardggmltensors,max_type = 42,0custom 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]inQ1_0 = 41) + optionalmmproj-Qwen3.8-Flash-Next-BF16.gguf(907,542,880 B,SHA256 = ef2af1d6aa8a22740c7252bc7ce40c5c2f1249aa8d9c8499a4d4572c3cfdf9df). - Compresses the
320M-row Per-Layer Embedding (PLE) table from26.82 GiB(IQ4_NL) to10.73 GiB(PCA-Wiener D=256 + RaBitQ Q1_0), reinvesting+16.09 GiBinto all512/512unpruned routed experts (K = 640),FP64 Woodbury DualGramsigned-scaleQ2_0, and the built-inblk.48NextN Multi-Token Prediction (MTP) module (0.81 GiB). - Blind
wiki-alt.txt(40 × 512chunks,0.000000%8/13-gram overlap with calibration) vs. Donor-FreeBF16Reference (Mean PPL(base) = 2.776624 ± 0.054868): AchievesMean PPL = 3.432500 ± 0.070829(3.43825 ± 0.07119underv3.0default--repack),Mean KLD = 0.497117 ± 0.009892,Median KLD = 0.105952, andSame top p = 78.314 ± 0.408%, outperformingISTA-DASLab GSQ-RCO-Coder-IQ1_M(54.397 GiB/58,408,584,928 B,256/512pruned experts, no MTP:Mean PPL = 5.091640 ± 0.121418,Mean KLD = 0.930241,Median KLD = 0.296442,Same top p = 69.382%) by-1.6591PPL (3.53×smaller PPL degradation overBF16),-46.6%Mean KLD, and-64.3%Median KLD while0.41 GiBsmaller.
- Shard 1 (
MaxQ-32GB(38,341,683,424 B=35.7085 GiB,1,128standardggmltensors,max_type = 42,0custom types):- Shard 1 (
26,821,627,808 B=24.9796 GiB,SHA256 = 06cb65f9cf6e510cd16500ca1719701a0ffa13dcaa4c4d0cc135e4f2071a8b4d,42ConeCollapsedK = 512layers with42 × F32ffn_down_exps.bias+7K = 640boundary layers +blk.48MTP) + Shared10.7289 GiBShard 2 (86b79714...) demand-paged via NVMemmap. - 32 GB Consumer Exclusivity (
18-Checkpoint Hugging Face Audit): Across all18publishedUnslothandISTA-DASLabQwen3.8-Flash-NextGGUFs (54.40–329.72 GiB),0 / 18fit inside a 32 GB host (<= 28.5 GiB).MaxQ-32GBpasses strict Linux Cgroup v2 enforcement (memory.max = 28.5 GiB,MemorySwapMax = 0,oom_kill = 0) atVmHWM = 26.91–27.44 GiB <= 28.5 GiBwith blindwiki-alt.txtMean PPL = 5.812001 ± 0.140197(5.80406repack) andMean KLD = 1.006916 ± 0.014944.
- Shard 1 (
- 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.39acrossblk.31..47fromtrohrbaugh/Qwen3.8-Flash-Next-heretic-2, achieving0 / 100refusals at0.0818KLD by compensating forQwen3.8's widened multi-stream Gated Residual branches, plus signedbeta = 2.2508blk.48NextNMTP alignment so speculative drafting stays synchronized on uncensored completions) directly onto virginMaxQ-64GBandMaxQ-32GB(blk.0..30&token_embd100%untouched):MaxQ-64GB-Abliterated: Shard 1 =46,449,692,736 B(1,085tensors:27edited [16blk.32..47ssm_out/attn_output+5blk.31..35ffn_down_shexp+5blk.31..35512-expertffn_down_exps+1blk.48MTPattn_output],1,058bit-identical toMaxQ-64GB;SHA256 = 1dac27e81a3a73dcec21edea78f224eb48393a726e3f9ee7676c603d3174e82f) + Shared Shard 2 (11,520,055,616 B,SHA256 = 86b79714867743ddf5911ee7dff2717ae275f870551d86469cbdbf026c6b552e) + optionalmmproj(907,542,880 B,SHA256 = ef2af1d6aa8a22740c7252bc7ce40c5c2f1249aa8d9c8499a4d4572c3cfdf9df).MaxQ-32GB-Abliterated: Shard 1 =26,821,627,808 B(1,127tensors:32edited [27weight tensors +5blk.31..35F32ffn_down_exps.biasaligned with signed layerbeta_m = 0.449..1.710],1,095bit-identical toMaxQ-32GB;SHA256 = 09b54c335505f9f609415dbc774868ad5ae188f17e873dead3ec743ec84e1009) + Shared Shard 2 (86b79714...) + optionalmmproj(ef2af1d6...).
- Gated-Residual Over-Projection,
blk.48MTP Synchronization & Edition Positioning: BecauseQwen3.8-Flash-Nextroutes activations through widened multi-stream Gated Residual Hyper-Connections (hc_attn_*,hc_ffn_*), single-branchbeta <= 1.0projection leaves parallel residual branches carrying refusal state at late layers (blk.32..47).v3.0-r2encodesHeretic-2's TPE-optimized over-projection (0 / 100refusals vs.99 / 100upstream at0.0818KLD) plus signedbeta = 2.2508blk.48NextNMTP synchronization (81–85%draft-mtpacceptance on live multi-turn tool-calling at13.2–14.8 t/s,VmHWM = 46.34 GiBon64GBand28.40 GiB <= 28.5 GiBon32GB), positioning AlignedMaxQ-64GB/MaxQ-32GBas the default pure software-engineering flagships and*-ablitstrictly 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.05on32GBpresets to prevent low-bit greedy tail loops).
- Applies TPE-optimized signed multi-layer over-projection (
- 16 GB
NVIDIA-Nemotron-3.5-30B-A3BDonor-FreeMaxQ-16GB+ Zero-Recompute42/43 -> 44/45Fleet 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 fromnvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16(401standardggmltensors:{F32: 237, Q4_0: 70, Q8_0: 48, MXFP4(39): 28, Q2_0(42): 18},max_type = 42,0custom types;0.000000%8/13-gram calibration overlap vswiki-alt.txt) for native unmodifiedllama.cpp, Apple Silicon Metal, CUDA, Vulkan, andLM 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>/statusVmHWM = 14.3040 GiB <= 15.0 GiB(RssAnon = 0.9097 GiB+RssFile = 13.3942 GiB; processVmHWMquoted over cgroupmemory.peak = 0.949 GiBARC/page-cache delta), delivering188.29 t/smean (194.05peak)pp512and15.10 t/smean (15.75peak)tg128pureN=1(3/3bit-exact) plus27.80 t/s(94.44%accept) onMiniLRUcode refactoring (merge_intervals+ OpenAI multi-turn tool-callingPASS).- Zero-Recompute
42/43 -> 44/45Migration & Transparent40 × 512wiki-alt.txtLadder (vs.16.07 GiBMXFP4ref6.5962 ± 0.1729): Patches strictly47header bytes (46ttype+1general.file_type,0payload bytes altered) acrossVQ3-64(14,282,559,040 B,SHA256 = 04a460cdd831002d80b2f47ec5d70e7a92227abcf0a57f31ad73fe0bd50e711f,PPL = 6.7614,Mean KLD = 0.0871— highest-accuracy16 GBCPU-Turbo flagship),Fractal-64(15,420,034,624 B,SHA256 = 3a3a09eac29b5906397ca6a93d2ff0f566fca0bdd365294d067aeb5d0ebf4a1b,PPL = 6.6533,Mean KLD = 0.0688), andAbliterated-VQ3-64(14,282,559,488 B,SHA256 = 75da8372f3896bfacd103f3cb85bf22b729d39cb1efce82fb3c838ab2af53e57), alongside universal std-ggmlMaxQ-16GB(PPL = 7.3129 ± 0.1923,Mean KLD = 0.1722,Median KLD = 0.0698,Same top p = 83.431%) and 64 GBDeepSeek-V4-Flash-0731-MaxQ-v4(57.99 GiB,6112e887.../5d85c740.../a8654d4d...). (Note: Nemotron's default Jinja template enables<think>...</think>reasoning; setmax_tokens >= 4096for thinking or passenable_thinking: false/--reasoning-budget 0for concise direct/JSON replies.)
- Unified
llama-modchip v3.0Engine 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) andGGML_TYPE_F8_E4M3 = 43untouched; relocatesFractal-64(30 B / 64 W) toGGML_TYPE_FRACTAL_64 = 44andLUT-VQ3-64(24 B / 64 W) toGGML_TYPE_VQ3_64 = 45. A single binary built fromggml-org/llama.cpp @ de32b268c4ad55d45f3b7b16c029f4e077f4ba74+llama-modchip-v3.0.patch(SHA256 = b14475aa5350d632551b5f4261017e5ccb648750f8c6c9975255a171c367fbf0) runs the entire16 GB / 32 GB / 64 GBfleet across Linux, macOS Metal, Windows, CUDA, and Vulkan. - Zero-Copy 3D MoE
--repackCure &q8_cache/params->wdataAliasing Fixes: Fixes upstreamggml_compute_forward_mul_mat_tiled/mul_mat_id_tiledq8_cacheworkspace aliasing (ggml_cpu_get_q8_wdata), clearslast_mmid_ids_dataon every non-MUL_MAT_IDnode, fixesrepack.cppstride/unaligned-load bugs, skips heap repacking on 3D MoE tensors (ne[2] >= 64) so zero-copymmapis preserved (MaxQ-64GBRssAnonreduced5.4×from9.81 GiBto1.81 GiB,draft-mtpacceptance restored from0%to93.00%,batch=1--repackvs--no-repackKLD = 0.00000 ± 0.00000), and alignsMADV_HUGEPAGEinward to2 MiBboundaries (src/llama-mmap.cpp) so lazy PLE ranges are never pre-faulted. - 512-Bit
Q1_0/Q2_0/MXFP4Kernels & Multi-ThreadedGATED_DELTA_NET: Adds AVX-512 VNNI/BW single-col & multi-col (1x8/4/3/2) kernels forQ1_0 (41), signed-scaleQ2_0 (42), overflow-freeQ8_0, andMXFP4, eliminates inner barriers in multi-threaded 8-zmmFMAGATED_DELTA_NET, restores4*nthdynamic causal-triangle load balancing onFLASH_ATTN_EXTprefill (neq1 > 1), and widensStockfish-PVS v2/RouteCracktoken IDs to 32-bitllama_token(248,320vocab safe).
- Zero Upstream Type Collision: Preserves upstream
- Empirical Speedups, Transparent Attribution, & Runtime Defaults (
modchip,install.sh,scripts/llama_modchip.py):- Combined
v3.0Engine + Non-Convoy-t $((N_CORES - 1)) --poll 0Throughput (16Zen 5 vCPUs, default--repackON):MaxQ-64GB(draft-mtp):pp51239.24 ->71.97 t/s(+83.4%),tg1287.329 ->12.662 t/s(+72.8%vs Stage 4C--no-repack,4.95×vs broken pre-v3.0repack, peak12.82 t/s,1.988×overv3.0 none6.368 t/s,93.00%MTP accept,VmHWM = 45.08 GiB).MaxQ-32GB(draft-mtp):pp51261.39 ->74.55 t/s(+21.5%),tg1289.455 ->11.454 t/s(+21.1%onp512,14.29 t/savg /14.77 t/speak oninplace_edit,1.718×overv3.0 none6.668 t/s,VmHWM = 26.91 GiB <= 28.5 GiB).- (Transparent Attribution Note: Stage 4C ran oversubscribed
-t 16 --poll 50 --no-repackon 16 vCPUs, whereas Stage 4D-1 ran-t 15 -tb 15 --poll 0 --poll-batch 0withv3.0default--repackON; isolated non-convoy threading accounted for+25.9% pp / +31.3% tgon32GB none, and./modchip+install.shnow defaultllama-serverto-t $((N_CORES - 1)) -tb $((N_CORES - 1)) --poll 0 --poll-batch 0.)
248KSpeculative Shootout &RC_TABLES_DIR=/nonexistentIsolation: Built-indraft-mtpwon cold single-turnrep 0tg128on6 / 6(100%) of(edition, prompt)pairs; zero-weightStockfish-PVS v2(--spec-type ngram-simple --spec-ngram-simple-size-n 3 --spec-ngram-simple-size-m 3 --spec-ngram-simple-min-hits 1) achieved10.58–12.82 t/s(1.67×–1.87×) on coldrep 0source-in-context refactoring with+5.6%to+11.0%faster prefill and-0.53to-0.85 GiBlowerVmHWM../modchipandstart_server.shautomatically exportRC_TABLES_DIR=/nonexistentwhenever serving non-Nemotron models so./workspace/routecrackNemotron tables are never loaded by mistake./dev/shmHybrid State Save/Restore (MaxQ-32GB,512tok): Restores the233.14 MiB(244,461,872 B)36 GDN + 12 QSAstate in38.49 msavg (38.16 msmin,6.11 GiB/s,161.96×faster than6.18sprefill;~19 ms/120.6 MiBwith--ctx-checkpoints 0) with 100% bit-exact continuation (SHA256 = 8e5a6444...).- Sampling &
<think>Guidance:MaxQ-32GB(1.63 bpw:2/8blind pass at greedytemp=0,3/8greedy repetition loops without penalties vs.MaxQ-64GB5/8pass [5/5within4,096cap,0/8loops]) defaults to--temp 0.6 --top-p 0.95 --top-k 20 --presence-penalty 0.2 --repeat-penalty 1.05in./modchip; when enabling<think>mode, setmax_tokens >= 16384(orenable_thinking=Falsefor<= 4096caps). Unpatched upstreamllama.cppusers should pass--no-repack(-nr); not needed onv3.0.
- Combined
- 12 Static-
libgompPortableGLIBC_2.30Linuxx86_64Binaries (SHA256SUMS):- Links
libgomp.a,libstdc++.a, andlibgcc.astatically (NEEDED = [libdl.so.2, libpthread.so.0, libm.so.6, libc.so.6, ld-linux-x86-64.so.2],max_glibc <= 2.30,0external OpenMP runtime needed) and removes internal weight-building scripts from the public runtime tree:54af3232375ede820f91143c106a594c83b815a3dca66fe98ab08bcb8b63d4f0 llama-server-modchip-linux-x86_64-avx5120f0c07f97a98d8aeb9a012264fdeff5a787d2104a2afb122052bfe0a21c2d1a9 llama-server-modchip-linux-x86_64-avx2(andllama-server-modchip-linux-x86_64)531d870988dcc580322341d2bbd7f0cf6b6cc3b3376a2e86d092a021f7cddba2 llama-cli-modchip-linux-x86_64-avx51249a918206afe371d16ab14fd66d9cc87e35c7f8c0471c2cc13c759f2e0350d03 llama-cli-modchip-linux-x86_64-avx2(andllama-cli-modchip-linux-x86_64)7ad8253fb9c3a779be58122adc51ea9786bb391acb49d3cbfa6280cedb01e9d8 llama-bench-modchip-linux-x86_64-avx512fa8a055799bb2f65df8c6077f1377b81bfeda4efe3851639d05c1b44c3fa45e8 llama-bench-modchip-linux-x86_64-avx2003f452008972fb8696f7ea2800cfede360ba2a2c32f0a605fba2463b66bcadb llama-perplexity-modchip-linux-x86_64-avx512f77c3581d37fa6920daec6938abc5767675b430130eed03ec05e68c6e6d4b624 llama-perplexity-modchip-linux-x86_64-avx2befa4842fa09a061d4fe3376d226ed4ad2dafa8c149db10c06b37f85e59e3f94 llama-quantize-modchip-linux-x86_64-avx512521d9bf53f888c71e158732cd2c0b14e80a5e3d2005aed5f7a3e204ebfba9bbb llama-quantize-modchip-linux-x86_64-avx2
- Links
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:
-
100% Donor-Free
DeepSeek-V4-Flash-0731-MaxQ-v4(57.99 GiB/62,270,037,248B< 58.000 GiB,1,362Tensors, 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 (
0GGML_TYPE_Q2_0 = 42/0GGML_TYPE_VQ3_0 = 43tensors): Replaces all317customFractal-64tensors ofMaxQ-Fractalwith0731-imatrix-weighted standardggmlformats (43 × Q8_0attn_kv,145 × Q6_KKV/Indexer compressors &indexer.attn_q_b,3 × Q5_KL00MLA,3 × Q6_KL42MLA,123 × Q4_KL01..L41MLA, plus172 × Q6_Kshared experts,attn_q_a, andoutput.weight), makingMaxQ-v4the first< 58 GiBMaxQcheckpoint 100% natively compatible with Apple Metal GPU, NVIDIA CUDA (with automaticMUL_MAT_ID + ADD_IDkernel fusion), Vulkan, ARM64 NEON, and x86 AVX2/AVX-512. -
Pareto-Dominant ConeCollapse + FP64 Woodbury DualGram (
NC = 384): Retains9full-widthK = 2048anchor layers ({0, 30, 34, 36, 37, 39, 40, 41, 42}, uncentered ridge,alpha = 1.0000) and gently collapses34interior layers toK = 1792(7 × 256,-12.5%tail) with post-IQ2_XXSshrunk residual centroid bias (0.60 * muinblk.*.ffn_down_exps.bias), MSE-optimalMXFP4(4.25 bpw) onL41–L42ffn_down_exps,IQ2_XXS(2.06 bpw) onL42gate/upandL00..L40down, andIQ1_M(1.75 bpw) across17sensitive layers (L20, L26..L41).
-
Universal Upstream Backend Compatibility (
-
Lineage & Algorithmic Disclosures:
-
Imatrix Provenance: The
23reused single-passIQ1_Sgate/uplayers ({0, 2, 3, 5..19, 21..25}) inherit diagonal activation weights from@antirez's public1.5M-tokenDeepSeek-V4-Flash-chat-v2-routed-moe-ds4-1p5m.dat(antirez/deepseek-v4-gguf @ f71f23d5, collected on pre-0731chat-v2activations; zero donor weights) reordered by0731||Wd[:,j]||^2, whereas the20freshly quantized MoE layers (L01, L04IQ1_S,17IQ1_M,L42IQ2_XXS) blendBETA_0731 = 0.500731routed input$\mathbb{E}[x^2]$ and all43ffn_down_exps(BETA_HD = 0.80) + all4462D K-quant projections (imatrix_v4_clean_24k.dat,769entries,6 × 4096ctx =24,576natural UTF-8 tokens) use pure0731activations (Shard-1records combinedentries_count = 898,chunks_count = 7, anddeepseek4.expert_feed_forward_lengths). -
DualGram Token Selection: For each expert,
NC = 384calibration vectors are selected via Deterministic Routed-Stride (pos = (k * n_routed) / NCwhenn_routed >= NC) plus Routersqrt(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,300B,SHA256 = 8a4440b6...) has0.0000%$\ge 8$ -gram overlap withwiki-alt.txt,wiki.test.raw, andeval_quality_and_tools.py, deriving ~78% natural Moses-detokenizedwikitext-2train paragraphs (encyclopedic register) interleaved with ~22% C++/Python source code, JSON tool-calling, math, and multilingual prose.
-
Imatrix Provenance: The
- Built hermetically from upstream
-
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,565scored 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%vsMaxQ-Fractal7.2977 ± 0.0504),Mean KLD = 0.648514 ± 0.003535 nats(-12.36%vsMaxQ-Fractal0.739998),Median KLD = 0.183817 nats(-32.02%vsMaxQ-Fractal0.270386),90% KLD = 1.706097,Max KLD = 20.542444(-3.74%vsMaxQ-Fractal21.341202),RMS Δp = 27.562 ± 0.095%,Median Δp = -0.733%, andSame top p = 73.283 ± 0.117%(+2.886pp vsMaxQ-Fractal70.397%).
-
-
Strictly Unseen 49-Chunk Partition (
3..51,137,935scored tokens — excluding diagnostic gate chunks1..2):- Because chunks
1..2(5,630tokens) were inspected 4 times duringK=2048uncentered DualGram &output_normtau=1.0validation, separating3..51eliminates gate selection bias: on unseen chunks3..51,MaxQ-v4achievesPPL(Q) = 6.8471(-6.12%vsMaxQ-Fractal7.2938),Mean KLD = 0.625743 nats(-12.84%vsMaxQ-Fractal0.717907),RMS Δp = 26.726%(vs29.054%), andSame top p = 73.595%(+2.894pp vs70.701%). Relative to an internalAtomicChat AD-BF16 + AD-IQ1_Mdonor hybrid ablation (MaxQ-v3,57.88 GiB), donor-freeMaxQ-v4significantly wins on unseen3..51Mean KLD(0.62574vs0.64872,-3.54%,39/49chunks, paired$p = 6.58 \times 10^{-5}$ ),RMS Δp(26.726%vs27.519%,43/49chunks,$p = 8.84 \times 10^{-10}$ ), andSame top p(73.595%vs72.443%,+1.152pp,46/49chunks,$p = 1.26 \times 10^{-13}$ ), while matching unseenPPL(Q)(6.8471vs6.8556,-0.12%, statistical parity$p = 0.840$ ).
- Because chunks
-
Full 51-Chunk
-
Cross-Platform ConeCollapse Loader, Header Bounds Validation, &
deepseek4.cppIPC 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 optionalblk.*.ffn_down_exps.bias(GGML_OP_ADD_ID) loading across bothdeepseek-v4-flash-fractal-256k.patch(Linux/Windows) anddsv4-64gb-cpu.patch(macOS Apple Silicon Metal), and removed all remaining/tmp/dsv4_moe_cfg.bin//opt/modelspaths fromsrc/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 cleanstd::runtime_erroron malformed GGUFs instead of triggeringGGML_ASSERTabort(). - Updated
install.sh,modchip,windows/modchip_dsv4.ps1,apple-silicon/run-dsv4.sh, andscripts/llama_modchip.pyto auto-detectMaxQ-v4and variable-widthdeepseek4.expert_feed_forward_lengths, and hardened C11_Atomicinitialization inscripts/maxq_v4_collapse.candscripts/dsv4_singlepass.c.
- Unified per-layer
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:
-
./modchip benchCrash Fix & Dynamic Neutral System Prompt in./modchip chat(scripts/chat.py):- Fixed a
NameError: name 'prompt_label' is not defined(and remote-endpointUnboundLocalErroroncpu/ram) at the end ofrun_benchmark_suite()when generating the pre-filled GitHub Leaderboard submission URL in./modchip benchand/bench. - Replaced the hardcoded Italian
DeepSeek-V4/Ryzen 9 9955HXsystem prompt in./modchip chatwithbuild_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.
- Fixed a
-
Non-BMI2
VQ3_0Scale Unpack Fix,test-quantize-fnsCoverage, & 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#elsenon-__BMI2__fallback ofggml_vq3_unpack_scales(m_all = 0x0202020202020202ULL), eliminating scale error when compiled without-mbmi2(such as MSVC or non-BMI2 scalar builds; distributed Linux-avx512/-avx2binaries use__BMI2___pdep_u64and were unaffected, and zero GGUF weights changed). - Replaced AVX512DQ
_mm512_extractf32x8_psinops.cppwith pure AVX512F_mm512_extractf64x4_pd, addedGGML_TYPE_VQ3_0thresholds totests/test-quantize-fns.cpp(verifiedPASSon both-avx2and-avx512GLIBC_2.30builds), aligneddequantize_row_q2_0_localinvq3/vq3_enc_lib.c(--aggressiveoptional transcoder) toquants.c's transposedqhlayout, and tightenedvq3/test_vq3_ggml_kernels.cto validate both near-zero cancellation and positive-signal relative error (exit 0under both-mbmi2and-mno-bmi2).
- Fixed a bit-carry bug (
-
Windows 11 Speculative Flag Detection (
Issue #33),-Target nemotron, &-CudaISA Auto-Detection (windows/modchip_win.ps1,windows/build_patched_engine.ps1,patches/zen5-nemotron-256k-optimizations.patch,windows/modchip_dsv4.ps1):- Fixed
modchip_win.ps1matching--spec-ngram-size-ninsidellama-server.exe --helpremoval warnings before checking--spec-ngram-simple-size-n(thanks to@kevinbloin Issue #33), and removed legacy--draft-max. - Guarded POSIX
<sys/mman.h>/<fcntl.h>/<unistd.h>includes directly with#if defined(__linux__)inzen5-nemotron-256k-optimizations.patch, madebuild_patched_engine.ps1 -Target nemotronidempotent, and replaced unconditional-DGGML_AVX512=ONunder-Cudawith host AVX-512 VBMI auto-detection so AVX2 + RTX PCs never hitSTATUS_ILLEGAL_INSTRUCTION.
- Fixed
-
macOS (
Darwin),.modchip_workspace, Docker/dev/shmGuard, & Standalonellama_modchip.pyParity (install.sh,modchip,scripts/build_zen5_llama.sh,apple-silicon/run-server.sh,scripts/llama_modchip.py):- Replaced GNU-only
realpath -mand baresha256sumwith portable POSIX/Python +shasum -a 256helpers, persisted custom--workspacepaths via.modchip_workspaceacross./modchipand./scripts/chat.py, automatically bypassed/dev/shmslot-snapshot allocation in64 MiBDocker containers (< 1 GiBtmpfs), routedDarwindsv4source builds topatches/apple-siliconandDarwin./modchip startto${WORKSPACE_DIR}with unified-memory--load-mode mmap, and added RAM-safe-c 32768 -ub 512,--load-mode, andDSV4_MOE_CFG_PATHdefaults to standalonellama_modchip.py --print-cmd(marking boot-time#2/#9controls asBOOTin--tui).
- Replaced GNU-only
-
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)fromServed Gate Decode (Stockfish-PVS E2E)andIn-Context Refactor Burst (M=7), footnoted the13.08 GiB--all-up-expseval_nemotron_vq3_64.jsontelemetry andAbliterated-VQ3-64(401total tensors =76re-quantized +325copied), added@kevinblo'sRyzen 9 9950X3D(9.47 tok/sTop-4/8.11Top-6284B &24.92 tok/sNemotronQ4_0) leaderboard entries, synchronized all 8v2.5.4GLIBC_2.30binaries +SHA256SUMS+ model cards across all 7 Hugging Face repos (0 GGUF weight changes), and added IPC security supersession banners across historical GitHub Releases.
- Explicitly separated
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:
- Donor-Free Single-Pass
DeepSeek-V4-Flash-0731-MaxQ-FractalAcross All1,328Tensors (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,160B,1.72 bpwacross 3 shards) in a pure single pass across all1,199non-MoE tensors (173 × Q6_K + 1 × Q8_0dense bottlenecks +317 × Fractal-64MLA/Indexer tensors) and all1293D routed-MoE tensors directly fromdeepseek-ai/DeepSeek-V4-Flash-0731(@ 7872f01b1d1fe23eabc4c98b48bffcef5a386062) weighted by Salvatore Sanfilippo's (@antirez)1.5M-tokenDeepSeek-V4-Flash-chat-v2-routed-moe-ds4-1p5m.dat(antirez/deepseek-v4-gguf @ f71f23d552d664e523b422157b2befbf74040380, calibrated2026-05-12on AprilDeepSeek-V4-Flashchat-v2activations), eliminatingv2.5.2's donor routed-MoE copying andffn_down_expsdouble-quantization. Note:Abliterated-FractalShards 2 & 3 (6e3f499c...,0063f3a9...) remain thev2.5.1single-pass build (with Shard-1 metadata cleaned inv2.5.3), verified byte-identical toHEAD's--mode alignedoutput on unedited control experts (blk.20.ffn_down_expsexperts0, 1) and differing onprem-research's abliterated top-8 routeddown_projexperts inblk.17..36({53, 61, 70, 149, 156, 187, 210, 219}). - Measured Impact on 16C Zen 5 (
AMD Ryzen 9 9955HX,0 GPUs, UnprunedTop-6):- Functional Quality Gate (
benchmarks/eval_quality_and_tools.py): Jumps from64.0 / 80.0(24/30Tools) to70.0 / 80.0(30.0/30Agentic Tool-Calling,20.0/30Code Gen,20.0/20Long-Context Needle & Math), matchingAbliterated-Fractal(70.0 / 80.0) point-for-point (under--target-tps 9.0,MaxQ-Fractalscores89.56 / 100.0[8.80 tok/s,78.69%Stockfish-PVSacceptance,58.13 GiBVmRSS],Abliterated-Fractal89.44 / 100.0[8.75 tok/s], andFractal-64/VQ384.0 / 100.0). Isolated pureN=1unprunedTop-6decode (tg64, zero speculation) is8.66 tok/sat57.54 GiBidle /57.58 GiBactiveVmRSS(36.11 tok/scoldpp67prefill;telemetry_n1_dsv4_maxq_v253.json). - Same-Recipe ARA Abliteration Delta (
Abliterated-Fractalvs.MaxQ-Fractal v2.5.3): 32-probe unconditional step-0 Logit KLD drops10.6×from1.0219down to0.0959 nats/tok(75.0%Top-1,96.9%Top-5), with prefix-matched rollout KLD (172positions) at0.0512 nats/tok(90.7%Top-1,99.4%Top-5;kld_dsv4_ablit_vs_maxq.json). - Standard
WikiText-2(wiki.test.raw,8,192tok) Perplexity:MaxQ-Fractal v2.5.3improves from11.7434to11.6139 ± 0.58453(statistically tied within< 0.15σwith56.57 GiBFractal-6411.5288 ± 0.55630, while gaining+6.0pts on Tool-Calling;Abliterated:11.3944 ± 0.56500,VQ3:12.2345 ± 0.59759).
- Functional Quality Gate (
- Rebuilt
- Full 51-Chunk
AtomicChat/dsv4-eval-artifacts(wiki-alt.txt,-c 5632 -b 5632) & DirectNemotron-30BTrue-BF16Benchmarks (benchmarks/QUALITY_GATE_VQ3_64.md,benchmarks/results/):- Full 51-Chunk
wiki-alt.txt(143,565scored positions) onMaxQ-Fractal v2.5.3: Achieves standalonellama-perplexityFinal estimate: PPL = 7.2977 ± 0.0504across all51chunks on Zen 5 CPU (+60.8%vs150.75 GiBbullerwins MXFP4_MOE-BF164.5381 ± 0.0292,+22.2%vs76.87 GiBUnsloth UD-IQ1_S5.9734, and+14.4%vs65.42 GiBAtomicChat AD-IQ1_M6.3813Mean PPL(Q)on8× RTX 5090, whereUD-IQ1_SandAD-IQ1_Mexceed64 GBhost RAM andAtomicChatnotes a4–5%RTX 5090vsH100hardware gap) and7.3180 ± 0.1039at cumulative chunk12(33,780scored positions, down from7.5133inv2.5.2). - Direct
Nemotron-3.5-30B-A3BTrue-BF16(58.84 GiB,SHA256 = fd513c91...) Perplexity & 32-Probe / Multi-Step KLD Ladder: MeasuredWikiText-2(12,288tok) directly on the uncompressed58.84 GiBBF16master (6.9582 ± 0.24151) and computed directBF16Logit KLD across all variants (Fractal-64:0.1254step-0 /0.0929 natsmatched [81.2% / 89.8%Top-1];VQ3-64:0.1495/0.0944 nats;Abliterated-VQ3-64vsVQ3-64across the76Darkstar-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.
- Full 51-Chunk
- Clean GGUF Shard-1 Provenance Metadata Across All 4
DeepSeek-V4Repos &OpenMDW-1.1Alignment (gguf_shard1_metadata_audit.txt):- Replaced inherited
unslothtags and provenance headers in Shard-1 across all four 284B repositories:MaxQ-FractalandAbliterated-Fractalcarrygeneral.quantized_by = "Synchopate (llama-modchip)", exactgeneral.base_model.0.revision(7872f01b.../457210de...), andquantize.imatrix.*(antirez/deepseek-v4-gguf@f71f23d5/...), whileVQ3andFractalexplicitly recordgeneral.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 upstreamopenmdw-1.1(https://openmdw.ai/license/1-1/).
- Replaced inherited
- C++ IPC Security Hardening Across All Portable
GLIBC_2.30Binaries & 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.binfallbacks from compiled C++ binaries (ggml-cpu.c,ops.cpp,ngram-map.cpp) and deleted unreferencedpatches/llama-modchip-dsv4-10tps.patch. DSV4_MOE_CFG_PATHis now strictly opt-in (0600,O_NOFOLLOW,S_ISREG,st_uid == geteuid()),llama_modchipSHM resolves per-user (MODCHIP_SHM_PATH/$XDG_RUNTIME_DIR/llama_modchip.bin//dev/shm/llama_modchip_<uid>.binwith(st_mode & 0022) == 0+ magic check), all 8GLIBC_2.30Linuxx86_64binaries (0/tmp/dsv4_moe_cfg.bin&0global/dev/shm/llama_modchip.binstrings) are synchronized across GitHub Releasev2.5.3and all 7 Hugging Face repos, and all 7 commit-pinnedMODEL_REV+SHA256manifests are updated ininstall.shandmodchip.
- Removed legacy world-writable
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:
- Pure-
0731DeepSeek-V4-Flash-0731-MaxQ-FractalRebuild & 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,936B) cleanly fromdeepseek-ai/DeepSeek-V4-Flash-0731(7872f01b1d1fe23eabc4c98b48bffcef5a386062), correctingv2.5.1's default--base-modelwhich had pulled dense/MLA weights from the AprilDeepSeek-V4-Flashrepository (60d8d707) while copying0731routed 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,192tok)PPL = 11.7434 ± 0.57170(-4.01%vsVQ3-073112.2345), 2-pass Top-64 Logit KLD vsVQ3-0731reduced from0.8302down to0.3146 nats/tok(83.3%Top-1,100.0%Top-5), Logit KLD vsAbliterated-07311.0219 nats/tok(58.3%Top-1,91.7%Top-5),84.0 / 100.0Gate (64.0/80quality +20/20speed at11.31 tok/s80.3%Stockfish-PVSacceptance), and8 / 8Dual-Use Security Audit.
- Rebuilt
- 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
12chunks (67,584tokens /33,780scored positions) onAtomicChat's held-outwiki-alt.txtcorpus (-c 5632 -b 5632 --ppl-output-type 1):MaxQ-Fractal-0731(56.93 GiB) achievesPPL = 7.5133 ± 0.1054andVQ3-0731(56.40 GiB) achievesPPL = 7.6579 ± 0.1077, outperforming103.06 GBQ2_K(9.4237 ± 0.1402at chunk 12) by-20.3%PPL while saving41.9 GBof footprint and running 100% resident in64 GBRAM (superseded inv2.5.3above by the donor-free single-pass 51-chunk7.2977 ± 0.0504evaluation againstMXFP4_MOE-BF16,UD-IQ1_S, andAD-IQ1_M). - Committed reference Top-64 logit snapshots (
dsv4_maxq_ref_logits.json,nemotron_fractal_ref_logits.json) and rawllama-perplexitylogs, and retired the smalln=6Hard-60suite from headline comparisons.
- Evaluated both 64 GB resident checkpoints across
- 7-Repo Hugging Face
GLIBC_2.30Binary +SHA256SUMSSynchronization & Supply-Chain Re-Pinning:- Synchronized identical
GLIBC_2.30Linuxx86_64binaries (llama-{server,cli,perplexity}-modchip-linux-x86_64*),SHA256SUMS, and updatedv2.5.2model cards across all 7Synchopate/*Hugging Face repositories (0SHA-256 mismatches) and pinned all 7 updated 40-charMODEL_REVcommits ininstall.sh.
- Synchronized identical
- Unpruned
Top-6Default inllama_modchip.py, CLI Flag Forwarding, & Cross-Platform Installer Polish (scripts/llama_modchip.py,install.sh,modchip,windows/modchip_dsv4.ps1):- Changed
scripts/llama_modchip.pydefaultmoe_top_kfrom4to0(unprunedTop-6across bothNemotron-30BandDeepSeek-V4;Top-4remains opt-in viaLLAMA_MOE_TOP_K=4or--tui). - Added CLI flag forwarding (
"$@") to generatedstart_server.shand./modchip start(e.g.,./modchip start -n 4096),start_server.sh.bakbackup preservation, configurableREASONING_FORMAT/REASONING_BUDGET, macOSsysctlRAM/core detection ininstall.sh,libgomp1diagnostic hints on--versionsmoke-test failure, and safety-aligned default model ordering (MaxQ -> VQ3 -> Fractal -> Abliterated) inwindows/modchip_dsv4.ps1.
- Changed
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:
- Single-Pass
DeepSeek-V4-Flash-0731-MaxQ-Fractal(56.93 GiB, Aligned Default 284B) & Opt-InAbliteratedPresets (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 puredeepseek-ai/DeepSeek-V4-Flash-0731inv2.5.2) with173 × Q6_K + 1 × Q8_0(174total dense bottlenecks, upgrading130tensors fromFractal/VQ3+43fromQ5_K) and317 × Fractal-64MLA/Indexer tensors, paired with@antirez1.5M-token imatrix routed MoE. Makesdsv4-maxqthe safety-aligned 284B default alongsidedsv4-ablit. - Publishes
Synchopate/NVIDIA-Nemotron-3.5-30B-A3B-Abliterated-VQ3-64-CPU-GGUF(13.30 GiB) alongsideSynchopate/DeepSeek-V4-Flash-0731-Abliterated-Fractal-64GB-CPU-GGUF(56.93 GiB) as explicit opt-in presets (nemotron-ablitanddsv4-ablit), gated behind interactive[y/N]confirmation or--accept-abliteratedin non-interactive mode.
- Publishes
- Portable
GLIBC_2.30Linuxx86_64Binaries (-avx2&-avx512) & CPUID Fix (scripts/build_zen5_llama.sh,install.sh,modchip):- Rebuilt all Linux
x86_64release assets (llama-server,llama-cli,llama-perplexity) insideubuntu:20.04(GLIBC <= 2.30, staticlibstdc++/libgcc, zerolibssl/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(0vdpbf16psinstructions) from-avx512so Intel Ice Lake / Tiger Lake / Rocket Lake (AVX512_VBMIwithoutAVX512_BF16) and AMD Zen 4/5 execute withoutSIGILL, verified0%zmminstructions in-avx2, and added post-downloadSHA-256+--versionsmoke-test verification with automatic source fallback.
- Rebuilt all Linux
- Supply-Chain Pinning, Per-User
0700Runtime Config,modchip claudeHardening, &64 GB/16 GBOS Headroom Guards:- Pinned exact 40-char Hugging Face commit hashes (
MODEL_REV), byte sizes (MODEL_SHARD_SIZES), andSHA-256digests (MODEL_SHARD_SHA256S) across all 8 presets ininstall.sh, and aligned Nemotron HF model cards toNVIDIA Open Model License (OpenMDW-1.1). - Isolated
DSV4_MOE_CFG_PATHinside a0700per-user runtime directory and reset routing to unprunedTop-6([6,6,0,3,43,1,0,0]) on every server start; removed default--dangerously-skip-permissionsand personal config paths from./modchip claude. - Added
-ub 512and disk slot-cache defaults on<= 68 GBhosts (deepseek4) and<= 18 GBhosts (nemotron), updatedscripts/check_cpu_readiness.pyto59.13 GiBanonymous-heapVmRSS, and added AMD Zen 1/2 microcoded-PDEPdetection (nemotron-fractaldefault).
- Pinned exact 40-char Hugging Face commit hashes (
- 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-2URL ineval_perplexity_and_kld.pyto genuine rawwiki.test.raw(with<unk>pre-tokenized rejection guard), ran reproduciblellama-perplexityevaluations across both 30B and 284B families, and committed single-pass builders,eval_hard60_and_refusal.py, and raw JSON results.
- Fixed the fallback
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:
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): Packs64weights into24 bytes(3.00 bpw):2BFP16super-block scaledplus22B(qs[22]), where the low 7 bits (qs[k] & 0x7F) store20 × 7-bit3D spherical Lloyd-Max indices (k = 0..19, stride-22 weight triples) and2 × 6-bit2D tail indices (k = 20..21, placed in the lower/upper 64-centroid half of the 128-entry codebook to encode bits22..23ofs24), while bit 7 (qs[k] >> 7acrossk = 0..21) packs bits0..21ofs24(8 × 3-bitunsigned sub-block scales,mult = 2 + u_b ∈ {2..9}). - Signal Fidelity on Uncompressed
BF16MoE Weights (blk.1.ffn_up_exps.weight):Q4_0(4.50 bpw):21.09 dBSQNR (99.61%Cosine Similarity,8.82%RelL2).Fractal-64(GGML_TYPE_Q2_0 = 42,3.75 bpw,30 B / 64 Wwith{-14,-8,-4,-1,+1,+4,+8,+14}dyadic LUT +8 × 4-bitsub-scales):17.75 dBSQNR (99.15%Cosine Similarity,12.96%RelL2),+1.45 dBaboveggmlQ3_K(16.30 dB,98.84%).LUT-VQ3-64(GGML_TYPE_VQ3_0 = 43,3.00 bpw,24 B / 64 W):13.57 dBSQNR (97.78%Cosine Similarity,20.97%RelL2),+3.42 dBaboveggmlQ2_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
VPERMI2BDecode: 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_epi8instruction without L1/L2 cache reads, with portable AVX2 and scalar fallbacks.
- Block Layout (
- 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 GiBshipped Hybrid /13.08 GiB--all-up-expsablation): Shipped checkpoint preserves boundary MoE layers (blk.1, 3, 49, 51) and all 23ffn_down_expstensors inFractal-64(3.75 bpw) while encoding the 19 interiorblk.6..47.ffn_up_expstensors fromBF16intoVQ3_0(3.00 bpw). On the full 23-layerup_expsablation (13.08 GiBdisk /16.04 GiBVmRSS),benchmarks/eval_quality_and_tools.pyscores100.0 / 100.0(30/30Tool-Calling,30/30Code Gen,20/20Needle & Math,20/20Telemetry) at24.18 tok/sE2E (+23.7%vsQ4_0) and70.19%Stockfish-PVSacceptance, saving-5.67 GiBRAM vsQ4_0.DeepSeek-V4-Flash-0731-VQ3 284B(56.40 GiBshipped 3-shard Hybrid /56.07 GiB--aggressiveablation): Shipped checkpoint keeps 100% of MLA attention projections (attn_q_b,attn_output_a,attn_output_b,attn_kv,compressor_*) inFractal-64(3.75 bpw), boundary shared experts (blk.0..4, 39..42) and allffn_down_shexpinQ5_K/Q6_K, and encodes the 68 interiorblk.5..38ffn_gate_shexp&ffn_up_shexpprojections inVQ3_0(3.00 bpw). The 255-tensor--aggressiveablation (56.07 GiBdisk /58.31 GiBVmRSS) accelerates rawN=1tg64decode by+16.9%(9.05 tok/svs7.74 tok/s) andpp128prefill by+8.8%(41.11 tok/s), with10.4 ms/dev/shmClaude Code 40-tool Slot-0 restore (0.16sTTFT).
- 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 to1,048,576(1M) tokens on an 8C/16T AMD Ryzen 7 9800X3D (64 GBDDR5,21.3–22.6 tok/spp512,6.35–8.04 tok/stg128). - Fixed Windows x64 MinGW-w64 AVX-512 crash (Issue #31,
commit 54c89bf): eliminated GCC UCRT64XMM6..XMM15callee-saved register clobbers at16 MBstack boundaries (-Wl,--stack,16777216+ non-inlined SIMD kernel helpers) and replaced alignedvmovdqa64.rdatatable loads with unalignedvmovdqu64(_mm512_loadu_si512) for PE/COFF 16-byte section alignment compatibility.
- Contributed by
- Apple Silicon
Q2_0Metal Fast-Decode Kernel & M5 MaxDeepSeek-V4 284BSupport (apple-silicon/):- Merged PR #24 by
@austindixson: register-tiled MetalQ2_0(Fractal-64) matrix-vector decode kernel boosting Apple M1 Max decode by+86%(57.65 tok/s) and reaching78.60 tok/son Apple M3 Max. - Added Apple M5 Max (
64 GBUnified Memory)DeepSeek-V4-Flash 284Bbuild 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/spp512,27.0 tok/stg128,20.7–23.6 tok/sserved with0swapouts) 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).
- Merged PR #24 by
- Build Pipeline, Self-Contained Encoder, & Repository Hardening:
- Made
vq3/vq3_enc_lib.cfully self-contained (zero external-lggml-basedependency) with automatic compilation fromscripts/build_nemotron_vq3.pyandscripts/build_dsv4_vq3.py, added--vq3-nemotronand--vq3-dsv4to./modchip quantize, madescripts/build_zen5_llama.shandwindows/build_patched_engine.ps1idempotent across repeated runs, and hardenedgateway/sse_gateway.py,kv_cache/harp_cache.py,scripts/llama_modchip.py,scripts/transcode_dsv4.c,modchip, andinstall.sh.
- Made
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:
-
DeepSeek-V4-Flash 284B(13.17BActive) 4-Level Register (ZMMAVX-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-512quantize_row_q8_K, &MQA8FlashAttention: Unpacks each quantized weight superblock (Q2_0,IQ1_S,IQ2_XXSwith BMI2+SWAR parity masks,IQ1_M,Q5_K,Q6_K) once inZMMregisters across up to 8 token columns (64weights/instruction), decomposes any$M \ge 2$ into${8, 4, 3, 2}$ with zero1x1fallback, vectorizesquantize_row_q8_Kin AVX-512, and halvesFLASH_ATTN_EXTtime (415.1 ms -> 208.5 ms) via Register-Stationary AVX-512MQA8. -
Zero-Rebuild Dynamic
CSA/LIDSkip (ggml_dsv4_skip_csa_comp), 8-SlotQ8_K/Q8_0Activation Cache,MUL_MAT_IDRow-Group Reuse, & L1D/L2 Token-AffinityHC_PRE/HC_POST: Eliminates full 4,551-node compute-graph rebuilds on non-compressor decode steps (7out of every8tokens) by tagging dummyCSA/LIDcompressor nodes withflags |= 0x100(GGML_TENSOR_FLAG_DSV4_SKIP), caches quantizedQ8_K/Q8_0input activations across shared-input projections (s_q8_cache_buf), and pins each tokenitto threadith = it % nthacrossDSV4_HC_POST -> DSV4_HC_PRE -> RMS_NORMto 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 from24.70–25.05 tok/sto43.16–44.36 tok/s(+77.1%) and pure unprunedTop-6single-token decode (N=1, zero speculation) from5.91 tok/s(169.3 ms/tok) to9.06–9.95 tok/s(100.5–110.3 ms/tok,+53.3%–68.4%) (and10.12–10.74 tok/swithTop-4 L2 + Gate-First SwiGLU).
-
512-Bit AVX-512BW Register-Stationary Multi-Column Kernels (
-
Mathematical Structure of
DeepSeek-V4-Flash:$L_2$ -Quadrature Adaptive MoE Tail Pruning (9.68–10.12 tok/s) & Exact SVD ofwo_b * wo_a:-
Why MoE Tail Pruning Requires
$L_2$ -Quadrature Rescaling (Not Linear$L_1$ Rescaling): Layers0..2(dsv4_hash_layer_count = 3) use deterministic token-ID hash tables (ffn_gate_tid2eid) with flat weights (~0.25each) and are preserved at6/6experts. 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 inv2.5.1/v2.5.3from legacy/tmp/dsv4_moe_cfg.bin&%TEMP%\dsv4_moe_cfg.binto0700per-user runtime dirs): Switchable on the fly in0.3 ns(zero syscalls per token viammapon Linux/macOS andCreateFileMappingA/MapViewOfFileon Windows_WIN32). -
Exact SVD Spectral Analysis of
wo_b * wo_a(31%of Total DRAM Traffic =991.6 MB/token): Shows that the linear chainattn_output_a([4096, 8192])$\to$ attn_output_b([8192, 4096]) retains99.64%of Frobenius energy and0.998204(99.82%) output cosine similarity at rank$r = 768 / 1024$ (-25%DRAM =-248 MB/token,-6.9 ms/tok), and99.30%cosine similarity at rank$r = 640 / 1024$ (-37.5%DRAM =-372 MB/token,-10.3 ms/tok).
-
Why MoE Tail Pruning Requires
-
Native 1-Click Windows 10/11 Hybrid GPU+CPU MoE Support (
windows/,modchip):- Adds
windows/AVVIA_MODCHIP.bat,windows/BENCHMARK_PC.bat,windows/modchip_win.ps1,windows/README.md, andwindows/LEGGIMI.txt, plus automatic Windows (MINGW*/MSYS*/CYGWIN*) delegation in./modchip. - Auto-detects physical CPU cores, live free System RAM, and live free GPU VRAM (
nvidia-smi), downloads officialllama.cppWindows CUDA 12.4 + CUDA Runtime DLLs (or Vulkan fallback on AMD/Intel GPUs), dynamically computes--n-cpu-moewith a550 MBWDDM safety buffer, and auto-selects--load-mode nonevs--no-mmap.
- Adds
-
AMD Vulkan Hybrid
MXFP4Verification (75.1 / 80.8 tok/sat256KContext) & Security Hardening (FAQ.md,gateway/sse_gateway.py):- Community benchmark on AMD Ryzen 9 7945HX3D + Radeon RX 9070 XT 16GB (
RADV/Vulkan) runningNemotron-30B-A3Bat256Kcontext:Fractal-MXFP4(15.2 GB) hits75.1 tok/s(new code) /80.8 tok/s(in-context refactor), outperformingQ4_0(69.7 / 76.2 tok/sat16.1 GB) while saving0.9 GBof VRAM. Documented inFAQ.mdQ8 whyFractal-64(Q2_0) is CPU/Metal-only until Vulkan/CUDA add a customq2_0shader. - Merged PR #4 (
commit 83767ca): hardened gateway tool schema whitelist, boundary checks, 2MB THP alignment, dynamic sysfs L3 CCD topology detection, and/dev/shmIPC validation.
- Community benchmark on AMD Ryzen 9 7945HX3D + Radeon RX 9070 XT 16GB (
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 |
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, |
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, |
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, |
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, |
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, |
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:
-
DeepSeek-V4-Flash 284B(13.17BActive) Inside< 60 GiBRAM at256KContext on a 64 GB CPU Host:-
Analytical Second-Order
SwiGLU-H2MoE 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): ShrinksDeepSeek-V4-Flash-0731(43layers:3hash-routed +40learned-router,256routed +1shared expert/layer, MLA + Indexer Compressors) from76.87 GiB(4-shardUD-IQ1_S, which OOMs on64 GBRAM) down to56.57 GiB(-20.30 GiB, 3 transcoded GGUF shards) on disk and58.9 GiBtotalVmRSSat 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_0MLA & 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-64Fractal-64(Q2_0,3.75 bpw).
-
Analytical Second-Order
-
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]) inggml_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-blockQ2_0 × Q8_0runtime from86.5 msto55.8 ms(+55%faster). - Adds 3D L1D Cache Tiling (
TILE_I0 = 64) inggml_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 the48 KBZen 5 L1D cache across all 32 threads.
- Vectorizes 64-bit upper bit-plane unpacking (
-
MLA-Aware
HARPCache, 8-Step Sparse Indexer Lookahead Prefetching, &$O(1)$ llama_kv_cache_dsv4Speculative 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_NTAL3 isolation and prefetches (_mm_prefetch(..., _MM_HINT_T0)) sparsecsa_top_k_maskrows8steps ahead (ic_pf = i + 8). - Fixes
state_snapshotplane indexing (std::min(n_rs_seq, rollback + (d - n_seq_tokens)) * state_rows) andkv_csa/hca/lid->seq_rminsrc/llama-kv-cache-dsv4.cpp, achieving94.5%draft acceptance (9.67 tok/savg /11.50–14.69 tok/speak) and clean EOS termination on both./modchip chatand./modchip claude(Claude Code).
- Auto-detects DeepSeek MLA compressed KV tensors (
-
Unified
./modchip chat+Claude CodeCompact Tool Snapshot (32.6 msSlot 0 Restore):- Updates
modchip,scripts/chat.py, andgateway/sse_gateway.pywith automatic active-model detection (/v1/models),MODCHIP_COMPACT_TOOLS=1(2,940prefix tokens,32.6 ms/dev/shmrestore), and automatic Slot 0 restoration (_last_endpoint_was_chat) when switching between./modchip chatandClaude Code.
- Updates
-
New Community CPU & Hybrid Benchmarks (
README.md,FAQ.md):-
AMD Threadripper PRO 7985WX (
64C/128T Zen 4,256 MBL3, 8-Ch DDR5-6000) by@aifartist(Issue #1): Full thread-scaling sweep (16/24/32/48/64threads) +111.62 tok/swarm decode (80.14 tok/scold,386.00 tok/sprefill at-t 324C/CCD). -
AWS Graviton3
m7g.2xlarge(8 vCPU ARM64 Neoverse-V1,32 MBL3,31 GBDDR5) by@gerchik(Issue #2):44.97 tok/srefactoring /41.05 tok/sC++20 (101.67 tok/sprefill). -
AMD Ryzen 9 7945HX3D + Radeon RX 9070 XT 16GB (
Vulkan/RADVHybrid) (FAQ.mdQ8):66.50 tok/sdecode /563.00 tok/sprefill at256Kcontext via tensor-role offloading (-ngl 99 --n-cpu-moe 30 --no-mmap).
-
AMD Threadripper PRO 7985WX (
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:
- Block-64 2-Level Hierarchical Non-Linear MoE Quantization (
Fractal-64,GGML_TYPE_Q2_0 = 42,30 bytes/ 64 weights =3.75 bpw): Solves the1856 × 2688non-divisibility constraint that causes 256-block K-quants (Q3_K,IQ3_S) inllama.cppto fall back toQ4_0onNemotron-3.5-30B-A3B. Starting directly from the unquantized58.84 GiBBF16master weights,Fractal-64shrinks the model to14.36 GiBon disk and15.40 GiBidleVmRSS(-6.01 GiBRAM saved vsBaseline-Q4_0), achieves17.75–17.78 dBSQNR on realBF16expert weights (+1.45–1.53 dBaboveQ3_K), fuses 8-weight sub-block rescaling (mult ∈ {4..19}) directly into AVX2vpmaddwd(_mm256_madd_epi16) at zero extra SIMD instruction cost, and scores100.0 / 100.0onbenchmarks/eval_quality_and_tools.pywhile running+28.0%faster (25.02 tok/svs19.54 tok/s). - Asymmetric
Fractal-MXFP4(15.95 GiB/4.25 bpwfromQ4_0): For users re-quantizing an existingQ4_0GGUF viascripts/build_fractal_moe_gguf.sh --profile mxfp4, shrinks the model to15.95 GiB(17.46 GiBidleVmRSS), adds_MM_HINT_NTAcache-bypass streaming toggml_vec_dot_mxfp4_q8_0, runs+33.5%faster (26.08 tok/s), and scores100.0 / 100.0on the Quality & Tool-Calling Gate. - 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 (30pts), 3 sandbox-executed Python algorithms (30pts), an8,512-token Needle-in-a-Haystack passkey + symbolic math check (20pts), and live speed/RAM telemetry (20pts). - 8-CCD AMD Threadripper PRO 7985WX Verification (
80.14 tok/sdecode /386.00 tok/sprefill): Community benchmark by@aifartist(Issue #1) + deterministic per-CCDtaskset -ccore mask generation inscripts/llama_modchip.py. - External Code Review Hardening (
commit 8191367+v2.2.0): Minimal cleanllama.cpppatch (patches/zen5-nemotron-256k-optimizations.patch) verified withgit apply --checkagainstd2f83055, exact full-context attention (LLAMA_ATTN_WINDOW=0) by default across all code paths, safeO_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:
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), verifiedbest_move, explicitrefuted_movetracking, and Stockfish History Gravity ([-512, +512]). -
1-Ply Quiescence Lookahead & Multi-Branch Conflict Disambiguation (in
ngram-map.cpp): QueriesStockfishDrafter::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:
-
Technique #1 — Online Session Trie Rescue (
rc_trie_v2.h+Stockfish-PVSGate):- Rescues novel in-session identifiers, variable names, and file paths when the static 8-level FNV-64 Hash Cascade misses (
best_conf < min_c), providedOnlineTrieV2has session support (ot_cnt >= 2,ot_conf >= 0.78) and is confirmed by the orthogonalStockfishZobrist TT (sf_has_cand, orot_cnt >= 4 && ot_conf >= 0.90). -
Marginal Precision:
92.19%(+59accepted tokens, only5wasted).
- Rescues novel in-session identifiers, variable names, and file paths when the static 8-level FNV-64 Hash Cascade misses (
-
Technique #2 — Top-4 Cascade Disambiguation via Orthogonal Zobrist TT:
- Inspects
tok[1..3]inhc_top4_k*.binwhenevertok[0]falls in the uncertain band (0.55 <= c0 < min_c). If an alternativealt_thas a strong live-session Zobrist TT match (alt_sf >= 640, exacttt5/tt4hit) that strictly beatstok[0](alt_sf > sf_t0 + 250),Stockfish-PVSpromotesalt_t.
- Inspects
-
Techniques #5 & #89 — 11,382-Entry Multi-Token Macro Codebook (
macro_codebook.bin):- Enables multi-token structural chains (
1..15tokens long,>= 90%empirical precision) at$d=0$ and unlocks Singular Horizon Extension across the macro chain. -
Marginal Precision:
91.81% -> 96.44%(+92accepted tokens, only8wasted).
- Enables multi-token structural chains (
-
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) fromconsensus_hitsso single-hit context matches rescued byRouteCrackat$d=0..2$ cannot masquerade as 2-hit trajectories at$d \ge 3$ . -
Marginal Precision at
$D=5..7$ :98.18%(M=6) to98.74%(M=7:+78accepted tokens,1wasted,-7rollbacks).
- Extends the draft horizon from
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 ( |
Accepted ( |
Wasted ( |
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) ** |
+223additional accepted tokens (5,440 -> 5,663) with zero additional wasted tokens (892 -> 892,100.0%net marginal precision) and-32fewer 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 GBUnified Memory) Metal Stack:- Dedicated setup & benchmark scripts (
apple-silicon/README.md,apple-silicon/run-server.sh,apple-silicon/run-gateway.sh,apple-silicon/bench.sh,apple-silicon/bench_spec.sh,apple-silicon/bench_server.py,apple-silicon/agent_loop_test.py) runningNemotron-3.5-30B-A3Bat47–49 tok/sdecode and256–549 tok/sprefill up to 128K context (384 MBKV cache,0swap).
- Dedicated setup & benchmark scripts (
fedora/— Fedora 44 / AMD Ryzen 7 8745HS (GEEKOM A8, 8C/16T Zen 4, 64 GB DDR5):- All-in-one setup, server, gateway, and browser web chat UI (
fedora/nemotron.sh).
- All-in-one setup, server, gateway, and browser web chat UI (
gateway/sse_gateway.py— Tool-Call Resilience & Cross-Platform Portability:_write_as_bash()Fallback: Automatically converts raw multilineWritetool calls into safecat << 'EOF' > ...Bashcommands viashlex.quote()when unescaped quotes in100+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/shmusage on macOS (os.path.isdir("/dev/shm")) and addsGATEWAY_HOST,GATEWAY_CORS_ORIGIN, andGATEWAY_SYSTEM_PROMPTenvironment variables.
4. Microarchitectural & Documentation Audit Fixes
- Bit-Exact C++ & Patch Verification: Verified
0diff betweenpatches/zen5-nemotron-256k-optimizations.patch/speculative/cpp/and the live production engine on our Zen 5 testbed. - Transparent Layer & KV Accounting: Clarified across
README.md,ARCHITECTURE.md, andFAQ.mdthe exact distinction between the52logical blocks (23 Mamba-2 SSM + 23 Sparse MoE + 6 GQA,46non-attention tensor blocks) and the exact 256K KV cache sizes (384 MBraw /432 MBsymmetricQ4_0& dynamic EAKVQ8_0/Q4_0vs624 MBstatic--cache-type-k q8_0 --cache-type-v q4_0). - Automated Build & Service Integration: Updated
install.sh,scripts/build_zen5_llama.sh,systemd/nemotron-256k.service,scripts/llama_modchip.py, andscripts/check_cpu_readiness.pyto deployspeculative/cpp/rc_stockfish.hand--spec-ngram-simple-size-m 7out of the box.
v2.0.0 — llama-modchip (v0.9 Public Beta): Runtime Controller & Profiler for CPU GGUF Inference
- Introduced
scripts/llama_modchip.py: Model-agnostic.ggufbinary header inspector (< 5 ms), Linux CPU/L3/THP topology profiler, Architecture Safety Locks (LLAMA_SWA_STRIDE=43:1 Interleaved SWA for Pure GQA models), and live 48-byte/dev/shm/llama_modchip.binruntime controller + Curses TUI. - Verified across 4 GGUF architectures on Dual-CCD AMD Ryzen 9 9955HX (
Nemotron-3.5-30B-A3Bat 256K,Qwen3-30B-A3Bat+38.5%decode viaLLAMA_MOE_TOP_K=4,Nemotron-H-8B, andLlama-40L).