284.33B in 57.99 GiB — 100% Donor-Free ConeCollapse + DualGram · llama-modchip v3.1.1)[!IMPORTANT] Zero Custom Tensor Types (
100%StandardggmlTensor Formats) — Requiresllama-modchip v3.1.1+Loader for ConeCollapse Bias:MaxQ-v4uses zero custom tensor types (F32,BF16,I32,Q8_0,Q6_K,Q5_K,Q4_K,MXFP4,IQ2_XXS,IQ1_M,IQ1_S;max_type = 39), making it 100% natively compatible with Apple Metal GPU (M1–M5), NVIDIA CUDA MMQ (with automaticMUL_MAT_ID + ADD_IDfusion), Vulkan, ARM64 NEON, and x86-64 AVX2/AVX-512. Cold-Cache 60.0 GiB Cgroup v2 Honesty Note (benchmarks/results/dsv4_64gb_cgroup60g_v311.json): At-c 32768,DeepSeek-V4 MaxQ-v4does not fit cleanly under a strict60.0 GiBcap (57.99 GiBGGUF +2.25–2.67 GiBanon ≈60.3–60.7 GiBworking set; requires>= 61 GiBfree RAM for zero-refault bare-metal residency). UnderMemoryMax = 60.0 GiB,MemorySwapMax = 0,n = 3cold restarts, it completes without OOM (oom_kill = 0,swap.peak = 0 B,59.73 GiBVmHWM /60.00 GiBcg.peak) via continuous file-page reclaim (10.7–30.7 GiB/run refaulted, served from our hypervisor host's ZFS ARC ->8.88 ± 0.25RC2 /7.68 ± 0.01N=1; bare-metal 64 GB throughput at a 60 GiB cap is unverified).Because
34 / 43MoE layers use collapsed expert intermediate widthK = 1792(7 × 256) +blk.*.ffn_down_exps.bias, load it withllama-modchip v3.1.1(staticGLIBC_2.30Linuxx86_64binaries on the GitHubv3.1.1Release, or install via./install.sh --preset dsv4-maxqfromsynchopate/llama-modchip). Note: unmodified stock Ollama / LM Studio do not loadConeCollapseffn_down_exps.bias.
Safety-aligned < 58.00 GiB 284B-A13B 64 GB tier checkpoint (62,270,037,248 bytes = 57.993491 GiB / 62.27 GB across 3 shards, 1,362 tensors) built 100% donor-free directly from deepseek-ai/DeepSeek-V4-Flash-0731 (@ 7872f01b1d1fe23eabc4c98b48bffcef5a386062, 284.33B total / 13.17B active parameters; 43 layers, 256 routed + 1 shared expert/layer, unpruned Top-6 routing) with zero weights copied from external quantized donors.
llama-modchip v3.1.1): ./install.sh --preset dsv4-maxq3.4325 wiki-alt PPL, 15.34 agg / 21.38 W1 tok/s RouteCrack 2.0, 48.35 GiB cold 60G cgroup peak / 45.08 GiB warm-cache): Synchopate/Qwen3.8-Flash-Next-MaxQ-64GB-GGUF (./install.sh --preset qwen38-64gb)MaxQ v3.1.1): Synchopate/Qwen3.8-Flash-Next-MaxQ-32GB-GGUF · Synchopate/NVIDIA-Nemotron-3.5-30B-A3B-VQ3-64-CPU-GGUF · Synchopate/NVIDIA-Nemotron-3.5-30B-A3B-MaxQ-16GB-GGUFv2.5.x DeepSeek-V4 Builds: MaxQ-Fractal, VQ3, Fractal, and Abliterated-Fractal were withdrawn from Hugging Face in Nov 2026 in favor of MaxQ-v4. (Note: the historical 27.0 tok/s Apple M5 Max result in apple-silicon/results/dsv4-m5max.md was collected on the retired Fractal 56.56 GiB build, not MaxQ-v4; MaxQ-v4 awaits fresh M5 Max benchmarking.)AtomicChat ref5632.kld EvaluationEvaluated with llama-perplexity -f wiki-alt.txt -c 5632 -b 5632 --kl-divergence-base ref5632.kld (143,565 scored positions across all 51 chunks against Mean PPL(base) = 4.331017 ± 0.027402; raw log in benchmarks/results/atomicchat_wikialt_ctx5632_51c_dsv4_maxq_v4.log):
| Checkpoint & Provenance | Footprint (GiB) |
Partition (Scored Tok) |
Mean PPL(Q) |
Mean KLD (nats) |
Median KLD |
90% KLD |
Max KLD |
RMS Δp |
Same top p (Top-1) |
|---|---|---|---|---|---|---|---|---|---|
MaxQ-v4 (100% Donor-Free 0731, Std ggml) |
57.99 GiB |
All 1..51 (143,565) |
6.8592 ± 0.0482 |
0.64851 ± 0.00354 |
0.18382 |
1.70610 |
20.5424 |
27.562% |
73.283% (105,209) |
MaxQ-Fractal (v2.5.3 Legacy, 100% Donor-Free 0731) |
56.93 GiB |
All 1..51 (143,565) |
7.2977 ± 0.0504 |
0.74000 ± 0.00383 |
0.27039 |
1.97159 |
21.3412 |
29.857% |
70.397% (101,065) |
MaxQ-v4 (100% Donor-Free 0731, Std ggml) |
57.99 GiB |
Blind 3..51 (137,935) |
6.8471 |
0.62574 |
— | — | — | 26.726% |
73.595% (101,513) |
MaxQ-Fractal (v2.5.3 Legacy, 100% Donor-Free 0731) |
56.93 GiB |
Blind 3..51 (137,935) |
7.2938 |
0.71791 |
— | — | — | 29.054% |
70.701% (97,521) |
*(Compared to MaxQ-Fractal [56.93 GiB], MaxQ-v4 [57.99 GiB] reduces Mean PPL(Q) by -6.01%, Mean KLD by -12.36%, Median KLD by -32.02%, and improves Same top p argmax agreement by +2.886 percentage points [+4,144 exact top-1 tokens] while eliminating all custom tensor types. Full architectural details are documented in docs/DEEPSEEK_V4_OPTIMIZATIONS.md.)*
MaxQ-v4 Architecture & Shard Manifest (1,362 Tensors)446 0731-Imatrix-Weighted 2D K-Quant Projections + 44 × Q8_0 (0 Custom Tensor Types):43 × Q8_0 blk.{0..42}.attn_kv.weight + 1 × Q8_0 blk.26.ffn_down_shexp.weight.321 × Q6_K (token_embd.weight, output.weight, 43 attn_q_a, 128 ffn_*_shexp, 145 KV/Indexer compressors & indexer.attn_q_b, 3 L42 MLA projections), 3 × Q5_K (L00 MLA), and 123 × Q4_K (blk.1..41 MLA projections).446 / 446 2D tensors (0 unweighted fallbacks) by 24,576 clean UTF-8 calibration tokens (0.000% $\ge 8$-gram overlap with wiki-alt.txt, wiki.test.raw, and eval_quality_and_tools.py).34 Layers K = 1792, 9 Anchor Layers K = 2048) + FP64 Woodbury DualGram (NC = 384):K = 2048, uncentered DualGram, 0 bias): {0, 30, 34, 36, 37, 39, 40, 41, 42}, including MSE-optimal MXFP4 (4.25 bpw) on blk.{41,42}.ffn_down_exps.weight and IQ2_XXS (2.06 bpw) on blk.42.ffn_{gate,up}_exps.weight.K = 1792 = 7 × 256, -12.5% MoE intermediate channels): {1..29, 31..33, 35, 38}, solved per expert via an unconditionally well-conditioned ($\kappa_2 \le 86.33$) FP64 Cholesky Woodbury dual system, followed by IQ2_XXS quantization of ffn_down_exps.weight and shrunk residual bias absorption (0.60 * mu) into 34 × F32 blk.*.ffn_down_exps.bias ([4096, 256]).gate/up Allocation: 25 layers in IQ1_S (using @antirez's public 1.5M-token routed-moe-ds4-1p5m.dat + 0731 activations), 17 sensitive layers ({20, 26..41}) in IQ1_M, and L42 in IQ2_XXS.| Shard Filename | Exact Size (Bytes) | Size (GiB) |
SHA-256 |
|---|---|---|---|
DeepSeek-V4-Flash-0731-MaxQ-v4-00001-of-00003.gguf |
5,258,336 |
0.0049 |
6112e887b21d1fdf7b7196232b528698a6ec2d5a59760a040cb4231f8e8d691b |
DeepSeek-V4-Flash-0731-MaxQ-v4-00002-of-00003.gguf |
35,543,586,816 |
33.1025 |
5d85c740992b70395da5c3e4a856b3fad6ef725271722c8d837b35befe28330d |
DeepSeek-V4-Flash-0731-MaxQ-v4-00003-of-00003.gguf |
26,721,192,096 |
24.8860 |
a8654d4d5fedf748d6f2b6404a8b7f9e19435a8aa8e2bb97ce9a66bc012c0f3a |
llama-modchip v3.1.1)v3.1.1 RouteCrack 2.0 Throughput (16C Zen 5, 0 GPU, 74.0 GiB container; benchmarks/results/dsv4_routecrack2_v31.json): 7.79 tok/s 4-workload aggregate / 12.31 tok/s W1 refactor (+14.5% vs N=1 6.80, +0.84% parity vs v3.0 ngram-map-k 7.73; W2 JSON 7.55, W3 C99 6.74, W4 prose 6.49 [-7.4% vs N=1 7.01 due to 256-expert DDR5 pull cost when n-grams miss]; 191/191 greedy bit-exact on W1+W2, batch-FP drift on W3/W4).60.0 GiB Cgroup v2 Finding (benchmarks/results/dsv4_64gb_cgroup60g_v311.json): At -c 32768 -ub 512, total working set is 57.99 GiB GGUF + 2.25–2.67 GiB anon ≈ 60.3–60.7 GiB, which exceeds a 60.0 GiB cgroup cap and requires >= 61 GiB free RAM for zero-refault bare-metal residency. Under strict cold-cache MemoryMax = 60.0 GiB, MemorySwapMax = 0, n = 3 cold restarts, it completes without OOM (oom_kill = 0, swap.peak = 0 B, 59.73 GiB VmHWM / 60.00 GiB cg.peak) via continuous file-page reclaim (10.7–30.7 GiB/run refaulted, served from hypervisor host ZFS ARC -> 8.88 ± 0.25 RC2 / 7.68 ± 0.01 N=1; bare-metal 64 GB throughput under a 60 GiB cap is unverified). Uncapped H2H runs on our 74.0 GiB host (58.71–59.11 GiB VmHWM, RssAnon = 2.16 GiB) report 7.79 agg / 12.31 W1 tok/s.-ctk q8_0 -ctv q8_0 or -ctk q4_0 -ctv q4_0) and set RC_TABLES_DIR=/nonexistent when running from a directory containing Nemotron RouteCrack tables.llama-modchip v3.1.1 Installer (Linux, macOS Metal, Windows)git clone https://github.com/synchopate/llama-modchip.git
cd llama-modchip
./install.sh --preset dsv4-maxq
./modchip chat
v3.1.1 GLIBC_2.30 Linux x86_64 Binary (-avx512 or -avx2)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.1.1/llama-server-modchip-linux-x86_64-${BIN_ISA}"
curl -fLO "https://github.com/synchopate/llama-modchip/releases/download/v3.1.1/SHA256SUMS"
sha256sum -c SHA256SUMS --ignore-missing
chmod +x "llama-server-modchip-linux-x86_64-${BIN_ISA}"
hf download Synchopate/DeepSeek-V4-Flash-0731-MaxQ-v4-64GB-CPU-GGUF --local-dir ./dsv4-maxq-v4
(cd ./dsv4-maxq-v4 && sha256sum -c SHA256SUMS --ignore-missing)
N_CORES=$(lscpu -p=CORE,SOCKET 2>/dev/null | grep -v '^#' | sort -u | wc -l)
THREADS=$(( N_CORES > 1 ? N_CORES - 1 : 1 ))
env RC_TABLES_DIR=/nonexistent "./llama-server-modchip-linux-x86_64-${BIN_ISA}" \
-m ./dsv4-maxq-v4/DeepSeek-V4-Flash-0731-MaxQ-v4-00001-of-00003.gguf \
-c 32768 -np 1 -b 2048 -ub 512 -fa on -ctk q8_0 -ctv q8_0 --repack --jinja \
--spec-type routecrack2 -t "$THREADS" -tb "$THREADS" --poll 0 --poll-batch 0 --port 8080
llama-modchip v3.1.1 Linux x86_64 Binaries (GLIBC <= 2.30)Download statically linked v3.1.1 binaries (libstdc++ + libgomp static, zero external OpenMP .so) from the GitHub v3.1.1 Release and verify against SHA256SUMS:
b216b71a2f6939ff9396465a7ba2e8d220473d7a27050da0b87abd4a7bc430a4 llama-server-modchip-linux-x86_64-avx512
e1b90dc9d289aa91a2802db2b2694695663ea862205ab999fb22424d49a3cc47 llama-server-modchip-linux-x86_64-avx2
492b8084cf6cc11eea8317a07cb2f99b7323292036c108b02069a0bae81589ba llama-cli-modchip-linux-x86_64-avx512
dee9ef216ef9ce106738b4ac78dcee45b1330982bf98eefd02f9258b017f3bfa llama-cli-modchip-linux-x86_64-avx2
abc54c7960ca1cff00bcd9e0fd9b78f7400cc1f86629492127f8d481245d81b2 llama-modchip-v3.1.patch
@antirez) — antirez/deepseek-v4-gguf: Single-pass routed-MoE quantization research and the public 1.5M-token DeepSeek-V4-Flash-chat-v2-routed-moe-ds4-1p5m.dat (@ f71f23d552d6) importance matrix.AtomicChat/dsv4-eval-artifacts): Open wiki-alt.txt + ref5632.kld (-c 5632 -b 5632) long-context KLD/perplexity evaluation suite.deepseek-ai/DeepSeek-V4-Flash-0731): Base 284.33B DeepSeek-V4-Flash-0731 model (@ 7872f01b1d1f, MIT License).DeepSeek-V4-Flash-0731-MaxQ-v4-00002-of-00003.gguf 36 GBDeepSeek-V4-Flash-0731-MaxQ-v4-00003-of-00003.gguf 27 GBDeepSeek-V4-Flash-0731-MaxQ-v4-00001-of-00003.gguf 5 MBdeepseek-ai/DeepSeek-V4-Flash-0731