Skip to content

About

Zero-GPU CPU inference for 26B-284B MoE models (Inkling-2-Mini Monza-RS v3, Qwen3.8 176.5B, DeepSeek-V4 284B, Nemotron-30B) + AVX-512 Fusion & RouteCrack 2.0.

Topics

Resources

Stars

1.5k stars

Watchers

12 watching

Forks

Repository files navigation

llama-modchip (v3.2.2)

Unified 16 GB · 32 GB · 64 GB MaxQ Inference Engine for Qwen3.8-Flash-Next, DeepSeek-V4 284B, Nemotron-3.5 30B & Inkling-2-Mini

Single-Pass MaxQ Compression · Unified RouteCrack 2.0 (L1 Micro-Arbiter) · Bounded-Error Inkling-2 AVX-512 Fusion + Opt-In Apple LoopCD · Quantized Split-KV Decode · Native C++ HARP-Cache v2 · Zero-Collision ABI · Linux, macOS Metal, CUDA, Vulkan & Windows 11

Release License Quality Gate Technical Paper PDF Architecture Drafter HF Collection Submit Benchmark

Quickstart (./modchip setup) · 3-Tier RAM Matrix · RouteCrack 2.0 & Fidelity Benchmarks · Engine Architecture (v3.2.2) · Supported Hardware · Leaderboard · FAQ

227.43 pp512 · 13.87 tg128
Inkling-2-Mini Monza-RS v3 (26B · 14.34 GiB · +144.6% pp · Apache 2.0)
3.4325 PPL · 0.4971 KLD
Qwen3.8 MaxQ-64GB (-46.6% KLD vs Coder-Pruned IQ1_M)
15.34 agg / 21.38 W1 t/s
Qwen3.8 RouteCrack 2.0 CPU Decode (0 GPU)
7.79 agg / 12.31 W1 t/s
DeepSeek-V4 284B RouteCrack 2.0 (57.99 GiB)
28.26 GiB ≤ 28.5 GiB
Qwen3.8 MaxQ-32GB Cold Cgroup v2 Peak (pgsteal=0, Swap=0)
28.20 agg / 42.18 W1 t/s
Nemotron-30B RouteCrack 2.0 (Fractal-MXFP4 ref)
16.4–38.5 ms
HARP-Cache v2 & /dev/shm Hybrid State Restore
0 GPUs Required
Bare-Metal CPU + 832 B L1 Micro-Arbiter

The 3-Tier MaxQ v3.2.2 RAM Matrix

One unified llama-modchip v3.2.2 binary (GLIBC <= 2.30, static libstdc++ & libgomp, zero external OpenMP .so needed, rebased onto llama.cpp @ 46eb1742d / b12604) automatically detects your CPU ISA (AVX-512 VBMI/VNNI, AVX2, ARM64 NEON, Apple Metal), system RAM, and model family (MTP vs 30B Mamba-2 vs 284B Heavy-MoE vs Inkling-2-Mini) to run RouteCrack 2.0 (--spec-type routecrack2) with Bounded-Error (<1 ULP) Inkling-2 AVX-512 Fusion + Opt-In Apple LoopCD, Quantized Split-KV Decode, and Native C++ Chained-Prefix HARP-Cache v2 on the strongest open-weights model that fits cleanly on your machine:

System RAM Tier Recommended Aligned Checkpoint Disk Footprint (Shards) Cold-Cache Cgroup v2 (-c 32768, Swap=0) Verified Speed (16C Zen 5, 0 GPU, v3.1.1/v3.2.2) Backend Compatibility
64 GB Tier
(Flagship Default)
Qwen3.8-Flash-Next-MaxQ-64GB
(--preset qwen38-64gb · 512/512 unpruned experts + blk.48 MTP)
53.99 GiB (57,969,748,352 B)
(43.26 Trunk + 10.73 PLE)
48.35 GiB <= 60.0 GiB
(pgsteal=0, Swap=0, JSON)
15.64 ± 0.05 agg / 22.00 W1 (cold 60G cg, n=3)
(15.34 / 21.38 uncapped H2H)
Standard ggml (types <= 42, 0 ConeCollapse bias): pass --no-repack on unpatched upstream llama.cpp; llama-modchip v3.2.2 recommended for zero-copy 3D MoE --repack & RouteCrack 2.0
64 GB Tier
(284B Alternative)
DeepSeek-V4-Flash-0731-MaxQ-v4
(--preset dsv4-maxq · 284.3B Total / 13.2B Active)
57.99 GiB (62,270,037,248 B)
(3 shards, 34L ConeCollapse)
~60.5 GiB WS (needs >= 61 GiB free; 60G cg OOM-free via ARC reclaim, JSON) 45.0–50.5 t/s pp
7.79 agg / 12.31 W1 t/s (uncapped 74G host)
Standard ggml tensor types (0 custom types) for CPU, Metal, CUDA, Vulkan — requires llama-modchip v3.1.1+ loader for 34× ConeCollapse ffn_down_exps.bias
32 GB Tier
(Consumer Default)
Qwen3.8-Flash-Next-MaxQ-32GB
(--preset qwen38-32gb · 42L ConeCollapse K=640->512 + blk.48 MTP)
35.71 GiB (38,341,683,424 B)
(24.98 RAM + 10.73 lazy NVMe PLE)
28.26 GiB <= 28.5 GiB (cold cg, 0.24 GiB headroom at 32K, pgsteal=0, >10.5 GiB PLE unfaulted, JSON) 14.58 ± 0.32 agg / 15.31 W1 (cold 28.5G cg, n=3)
(10.00 ± 0.01 N=1)
Standard ggml tensor types (types <= 42) + NVMe mmap demand-paged PLE — requires llama-modchip v3.1.1+ loader for 42× ConeCollapse ffn_down_exps.bias
16 GB Tier
(Two-Track: Universal + Modchip)
Nemotron-3.5-30B-A3B-MaxQ-16GB (Universal Std ggml)
Nemotron-3.5-30B-A3B-Fractal-64 (Modchip Pro, 0 Q2_0)
Nemotron-3.5-30B-A3B-VQ3-64 (Modchip CPU-Turbo)
13.39 / 14.36 / 13.30 GiB
(1 file, 256K Mamba-2+MoE)
MaxQ-16GB: ~15.0G N=1 (0.22 GiB refault) / ~15.8G RC2 (JSON)
15.4–17.3 (Fractal-64) / 14.6–16.04 (VQ3-64, 16–24 GB)
MaxQ-16GB (15G cg N=1): 22.64 ± 0.03 t/s (RC2 26.28 ARC-reclaim)
Fractal-MXFP4 ref H2H: 28.20 agg / 42.18 W1 t/s
MaxQ-16GB: Standard ggml <= 42 (0 custom types, 0 bias) — unmodified upstream llama.cpp (de32b268c+) & Q2_0-capable runners
Fractal-64 / VQ3-64: llama-modchip v3.1.1+ (types 44/45)
16–32 GB Tier
(Looped-MoE Reasoning)
Inkling-2-Mini Monza-RS v3
(--preset monza · 26.07B / 128 experts · Apache 2.0)
14.34 GiB (15,398,405,888 B, 1 file) Not yet cgroup-certified (24 GB Mac / 32 GB PC / 16 GB GPU short ctx) 227.43 pp512 / 13.29 tg128 t/s
(13.87 tg128 at -t 8 MODCHIP_PIN_CORES=1; +144.6% / +27.8% vs 92.98 / 10.40, JSON)
100% standard ggml (F32/Q8_0/IQ4_NL/MXFP4) — drop-in on upstream llama.cpp b12604+; llama-modchip v3.2.2 adds +144.6% prefill / +27.8% decode (+33.4% at -t 8 pinned) on Zen 5

Quickstart

1-Command Setup & Interactive Chat (Linux, macOS & Windows)

git clone https://github.com/synchopate/llama-modchip.git
cd llama-modchip
./modchip setup                  # Auto-detects 16GB / 32GB / 64GB RAM + CPU ISA, verifies SHA-256, writes start_server.sh
./modchip setup --preset monza   # Or directly install Inkling-2-Mini Monza-RS v3 (14.34 GiB, Apache 2.0, 100% std ggml)
./modchip chat                   # Starts background server + SSE Gateway (:8787) and opens live streaming terminal chat

Or bootstrap directly on a clean Linux host without cloning manually:

curl -sL https://raw.githubusercontent.com/synchopate/llama-modchip/main/install.sh | bash

Direct Portable Binary Run (GLIBC_2.30 Linux x86_64 -avx512 / -avx2)

All 12 v3.2.2 Linux x86_64 binaries link libstdc++, libgcc, and libgomp.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 %zmm instructions in -avx2, 0 vdpbf16ps in -avx512):

# 1. Auto-select -avx512 (Zen 4/5, Ice Lake+) or -avx2 (Haswell+, Zen 1-3, Alder/Raptor Lake) and verify SHA-256:
BIN_ISA=$(grep -q "avx512f" /proc/cpuinfo && grep -Eq "avx512_?vbmi" /proc/cpuinfo && grep -Eq "avx512_?vnni" /proc/cpuinfo && echo "avx512" || echo "avx2")
curl -fLO "https://github.com/synchopate/llama-modchip/releases/download/v3.2.2/llama-server-modchip-linux-x86_64-${BIN_ISA}"
curl -fLO "https://github.com/synchopate/llama-modchip/releases/download/v3.2.2/SHA256SUMS"
sha256sum -c SHA256SUMS --ignore-missing
chmod +x "llama-server-modchip-linux-x86_64-${BIN_ISA}"

