DeepSeek-V4.1-Flash-1017 Hybrid EXL3 TP4 4x CMP 170HX Morrowmake
11 upvotes — sign in to vote sign in to voterecipe by Morrowmake (recipe, engine fork, measurements)↗, LibertAI - EXL3 2.9-bpw routed-expert quantization↗, DeepSeek - DeepSeek-V4.1-Flash-1017 base model (MIT)↗, cmpunlocker (amoghmunikote) - P2P driver basis + minimal TRAP31 patch↗, MiaAI-Lab - decode benchmark protocol (used as data)↗, Marlin (IST-DASLab + Neural Magic contributors) - kernel basis↗ · listed by localai-recipes
revision r8 · commit c27ab20193 · updated 44 h ago · license MIT
chat code vision speculative sm80 hybrid-checkpoint dspark exl3 tp4 engram-ram
DeepSeek-V4.1-Flash-1017 (748B MoE) on four CMP 170HX cards (sm_80): Morrowmake's release 1.0.2 recipe serves a hybrid checkpoint - routed experts from LibertAI's EXL3 2.9-bpw export, every other weight from DeepSeek's official FP8 1017 checkpoint (sha256-validated link build, no copies), and the model's ~189 GiB Engram tables in host RAM (VLLM_ENGRAM_PLACEMENT=auto, SSD fallback below ~212 GiB available). 297 tok/s one user structured (297 code / 170 prose), 868 across eight, 3,776 tok/s cold 2K prefill and a 1,295,894-token KV pool at 262,144 context, full-precision BF16 KV. Engine: upstream vLLM 330c5bffee with the Morrowmake patch queue e05403fdc3 and sm_80 plugin e11b375ab9 (custom P2P all-reduce after a startup content check, DSpark speculative decoding 7/5 adaptive), pinned container image 1.0.2, TP4 with every routed expert split across the four cards, optimised for PCIe x16 links. HumanEval 158/164, GSM8K 1,285/1,319, level with 1.0.0.
Launch command
'docker run -d --name dsv41-flash --user <uid>:<gid> --workdir /cache --gpus all --shm-size 16g --memory <host MemTotal> --memory-swap <host MemTotal>' '-p 127.0.0.1:8000:8000' '-v <MODELS_DIR>/DeepSeek-V4.1-Flash-1017-EXL3-2.9bpw:/models/DeepSeek-V4.1-Flash-1017-EXL3-2.9bpw:ro' '-v <MODELS_DIR>/DeepSeek-V4.1-Flash-1017:/models/DeepSeek-V4.1-Flash-1017-engram:ro' '-v <MODELS_DIR>/DeepSeek-V4.1-Flash-1017-hybrid-exl3-fp8:/models/DeepSeek-V4.1-Flash-1017-hybrid-exl3-fp8:ro' '-v <CHECKOUT>/cache:/cache' '-v <CHECKOUT>/docker/entry.sh:/recipe/entry.sh:ro (plus boot_check.py, p2p_check.py, p2p_check.sh, p2p_probe.cu, engram_placement.sh)' '--env-file <logs/container.env> --entrypoint /bin/bash ghcr.io/morrowmake/vllm-cmp170hx@sha256:73e79648b5e2a32633885c65ea2e4a83ffcd7f543899ffb890eeef7edbac709d /recipe/entry.sh' './start.sh builds logs/container.env (container_env): LAYOUT=tp4, HOST=0.0.0.0, PORT=8000, cache dirs under /cache, HF_HOME=/cache/huggingface; entry.sh re-decides Engram placement at each start (auto: ram with ~212 GiB available, else ssd) and execs the image'\''s /opt/recipe/serve.sh (LAYOUT=tp4), which runs:' /opt/venv/bin/vllm serve /models/DeepSeek-V4.1-Flash-1017-hybrid-exl3-fp8 '--host 0.0.0.0' '--served-model-name dsv41-flash' '--max-model-len 262144' '--gpu-memory-utilization 0.95' '--max-num-seqs 8' '--max-num-batched-tokens 2048' '--port 8000' '--hf-overrides {"engram_table_dir":"/models/DeepSeek-V4.1-Flash-1017-engram"}' '--load-format exl3' '--mm-encoder-tp-mode data' '--kv-cache-dtype bfloat16' '--reasoning-parser deepseek_v41' --enable-auto-tool-choice '--tool-call-parser deepseek_v41' '--override-generation-config {"temperature":1.0,"top_p":1.0}' '--compilation-config {"cudagraph_mode":"FULL_DECODE_ONLY","cudagraph_capture_sizes":[2,3,4,5,6,8,9,10,12,14,15,16,18,20,21,24,25,28,30,32,35,36,40,42,48]}' '--speculative-config {"method":"dspark","num_speculative_tokens":7,"adaptive_k":{"by_load":[7,5,5,5,5,5,5,5,1,2,3,4,5],"draft_by_load":true},"enable_adaptive_verification":false}' '--prefill-chunk-with-decodes 512' --exclude-tools-when-tool-choice-none '--tensor-parallel-size 4' '--pipeline-parallel-size 1'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-hybrid-exl3-tp4-4x-cmp-170hx-morrowmake.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-hybrid-exl3-tp4-4x-cmp-170hx-morrowmake.jsonInstall requirements
- Docker (or a compatible OCI container runtime)
- NVIDIA Container Toolkit (nvidia-container-toolkit) - exposes host GPUs to the container
NVIDIA driver floor: unknown - check the image tag
Source: NVIDIA CUDA Toolkit Release Notes - driver compatibility tables (https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/, fetched 2026-10-03).
Map the placeholders to your rig
- Hardware-bound values in this recipe (device counts, bind-mount paths, utilization, ports) describe the author's machine, not yours - map them to your own rig before launching. Keep the engine flags, model, quant, and parallelism strategy; adjust paths and ports to the hardware you actually have.
- GPU identity: list your GPUs with `nvidia-smi -L` and substitute your own GPU UUIDs/indices wherever the recipe pins the author's.
- Model directory: bind-mount paths are author-side - point them at your own mount where the model files live.
- Host port: pick a free port on your machine and publish the container there; keep the in-container port unchanged.
Downloads
- Reference https://github.com/Morrowmake/dsv41-flash-cmp170hx-reciperecipe repo @ b6b5bfcf7bea7a1d03a9b827372149fb5db35198 (release 1.0.2)
- Engine image https://ghcr.io/morrowmake/vllm-cmp170hx@sha256:73e79648b5e2a32633885c65ea2e4a83ffcd7f543899ffb890eeef7edbac709drelease 1.0.2 image - the engine; sm_80 EXL3 + Marlin extensions prebuilt, plugin e11b375ab9 (73e79648b5)
- Engine image https://github.com/Morrowmake/vllm-cmp170hxqueue e05403fdc3 + plugin e11b375ab9 on upstream vLLM 330c5bffee (release 1.0.2)
- Weights https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017official FP8 1017 @ 1bae0e1088993b9b82de08f59de5be5a34e42170 - every weight but the routed experts, plus the Engram tables
- Weights https://huggingface.co/LibertAIDAI/DeepSeek-V4.1-Flash-1017-EXL3-2.9bpwEXL3 2.9bpw routed experts @ c178a01284fc5c0e859d8668cffaac81ca8f4042 (docker/prepare.sh pin)
- Reference https://github.com/amoghmunikote/cmpunlockermainline cmpunlocker + Morrowmake's minimal TRAP31 P2P patch (ready build: github.com/Morrowmake/cmpunlocker)
Revision notes
Community ingest by localai-recipes (owner direct ask 2026-10-24) of Morrowmake's release 1.0.0 recipe repo @ d4d1f525 - HEAD at sweep == HEAD at ingest, drift-free. All perf numbers are the author's own measurements (claimed_by=submitter T0; docs/results.md @ pin, measured 2026-10-24 on the release image with release defaults). NOT a dupe: same-family 4x-CMP-170HX DeepSeek rows are different repos/engines - GNmac-lab Engram-NVMe (own patch stack, Engram streamed from NVMe, TP4+PP4), CurtisAccelerate EXL3 TC-MoE (full-EXL3 experts, no hybrid), kaka86mm PP4 shadow-KV - this is Morrowmake's own engine fork + hybrid EXL3/FP8 + Engram-in-RAM recipe, the first on the site from this repo. CORRECTION to the scout pre-flight note: this repo is SINGLE-LAYOUT TP4 only (start.sh dies on any other LAYOUT; PP=1) - no PP4 lane exists here. Engine: fork @ a0c57b52 on upstream 4e0681ed56, image digest f67d9be4 (release 1.0.0). Weights pinned by the repo's docker/prepare.sh: official FP8 1017 @ 1bae0e10, LibertAI EXL3 2.9bpw @ c178a012; the hybrid build's written files are sha256-validated at every start. P2P is enabled automatically after a startup content check and runs disabled without it (fallback perf rows). Perf-point context_len markers: decode rows base 262144 (+10240 code, +20480 prose, +40960 SSD-fallback, +61440 P2P-off-fallback); prefill rows use the real prompt lengths 2048/32768 (main) and markers 40960/51200 (fallbacks); concurrency omitted on prefill rows (NULL) so no (ctx,conc,claimed_by) dedup collisions. Recipe licence MIT (CITATION.cff). RELEASE 1.0.2 (lar-scout revision card t_e4eebf3d, owner go go 1.0.2 (owner go via kanban t_e4eebf3d, 2026-11-02), preprod): engine re-pinned to upstream vLLM 330c5bffee + Morrowmake patch queue e05403fdc3 (tag dsv41-flash-recipe-1.0.1-queue) + sm_80 plugin e11b375ab9 (tag dsv41-flash-recipe-1.0.2-plugin); recipe-repo pin 7f9023cd -> b6b5bfcf7b; image digest 73e79648b5 (was f67d9be4 at 1.0.0; supersedes the 1.0.1 candidate 32ae8b0e - 1.0.2 builds the copy-engine all-reduce ring only with PCIe peer access, issue #3; author: speed and quality unchanged from 1.0.1). Perf measured 2026-11-01 on the 1.0.1 release-check image 32ae8b0e; Numbers lifted from docs/results.md Release 1.0.1 (median of 5 runs x 2 boots, 1.0.0 measured beside it on the same machine). Launch re-transcribed from serve.sh @ pin: -'--enable-expert-parallel', +'--override-generation-config {temperature 1.0, top_p 1.0}'; single-layout TP4 KEPT (start.sh still dies on any LAYOUT != tp4; PP=1, TP=4; no PP4 lane). No coherence/degeneracy fix in the 1.0.1/1.0.2 notes - the Morrowmake 1.7.x rails field report (t_1982a837) concerns the glm-141 recipe, NOT this dsv41 recipe, and stays open unchanged. Credits added per docs/credits.md: Curtis White, GNmac-lab, b12x, ExLlamaV3.
Revision history
- 527dbfa912 recipe: sync 34 from preprod (wave 14 — 6 NEW: glm fp4-local hyperflare tp3, wtogami dspark-k7, dsv4+qwen r9700 radiance tp4, glm-3090 tiered-experts, qwen max-q lmcache + max-q eager; 28 revision bumps incl kraken .12.2 r21, Radiance 2.0.0, hotsplit seqs r2, dgx-spark r5 — owner go 2026-11-15/18) 16 d ago diff
- 2bd3f9090a recipe: drop stray null runtime key (t_011a1b47 wave, parity with preprod) 32 d ago diff
- 1359e98f54 recipe: update deepseek-v4-1-flash-1017-hybrid-exl3-tp4-4x-cmp-170hx-morrowmake (r5: /engine, /config/launch, /config/runtime, /kv_pool_tokens, /summary, /provenance/notes, /provenance/credit, /perfor 32 d ago diff
- 1d43d37b0b recipe: update deepseek-v4-1-flash-1017-hybrid-exl3-tp4-4x-cmp-170hx-morrowmake (r4: /tags) 35 d ago diff
- 59f85eff01 recipe: update deepseek-v4-1-flash-1017-hybrid-exl3-tp4-4x-cmp-170hx-morrowmake (r3: /provenance/credit) 36 d ago diff
- bb2931f496 recipe: update deepseek-v4-1-flash-1017-hybrid-exl3-tp4-4x-cmp-170hx-morrowmake (r2: /summary, /performance) 38 d ago diff
- f575158987 recipe: create deepseek-v4-1-flash-1017-hybrid-exl3-tp4-4x-cmp-170hx-morrowmake 41 d ago
Fork
Sign in to fork this recipe — a fork is your own copy; you own it and only you can update it.