localairecipes launch configs for local inference

DeepSeek-V4.1-Flash 4x RTX PRO 6000 Blackwell (wtogami DSpark K7)

00 upvotes — sign in to vote sign in to vote

community Community submission — verify on your own hardware.

recipe by wtogami (recipe: launcher, P2P/memlock gates, CSF lane, A/B harness, measurements)↗, local-inference-lab (rtx6kpro DS4.1 recipe, karmic-kraken-beta image + ds41-flash profile, KK protocol)↗, vLLM upstream + B12X/DSpark engine contributors (Apache-2.0), deepseek-ai (DeepSeek-V4.1-Flash weights, MIT) · listed by localai-recipes

Initial version · updated 44 h ago · license CC-BY-4.0

speculative p2p two-shot community-recipe csf rootless-podman karmic-kraken long-context dspark tp4 engram-ram

Official LIL image ghcr.io/local-inference-lab/vllm:karmic-kraken-beta (ds41-flash profile) serving deepseek-ai/DeepSeek-V4.1-Flash TP4/DCP1 B12X with adaptive DSpark K7 and RAM Engram tables under rootless podman; default 1M window (MAX_MODEL_LEN=-1) with sampling pins (top_p 0.95, greedy draft) passed as native CLI overrides over the profile. Measured with the sha256-pinned Karmic Kraken harness on Supermicro AS-5014A-TT (Gen4 x16, 325 W/GPU): 32K prefill 10,775 tok/s, C1 216.9 / C8 744.6 tok/s at the 131K comparison window (KK Max-Q/Gen5 reference 249.1 / 805.5), C1 230.5 / C8 733.7 at the 1M window, KV pool 9,718,137 tokens at 1M. Includes an original-vs-lossless-CSF 4-arm A/B (winner: original; KV +27.8%/+33.3% but C1 verifier -2.08%/-4.12% and greedy outputs differ) and a B12X two-shot A/B (TWOSHOT_MB=6 default, +4.8% C8 verifier steps/s). Recipe by wtogami; image, profile and KK protocol by local-inference-lab (rtx6kpro).

Launch command

podman run -d --name ds41 --init --restart unless-stopped --device nvidia.com/gpu=all --network=host --ipc=host --cap-add IPC_LOCK --ulimit memlock=-1:-1 --ulimit stack=67108864:67108864 --security-opt seccomp=unconfined --memory 512g --memory-swap 512g -v '~/models/DeepSeek-V4.1-Flash:/model:ro,z' -v ./state:/cache:z -e PROFILE=ds41-flash -e HARDWARE_PROFILE=rtx-pro-6000-pcie -e MODEL=/model -e ENGRAM_TABLE_MEMORY=ram -e TP=4 -e DCP=1 -e PORT=8000 -e MAX_MODEL_LEN=-1 -e MAX_NUM_SEQS=32 -e MAX_NUM_BATCHED_TOKENS=4096 -e GPU_MEMORY_UTILIZATION=0.95 -e JIT_MONITOR_MODE=warn -e HF_HUB_OFFLINE=1 -e NCCL_SOCKET_IFNAME=lo -e NCCL_P2P_LEVEL=PHB -e VLLM_PCIE_TWOSHOT_ALLREDUCE_MAX_SIZE=6MB -e GLOO_SOCKET_IFNAME=lo ghcr.io/local-inference-lab/vllm:karmic-kraken-beta --override-generation-config '{"temperature":1.0,"top_p":0.95}' --speculative-config '{"method":"dspark","attention_backend":"B12X","draft_sample_method":"greedy","rejection_sample_method":"standard","num_speculative_tokens":7,"draft_tensor_parallel_size":4,"enable_adaptive_verification":true,"adaptive_verification_cost_scale":1.0}'

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-4x-rtx-pro-6000-blackwell-wtogami-dspark-k7.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-4x-rtx-pro-6000-blackwell-wtogami-dspark-k7.json

Engine

Install note: Clone https://github.com/wtogami/deepseek-v4.1-flash-rtx-6000-blackwell @ 3faad3d3, point MODEL_DIRECTORY at the flat checkpoint, ./start.sh (rootless podman CDI or docker). Launcher pulls ghcr.io/local-inference-lab/vllm:karmic-kraken-beta (PROFILE=ds41-flash, TP4/DCP1), pins top_p 0.95 + greedy draft via native --override-generation-config/--speculative-config, gates on P2P (ASPM [performance], 12-pair peer access, NCCL via P2P with NCCL_P2P_LEVEL=PHB) and on RLIMIT_MEMLOCK for RAM Engram, and warns if the two-shot falls back. DRY_RUN=1 prints the resolved plan. CSF lane: scripts/csf-download.sh (HF rev 90d665c1, manifest+sha256 verified) then CSF=1 ./start.sh (launcher derives mxfp4_csf from manifest.json).

Model

Context

  • max context: 1M tokens

KV pool

  • 9,718,137 tokens across concurrent requests

Performance

Speed by context

ContextConc.PrefillDecodeTTFT
11—216.9 tok/s—reported
18—744.6 tok/s—reported
32,768—10775 tok/s——reported
43,008—10684 tok/s——reported
1,048,5761—230.5 tok/s—reported
1,048,5768—733.7 tok/s—reported

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

reported

notesAll cells author-measured with the exact KK script (llm_decode_bench.py v0.6.2, sha256-pinned in bench/, 5 warmed 30 s windows per cell, 15 s warmup, 32K unique-prompt prefill client TTFT, context-zero decode, server /metrics accounting). Headline arm csf-ab-20261110-133934 A-131k = shipped config (original checkpoint, 131072 window, TWOSHOT_MB=6, 325 W). Rows 4-6 are the MAX_MODEL_LEN=-1 (1M window) arm: decode cells stay context-zero; the 43008 prefill row is the 32K cell marker +10240 measured inside that window. Off-arm control (results/twoshot-A-off): C1 212.6 / C8 700.5 / C8 verifier 310.26 - the two-shot default is +4.8% C8 verifier, +5.8% C1 output. 131K arm C1 verifier 92.67 steps/s (accepted length 2.34), C8 verifier 345.14 (accepted 2.16).

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

Initial version.

Revision history

Initial version.

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)