{"slug":"deepseek-v4-1-flash-1017-exl3-3bpw-2x-rtx-pro-6000-theogravity","title":"DeepSeek-V4.1-Flash-1017 EXL3 3bpw 2x RTX PRO 6000 (theogravity)","summary":"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.","license":"MIT","tier":"community","beta":false,"revision":{"no":2,"commit_sha":"cdcdc037eae418017057b60bbb8d6c1c1f42ab7f","content_hash":"9c6329398b93c4a39232ad017852f0a7eb1c463d","created_at":"2026-11-21 10:55:27.446734-07","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."},"engine_source":{"type":"docker_image","git_url":"https://github.com/theogravity/deepseek-flash-v4.1-dual-rtx-6000","base_engine":"vllm","pip_package":null,"base_version":"vllm-nightly 5555a2d8 + lmcache 0.5.7","image_digest":null,"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.","pinned_commit":"f020f98034679d9ec2d132e55603ba6a35a51a5a"},"credit":[{"name":"theogravity (recipe author: NVMe-Engram patch, LMCache, Claude Code fix, measurements, MIT)","url":"https://github.com/theogravity"},{"name":"diffbot (DeepSeek-V4.1-Flash-EXL3-3bpw-2x-RTX-PRO-6000 pack, recipe image, kernels, CPU runtime, quality suite)"},{"name":"vLLM + LMCache - engine and cache server (Apache-2.0)"},{"name":"deepseek-ai/DeepSeek-V4.1-Flash-1017 - upstream weights"}],"author":{"name":"localai-recipes","isSite":false},"uploaded_by":"localai-recipes","config":{"launch":["MODEL_DIR=/mnt/models/dsv41-flash-exl3","API_KEY=change-me","cp compose/.env.example compose/.env && (cd compose && docker compose up -d)"],"kv_pool_tokens":2769546,"max_context_len":524288,"storage_requirements":{"note":"~77 GiB vLLM (measured) + LMCache RAM tier (compose 48 GiB) + OS; min ~96-112 GiB, recommended 128 GiB, tested on 246 GiB. Disk ~500 GB: 322 GiB pack, ~36 GB images, 128 GiB cache.","ram_gb":128,"nvme_gb":500}},"models":[{"slug":"deepseek-v4-1-flash-1017-exl3-3bpw","name":"DeepSeek-V4.1-Flash-1017-EXL3-3bpw","hf_repo":"diffbot/DeepSeek-V4.1-Flash-EXL3-3bpw-2x-RTX-PRO-6000","quant":"exl3-3bpw"}],"hardware":[{"slug":"nvidia-rtx-pro-6000-blackwell-max-qx2","vendor":"nvidia","card":"RTX PRO 6000 Blackwell Max-Q","card_family":"rtx-pro-6000-blackwell","vram_gb":96,"device_count":2}],"generation":"blackwell","tags":["community-recipe","dspark","engram-nvme","exl3","expert-offload","lmcache","long-context","speculative","tp2"],"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":null,"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\": \"Author-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.\", \"tok_s\": 282, \"context_len\": 25600}"}],"perf_points":[{"id":13758,"context_len":16000,"prefill_tok_s":null,"decode_tok_s":null,"ttft_ms":1400,"concurrency":null,"claimed_by":"submitter","notes":"cold prefill TTFT, ~15,826-token prompt (marker 16000), fresh seed; prefill ~11.6k tok/s; not re-run after the 11-14 revision (11-09 ablation-before 1.50 s)."},{"id":13759,"context_len":25600,"prefill_tok_s":null,"decode_tok_s":282,"ttft_ms":null,"concurrency":1,"claimed_by":"submitter","notes":"r2: warm 2nd pass, 1/4/6-stream set (11-14 rev); 1st pass 185; 11-09 setup 251 (1st pass 206; ablation line 274)."},{"id":13760,"context_len":25600,"prefill_tok_s":null,"decode_tok_s":518,"ttft_ms":null,"concurrency":4,"claimed_by":"submitter","notes":"r2: warm 2nd pass aggregate (11-14 rev); 1st pass 395; 11-09 setup 446 (1st pass 427; ablation line 508)."},{"id":13761,"context_len":25600,"prefill_tok_s":null,"decode_tok_s":557,"ttft_ms":null,"concurrency":6,"claimed_by":"submitter","notes":"r2: warm 2nd pass aggregate (11-14 rev); 1st pass 548; 11-09 setup 534 (ablation line 541). Max-effort: 530/499."},{"id":13762,"context_len":60000,"prefill_tok_s":null,"decode_tok_s":null,"ttft_ms":5000,"concurrency":null,"claimed_by":"submitter","notes":"cold TTFT, ~60,046-token prompt (marker 60000); ~12.0k tok/s; not re-run after the 11-14 revision (ablation-before 5.46 s)."},{"id":13763,"context_len":196000,"prefill_tok_s":null,"decode_tok_s":null,"ttft_ms":15700,"concurrency":null,"claimed_by":"submitter","notes":"cold TTFT, ~195,600-token prompt (marker 196000); ~12.5k tok/s; not re-run after the 11-14 revision (ablation-before 16.83 s)."},{"id":13764,"context_len":404000,"prefill_tok_s":12300,"decode_tok_s":null,"ttft_ms":null,"concurrency":6,"claimed_by":"submitter","notes":"r2 (11-14 rev): six concurrent ~404k-token cold requests (2.42M tokens), wall 187 s, all six needles found, VRAM 95,999 MiB; warm repeat 2 s (197 s / 12.3k tok/s with only the 11-09 layer skip; pre-update 265 s / 9.1k). Docs restate no aggregate for the 187 s row (row uses marker ctx 404000 for the ~404k cell)."},{"id":13765,"context_len":505000,"prefill_tok_s":null,"decode_tok_s":null,"ttft_ms":41600,"concurrency":null,"claimed_by":"submitter","notes":"cold TTFT, ~505,214-token prompt (marker 505000); ~12.1k tok/s; not re-run after the 11-14 revision (ablation-before 44.25 s; peak VRAM 95,958 MiB)."},{"id":13766,"context_len":1009950,"prefill_tok_s":null,"decode_tok_s":null,"ttft_ms":109000,"concurrency":null,"claimed_by":"submitter","notes":"1M-window VARIANT (max-model-len 1048576, chunk 16384, KV 6.5 GiB/GPU): cold 1M-token prompt TTFT 109 s (9.3k tok/s). Not the 512k headline config."},{"id":13767,"context_len":1020190,"prefill_tok_s":null,"decode_tok_s":null,"ttft_ms":1900,"concurrency":null,"claimed_by":"submitter","notes":"marker ctx = 1M cold row +10240. Same ~1M prompt evicted from the GPU pool by another 1M prompt, resent: TTFT 1.9 s, restored from LMCache RAM tier (48 GiB)."},{"id":13768,"context_len":1030430,"prefill_tok_s":null,"decode_tok_s":null,"ttft_ms":2700,"concurrency":null,"claimed_by":"submitter","notes":"marker ctx = 1M cold row +20480. Same ~1M prompt resent after a full container restart: TTFT 2.7 s, restored from LMCache disk tier (128 GiB cap; entries ~1.8 KB/token)."}],"agent":{"prompt":"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.","curl":"curl -fsSL https://localairecipes.com/api/v1/recipes/deepseek-v4-1-flash-1017-exl3-3bpw-2x-rtx-pro-6000-theogravity.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/theogravity/deepseek-flash-v4.1-dual-rtx-6000","pin":"f020f98034679d9ec2d132e55603ba6a35a51a5a"},{"kind":"model_weights","pointer_type":"hf_model","pointer":"https://huggingface.co/diffbot/DeepSeek-V4.1-Flash-EXL3-3bpw-2x-RTX-PRO-6000","pin":"6110453b901e4b51da66f539f3802b5c7f18e8e8"},{"kind":"reference","pointer_type":"hf_model","pointer":"https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017","pin":"1bae0e1088993b9b82de08f59de5be5a34e42170"}],"links":{"self":"/api/v1/recipes/deepseek-v4-1-flash-1017-exl3-3bpw-2x-rtx-pro-6000-theogravity.json","alternate":"/r/deepseek-v4-1-flash-1017-exl3-3bpw-2x-rtx-pro-6000-theogravity","describedby":"/openapi.json"},"updated_at":"2026-12-02 23:22:59.817392-07","created_at":"2026-11-10 16:25:06.490993-07","speeds":{"decode_tok_s":282,"prefill_tok_s":12300,"leaderboard":"/api/v1/leaderboard.json"}}