# Non-convoy thread count: leave 1 physical core free for HTTP/OS threads paired with --poll 0 --poll-batch 0
N_CORES=$(lscpu -p=CORE,SOCKET 2>/dev/null | grep -v '^#' | sort -u | wc -l)
THREADS=$(( N_CORES > 1 ? N_CORES - 1 : 1 ))

# 2A. [64 GB Tier Default] Qwen3.8-Flash-Next-MaxQ-64GB (53.99 GiB, RouteCrack 2.0 -> 15.34 avg / 21.38 peak t/s):
hf download Synchopate/Qwen3.8-Flash-Next-MaxQ-64GB-GGUF \
  --include "Qwen3.8-Flash-Next-MaxQ-64GB-*.gguf" --local-dir ./qwen38-64gb
env RC_TABLES_DIR=/nonexistent "./llama-server-modchip-linux-x86_64-${BIN_ISA}" \
  -m ./qwen38-64gb/Qwen3.8-Flash-Next-MaxQ-64GB-00001-of-00002.gguf \
  -c 32768 -np 1 -fa on -ctk q8_0 -ctv q8_0 --spec-type routecrack2 --jinja \
  -t "$THREADS" -tb "$THREADS" --poll 0 --poll-batch 0 --slot-save-path /dev/shm --port 8080

# 2B. [32 GB Tier Default] Qwen3.8-Flash-Next-MaxQ-32GB (24.98 GiB Shard 1 + lazy NVMe PLE -> 27.44 GiB peak RSS):
hf download Synchopate/Qwen3.8-Flash-Next-MaxQ-32GB-GGUF \
  --include "Qwen3.8-Flash-Next-MaxQ-32GB-*.gguf" --local-dir ./qwen38-32gb
env RC_TABLES_DIR=/nonexistent "./llama-server-modchip-linux-x86_64-${BIN_ISA}" \
  -m ./qwen38-32gb/Qwen3.8-Flash-Next-MaxQ-32GB-00001-of-00002.gguf \
  -c 32768 -np 1 -fa on -ctk q8_0 -ctv q8_0 --spec-type routecrack2 --jinja --ctx-checkpoints 0 \
  --temp 0.6 --top-p 0.95 --top-k 20 --presence-penalty 0.2 --repeat-penalty 1.05 \
  -t "$THREADS" -tb "$THREADS" --poll 0 --poll-batch 0 --slot-save-path /dev/shm --port 8080

# 2C. [16 GB Tier] NVIDIA-Nemotron-3.5-30B-A3B-VQ3-64 (CPU-Turbo + RouteCrack 2.0) or MaxQ-16GB (100% standard ggml):
# ./install.sh --preset nemotron-vq3         # 13.30 GiB CPU-Turbo (AVX-512 VBMI)
# ./install.sh --preset nemotron-maxq-16gb   # 13.39 GiB standard ggml <=42 (upstream llama.cpp & Q2_0-capable runners)

# 2D. [Looped-MoE Reasoning · 16–32 GB Tier] Inkling-2-Mini Monza-RS v3 (14.34 GiB, Apache 2.0, 100% standard ggml):
# One-command installer with SHA-256 verification: ./install.sh --preset monza
# Opt-in Apple LoopCD (arXiv:2610.02185): prepend MODCHIP_LOOPCD_MODE=adaptive (default OFF)
hf download Synchopate/Inkling-2-Mini-Monza-RS-v3-GGUF \
  Inkling-2-Mini-Monza-RS-v3-Ultimate.gguf --local-dir .
env RC_TABLES_DIR=/nonexistent "./llama-server-modchip-linux-x86_64-${BIN_ISA}" \
  -m ./Inkling-2-Mini-Monza-RS-v3-Ultimate.gguf \
  -c 32768 -fa on -ctk f16 -ctv f16 --spec-type routecrack2 --jinja \
  --no-reasoning-preserve --reasoning-budget -1 \
  --temp 0.6 --top-p 0.95 --top-k 50 --repeat-penalty 1.03 --repeat-last-n 64 \
  --dry-multiplier 0.4 --dry-base 1.75 --dry-allowed-length 10 \
  -t "$THREADS" -tb "$THREADS" --poll 0 --poll-batch 0 --port 8080

Important

Critical Runtime Best Practices (v3.2.2):

  • Non-Convoy Threading (-t $((N_CORES - 1)) -tb $((N_CORES - 1)) --poll 0 --poll-batch 0): Leaving 1 core free for HTTP/OS dispatch and disabling busy-polling eliminates thread-pool barrier convoys (+25.9% pp512, +31.3% tg128 over oversubscribed -t N --poll 50). ./modchip configures this automatically.
  • Vocabulary Isolation (RC_TABLES_DIR=/nonexistent on Non-Nemotron Models): When serving Qwen3.8 (248K vocab) or DeepSeek-V4 (129K vocab) from a working directory containing ./workspace/routecrack Nemotron tables, always set RC_TABLES_DIR=/nonexistent (not merely unset) so RouteCrack 2.0 runs in clean online session mode. ./modchip enforces this automatically.
  • Default --repack ON (v3.2.2) vs. Unpatched Upstream llama.cpp: llama-modchip v3.2.2 fixes upstream CPU_REPACK q8_cache / repack.cpp bugs while preserving zero-copy mmap on 3D MoE tensors (RssAnon = 1.81–1.92 GiB). Users loading Qwen3.8 GGUFs on unpatched upstream llama.cpp should pass --no-repack (-nr); --no-repack is not needed on llama-modchip v3.2.2.
  • MaxQ-32GB Anti-Repetition Sampling & <think> Token Budgets: At 1.63 bpw, MaxQ-32GB must be run with temperature=0.6, top_p=0.95, top_k=20, presence_penalty=0.2–1.0, repeat_penalty=1.05 (4 / 4 = 100% loop-free on Blind-4 vs. greedy temp=0 tail loops without penalties; ./modchip passes these flags automatically on 32 GB presets). Whenever enable_thinking=True, set max_tokens >= 16384 on Qwen3.8 and max_tokens >= 4096 on Nemotron-3.5 (whose default Jinja template enables <think>...</think> unless enable_thinking: false / --reasoning-budget 0 is passed).
