MLX 4bit conversion of deepseek-ai/DeepSeek-V4-Flash-0731
for Apple Silicon (mlx-vlm). 304B total sparse MoE (43 layers, 256 routed experts top-6 + 1 shared),
text-only, 1M context.
deepseek-ai/DeepSeek-V4-Flash-0731
(license: mit) — the official release ships FP8 (e4m3, block 128×128), 166.9 GBmlx-vlm 0.6.8 — mlx_vlm.convert --hf-path deepseek-ai/DeepSeek-V4-Flash-0731 --mlx-path . -q --q-bits 4 --q-group-size 64model_type is deepseek_v4, which mlx_vlm.models.deepseek_v4
matches directly, and its sanitize resolves the FP8 .weight / .scale pairs during conversion.from mlx_vlm import load, generate
model, processor = load("ToPo-ToPo/DeepSeek-V4-Flash-0731-mlx-4bit")
The first load reads 144 GiB, so allow several minutes and raise any client-side startup timeouts.
reasoning_effort ("low" / "high" / "max") is supported through the chat template.
Use ToPo-ToPo/DeepSeek-V4-Flash-MTP-bf16
as the drafter:
mlx_vlm.server --model ToPo-ToPo/DeepSeek-V4-Flash-0731-mlx-4bit \
--draft-model ToPo-ToPo/DeepSeek-V4-Flash-MTP-bf16 --draft-kind mtp
Note that the MTP module bundled in this 0731 checkpoint cannot be used with mlx-vlm 0.6.8: 0731 carries
three MTP modules built around main_proj ([4096, 12288], three concatenated projections), whereas
DeepseekV4MTPDraftModel implements the earlier enorm / hnorm / e_proj / h_proj layout. The drafter
linked above is split from the earlier deepseek-ai/DeepSeek-V4-Flash release, which matches that layout and
shares the same hidden_size. Speculative decoding is lossless, so outputs are unchanged either way.
model-00001-of-00033.safetensors 5.1 GBmodel-00027-of-00033.safetensors 4.9 GBmodel-00012-of-00033.safetensors 4.9 GBmodel-00021-of-00033.safetensors 4.9 GBmodel-00018-of-00033.safetensors 4.9 GBmodel-00009-of-00033.safetensors 4.9 GBmodel-00015-of-00033.safetensors 4.9 GBmodel-00030-of-00033.safetensors 4.9 GBmodel-00024-of-00033.safetensors 4.9 GBmodel-00003-of-00033.safetensors 4.9 GBmodel-00006-of-00033.safetensors 4.9 GBmodel-00002-of-00033.safetensors 4.7 GBmodel-00011-of-00033.safetensors 4.7 GBmodel-00017-of-00033.safetensors 4.7 GBmodel-00032-of-00033.safetensors 4.7 GBmodel-00023-of-00033.safetensors 4.7 GBmodel-00026-of-00033.safetensors 4.7 GBmodel-00029-of-00033.safetensors 4.7 GBmodel-00020-of-00033.safetensors 4.7 GBmodel-00008-of-00033.safetensors 4.7 GBmodel-00014-of-00033.safetensors 4.7 GBmodel-00005-of-00033.safetensors 4.7 GBmodel-00019-of-00033.safetensors 4.7 GBmodel-00022-of-00033.safetensors 4.7 GBmodel-00025-of-00033.safetensors 4.7 GBmodel-00010-of-00033.safetensors 4.7 GBmodel-00013-of-00033.safetensors 4.7 GBmodel-00031-of-00033.safetensors 4.7 GBmodel-00007-of-00033.safetensors 4.7 GBmodel-00028-of-00033.safetensors 4.7 GBmodel-00016-of-00033.safetensors 4.7 GBmodel-00004-of-00033.safetensors 4.7 GBmodel-00033-of-00033.safetensors 1.5 GBdeepseek-ai/DeepSeek-V4-Flash-0731Have the files? Submit a torrent.
Submit a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo ToPo-ToPo/DeepSeek-V4-Flash-0731-mlx-4bit ./model-folder