DeepSeek-V4.1-Flash-1017 Metal MXFP4 on 1x M3 Ultra 512GB DSpark
00 upvotes — sign in to vote sign in to votecommunity Community submission — verify on your own hardware.
recipe by IngeniousIdiocy (Mark Shank)↗, antirez (Salvatore Sanfilippo) - DwarfStar upstream↗, Ivan Fioravanti - public V4.1 optimizations↗, Tarjei Mandt - public V4.1 optimizations↗, oMLX contributors - batched-decode origins↗ · listed by localai-recipes
Initial version · updated 44 h ago · license MIT
chat code vision batched-decode apple-silicon metal mxfp4 dwarfstar ds4 exact-mode dspark
DwarfStar ds4 branch with Metal speed-ups for DeepSeek V4.1 Flash on a 512 GB M3 Ultra (80 GPU cores), MXFP4 build of the October 17 checkpoint: 43.7 tok/s serial decode at 8K and 42.8 at 131K vs main's 19.9/17.9; DSpark code answers 67.7 tok/s; 77.7 tok/s aggregate with three concurrent sessions; cold 131K prefill 139.7 s (vs main's 189.5 s); 4K screenshot first token 2.9 s. 96 LM + 8 image speed groups, each with its own off-switch; --exact (DS4_V41_EXACT=1) restores bit-exact serial decode. Built on antirez/ds4 main @ 5379c1c9; branch pinned at 43f6851c (fast-mover: 438 commits since the scout pin; re-pinning expected). First m3-ultra recipe on the site. All figures author-measured (T0, docs/REPRODUCE-V41.md); recipe by the repo author.
Launch command
./ds4-server -m gguf/DeepSeek-V4.1-Flash-MXFP4.gguf --metal --host 127.0.0.1 --port 8000 -c 1048576 --prefill-chunk 8192 --batched-session 4 --mtp-model gguf/DeepSeek-V4.1-Flash-DSpark-MXFP4.gguf --dspark --mtp-exact-sampling --kv-disk-dir kvcache --kv-disk-space-mb 122880 --kv-cache-cold-max-tokens 1048576 --kv-cache-continued-interval-tokens 4096 --default-top-p 1.0 --default-min-p 0 --default-reasoning-effort low --utility-ctx 32768 --serial-reasoning --visionnotes
"Launch argv transcribed verbatim from the README Quick start server block at 43f6851c (the configuration the several-sessions figures were measured in, plus --vision as that section states). '-c' is EACH session's context (1048576); the example keeps ~380 GiB wired on the 512 GB Mac. For one session drop --batched-session and use a smaller -c. Serial-decode table figures (43.7/42.8/42.6/67.7) come from ./ds4 with the same model+drafter, 128 greedy tokens from saved caches, not from this server launch. Build: 'make' at repo root."Use this recipe with your agent
Paste this into any agent chat — it fetches and applies the recipe:
Fetch https://localairecipes.com/api/v1/recipes/deepseek-v4-1-flash-1017-metal-mxfp4-on-1x-m3-ultra-512gb-dspark.json and apply the inference recipe it describes (engine flags, model, quant, context) to my setup. Ask before overwriting any existing config.Or fetch it directly:
curl -fsSL https://localairecipes.com/api/v1/recipes/deepseek-v4-1-flash-1017-metal-mxfp4-on-1x-m3-ultra-512gb-dspark.jsonDownloads
- Reference https://github.com/IngeniousIdiocy/ds4-v41-m3ultra43f6851c25ca304dd1442e86c6201013b0560039
- Reference https://github.com/antirez/ds45379c1c9ac315f1540371b06a3db88491d4059ff
- Weights https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-10171bae0e1088993b9b82de08f59de5be5a34e42170
- Weights https://huggingface.co/antirez/deepseek-v4.1-flash-gguf9dcee51692e6540f697141fc98b097e3c96492a3
- Drafter https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-10171bae0e1088993b9b82de08f59de5be5a34e42170
Revision notes
Initial version.
Revision history
Initial version.
Fork
Sign in to fork this recipe — a fork is your own copy; you own it and only you can update it.