./modchip Command Description
./modchip setup Auto-detects RAM tier (16 / 32 / 64 GB) & CPU ISA, installs v3.2.2 engine + SHA-256 verified GGUF
./modchip download-bin [--all-tools] Installs portable GLIBC_2.30 Linux x86_64 -avx512 or -avx2 v3.2.2 binaries (--all-tools adds bench/perplexity/quantize)
./modchip start / stop Starts or stops background llama-server (:8789) + Agentic SSE Gateway (:8787)
./modchip chat Interactive terminal chat with live tok/s, TTFT, and RouteCrack 2.0 telemetry
./modchip web Opens the Dark-Mode Web Chat & Live Telemetry HUD (http://127.0.0.1:8787)
./modchip bench Runs a 2-stage C++20 + Refactor benchmark and prints a shareable CPU Scorecard
./modchip claude Launches Claude Code CLI wired to the local engine with /dev/shm Slot-0 warm restore
./modchip eval / status Runs the 100-point Functional Gate or inspects CPU readiness, 2MB THP, and /dev/shm IPC

Empirical Signal Fidelity and End-to-End Benchmarks

1. Qwen3.8-Flash-Next (MaxQ-64GB & MaxQ-32GB) — Blind wiki-alt.txt PPL + KLD & Competitor Audit

Evaluated on 40 x 512 blind wiki-alt.txt chunks (0.000000% 8-gram and 13-gram overlap with calibration corpora) against the donor-free BF16 reference logit base (Mean PPL(base) = 2.776624 ± 0.054868):

Checkpoint Exact LLM Bytes (GiB) Trunk + PLE (GiB) Built-In MTP Mean PPL(Q) ± SE Mean KLD ± SE Median KLD Same top p (%) Peak VmHWM (-c 32768)
MaxQ-64GB (Aligned Flagship) 57,969,748,352 B (53.99 GiB) 43.26 + 10.73 (512/512 exps) Yes (blk.48) 3.4325 ± 0.0708 (3.4383 repack) 0.4971 ± 0.0099 0.1060 78.314 ± 0.408% 48.35 GiB cold cg (45.08 warm gate)
ISTA-DASLab GSQ-RCO-Coder-IQ1_M 58,408,584,928 B (54.40 GiB) 27.58 + 26.82 (256/512 pruned) No 5.0916 ± 0.1214 0.9302 ± 0.0156 0.2964 69.382 ± 0.456% 38.55 GiB (--no-repack)
MaxQ-32GB (32 GB Consumer Default) 38,341,683,424 B (35.71 GiB) 24.98 + 10.73 (512/512 exps) Yes (blk.48) 5.8120 ± 0.1402 (5.8041 repack) 1.0069 ± 0.0149 0.3986 66.275 ± 0.468% 28.26 GiB <= 28.5 cold cg (26.9–27.4 warm gate)
  • 64 GB Head-to-Head (~54 GiB Class — Baseline Scope Disclosure): Despite being 0.41 GiB smaller AND embedding the 0.81 GiB blk.48 NextN MTP module, MaxQ-64GB outperforms ISTA-DASLab GSQ-RCO-Coder-IQ1_M by -1.6591 PPL (3.53x smaller PPL degradation over BF16: +0.6559 vs +2.3150), -46.6% lower Mean KLD, -64.3% lower Median KLD, and +8.93 pp higher Top-1 agreement on general Wikipedia text (wiki-alt.txt). (Full disclosure: GSQ-RCO-Coder-IQ1_M is the only published third-party <= 55.5 GiB checkpoint of Qwen3.8, and it is coder-calibrated with 256/512 routed experts pruned — so Wikipedia text naturally penalizes coder-specialized pruning relative to unpruned general-domain MaxQ-64GB.) Compressing the 320M-row PLE table from 26.82 GiB (IQ4_NL) to 10.73 GiB (PCA-Wiener D=256 + RaBitQ Q1_0) freed +16.09 GiB directly into 512/512 unpruned experts, FP64 Woodbury DualGram Q2_0, and built-in MTP.
  • 32 GB Consumer Exclusivity (18-Checkpoint Hugging Face Audit): Across all 18 published Unsloth and ISTA-DASLab Qwen3.8-Flash-Next GGUFs (54.40 GiB to 329.72 GiB), 0 / 18 fit inside a 32 GB host (<= 28.5 GiB) and only 1 / 18 fits inside 64 GB (<= 55.5 GiB). MaxQ-32GB applies 42-layer ConeCollapse width pruning (K=640->512 with ffn_down_exps.bias, requiring llama-modchip v3.1.1+) to keep its 24.98 GiB Shard 1 resident in RAM while demand-paging the 10.73 GiB Shard 2 PLE table via mmap, certified under cold-cache Linux Cgroup v2 (drop_caches=3, Cached=0.3 GiB, memory.max = 28.5 GiB, MemorySwapMax = 0, pgsteal = 0, oom_kill = 0, VmHWM = 28.08 GiB / cg.peak = 28.26 GiB at -c 32768 — tight 0.24 GiB headroom — with >10.5 GiB PLE unfaulted in benchmarks/results/qwen38_32gb_cgroup28g_v311.json; 26.91–27.44 GiB in earlier shorter-context warm-cache gate). Note that Qwen3.8 llama-perplexity quality evaluations are summary-logged from our quantization harness, while all RouteCrack 2.0, all four cold-cache Cgroup v2 3-restart JSONs, DeepSeek-V4 51-chunk, and Nemotron KLD/WT2 runs have raw logs committed under benchmarks/results/.
Opt-In Alignment & Refusal-Geometry Research Variants (Authorized Security / Red-Team Evaluation Only)

[!CAUTION] Responsible-Use Disclaimer: Optional abliterated research checkpoints (qwen38-64gb-ablit, qwen38-32gb-ablit, nemotron-ablit) remove upstream safety refusal directions and cannot be relied upon for content moderation. ./install.sh never selects *-ablit presets without explicit [y/N] confirmation (or --accept-abliterated in --yes mode). Use Aligned qwen38-64gb / qwen38-32gb / nemotron-vq3 as the default software-engineering flagships, and reserve *-ablit strictly for authorized security research, reverse engineering, red-team auditing, CTF, code auditing, and uncensored legal/policy analysis.

Opt-In Preset Checkpoint & Research Method Exact Size (GiB) Delta vs. Aligned Twin Peak VmHWM
--preset qwen38-64gb-ablit Qwen3.8-Flash-Next-MaxQ-64GB-Abliterated (signed Gated-Residual over-projection beta = 1.83 - 2.39 across blk.31..47 from trohrbaugh/Qwen3.8-Flash-Next-heretic-2 [0/100 refusals at 0.0818 KLD] + beta = 2.2508 blk.48 MTP sync) 53.99 GiB (57,969,748,352 B) 27 tensors edited / 1,058 bit-identical to MaxQ-64GB; shares 10.73 GiB PLE Shard 2 46.34 GiB (RssAnon = 2.31 GiB)
--preset qwen38-32gb-ablit Qwen3.8-Flash-Next-MaxQ-32GB-Abliterated (same Gated-Residual + blk.48 MTP sync + ConeCollapse ffn_down_exps.bias alignment; use --temp 0.6 --top-p 0.95 --top-k 20 --presence-penalty 0.2 --repeat-penalty 1.05) 35.71 GiB (38,341,683,424 B) 32 tensors edited / 1,095 bit-identical to MaxQ-32GB; shares 10.73 GiB PLE Shard 2 28.40 GiB <= 28.5 GiB
--preset nemotron-ablit NVIDIA-Nemotron-3.5-30B-A3B-Abliterated-VQ3-64 (types 44/45 CPU-Turbo) 13.30 GiB (14,282,559,488 B) 76 edited / 325 copied (0.0308 nats KLD vs VQ3-64) 14.3–16.0 GiB
Pinned v3.2.2 Fleet GGUF, Binary & Patch SHA-256 Checksums (`./modchip checksums`)
# 32 GB & 64 GB Tiers — Qwen3.8-Flash-Next-MaxQ
f2b8bc79acb4b4d79033acd91c9c360ba96da92cd5841512befc450e15f4786f  Qwen3.8-Flash-Next-MaxQ-64GB-00001-of-00002.gguf (46,449,692,736 B)
1dac27e81a3a73dcec21edea78f224eb48393a726e3f9ee7676c603d3174e82f  Qwen3.8-Flash-Next-MaxQ-64GB-Abliterated-00001-of-00002.gguf (46,449,692,736 B)
06cb65f9cf6e510cd16500ca1719701a0ffa13dcaa4c4d0cc135e4f2071a8b4d  Qwen3.8-Flash-Next-MaxQ-32GB-00001-of-00002.gguf (26,821,627,808 B)
09b54c335505f9f609415dbc774868ad5ae188f17e873dead3ec743ec84e1009  Qwen3.8-Flash-Next-MaxQ-32GB-Abliterated-00001-of-00002.gguf (26,821,627,808 B)
86b79714867743ddf5911ee7dff2717ae275f870551d86469cbdbf026c6b552e  Qwen3.8-Flash-Next-MaxQ-{64GB,32GB}[-Abliterated]-00002-of-00002.gguf (11,520,055,616 B)
ef2af1d6aa8a22740c7252bc7ce40c5c2f1249aa8d9c8499a4d4572c3cfdf9df  mmproj-Qwen3.8-Flash-Next-BF16.gguf (907,542,880 B)

# 64 GB Tier — DeepSeek-V4-Flash-0731-MaxQ-v4 (284B)
6112e887b21d1fdf7b7196232b528698a6ec2d5a59760a040cb4231f8e8d691b  DeepSeek-V4-Flash-0731-MaxQ-v4-00001-of-00003.gguf (5,258,336 B)
5d85c740992b70395da5c3e4a856b3fad6ef725271722c8d837b35befe28330d  DeepSeek-V4-Flash-0731-MaxQ-v4-00002-of-00003.gguf (35,543,586,816 B)
a8654d4d5fedf748d6f2b6404a8b7f9e19435a8aa8e2bb97ce9a66bc012c0f3a  DeepSeek-V4-Flash-0731-MaxQ-v4-00003-of-00003.gguf (26,721,192,096 B)

# 16 GB Tier — NVIDIA-Nemotron-3.5-30B-A3B
26b884d70a52046a7198c4e01cac397af8bf44584b04cdcf59f896145587db67  NVIDIA-Nemotron-3.5-30B-A3B-MaxQ-16GB.gguf (14,382,336,640 B · 100% std ggml)
04a460cdd831002d80b2f47ec5d70e7a92227abcf0a57f31ad73fe0bd50e711f  NVIDIA-Nemotron-3.5-30B-A3B-VQ3-64.gguf (14,282,559,040 B · types 44/45)
3a3a09eac29b5906397ca6a93d2ff0f566fca0bdd365294d067aeb5d0ebf4a1b  NVIDIA-Nemotron-3.5-30B-A3B-Fractal-64.gguf (15,420,034,624 B · type 44)
75da8372f3896bfacd103f3cb85bf22b729d39cb1efce82fb3c838ab2af53e57  NVIDIA-Nemotron-3.5-30B-A3B-Abliterated-VQ3-64.gguf (14,282,559,488 B · types 44/45)

# Looped-MoE Reasoning — Inkling-2-Mini Monza-RS v3 (Apache 2.0)
5f1df36927b56d761ede5359c1212d8443cee8330269062c0a0a3c96ed616038  Inkling-2-Mini-Monza-RS-v3-Ultimate.gguf (15,398,405,888 B · 100% std ggml)

# Portable llama-modchip v3.2.2 Linux x86_64 Binaries, Tarball & Patch (GLIBC <= 2.30)
fa74822e6d4ac9bd5460eda34d5908753128585ae2236bb29f7a14fef79d002c  patches/llama-modchip-v3.2.patch
c673cad9e7aa45e2351e92247ebf9791a934b835cf6a1f3e9c7e46f27b25bdc6  llama-server-modchip-linux-x86_64-avx512
9465fa9c21eabf8b843997e95537b5b545313e8181b25cbfd3a6449549b827d8  llama-server-modchip-linux-x86_64-avx2 (and llama-server-modchip-linux-x86_64)
cd949bf1785b747952a802007195db6b927f46fbff2f126743787d064250db79  llama-cli-modchip-linux-x86_64-avx512
ff13d9fa32a3ba6502aedacad2ccf2598d18312ccbe6de8cb9cde3a5d5bb7301  llama-cli-modchip-linux-x86_64-avx2 (and llama-cli-modchip-linux-x86_64)
fd6a9624417921b20c363e6958807fe16e222fd37fd8d3d53eda5c49a29c67c2  llama-bench-modchip-linux-x86_64-avx512
7a5b5146638954e7a5206fb7398fa298cd7ca890ac5f04a14d9dabb022241c19  llama-bench-modchip-linux-x86_64-avx2
19f35504b91a392ad5682426737d1567e9fa13c33b19ce3662aa1f556932f08b  llama-perplexity-modchip-linux-x86_64-avx512
2262daade88e4269bec9ed2dc8be1e735490833c903bf7612c8b7f880069667d  llama-perplexity-modchip-linux-x86_64-avx2
f34d3f046513d535d392dfaa6a44a2045a69abbfc945a71c4a5ee524bd2c3a43  llama-quantize-modchip-linux-x86_64-avx512
b33bd3da311ec61daea7e8f626e2108642e9d077d40bdc36b685efa0942eb1ac  llama-quantize-modchip-linux-x86_64-avx2
7ce80d0109e8d580833bfe3c7988f0c8402774ad91b2212a6f67de76b547f228  llama-modchip-v3.2.2-linux-x86_64.tar.gz

2. RouteCrack 2.0 (v3.1.1) Unified Speculative Engine Across All 3 Flagship Families

llama-modchip v3.1.1 ships RouteCrack 2.0 (--spec-type routecrack2), unifying NextN Multi-Token Prediction (MTP) / RCPredictor, O(1) Two-Zone Suffix Indexing (16K Hot + 24K Prefix), and Stockfish-PVS (192 KB Zobrist TT + 28-bit Tagged Mode Refutation) under the 832 B (13 cache lines) L1-resident RouteCrack 2.0 L1 Micro-Arbiter (common/rc_arbiter_l1.h, with cross-ISA bit-identical NaN/±Inf feature sanitization). Evaluated head-to-head across 4 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; raw JSON logs in benchmarks/results/):

