localairecipes launch configs for local inference

DeepSeek-V4.1-Flash-1017 EXL3 3bpw 2x RTX PRO 6000 (theogravity)

00 upvotes — sign in to vote sign in to vote

community Community submission — verify on your own hardware.

recipe by theogravity (recipe author: NVMe-Engram patch, LMCache, Claude Code fix, measurements, MIT)↗, diffbot (DeepSeek-V4.1-Flash-EXL3-3bpw-2x-RTX-PRO-6000 pack, recipe image, kernels, CPU runtime, quality suite), vLLM + LMCache - engine and cache server (Apache-2.0), deepseek-ai/DeepSeek-V4.1-Flash-1017 - upstream weights · listed by localai-recipes

revision r2 · commit cdcdc037ea · updated 44 h ago · license MIT

chat code vision speculative tp2 community-recipe long-context lmcache dspark exl3 expert-offload engram-nvme

DeepSeek-V4.1-Flash-1017 (diffbot's EXL3 3bpw pack) on 2x RTX PRO 6000 Blackwell, tuned for up to 6 concurrent long-context agents: 512k window, prefill chunk 8192, 2.77M-token fp8 KV pool. The 103 GiB of int4 Engram tables stay on NVMe, read through a mmapped-shard 32-thread gather inside the decode CUDA graph, cutting pinned host RAM ~230 GiB to ~77 GiB (runs on 128 GB). LMCache RAM+disk tiers (48/128 GiB) restore an evicted 1M-token prompt in ~2-3 s; CPU host-experts decode-only (+12-17%); diffbot's 2026-11-09 + 2026-11-14 CPU-runtime revisions adopted selectively. A LiteLLM callback folds Claude Code's inline system messages, lifting real-session prefix-cache hits from 13-29% to 94.7-99.6%. Author-measured: decode 282/518/557 tok/s at 1/4/6 streams, cold TTFT 1.4 s @16k to 41.6 s @505k, six ~404k in 187 s, GSM8K-200 98.5%, HumanEval-164 97.0%. Recipe by theogravity (github.com/theogravity/deepseek-flash-v4.1-dual-rtx-6000); pack/image/kernels by diffbot; vLLM + LMCache upstream.

Launch command

MODEL_DIR=/mnt/models/dsv41-flash-exl3 API_KEY=change-me 'cp compose/.env.example compose/.env && (cd compose && docker compose up -d)'

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-exl3-3bpw-2x-rtx-pro-6000-theogravity.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-exl3-3bpw-2x-rtx-pro-6000-theogravity.json

Engine

Install note: Engine is vLLM (nightly 5555a2d8) inside diffbot's recipe image dsv41-flash-1017-exl3-3bpw-sm120, built from the pack's recipe/ (docker/build.sh + kernels/build.sh + cpuexp/build.sh), plus lmcache 0.5.7 (--no-deps) via this repo's patches/lmcache/build_image.sh -> image dsv41-flash-1017-exl3-3bpw-sm120-lmcache. Patch sets mounted over the image: engram-nvme (NVMe-served Engram tables + 32-thread gather), vllm-exl3 CPU-speedups (11-14), api-auth (x-api-key), lmcache start.sh (RAM+disk tiers, LRU); apply_patch.py refuses moved code. Launch: cp compose/.env.example compose/.env (API_KEY required), docker compose up -d (port 8001). Updating? Rebuild BOTH kernels/ and cpuexp/ builds. Patches generated against the 2026-11-08 image; diffbot's update files from the pack: 2026-11-09 (HF 2205b25) + 2026-11-14 CPU-runtime (HF b98e, pack 6110453b, xmoe_bulk). Needs 2x RTX PRO 6000 (sm_120, 96 GB) with P2P, CUDA-13 driver (tested 615.71.09), ~77 GiB RAM for vLLM + LMCache tier, ~500 GB NVMe.

Model

Context

  • max context: 512K tokens

KV pool

  • 2,769,546 tokens across concurrent requests

Performance

Speed by context

ContextConc.PrefillDecodeTTFT
16,000———1400 msreported
25,6001—282 tok/s—reported
25,6004—518 tok/s—reported
25,6006—557 tok/s—reported
60,000———5000 msreported
196,000———15700 msreported
404,000612300 tok/s——reported
505,000———41600 msreported
1,009,950———109000 msreported
1,020,190———1900 msreported
1,030,430———2700 msreported

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

reported

notesAuthor-measured; docs/BENCHMARKS.md @ repo HEAD f020f980 (measured 2026-11-15, fresh seed per cold run). Same box + final config as the 2026-11-09 table (Threadripper PRO 9965WX, 2x RTX PRO 6000 P2P, LMCache on, CPU experts decode-only, chunk 8192, KV 11 GiB/GPU); rates depend on the author's LACT profile (600 W, +350/+4000 MHz offsets; stock clocks slower). Decode = warm 2nd-pass aggregates on the 25.6k code-edit prefix. TTFT rows unchanged and not re-run after the 11-14 revision.

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

Filed from the lar-scout 2026-11-10 sweep (digest t_7578e4eb). Surfaced via r/BlackwellPerformance self-post 2026-11-09T06:57Z (/u/devtools-dude, cross-posted r/LocalLLM) - Reddit not re-verified (hard-403 from this lane), cited submitter-T0. Repo verified at HEAD 6c65faa723a8d96348328ce61c2d054e8e819ecf (2026-11-09T10:28-08:00, 'Move comparison image to the README intro'): compose argv, patch layout, LMCache tiers, benchmark tables and docs/INSTALL healthy-boot KV line (2,769,546 tokens) all read at that sha; diffbot pack @ 451f7dcb resolves (gated-401 signature on plain fetches, API 200). Corrections to card: (1) card's suggested slug token 'nvme-engram-lmcache' would 71-char slugify to a bad 64-cut - title re-worded to '(theogravity)' to land the card's Option A slug exactly; (2) hardware submitted as card 'RTX PRO 6000 Blackwell' + device_count 2 so the legacy profile nvidia-rtx-pro-6000-blackwell-max-qx2 (id 9) resolves like both live 2x-6000 recipes - the 'Workstation' spelling would normalize to an unmatched key and silently create a stray profile; (3) README headline decode ~270/500/540 is the update-ablation line, not the Concurrency table (251/446/534) - both kept, attributed per row; (4) six-way 197 s is post-update, 265 s pre-update. Dedupe: dupe-adjacent to live deepseek-v4-1-flash-1017-exl3-3bpw-2x-rtx-pro-6000-engram-on-ssd (yoloyash) - different mechanism (own patch set on stock checkpoint shards vs vendored-pack overlay), different serving profile (512k/c6 + LMCache + CPU experts vs that pack's defaults), independent measured table; ingested as a distinct build per the site's successor-record rule. Revision r2 (kanban t_a99b565e, 2026-11-19, owner GO): repo pin 6c65faa723a8d96348328ce61c2d054e8e819ecf -> f020f98034679d9ec2d132e55603ba6a35a51a5a (single linear commit, verified strict ancestor at write time) adopting diffbot's 2026-11-14 CPU-runtime revision selectively: xmoe_bulk kernel + the exl3_cpu_speedups.py plugin mount ON; wkv replication and mHC overlap OFF (upstream 16384-chunk defaults measured 1.8x slower at this recipe's chunk 8192; 498k cold prefill 71.6/70.6 s vs 39.9 s). Config posture rides the pinned compose file (XMOE_EXT=xmoe_bulk, EXL3_DO_MIN_TOKENS=128, EXL3_CPU_PF_STREAM_M=16, EXL3_FAT_SKIP_DEAD=1, DS41_ACTQ_STRIDED=1, DS41_WKV_REPLICATE=0, DS41_MHC_OVERLAP=0). Model hf_revision stays at pack 451f7dcb (PATCH /model cannot touch hf_revision) while the unpinned hf download now serves 11-14 pack files (HF main 6110453b, 2026-11-15T06:59Z) - artifact[1] records the served revision. Measured (docs @ f020f980, LACT GPU profile 600 W +350/+4000 MHz; stock clocks slower): decode 282/518/557, six-way 187 s, HumanEval 97.0; GSM8K 197 unchanged, TTFT rows and soak not re-run.

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)