Loading…
Loading…
deepseek-ai/DeepSeek-V4.1-Flash-1017engram/model-00048-of-00048.safetensors 102 GBengram/model-00047-of-00048.safetensors 102 GBmodel-00035-of-00037.safetensors 6.8 GBmodel-00020-of-00037.safetensors 6.8 GBmodel-00029-of-00037.safetensors 6.8 GBmodel-00032-of-00037.safetensors 6.8 GBmodel-00023-of-00037.safetensors 6.8 GBmodel-00026-of-00037.safetensors 6.8 GBmodel-00005-of-00037.safetensors 6.8 GBmodel-00004-of-00037.safetensors 6.7 GBmodel-00030-of-00037.safetensors 6.2 GBmodel-00021-of-00037.safetensors 6.2 GBmodel-00024-of-00037.safetensors 6.2 GBmodel-00028-of-00037.safetensors 6.2 GBmodel-00034-of-00037.safetensors 6.2 GBmodel-00036-of-00037.safetensors 6.2 GBmodel-00019-of-00037.safetensors 6.2 GBmodel-00027-of-00037.safetensors 6.2 GBmodel-00031-of-00037.safetensors 6.2 GBmodel-00022-of-00037.safetensors 6.2 GBmodel-00025-of-00037.safetensors 6.2 GBmodel-00033-of-00037.safetensors 6.2 GBmodel-00006-of-00037.safetensors 6.2 GBmodel-00017-of-00037.safetensors 5.9 GBmodel-00015-of-00037.safetensors 5.9 GBmodel-00016-of-00037.safetensors 5.9 GBmodel-00008-of-00037.safetensors 5.9 GBmodel-00011-of-00037.safetensors 5.9 GBmodel-00010-of-00037.safetensors 5.9 GBmodel-00009-of-00037.safetensors 5.9 GBmodel-00012-of-00037.safetensors 5.9 GBmodel-00003-of-00037.safetensors 5.8 GBmodel-00018-of-00037.safetensors 5.4 GBmodel-00014-of-00037.safetensors 5.4 GBmodel-00013-of-00037.safetensors 5.4 GBmodel-00007-of-00037.safetensors 5.4 GBmodel-00002-of-00037.safetensors 5.4 GBmodel-00001-of-00037.safetensors 5.4 GBmodel-00037-of-00037.safetensors 3.4 GBmlx-serve pack of deepseek-ai/DeepSeek-V4.1-Flash-1017
(model_type: deepseek_v41): 40 layers, 384 routed experts (6 active) plus a
shared expert, 1M-token context. Runs on a 256 GB Mac with about 209 GB
resident. Includes the DSpark draft stages (speculative decode, on by default)
and the release's vision tower (image input in mlx-serve 26.10.3 and later).
Every routed expert is quantized with GPTQ on Hessians collected from the released model's own activations; the attention trunk and shared expert stay as released (MXFP8). Runs on mlx-serve 26.10.3 or later.
Pick the pack by your Mac's memory:
| pack | resident | download | use it if |
|---|---|---|---|
| Lossless | 288 GB | 477 GB | 512 GB Mac, or as a reference |
| iQ-MLX-3.0bpw (this pack) | 209 GB | 427 GB | 256 GB Mac |
| iQ-MLX-Pruned192-2.25bpw | 92 GB | 296 GB | 128 GB Mac (192 of 384 experts: weaker, most on non-English text) |
The download includes the Engram tables (203 GB), which are read from the SSD per token and are not resident (see below). The load needs about 215 GB free: close large apps first.
Download MLXServe.com
mlx-serve --model ddalcu/DeepSeek-V4.1-Flash-1017-MLX-Serve-iQ-MLX-3.0bpw --serve
Each version is a tag on this repo; main is the newest. Pin one with
hf download ddalcu/DeepSeek-V4.1-Flash-1017-MLX-Serve-iQ-MLX-3.0bpw --revision v1.0.
| version | date | what changed | KLD mean / median | top-1 | perplexity vs released |
|---|---|---|---|---|---|
| 1.1 | 2026-10-29 | Trunk as released (MXFP8) instead of 4-bit; experts re-calibrated on 2.07 M chat-format tokens; act-order GPTQ on the down projection; 3-bit gate/up re-allocated by measured error | 0.0963 / 0.0031 | 92.64% | +0.6% |
| 1.0 | 2026-10-18 | First release. GPTQ experts on 954 k calibration tokens, 4-bit GPTQ trunk on 131 k tokens | 0.1567 / 0.0067 | 90.59% | -4.2% (see below) |
Both rows are scored the same way, on the evaluation set described below. 1.0's own card scored it on an earlier set (KLD 0.1044) that is no longer available; the two sets are different text, so compare rows only within one table.
Scored against the released checkpoint's own logits (a bit-exact repack of its FP4 experts and FP8 trunk) on 46 held-out windows of 2,048 tokens, 11,776 scored positions, through oMLX's DeepSeek-V4.1 port. The windows come from conversations kept out of calibration: agent sessions with tool calls, code, tool use, reasoning, chat and multilingual text, rendered with DeepSeek's chat encoder. Top-1: the pack's greedy token equals the released model's. KLD: KL(released || pack) over the full 129,280-token vocabulary.
| pack | KLD all | agent | code | tools | reasoning | chat | multilingual | top-1 all |
|---|---|---|---|---|---|---|---|---|
| 1.1 (this pack) | 0.0963 | 0.169 | 0.046 | 0.045 | 0.019 | 0.085 | 0.117 | 92.64% |
| 1.0 experts, trunk as released (not published) | 0.1466 | 0.250 | 0.065 | 0.085 | 0.034 | 0.118 | 0.212 | 91.02% |
| 1.0 | 0.1567 | 0.271 | 0.070 | 0.081 | 0.036 | 0.128 | 0.218 | 90.59% |
On the assistant's own tokens (the text the model writes, tool output and prompts excluded) 1.1's KLD is 0.038 against 1.0's 0.071. Perplexity is not a quality score here: a pack whose predictions drift from the released model's can score a lower perplexity than the released model, as 1.0 does; 1.1 stays within 0.6% of it.
Tried for 1.1 and left out, because the end-to-end KLD got worse at the same size: 4-bit down projections paid for with fewer 3-bit gate/up layers (+7%), and calibrating the first layers on the quantized model's own drifting activations (+4%).
M5 Ultra (256 GB), one model loaded, mlx-serve 26.11.2, llmprobe, one pass.
| context | decode, DSpark on | prefill |
|---|---|---|
| ~1 k | 103.2 tok/s | 1,663 tok/s |
| ~8 k | 113.6 tok/s | 3,104 tok/s |
| ~33 k | 103.0 tok/s | 3,619 tok/s |
| ~131 k | 83.7 tok/s | 3,332 tok/s |
Prefill is 1.2x to 1.6x what this card showed on the build after 26.10.3 (1,414 / 1,994 / 2,276 / 2,101 tok/s). Decode with DSpark moves with how many draft tokens a step accepts, which varies from pass to pass: at ~131 k this pass accepted 2.1 tokens a step against 3.2 before, yet ran each step faster (40 steps a second against 34).
The chart at the top is a second llmprobe pass on the same build, from 0.5 k to 66 k tokens, and adds llmprobe's predictable-text decode (140 to 145 tok/s): DSpark's ceiling when every draft lands.
This is not a Llama-style pack. Four things around the usual MoE trunk:
The two tables are not re-quantized. They are the release's own
model-00047-of-00048.safetensors and model-00048-of-00048.safetensors
(E4M3 values with one E8M0 scale per 32), byte for byte, in engram/ (203 GB);
config.json names them under omlx_deepseek_v41.engram_tables. mlx-serve reads the
rows each token needs with pread and dequantizes them on the GPU; the tables
never become resident, their cost is page cache. A fast SSD matters: a long
prompt read cold pays for random reads, a warm cache is free. The files are the
same as in 1.0.
| tensors | width |
|---|---|
| routed experts gate/up (w1, w3), layers 4-9 and 11-14 | 3-bit, group 64, GPTQ |
| routed experts gate/up, the other 30 layers | 2-bit, group 64, GPTQ |
| routed experts down (w2), all layers | 3-bit, group 64, GPTQ with act-order |
| attention wq_a, wq_b, wkv, wo_b and the shared expert (w1, w2, w3) | MXFP8, as released |
| attention wo_a | bf16 (the release's FP8, widened: exact) |
| routers, indexer, compressor, norms, hyper-connection parameters | bf16 / f32, as released |
| embed_tokens, lm_head | bf16 |
| DSpark draft stages | as released (MXFP4 experts, MXFP8) |
| Engram tables | as released (E4M3 + E8M0), in engram/ |
| vision tower and aligner | bf16, as released |
Routed experts: 3.00 bits per weight, scales included.
--no-mtp or per-request "enable_mtp": false
turns it off. It pays most on code and agent text."enable_thinking": false turns it off).
Tools use V4.1's DSML call format; mlx-serve parses and schema-coerces it.GPTQ run layer by layer through oMLX's DeepSeek-V4.1 blocks over the lossless repack of the released checkpoint, with the calibration streams on SSD, then packed in oMLX's layout (the pack also loads in oMLX's V4.1 port, which is how it was scored). The conversion scripts are not in the mlx-serve repo yet.
mlx-serve --model ~/models/mlx-serve/DeepSeek-V4.1-Flash-1017-heretic-MLX-Serve-iQ-MLX-3.0bpw --serve --host 127.0.0.1 --port <port> --ctx-size 524288 --max-concurrent 4 --prefill-chunk 4096 --no-prevent-sleepView run on LocalMaxxing
Median of 1 community runs on 1 setups, from LocalMaxxing.
Run it yourself: setup guide