Flagship Model Family Pure N=1 (none) v3.0 Default Speculator RouteCrack 2.0 (v3.1.1 routecrack2) Gain vs N=1 / v3.0 W1 / W2 / W3 / W4 (tok/s) Acceptance (Mean Len)
Qwen3.8-Flash-Next-MaxQ-64GB
(Aligned flagship, 176.5B/5B, blk.48 MTP)
8.67 t/s
(8.50 / 8.68 / 8.68 / 8.68)
12.00 t/s (MTP-1)
13.94 t/s (v3.0: 16.61 / 16.84 / 13.24 / 10.76)
15.34 tok/s +77.0% vs N=1
+27.9% vs MTP-1 / +10.1% vs v3.0
21.38 / 17.38 / 12.63 / 12.78
(2.52x W1, 100% exact W1+W2)
79.95% (3.66)
DeepSeek-V4-Flash-0731-MaxQ-v4
(284.3B, 13.2B Active, Heavy-MoE)
6.80 t/s
(6.48 / 6.70 / 6.90 / 7.01)
7.73 t/s
(ngram-map-k: 11.90 / 7.39 / 6.74 / 6.55)
7.79 tok/s +14.5% vs N=1
+0.84% vs v3.0
12.31 / 7.55 / 6.74 / 6.49
(100% exact W1+W2; see note)
85.92% (2.97)
NVIDIA-Nemotron-3.5-30B-A3B
(benchmarked on Fractal-MXFP4, 30B/3B)
22.60 t/s
(22.20 / 22.57 / 22.69 / 22.61)
27.13 t/s
(ngram-map-k: 42.54 / 26.08 / 22.65 / 23.80)
28.20 tok/s +24.8% vs N=1
+3.96% vs v3.0
42.18 / 28.83 / 22.97 / 24.72
(+10.5% W2, 100% exact W1+W2)
78.59% (3.35)
  • Why RouteCrack 2.0 Beats Both draft-mtp and ngram-map-k: On 1-layer NextN MTP models (Qwen3.8, chain_heads == false), standard draft-mtp (n_max = 3) chains 3 × ~15 ms sequential 248K lm_head passes feeding its own pending_h without target intermediate hidden states or symbolic suffix extension, while immediately halting fallback drafters (dp.drafting = false). RouteCrack 2.0 either bypasses the ~15 ms MTP lm_head pass in < 250 ns on strong context matches (fastpath) or runs a single d = 0 MTP pass and anchors [prompt..., id_last, mtp_t0] into the Two-Zone 3-gram suffix index + Stockfish TT to extend up to 5 tokens (mean_len = 3.66) while keeping ctx_dft 100% position-aligned on partial acceptances. On non-MTP models (Nemotron-30B & DeepSeek-V4 284B), RouteCrack 2.0 fuses RCPredictor + Two-Zone Suffix + 28-bit Tagged Mode Refutation (eliminating JSON/prose mode-bleed divergence on W2) and automatically selects kRC2HeavyMoEDraftlessArbiter when n_expert > 0 && model_bytes > 35 GiB.
  • Transparent Per-Workload, Cold-Cache Cgroup v2 (n=3 Cold Restarts) & Greedy Identity Notes: All reference runs execute on a 16-core Zen 5 container with 74.0 GiB RAM (0 GPU, Swap=0). We tested all four flagships after hypervisor drop_caches=3 + POSIX_FADV_DONTNEED (Cached = 0.3 GiB at start) over n = 3 independent cold server restarts per config (-c 32768, MemorySwapMax=0, swap.peak=0 B, oom_kill=0, Student-$t$ df=2 95% CIs):
    • Certified strictly below cap (pgsteal = 0, refault = 0): Qwen3.8-MaxQ-64GB (qwen38_64gb_cgroup60g_v311.json, 60G cap): Pure N=1 8.78 ± 0.02 tok/s (CI ±0.05, cg.peak 46.53 GiB) vs RouteCrack 2.0 15.64 ± 0.05 tok/s (CI ±0.11, W1 22.00 ± 0.19, VmHWM 48.09 / cg.peak 48.35 GiB); Qwen3.8-MaxQ-32GB (qwen38_32gb_cgroup28g_v311.json, 28.5G cap): N=1 10.00 ± 0.01 (cg.peak 26.79 GiB) vs RC2 14.58 ± 0.32 tok/s (CI ±0.80, W1 15.31, VmHWM 28.08 / cg.peak 28.26 GiB, >10.5 GiB PLE lazily unfaulted).
    • Near-cap boundary (~0.22 GiB refault): Nemotron MaxQ-16GB N=1 (nemotron_16gb_cgroup15g_v311.json, 15G cap) nearly fits (~15.03 GiB needed, 55,521–59,708 refaulted pages = 0.22 GiB refault, 22.64 ± 0.03 tok/s).
    • Exceeds cap at -c 32768 (OOM-free via host-ZFS-ARC-backed file reclaim; bare-metal throughput unverified): DeepSeek-V4 MaxQ-v4 at 60G (dsv4_64gb_cgroup60g_v311.json, ~60.3–60.7 GiB needed; requires >= 61 GiB free; 10.7–30.7 GiB/run refaulted, 8.88 ± 0.25 RC2 / 7.68 ± 0.01 N=1) and Nemotron MaxQ-16GB RC2 at 15G (~15.75 GiB needed; requires >= 16 GiB free; 8.4–9.2 GiB/run refaulted, 26.28 ± 0.19). Because refaults on our hypervisor host are served from host ZFS ARC RAM rather than NVMe, those reclaim-bound rates do not transfer to bare-metal 64/16 GB boxes without >= 61 / >= 16 GiB free RAM.
    • Greedy T=0 Parity & Uncapped H2H Notes: On uncapped Aligned Qwen3.8-MaxQ-64GB, RouteCrack 2.0 lifts W1 to 21.38 tok/s (2.52x vs N=1 8.50, +28.7% vs v3.0), W2 to 17.38, and W4 to 12.78 (+18.8% vs v3.0). Across all three families, RouteCrack 2.0 achieves 100% greedy bit-exact parity vs. N=1 on structured W1+W2 (Qwen3.8: 254/254, DeepSeek-V4: 191/191, Nemotron: 255/255), while on high-entropy W3+W4 all speculative methods diverge at near-tied logits, which we attribute to batched GEMM vs. N=1 GEMV FP32 accumulation order (not yet isolated with a deterministic kernel; Qwen3.8 RC2: W3 4/254, W4 48/254; MTP-1/v3.0: W3 4/254, W4 79/254; DeepSeek-V4 RC2: W3 34/191, W4 48/191; Nemotron RC2: W3 17/253, W4 173/255). On DeepSeek-V4 (+0.84% vs v3.0) and Nemotron (+3.96% vs v3.0, on Fractal-MXFP4 ref), RouteCrack 2.0 primarily lifts Nemotron W2 +10.5% and eliminates v3.0 W2 JSON divergence (191/191 & 255/255 vs 120/191 & 57/255); on DeepSeek-V4, uncapped W4 prose runs -7.4% vs N=1 (6.49 vs 7.01, +14.5% aggregate overall).
