localairecipes launch configs for local inference

DeepSeek-V4.1-Flash-1017 Hybrid EXL3 TP4 4x CMP 170HX Morrowmake

11 upvotes — sign in to vote sign in to vote

recipe 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.json

Engine

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.

Model

Context

  • max context: 256K tokens

KV pool

  • 1,295,894 tokens across concurrent requests

Performance

Speed by context

ContextConc.PrefillDecodeTTFT
2,048—3776 tok/s——reported
32,768—3824 tok/s——reported
40,960—3658 tok/s——reported
51,200—3739 tok/s——reported
262,1441—297 tok/s—reported
262,1448—868 tok/s—reported
272,3841—297 tok/s—reported
272,3848—795 tok/s—reported
282,6241—170 tok/s—reported
282,6248—464 tok/s—reported
303,1041—168 tok/s—reported
303,1048—468 tok/s—reported
323,5841—141 tok/s—reported
323,5848—357 tok/s—reported

prefill = prompt processing · decode = generation. All decode/prefill figures are shown as reported.

reported

notesclaimed_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.

Install requirements

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

Downloads

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

Fork

Sign in to fork this recipe — a fork is your own copy; you own it and only you can update it.

Export

recipe.yaml (raw)