{"slug":"deepseek-v4-1-flash-1017-hybrid-exl3-tp4-4x-cmp-170hx-morrowmake","title":"DeepSeek-V4.1-Flash-1017 Hybrid EXL3 TP4 4x CMP 170HX Morrowmake","summary":"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.","license":"MIT","tier":"curated","beta":false,"revision":{"no":8,"commit_sha":"c27ab201931f31189875f334f2d51f2555027847","content_hash":"b1eddc5d608ba9415993c998bfea35da867feb84","created_at":"2026-11-18 22:24:13.22482-07","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."},"engine_source":{"type":"docker_image","git_url":"https://github.com/Morrowmake/vllm-cmp170hx","base_engine":"vllm","pip_package":null,"base_version":"fork queue @ e05403fdc3 (upstream 330c5bffee), image 1.0.2","image_digest":"ghcr.io/morrowmake/vllm-cmp170hx@sha256:73e79648b5e2a32633885c65ea2e4a83ffcd7f543899ffb890eeef7edbac709d","install_note":"Runs only as the pinned container image (sm_80 EXL3 + Marlin extensions prebuilt). One command from a fresh clone: git clone https://github.com/Morrowmake/dsv41-flash-cmp170hx-recipe && cd dsv41-flash-cmp170hx-recipe && ./start.sh (preflight, image pull, checkpoint download + hybrid build, launch, /health wait; DRY=1 prints the plan; docker compose up runs the same container). Needs: 4x CMP 170HX >=60 GiB each (the cards report 64), PCIe x16 links (warns below x16), NVIDIA driver 580+, Docker + NVIDIA Container Toolkit, ~680 GiB disk for the two checkpoints, ~240 GiB host RAM for Engram-in-RAM (auto falls back to SSD reads), optional P2P-capable driver build. ./start.sh smoke = one chat request and one tool call.","pinned_commit":"e05403fdc3750880da4a5f4cd8c55c5fae3b3ae0"},"credit":[{"name":"Morrowmake (recipe, engine fork, measurements)","url":"https://github.com/Morrowmake/dsv41-flash-cmp170hx-recipe"},{"name":"LibertAI - EXL3 2.9-bpw routed-expert quantization","url":"https://huggingface.co/LibertAIDAI/DeepSeek-V4.1-Flash-1017-EXL3-2.9bpw"},{"name":"DeepSeek - DeepSeek-V4.1-Flash-1017 base model (MIT)","url":"https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017"},{"name":"cmpunlocker (amoghmunikote) - P2P driver basis + minimal TRAP31 patch","url":"https://github.com/amoghmunikote/cmpunlocker"},{"name":"MiaAI-Lab - decode benchmark protocol (used as data)","url":"https://huggingface.co/Mia-AiLab"},{"name":"Marlin (IST-DASLab + Neural Magic contributors) - kernel basis","url":"https://github.com/IST-DASLab/marlin"}],"author":{"name":"localai-recipes","isSite":false},"uploaded_by":"localai-recipes","config":{"launch":["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"],"layouts":["tp"],"kv_pool_tokens":1295894,"max_context_len":262144,"storage_requirements":{"note":"Host RAM ~240 GiB keeps the ~189 GiB Engram tables in RAM (auto falls back to SSD reads below ~212 GiB available); ~680 GiB disk for the two checkpoints; NVIDIA driver 580+.","ram_gb":240}},"models":[{"slug":"deepseek-v4-1-flash-1017-exl3-2-9bpw-hybrid","name":"DeepSeek-V4.1-Flash-1017-EXL3-2.9bpw-Hybrid","hf_repo":"LibertAIDAI/DeepSeek-V4.1-Flash-1017-EXL3-2.9bpw","quant":"exl3-2-9bpw-routed-experts-fp8-core-hybrid"}],"hardware":[{"slug":"nvidia-cmp-170hxx4","vendor":"nvidia","card":"cmp-170hx","card_family":"170hx","vram_gb":64,"device_count":4}],"generation":"ampere","tags":["dspark","engram-ram","exl3","hybrid-checkpoint","sm80","speculative","tp4"],"tasks":["chat","code","vision"],"aa":{"aa_index":32.590000000000003410605131648480892181396484375,"aa_provenance":"measured","aa_source_url":"https://artificialanalysis.ai/models/deepseek-v4-1-flash-1017","aa_index_version":"Index v5.0.1 (2026-11-14)","aa_methodology_version":"v5.0.1","aa_published_fetched_at":"2026-11-18 22:27:52.619159-07","aa_family_slug":"deepseek-v4-1-flash-1017","aa_resolved_slug":"deepseek-v4-1-flash-1017"},"performance":[{"claimed_by":"submitter","metrics":"{\"notes\": \"claimed_by=submitter T0 - the author's own release-check bench (docs/results.md @ recipe-repo pin, measured 2026-11-01 on the release 1.0.1 image 32ae8b0e, release defaults): 74 SMs/card, mainline cmpunlocker + minimal P2P patch, verified P2P, PCIe x16, 262,144 ctx, Engram tables in host RAM, 180 W/card. 1.0.0 measured alongside on the same machine, two boots each alternating; figures are the median of five runs per boot over two boots; prefill = median of four cold requests. Decode: MiaAI-Lab protocol, 400-token completions, temp 0, thinking off; structured/code prompt set 1, prose set 2, separate boots. c2 totals 392/458/260, c4 569/642/352 (structured/code/prose). 1.0.1 retired the 1.0.0 'up to' hedge: medians not ceilings. Quality vs 1.0.0: HumanEval 158/164 (157), GSM8K 1,285/1,319 (1,280), McNemar p=1/0.23; 30/30 needles at 262K. Fallbacks (one boot, prose): SSD 168 c1 / 468 c8 / 3,658 p2K; P2P off 141 c1 / 357 c8 / 3,739 (c2 202, c4 280). KV pool 1,295,894.\", \"tok_s\": 297, \"context_len\": 262144}"}],"perf_points":[{"id":13646,"context_len":2048,"prefill_tok_s":3776,"decode_tok_s":null,"ttft_ms":null,"concurrency":null,"claimed_by":"submitter","notes":"Cold prefill of a 2,048-token prompt (median of 4 cold requests, TP4), measured 2026-11-01. context_len IS the prompt length; concurrency omitted (NULL)."},{"id":13647,"context_len":32768,"prefill_tok_s":3824,"decode_tok_s":null,"ttft_ms":null,"concurrency":null,"claimed_by":"submitter","notes":"Cold prefill of a 32,768-token prompt (median of 4 cold requests, TP4), measured 2026-11-01. context_len IS the prompt length; concurrency omitted (NULL)."},{"id":13648,"context_len":40960,"prefill_tok_s":3658,"decode_tok_s":null,"ttft_ms":null,"concurrency":null,"claimed_by":"submitter","notes":"REFERENCE FALLBACK: cold 2,048-token prefill with Engram on SSD. context_len 40960 is the tuple marker (SSD prefill row); concurrency omitted (NULL)."},{"id":13649,"context_len":51200,"prefill_tok_s":3739,"decode_tok_s":null,"ttft_ms":null,"concurrency":null,"claimed_by":"submitter","notes":"REFERENCE FALLBACK: cold 2,048-token prefill with P2P off. context_len 51200 is the tuple marker (P2P-off prefill row); concurrency omitted (NULL)."},{"id":13650,"context_len":262144,"prefill_tok_s":null,"decode_tok_s":297,"ttft_ms":null,"concurrency":1,"claimed_by":"submitter","notes":"Structured decode c1 headline (TP4, experts split across cards, P2P on, Engram in RAM) - median of 5 runs on a boot, averaged over 2 boots, release check measured 2026-11-01."},{"id":13651,"context_len":262144,"prefill_tok_s":null,"decode_tok_s":868,"ttft_ms":null,"concurrency":8,"claimed_by":"submitter","notes":"Aggregate structured decode c8 total (TP4), median of 5 x 2 boots, measured 2026-11-01. c2 392 / c4 569 in perf notes."},{"id":13652,"context_len":272384,"prefill_tok_s":null,"decode_tok_s":297,"ttft_ms":null,"concurrency":1,"claimed_by":"submitter","notes":"Code decode c1 (TP4). context_len is the tuple marker 262144+10240 (code row, not structured). Median of 5 x 2 boots, measured 2026-11-01."},{"id":13653,"context_len":272384,"prefill_tok_s":null,"decode_tok_s":795,"ttft_ms":null,"concurrency":8,"claimed_by":"submitter","notes":"Aggregate code decode c8 total (TP4). context_len is the tuple marker 262144+10240. c2 458 / c4 642 in perf notes."},{"id":13654,"context_len":282624,"prefill_tok_s":null,"decode_tok_s":170,"ttft_ms":null,"concurrency":1,"claimed_by":"submitter","notes":"Prose decode c1 (TP4). context_len is the tuple marker 262144+20480 (prose row, not structured/code). Median of 5 x 2 boots, measured 2026-11-01."},{"id":13655,"context_len":282624,"prefill_tok_s":null,"decode_tok_s":464,"ttft_ms":null,"concurrency":8,"claimed_by":"submitter","notes":"Aggregate prose decode c8 total (TP4). context_len is the tuple marker 262144+20480. c2 260 / c4 352 in perf notes."},{"id":13656,"context_len":303104,"prefill_tok_s":null,"decode_tok_s":168,"ttft_ms":null,"concurrency":1,"claimed_by":"submitter","notes":"REFERENCE FALLBACK: Engram tables from SSD (VLLM_ENGRAM_PLACEMENT=ssd, 48 GiB row cache per card), one boot, prose prompts. context_len is the tuple marker 262144+40960 (SSD row)."},{"id":13657,"context_len":303104,"prefill_tok_s":null,"decode_tok_s":468,"ttft_ms":null,"concurrency":8,"claimed_by":"submitter","notes":"REFERENCE FALLBACK: aggregate c8 total with Engram on SSD. context_len is the tuple marker 262144+40960 (SSD row)."},{"id":13658,"context_len":323584,"prefill_tok_s":null,"decode_tok_s":141,"ttft_ms":null,"concurrency":1,"claimed_by":"submitter","notes":"REFERENCE FALLBACK: P2P off (P2P=off), one boot, prose prompts. context_len is the tuple marker 262144+61440 (P2P-off row)."},{"id":13659,"context_len":323584,"prefill_tok_s":null,"decode_tok_s":357,"ttft_ms":null,"concurrency":8,"claimed_by":"submitter","notes":"REFERENCE FALLBACK: aggregate c8 total with P2P off (c2 202 / c4 280 in perf notes). context_len is the tuple marker 262144+61440 (P2P-off row)."}],"agent":{"prompt":"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.","curl":"curl -fsSL https://localairecipes.com/api/v1/recipes/deepseek-v4-1-flash-1017-hybrid-exl3-tp4-4x-cmp-170hx-morrowmake.json"},"requirements":{"requires":["Docker (or a compatible OCI container runtime)","NVIDIA Container Toolkit (nvidia-container-toolkit) - exposes host GPUs to the container"],"driver_floor":{"cuda":null,"linux_min":null,"text":"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)"},"placeholders":["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."]},"artifacts":[{"kind":"reference","pointer_type":"git_commit","pointer":"https://github.com/Morrowmake/dsv41-flash-cmp170hx-recipe","pin":"recipe repo @ b6b5bfcf7bea7a1d03a9b827372149fb5db35198 (release 1.0.2)"},{"kind":"engine_image","pointer_type":"docker_digest","pointer":"https://ghcr.io/morrowmake/vllm-cmp170hx@sha256:73e79648b5e2a32633885c65ea2e4a83ffcd7f543899ffb890eeef7edbac709d","pin":"release 1.0.2 image - the engine; sm_80 EXL3 + Marlin extensions prebuilt, plugin e11b375ab9 (73e79648b5)"},{"kind":"engine_image","pointer_type":"git_commit","pointer":"https://github.com/Morrowmake/vllm-cmp170hx","pin":"queue e05403fdc3 + plugin e11b375ab9 on upstream vLLM 330c5bffee (release 1.0.2)"},{"kind":"model_weights","pointer_type":"hf_model","pointer":"https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017","pin":"official FP8 1017 @ 1bae0e1088993b9b82de08f59de5be5a34e42170 - every weight but the routed experts, plus the Engram tables"},{"kind":"model_weights","pointer_type":"hf_model","pointer":"https://huggingface.co/LibertAIDAI/DeepSeek-V4.1-Flash-1017-EXL3-2.9bpw","pin":"EXL3 2.9bpw routed experts @ c178a01284fc5c0e859d8668cffaac81ca8f4042 (docker/prepare.sh pin)"},{"kind":"reference","pointer_type":"git_commit","pointer":"https://github.com/amoghmunikote/cmpunlocker","pin":"mainline cmpunlocker + Morrowmake's minimal TRAP31 P2P patch (ready build: github.com/Morrowmake/cmpunlocker)"}],"links":{"self":"/api/v1/recipes/deepseek-v4-1-flash-1017-hybrid-exl3-tp4-4x-cmp-170hx-morrowmake.json","alternate":"/r/deepseek-v4-1-flash-1017-hybrid-exl3-tp4-4x-cmp-170hx-morrowmake","describedby":"/openapi.json"},"updated_at":"2026-12-02 23:22:59.75002-07","created_at":"2026-10-27 16:38:42.470025-06","speeds":{"decode_tok_s":170,"prefill_tok_s":3739,"leaderboard":"/api/v1/leaderboard.json"}}