3. Historical v3.0 Engine Baseline, 248K Speculative Shootout & /dev/shm Hybrid State Restore (19–38.5 ms)

Measured on 16 Zen 5 cores (taskset -c 16-31, mmap enabled, default --repack ON, RC_TABLES_DIR=/nonexistent):

Edition & Speculative Mode Stage 4C Baseline (-t 16 --poll 50 -nr) llama-modchip v3.0 (-t 15 -tb 15 --poll 0, --repack ON)¹ Combined Gain¹ Speculative Acceptance Peak VmHWM (RssAnon)
MaxQ-64GB — Pure N=1 (none) 42.17 pp / 4.69 t/s tg 72.18 t/s pp512 / 6.37 t/s tg128 +71.2% pp / +35.7% tg — 44.9 GiB (0.55 GiB)
MaxQ-64GB — Built-In draft-mtp (v3.0 baseline) 39.24 pp / 7.33 t/s tg (2.56 broken repack) 71.97 t/s pp512 / 12.66 t/s tg128 (peak 12.82) +83.4% pp / +72.8% tg (1.99x over none) 93.00% (279/300) 45.08 GiB (1.81 GiB)
MaxQ-64GB — Stockfish-PVS v2 (inplace_edit cold rep 0)² — 75.2 t/s pp / 10.58 t/s tg128 (vs 12.99 draft-mtp) 1.67x over none 91.25% (cold) 44.23 GiB (-0.85 GiB)
MaxQ-32GB — Pure N=1 (none) 68.66 pp / 6.08 t/s tg 82.11 t/s pp512 / 6.67 t/s tg128 +19.6% pp / +9.7% tg — 26.3 GiB (0.69 GiB)
MaxQ-32GB — Built-In draft-mtp (v3.0 baseline) 61.39 pp / 9.46 t/s tg (8.39 pre-v3.0 repack) 74.55 t/s pp512 / 11.45 t/s tg128 (14.29 inplace_edit) +21.5% pp / +21.1% tg (1.72x over none) 73.73%–100.0% 26.91 GiB (1.92 GiB)
MaxQ-32GB — Stockfish-PVS v2 (inplace_edit cold rep 0)² — 78.03 t/s pp / 12.82 t/s tg128 (vs 13.76 draft-mtp) 1.87x over none (+11.0% faster pp) 91.25% (cold) 26.38 GiB (-0.53 GiB)

(¹ Transparent Speedup Attribution: Stage 4C ran oversubscribed -t 16 --poll 50 --no-repack on 16 logical CPUs, whereas Stage 4D-1 ran -t 15 -tb 15 --poll 0 --poll-batch 0 with v3.0 default --repack ON. The +72.8% [MaxQ-64GB] and +21.1% [MaxQ-32GB] decode gains reflect the combined llama-modchip v3.0 SIMD/GDN/repack engine optimizations plus non-convoy -t <N-1> --poll 0 scheduling [step0 isolated -t 15 --poll 0 at +25.9% pp / +31.3% tg on 32GB none].)
(² Speculative Default Progression (v3.0 -> v3.1.1): In v3.0, standalone draft-mtp won cold single-turn rep 0 tg128 on 6 / 6 (edition, prompt) pairs while zero-weight Stockfish-PVS v2 excelled on in-context refactoring. In v3.1.1, RouteCrack 2.0 (--spec-type routecrack2) supersedes both as the default across all three families by fusing MTP anchoring, Two-Zone Suffix fast-path bypass, and Stockfish-PVS under the 832 B L1 Micro-Arbiter (15.34 avg / 21.38 peak tok/s on Aligned Qwen3.8, +10.1% over v3.0 draft-mtp). Opt-in LLAMA_MOE_TOP_K=8 adds +5.7% tg / +8.5% pp on MaxQ-32GB at a +0.41 40-chunk PPL cost, so unpruned TOP_K=10 remains strictly default.)
(³ /dev/shm Hybrid State Snapshot: Saving and restoring a 512-token Qwen3.8 Slot-0 hybrid state [233.14 MiB = 36 GDN [48x128x128] FP32 + 12 GQA Q8_0 KV + 1 HARP checkpoint] completes in 38.49 ms avg (38.16 ms min, 5.92 GiB/s, 162x faster than 6.18s prefill; ~19 ms / 120.6 MiB with --ctx-checkpoints 0) with 100% bit-exact greedy continuation [SHA256 = 8e5a6444...].)

4. DeepSeek-V4-Flash 284B (64 GB), NVIDIA-Nemotron-3.5-30B-A3B (16 GB) & Inkling-2-Mini Monza-RS v3 (16–32 GB Looped-MoE)

Full quality gate breakdowns, ref5632.kld 51-chunk / 49-chunk blind logs, and BF16 SQNR tables are preserved in benchmarks/QUALITY_GATE_VQ3_64.md, docs/DEEPSEEK_V4_OPTIMIZATIONS.md, and docs/NEMOTRON_OPTIMIZATIONS.md:

  • Inkling-2-Mini Monza-RS v3 (14.34 GiB / 15,398,405,888 B, 26.07B Total / 128 experts, Apache 2.0, 100% standard ggml, --preset monza — HF Model Card): Single-pass compression from 52.14 GB BF16 down to one 15.40 GB (14.34 GiB) standard GGUF (F32/Q8_0/IQ4_NL/MXFP4, drop-in compatible with upstream llama.cpp b12604+). With llama-modchip v3.2.2 AVX-512 fusion (MODCHIP_INK2_FUSE=1, MODCHIP_GEMM_TILE=1, LLAMA_NT_STREAM_MM=1, JSON), reaches 227.43 tok/s pp512 (+144.6%, 2.45×) and 13.29 tok/s tg128 (+27.8%) vs. same-binary unfused (92.98 / 10.40 tok/s) on 16C Zen 5 (13.87 tok/s +33.4% at -t 8 MODCHIP_PIN_CORES=1; 10.57 tok/s at d=8192), with verified WikiText-2 parity (PP512 Mean KLD = 0.0018, 50-chunk N=1 ΔPPL = +0.003%). On our Italian Enterprise 200 suite under a 4,096-token completion budget, Monza-RS v3 reaches 93.0% vs. 78.0% for the stock BF16 baseline (p_HB = 3.62e-6, -57.5% thinking tokens 472 vs. 1,111) and 79.7% vs. 74.9% on public IFEval Strict 541 (p_HB = 0.0243), while maintaining exact uncapped parity (96.3% = 96.3%; full methodology and ablations on the Hugging Face Model Card).

Inkling-2-Mini Monza-RS v3 — 52 GB to 15 GB Standard GGUF and 2.4x CPU Prefill

  • DeepSeek-V4-Flash-0731-MaxQ-v4 (57.99 GiB, 284.33B Total / 13.17B Active, 0 custom tensor types; requires llama-modchip v3.1.1+ for 34× ConeCollapse ffn_down_exps.bias): AtomicChat wiki-alt.txt 51-chunk ref5632.kld Mean PPL(Q) = 6.8592 ± 0.0482 (6.8471 on unseen chunks 3..51), Mean KLD = 0.64851 ± 0.00354 nats, Median KLD = 0.18382, Same top p = 73.283% (vs PPL(base) = 4.3310); 7.79 agg / 12.31 W1 tok/s under RouteCrack 2.0 (6.80 tok/s pure N=1) on 16C Zen 5 CPU. (Historical note: the 27.0 tok/s Apple M5 Max result in apple-silicon/results/dsv4-m5max.md was collected on the earlier withdrawn DeepSeek-V4-Fractal 56.56 GiB build, not MaxQ-v4.)
  • NVIDIA-Nemotron-3.5-30B-A3B (13.30 GiB VQ3-64, 14.36 GiB Fractal-64, & 13.39 GiB MaxQ-16GB Universal Std ggml): Across 40 × 512 blind wiki-alt.txt chunks vs. the 16.07 GiB donor-free MXFP4 reference (PPL = 6.596), Fractal-64 (14.36 GiB, type 44) achieves PPL = 6.653 (0.0688 nats KLD vs. MXFP4; logged 32-probe / matched rollout KLD vs. 58.84 GiB BF16 = 0.1254 / 0.0929 nats), VQ3-64 (13.30 GiB, types 44/45) achieves PPL = 6.761 (0.0871 nats KLD vs. MXFP4; vs. true BF16 = 0.1495 / 0.0944 nats, WikiText-2 PPL = 7.4400 vs BF16 6.9582, 100.0 / 100.0 Gate), and donor-free MaxQ-16GB (14,382,336,640 B = 13.39 GiB, max_type = 42, 0 custom types, 0 ConeCollapse bias — unmodified upstream llama.cpp de32b268c+ & Q2_0-capable runners) achieves PPL = 7.313 ± 0.192 (0.1722 nats KLD vs. MXFP4, 83.43% Top-1); in cold-cache 15.0 GiB Cgroup v2 (-c 32768, Swap=0, nemotron_16gb_cgroup15g_v311.json), pinned 16C q8_0/q4_0 KV pure N=1 nearly fits (~15.03 GiB, 0.22 GiB refault) at 22.64 ± 0.03 tok/s while RC2 (~15.75 GiB, needs >= 16 GiB free) finishes OOM-free via 8.4–9.2 GiB ZFS-ARC-backed file reclaim (earlier unpinned -t 15 --poll 0 warm-cache llama-bench gate measured 14.304 GiB VmHWM, 188.29 tok/s pp512, 15.10 tok/s tg128 N=1, and 27.80 tok/s MiniLRU refactor).

What Is New in llama-modchip v3.2.2

  1. Opt-In Apple LoopCD (arXiv:2610.02185) & Variable Loop Depth for Inkling-2-Mini (MODCHIP_LOOPCD_MODE=off default; opt-in adaptive|logits|hidden, MODCHIP_INK2_LOOPS=1..6, JSON):
    • First native C++ multi-backend llama.cpp implementation of LoopCD-Hidden (Eq. 2, 0.0% decode cost), LoopCD-Logits Fixed (Eq. 3), and LoopCD-Logits Adaptive Margin-Gated (Eq. 4, MODCHIP_LOOPCD_MODE=adaptive, defaulting to omega=0.50, ref=0 [Pass 1]) with pure-ggml GPU/repack fallback and zero overhead / bit-identical v3.2.2 execution when unset.
    • Verified on Inkling-2-Mini Monza-RS v3 (14.34 GiB, 0 GPU Zen 5): lifts 563 blind MC tasks (WinoGrande, ARC-Challenge, MMLU, HellaSwag) from 68.21% to 71.58% (+3.37 pp, McNemar p=0.0271), while a negative-omega falsification placebo (omega=-0.50) crashes to 62.88% (-5.33 pp -> +8.70 pp pure causal separation, p=1.17e-5); lifts the 60-task T=0 generation safety gate (IFEval-Strict, HumanEval+, Italian Enterprise) from 91.67% (55/60) to 93.33% (56/60, +1/-0 zero regressions, -5.1% decode cost).
  2. 16×8 A-Packed Broadcast-B VNNI Panel GEMM (MODCHIP_GEMM_TILE=1), Bounded-Error (<1 ULP) Inkling-2-Mini AVX-512 Graph Fusion (MODCHIP_INK2_FUSE=1, mask 0xEFF), & Non-Temporal Streaming (LLAMA_NT_STREAM_MM=1, all default ON) (patches/llama-modchip-v3.2.patch, JSON):
    • Adds a 16-row on-the-fly A-packed + {1to16} broadcast-B ILP-8 AVX-512 VNNI panel GEMM (KB=12, JB=64, 38 KB stack, zero register spills, zero AVX-512DQ, <= 5.4e-7 max relative error vs FP64 across 4.1M independent checks) for IQ4_NL, MXFP4, and Q8_0, plus 12-bit Inkling-2 graph fusion (0xEFF: fused SiTU, L2 clip, depth-attention mix, shortconv, loop control, relative-bias gather, gated attention, softcap unpad, fused N=1 multi-output Q8_0 attention/lm_head, and fused N=1 IQ4_NL/MXFP4 MoE) with strict tensor_is_plain_cpu() CPU/repack safety and opt-in glibc Linux L3/CCD physical-core pinning (MODCHIP_PIN_CORES=1, no-op on musl/Android/macOS/Windows). On Inkling-2-Mini Monza-RS v3 (14.34 GiB, portable v3.2.2 llama-bench-modchip-linux-x86_64-avx512, Ryzen 9 9955HX, -t 16 -ngl 0 -fa 1), achieves 227.43 tok/s prefill (+144.6%, 2.45×) and 13.29 tok/s decode (+27.8%) vs. same-binary unfused FUSE=0 NTA=0 TILE=0 (92.98 / 10.40 tok/s; 92.19 / 10.65 with NTA=1), reaching 13.87 tok/s (+33.4%, 94.4% of DDR5 bandwidth ceiling) at -t 8 -lm none with MODCHIP_PIN_CORES=1 (10.57 tok/s at d=8192), with verified WikiText-2 parity (PP512 Mean KLD = 0.0018, 99.96% log-PPL corr; 50-chunk N=1 ΔPPL = +0.003%, Mean KLD = 0.0027).
  3. Quantized & Heterogeneous Split-KV Decode (+15.1%–+61.4% at 32K) + Upstream llama.cpp @ 46eb1742d (b12604) Rebase:
    • Unlocks CPU Split-KV decode (use_split_kv_path) for quantized and heterogeneous KV caches (Q8_0/Q4_0, Q4_0/Q4_0) whenever n_head < n_threads or nek1 >= 2048 && n_head % n_threads != 0 (LLAMA_MODCHIP_SPLIT_KV_QUANT=0|1|2, default 1), fixing + CACHE_LINE_SIZE_F32 decode scratch sizing (ggml-cpu.c) and SWA/NTA cur_pos/n_kv_cols boundaries (ops.cpp). Verified persistent-threadpool 32K attention speedup: +61.4% (Q=12/KV=4/D=256 q8_0/q4_0, 4.356 -> 2.699 ms), +39.7% (Q=24/KV=8/D=128 q8_0/q4_0), +21.6% (q4_0/q4_0), +15.1% (Q=32/KV=4/12T) with ~2e-8 parity vs nth=1.
    • Rebased onto ggml-org/llama.cpp @ 46eb1742d (b12604), including native Inkling-2 (src/models/inkling2.cpp), with zero ABI collisions (41..45).
  4. Native C++ Chained-Prefix HARP-Cache v2, 11.3× Batched FNV-1a Acceleration & EAKV Vectorization (speculative/cpp/rc_harp_radix.h, kv_cache/harp_cache.py, PRs #54–#61):
    • Adds an O(L/256) chained FNV-64 Radix index (H_k = FNV64(H_{k-1} || B_k) + model fingerprint), True LRU eviction, and non-destructive multi-branch shared-prefix preservation (fixing the f_keep < 0.25 cliff for lcp >= 512) natively inside llama-server (server-slot-sched.{h,cpp} & server-context.cpp), plus 11.3× batched FNV-1a acceleration (kv_cache/fnv_accel.py), O(1) radix eviction, and vectorized EAKV quantization.
    • Opt-in /dev/shm persistent slot mirror (LLAMA_MODCHIP_HARP_SHM=1 + --slot-save-path, 0600 + O_NOFOLLOW + atomic rename) restores 105.20 MiB (1,302/1,319 tokens) after a cold server restart in 16.40 ms raw KV snapshot restore (6.26 GiB/s; 1,351 ms total TTFT, 10.7× speedup vs 14.47 s cold prefill) while cleanly dropping causally diverged prefixes (cache_n=0).
  5. RouteCrack 2.0 (--spec-type routecrack2) & Cross-ISA Bit-Identical 832 B L1 Micro-Arbiter (speculative/cpp/rc_arbiter_l1.h, speculative/cpp/rc_routecrack2.h):
    • Unifies NextN MTP / RCPredictor, O(1) Two-Zone 40K Suffix Indexing, and Stockfish-PVS (192 KB Zobrist TT + 28-bit Tagged Mode Refutation) under an 832 B (13 cache lines) L1-resident [10 -> 16 -> 1] SIMD Micro-Arbiter (AVX-512 zmm, AVX2+FMA 2x ymm, ARM64 NEON vfmaq_n_f32) with cross-ISA bit-identical NaN/±Inf sanitization and three hardware-calibrated cost profiles (kRC2DefaultArbiter, kRC2DraftlessArbiter, kRC2HeavyMoEDraftlessArbiter).
  6. Zero-Collision Custom Tensor Type IDs (44 & 45), 512-Bit SIMD Kernels & Zero-Copy 3D MoE --repack:
    • Preserves upstream GGML_TYPE_Q1_0 = 41, GGML_TYPE_Q2_0 = 42, and GGML_TYPE_F8_E4M3 = 43 100% untouched; registers Fractal-64 (3.75 bpw, CPU + Apple Metal) at GGML_TYPE_FRACTAL_64 = 44 and LUT-VQ3-64 (3.00 bpw, AVX-512 VBMI VPERMI2B + AVX2/NEON/scalar) at GGML_TYPE_VQ3_64 = 45.
    • Dedicated AVX-512 VNNI/BW kernels for Q1_0, Q2_0, Q8_0, MXFP4, fused 8-zmm FMA multi-threaded GATED_DELTA_NET, zero-copy 3D MoE mmap under default --repack, and inward 2 MiB MADV_HUGEPAGE alignment.

Supported Chips and Processor-Specific Optimizations

Microarchitectural details and tuning flags are documented in docs/HARDWARE_OPTIMIZATIONS.md:

Processor / Platform Verified Hardware Hardware-Specific Optimizations Active Platform Guide & Scripts
AMD Zen 5 (Desktop / Mobile / Server) Ryzen 9 9955HX, 9950X, Ryzen 7 9800X3D, EPYC 9005 Turin • Single-cycle 512-bit AVX-512 (VPDPBUSD, VBMI VPERMI2B, 8-zmm GDN)
• Zero-copy 3D MoE --repack + 2MB THP (MADV_HUGEPAGE) + _MM_HINT_NTA L3 isolation
Hardware Guide §2.1
install.sh
AMD Zen 4 Multi-CCD (Threadripper / EPYC) Threadripper PRO 7985WX (64C/128T, 8 CCDs, 256 MB L3) • Dynamic sysfs L3 CCD Topology Discovery (scripts/llama_modchip.py)
• Deterministic 4C/CCD Stride (-t 32): avoids Infinity Fabric saturation (111.6 tok/s)
Hardware Guide §2.2
Issue #1
AMD 3D V-Cache + Radeon Vulkan Hybrid Ryzen 9 7945HX3D (128 MB L3) + RX 9070 XT 16GB (RADV) • Tensor-Role Splitting (-ngl 99 --n-cpu-moe N)
• Native Vulkan SSM_SCAN + MXFP4 GPU Shaders (80.8 tok/s at 256K)
Hardware Guide §2.3
FAQ.md
Intel / AMD + NVIDIA RTX (Windows 10/11) Ryzen 7 9800X3D (1M ctx), Core i9-9900K / 14900K + RTX 2080 Ti / 3090 / 4090 • Unified v3.2.2 MinGW-w64 & MSVC+CUDA Builder (windows/build_patched_engine.ps1)
• Live-VRAM --n-cpu-moe Solver (550 MB WDDM Reserve)
Windows Port
windows/
Apple Silicon (M1 / M2 / M3 / M4 / M5) M5 Max (64 GB), M4 Max (64/36 GB), M4 Pro (24 GB), M3 Max, M1 Max • Unified v3.2.2 Metal + ARM64 NEON SDOT Engine (apple-silicon/build-dsv4-engine.sh)
• 249.76 / 236.30 tok/s RouteCrack 2.0 on M4 Max (Nemotron Q4_0); 27.0 tok/s historical DeepSeek-V4 Fractal on M5 Max
Apple Silicon Guide
dsv4-m5max.md
ARM64 Cloud & Mini-PC (Graviton / Fedora) AWS Graviton3 m7g.2xlarge, Ryzen 7 8745HS (GEEKOM A8) • ARMv8.4-A SDOT (44.97 tok/s) & Fedora 44 CPU/Vulkan workflow Fedora Guide
Issue #2

Hardware Readiness Check (Zero Model Download Required)

curl -sL https://raw.githubusercontent.com/synchopate/llama-modchip/main/scripts/check_cpu_readiness.py | python3

Community CPU and Hybrid Leaderboard

Run ./modchip bench (or windows\BENCHMARK_PC.bat on Windows) and Submit Your Scorecard (GitHub Issue):

Hardware Platform (CPU / SoC / Hybrid) Cores / Cache Memory Prefill (tok/s) Decode — Prose / C++20 Decode — Speculative / Burst Config & Contributor
Qwen3.8-MaxQ-64GB on Zen 5 (v3.1.1) 16C (AVX-512) 60 GiB cold cg PASS (48.35 GiB peak, pgsteal=0, 0 GPU) 72.0 – 100.1 8.78 ± 0.02 tok/s (cold N=1) 15.64 ± 0.05 agg / 22.00 W1 (cold 60G cg; 15.34 / 21.38 uncapped) @synchopate (v3.1.1 JSONs)
Qwen3.8-MaxQ-32GB on Zen 5 (v3.1.1) 16C (AVX-512) 28.5 GiB cold cg PASS (28.26 GiB peak, pgsteal=0, 0 GPU) 101.3 – 112.9 10.00 ± 0.01 tok/s (cold N=1) 14.58 ± 0.32 agg / 15.31 W1 (cold 28.5G cg RouteCrack 2.0) @synchopate (v3.1.1 JSON)
Inkling-2-Mini Monza-RS v3 on Zen 5 (v3.2.2) 16C (AVX-512 VNNI) 14.34 GiB GGUF (F16 KV, 0 GPU) 227.43 (pp512, +144.6%) 13.29 tok/s (-t 16 N=1, +27.8%) 13.87 tok/s (-t 8 MODCHIP_PIN_CORES=1, +33.4%; 10.57 at d=8192) @synchopate (JSON)
Apple M4 Max (64 GB Unified Metal · Nemotron-3.5-30B-Q4_0) 16C CPU + 40C Metal 64 GB LPDDR5X-8533 (Unified) 23 ms TTFT (~451 pp) 249.76 tok/s (Stage 1, 97.6% RouteCrack 2.0) 236.30 tok/s (Stage 2, 90.3% accept; RouteCrack 2.0) @jbeckman1974 (Issue #8)
AMD Threadripper PRO 7985WX (Zen 4) 64C/128T (8 CCDs, 256 MB L3) 256 GB 8-Ch DDR5-6000 (0 GPU) 386.00 (-t 32) 73.84 – 80.14 tok/s 111.62 tok/s warm / 80.14 cold (-t 32 4C/CCD) @aifartist (Issue #1)
AMD Ryzen Threadripper 9960X (Zen 5) 24C/48T (4 CCDs, AVX-512 VBMI) 128 GB (125 GiB) 4-Ch DDR5 (14.91 GiB RSS, 2MB THP: 4.45 GiB, 0 GPU) 450.36 (-t 24) 49.25 tok/s (TTFT 254 ms) 54.43 tok/s (73.8% Stockfish-PVS, VQ3-64) @pedrosousabarreto (Issue #40)
AMD Ryzen 9 7945HX3D + RX 9070 XT (Hybrid) 16C/32T (128 MB 3D V-Cache) + 16 GB Vulkan 94 GB DDR5 + 16 GB VRAM 563.00 (256K ctx) 75.10 tok/s (MXFP4 15.2GB) 80.80 tok/s (Vulkan SSM_SCAN + MXFP4 MoE) Community (RADV/Vulkan) (FAQ.md)
AMD Ryzen 9 9955HX (Zen 5 · Nemotron 30B) 16C/32T (2 CCDs, 64 MB L3) 74 GiB container (0 GPU) 241.0 (Peak 306.8) 24.18 – 26.08 tok/s (Served Gate) 28.20 agg / 42.18 W1 (Fractal-MXFP4 RC2) / 48.39–60.40 (M=7) @synchopate (docs/NEMOTRON_OPTIMIZATIONS.md)
Apple M3 Max (Metal · Fractal-64 Fast-Decode) ARM64 NEON + Metal Unified (Metal) Metal 78.60 tok/s (tg128) 78.60+ tok/s (Register-tiled Metal) @austindixson (PR #24)
Apple M4 Max (14C+32C Metal · Q4_0 / Fractal) ARM64 NEON + Metal 36 GB LPDDR5X-8533 (Unified) 860.13 (1,040 pp512) 71.60 – 77.23 tok/s 71.31 – 77.95 tok/s (Gate 100/100) @khairullinr (Issue #16)
Apple M5 Max (DeepSeek-V4 284B · legacy Fractal 56.56 GiB) 18C CPU + 40C Metal 64 GB LPDDR5X (286.5 GB/s BW) 169.40 (pp512) 27.00 tok/s (llama-bench tg128) 20.70 – 23.60 tok/s (llama-server, 0 swapouts; historical withdrawn Fractal) @notactuallytreyanastasio (dsv4-m5max.md)
Apple M1 Max (Metal · Fractal-64) 10C CPU + 32C Metal Unified Metal 57.65 tok/s (+86%) 57.65+ tok/s @austindixson (PR #24)
Apple M4 Pro (14-Core SoC) 14C CPU + 20C Metal 24 GB Unified (0 Swap) 256.0 – 549.0 47.0 – 48.0 tok/s (128K) 49.0+ tok/s @jarorosFork (apple-silicon/)
AWS Graviton3 m7g.2xlarge (ARM64 Neoverse-V1) 8 vCPU (32 MB L3, SVE-256) 31 GB DDR5 (0 GPU) 101.67 (-t 8) 41.05 tok/s (C++20) 44.97 tok/s (Refactoring) @gerchik (Issue #2)
AMD EPYC 7402P (Zen 2 Rome · AVX2-only) 24C/48T (8 CCDs, 128 MB L3) 128 GB 8-Ch DDR4 (0 GPU) 158.73 (-t 24) 27.29 tok/s 31.22 tok/s @AdamKlob (Issue #6)
AMD Ryzen 9 9950X3D (Zen 5 3D V-Cache · Win11) 16C/32T (128 MB L3, AVX-512) 128 GB DDR5-6000 (0 GPU) Native Win11 24.92 tok/s (30B) / 9.47 (284B) 24.92+ tok/s @kevinblo (Issue #33)
AMD Ryzen 9 9950X (Zen 5 Desktop) 16C/32T (64 MB L3) 64 GB DDR5-6800 (0 GPU) 135.64 20.78 tok/s 24.67 tok/s @nadams (Issue #5)
Dual Intel Xeon E5-2690 v4 (Broadwell-EP · NUMA) 28C/56T (2x 35 MB L3, AVX2) 128 GB 8-Ch DDR4 (0 GPU) Asymmetric 28T 19.51 – 19.85 tok/s (14T OMP ACTIVE) 19.85+ tok/s (+133% vs PASSIVE) @zolxcore (Issue #37)
AMD Ryzen 9 7950X (Zen 4 · Qwen3.8 & DSV4 284B) 16C/32T (64 MB L3, AVX-512) 62 GB DDR5 (0 GPU) 90.99 (Qwen3.8) / 58.4 (284B) 16.71 tok/s (Qwen3.8) / 7.93 (284B) 18.20 tok/s (99.2% MTP) / 10.12 (284B) @MarlinMr (#45 · #44)
AMD Ryzen 7 8745H / 8745HS (Zen 4) 8C/16T (16 MB L3, AVX-512) 64–96 GB DDR5-5600 128.81 19.48 tok/s 23.38 tok/s @arch-btw (#9) · @jarorosFork (fedora/)
AMD Ryzen 5 5600X (Zen 3 Desktop) 6C/12T (32 MB L3, AVX2) 32 GB DDR4-3200 (0 GPU) 63.90 – 88.77 14.95 – 19.04 tok/s 18.07 – 21.58 tok/s @alexander-jung (Issue #17)
AMD Ryzen 7 5700X (Zen 3 Desktop) 8C/16T (32 MB L3, AVX2) 64 GB DDR4-3600 (0 GPU) 101.93 16.04 tok/s 19.66 tok/s @germanpsycho (Issue #23)
Intel Core Ultra 5 125H (Meteor Lake-H) 4P+8E+2LP-E (18 MB L3) 32 GB DDR5 (0 GPU) 55.19 14.63 tok/s 16.61 tok/s @xma (Issue #18)
AMD Ryzen 7 5700U (15 GB RAM · Qwen3.6-35B-A3B-UD-Q2_K_XL) 8C/16T (AVX2 Mobile) 15 GB RAM (13.03 GiB peak RSS, 0 GPU) CPU-only 14.25 tok/s (Stage 1) 14.79 tok/s (Stage 2, 90.5% RouteCrack 2.0 accept) @Joesepf (Issue #50 · #47 · #48)
AMD Ryzen 5 7430U / Ryzen 7 PRO 6850U 6–8C (AVX2 Mobile) 16–64 GB RAM (0 GPU) 33.8 – 62.7 11.1 – 13.6 tok/s 11.8 – 15.6 tok/s @armadillu (#12) · @mkesper (#15) · @JamesStallings (#20)
Intel Core i9-11950H / Dual Xeon E5-2670 / Ryzen 5 2600X 6–16C (AVX-512 / AVX / AVX2) 32–128 GB RAM (0 GPU) 21.1 – 85.4 7.6 – 10.8 tok/s 10.4 – 13.4 tok/s @ELO-I (#11) · @Mammux (#14) · @lawsochi (#26)
DeepSeek-V4-Flash 284B on Ryzen 9 9955HX / 9800X3D 8–16C (Zen 5, AVX-512) 74 GiB container / 64 GB DDR5 (0 GPU) 21.3 – 44.36 6.80 tok/s (N=1 MaxQ-v4) 7.79 agg / 12.31 W1 tok/s (RouteCrack 2.0, 1M ctx on Win11) @synchopate · @MR1KRAKEN (PR #27)
[Wanted: Community Run] AMD EPYC 9005 Turin (Zen 5) 64–192C (AVX-512 VBMI) 12-Ch DDR5-6000 (0 GPU) Open Slot Qwen3.8 / DS-V4 284B RouteCrack 2.0 (--preset qwen38-64gb) Submit Your Turin Run
[Wanted: Community Run] Intel Xeon 6 Granite Rapids (AMX) 64–128C (AVX-512 / AMX) 8–12-Ch DDR5 / MRDIMM (0 GPU) Open Slot Qwen3.8 / DS-V4 284B RouteCrack 2.0 (--preset dsv4-maxq) Submit Your Xeon 6 Run
[Wanted: Community Run] AWS Graviton4 / AmpereOne (ARM64) 16–192C (Neoverse-V2 / SVE2) 12-Ch DDR5 (0 GPU) Open Slot Qwen3.8 / Nemotron-30B RouteCrack 2.0 (ARM64 NEON) Submit Your ARM64 Run
Repository Structure & Manual Source Build Instructions
llama-modchip/
├── modchip                                    # Unified CLI (setup | download-bin [--all-tools] | start | chat | bench | eval | web | claude | stop)
├── install.sh                                 # Zero-to-Running 3-Tier Installer (16 GB / 32 GB / 64 GB, pinned HF SHAs)
├── release_manifest.json                      # Canonical Single Source of Truth (version, ABI 41..45, SHA-256s, benchmarks)
├── README.md / ARCHITECTURE.md / FAQ.md       # Overview, Systems Architecture & Engineering FAQ
├── RELEASE_NOTES.md                           # v3.2.2 & Historical Release Notes
├── patches/
│   ├── llama-modchip-v3.2.patch               # Unified v3.2.2 patch onto llama.cpp 46eb1742d (Linux, macOS Metal, Windows, CUDA, Vulkan)
│   └── archive/                               # Archived v3.1 & v3.0 unified patches
├── scripts/
│   ├── build_zen5_llama.sh                    # Cross-platform CMake builder (applies llama-modchip-v3.2.patch, pins b12604 UI)
│   ├── build_trunk_quant.sh                   # Nemotron trunk-q5 / trunk-q4 selective quantizer (PR #49)
│   ├── gguf_tensor_type.py                    # GGUF routed-expert tensor type inspector (ABI 0..45)
│   ├── preflight_release_check.py             # Mandatory 12-Gate Release Preflight Verifier
│   ├── llama_modchip.py                       # <5ms GGUF & CPU/Cache Topology Profiler + Live SHM TUI
│   ├── chat.py                                # Zero-dependency Streaming Chat & 2-Stage CPU Scorecard
│   └── check_cpu_readiness.py                 # Standalone CPU/RAM/THP & DRAM Bandwidth Estimator
├── speculative/                               # RouteCrack 2.0 + 832 B L1 Micro-Arbiter + HARP Radix + Stockfish-PVS (C++17 & ASan tests)
├── gateway/sse_gateway.py                     # Multi-Model Agentic SSE Proxy + HARP-Cache + Dark-Mode Web HUD (:8787)
├── kv_cache/                                  # HARP-Cache & Entropy-Adaptive KV Compression + unit tests
├── apple-silicon/                             # Apple Silicon M1–M5 Metal + ARM64 NEON setup & run scripts
├── windows/                                   # Windows 10/11 MinGW-w64 & CUDA Builder + Hybrid GPU/CPU Launcher
├── fedora/                                    # Fedora 44 / Ryzen 7 8745HS (GEEKOM A8) script
├── systemd/                                   # Production systemd service units & madvise THP tmpfiles.d config
├── paper/                                     # v3.2.2 Technical Paper (main.tex, figures/*.pdf, llama-modchip-paper.pdf, arxiv-submission.tar.gz)
├── benchmarks/                                # v3.2.2 Quality Gate reports, KLD/PPL evaluators & raw JSON logs
└── docs/                                      # Model, hardware, Windows port & release procedure guides

Manual source compilation on Linux or macOS:

./scripts/build_zen5_llama.sh ./workspace/llama.cpp

Ecosystem, Community & Acknowledgments

  • Ecosystem & Client Integrations:
    • Andyyyy64/whichllm — Hardware-aware local LLM benchmark & engine recommender with first-class llama-modchip CPU engine support (v0.6.9+, thanks to @hannibal-lee & @Andyyyy64 in #308).
    • aiko-sudo/LoGPT — Private LAN Android + Windows client with native llama-modchip server integration, on-device GGUF inference, and multi-threaded Hugging Face downloads.
  • Community Press, Video Deep-Dives & Discussions:
  • Foundational Models, Research & Contributors:
    • Thinking Machines Lab (thinkingmachines/Inkling-2-Mini, Apache 2.0), Qwen Team (Qwen/Qwen3.8-Flash-Next, qwen-community-1.0), DeepSeek AI (deepseek-ai/DeepSeek-V4-Flash-0731, MIT), and NVIDIA (NVIDIA-Nemotron-3.5-30B-A3B, OpenMDW-1.1) for the foundational hybrid and looped-MoE architectures, and ggml-org/llama.cpp for the upstream C/C++ runtime.
    • Salvatore Sanfilippo (@antirez) for single-pass DeepSeek-V4 routed-MoE quantization research and the public 1.5M-token routed-moe-ds4-1p5m.dat importance matrix used in DeepSeek-V4-Flash-0731-MaxQ-v4.
    • AtomicChat (AtomicChat/dsv4-eval-artifacts) for the open wiki-alt.txt evaluation corpus, plus community code and hardware contributors @notactuallytreyanastasio, @austindixson, @PStarH, @MR1KRAKEN, @jarorosFork, @pedrosousabarreto, @aifartist, @kevinblo, @khairullinr, @jbeckman1974, @Joesepf, @xma, and everyone on the CPU leaderboard.

About

Zero-GPU CPU inference for 26B-284B MoE models (Inkling-2-Mini Monza-RS v3, Qwen3.8 176.5B, DeepSeek-V4 284B, Nemotron-30B) + AVX-512 Fusion & RouteCrack 2.0.

Topics

Resources

Stars

1.5k stars

Watchers

12 watching

Forks

Releases

Packages

Used by

Contributors

Languages