Skip to content

deepseek-ai/DeepSeek-V4-Flash-0731

Download deepseek-v4-flash-0731-r16-b12x-dspark5-maxseq16-650k-recipe.toml

deepseek-v4-flash-0731-r16-b12x-dspark5-maxseq16-650k-recipe.toml · 5,109 bytes · SHA-256 b5c668a70b6a1bb487318ffd859a79a477e194b77e542d9a4d488fe967086825

A recipe is a reproducible starting point, not a promotion

Status text and notes describe when the recipe was written. Loading a recipe starts a loopback-only container and changes no route; qualify it with eval preflight before use.

Field Value
Status verified
Family deepseek-v4
Weights deepseek-ai/DeepSeek-V4-Flash-0731 @ 9e165c30e2704aec5d9d593cce3eebd58bbef1cb
Engine vllm-r27-b12x
Image voipmonitor/vllm@sha256:2605fda01797f33239af4c95ec7449505fe57d9b9de9687792f5b8273d3201a7
Quantization Official 0731 mixed FP8/FP4 checkpoint; B12X W4A8 NVFP4 MoE, B12X FP8 dense GEMM, FP8 KV
Context tokens 262144
Hardware 2x NVIDIA RTX PRO 6000 Blackwell Max-Q Workstation Edition · sm_120 · 192 GB
Served model name deepseek-v4-flash-0731-r16-b12x-dspark5-maxseq16-tp2-650k
Suited for qualification, speculative-decoding, coding-agent
Origin 2026-08-02 locally qualified and human-approved Primary fallback after the 1M profile failed real Pi-shaped requests

Sources:

Use this recipe

anvil-serving models recipes show 'deepseek-ai/DeepSeek-V4-Flash-0731' --registry ./deepseek-v4-flash-0731-r16-b12x-dspark5-maxseq16-650k-recipe.toml
anvil-serving models recipes load 'deepseek-ai/DeepSeek-V4-Flash-0731' --container my-serve --registry ./deepseek-v4-flash-0731-r16-b12x-dspark5-maxseq16-650k-recipe.toml --dry-run

Review the dry run, then repeat the load command with --confirm. See model lifecycle for importing a recipe into your own registry.

File

schema = "anvil-serving.serve-recipes/v1"

[[recipe]]
model = "deepseek-ai/DeepSeek-V4-Flash-0731"
status = "verified"
source = "2026-08-02 locally qualified and human-approved Primary fallback after the 1M profile failed real Pi-shaped requests"
family = "deepseek-v4"
total_params_b = 304
active_params_b = 13

[recipe.download]
repo = "deepseek-ai/DeepSeek-V4-Flash-0731"
revision = "9e165c30e2704aec5d9d593cce3eebd58bbef1cb"
volume = "deepseek-v4-0731-r16-hfcache"
require_complete_cache = true

[recipe.hardware]
gpu = "2x NVIDIA RTX PRO 6000 Blackwell Max-Q Workstation Edition"
arch = "sm_120"
vram_total_gb = 192
vram_note = "Aggregate PCIe VRAM without NVLink; exclusive TP2 only. Windows display output is on the AMD iGPU for this retry."

[recipe.serve]
engine = "vllm-r27-b12x"
allow_cuda_visible_devices_index = true
image = "voipmonitor/vllm@sha256:2605fda01797f33239af4c95ec7449505fe57d9b9de9687792f5b8273d3201a7"
entrypoint = ["/usr/local/bin/serve-ds4-flash.sh"]
model_env = "MODEL"
named_volumes = [
  "deepseek-v4-0731-r27-jit:/cache",
  "deepseek-v4-0731-r27-tmp:/container-tmp",
]
quantization = "Official 0731 mixed FP8/FP4 checkpoint; B12X W4A8 NVFP4 MoE, B12X FP8 dense GEMM, FP8 KV"
context_tokens = 262144
port = 39062
startup_timeout_seconds = 1800
served_model_name = "deepseek-v4-flash-0731-r16-b12x-dspark5-maxseq16-tp2-650k"
ipc = "host"
shm_size = "32gb"
ulimits = [
  "memlock=-1",
  "nofile=1048576:1048576",
  "stack=67108864",
]
env = [
  "CUDA_VISIBLE_DEVICES=0,1",
  "CUDA_DEVICE_ORDER=PCI_BUS_ID",
  "PYTHONHASHSEED=0",
  "VLLM_WSL2_ENABLE_PIN_MEMORY=1",
  "NCCL_IB_DISABLE=1",
  "NCCL_P2P_DISABLE=1",
  "NCCL_CUMEM_ENABLE=0",
  "NCCL_CUMEM_HOST_ENABLE=0",
  "NCCL_DEBUG=INFO",
  "PYTORCH_CUDA_ALLOC_CONF=expandable_segments:False",
  "PORT=39062",
  "MODE=dspark",
  "BACKEND=b12x-a8",
  "TP_SIZE=2",
  "DCP_SIZE=1",
  "DSPARK_DEPTH_MODE=fixed",
  "DSPARK_TOKENS=5",
  "DRAFT_SAMPLE_METHOD=probabilistic",
  "REJECTION_SAMPLE_METHOD=standard",
  "MAX_NUM_SEQS=16",
  "MAX_MODEL_LEN=262144",
  "MAX_NUM_BATCHED_TOKENS=8192",
  "GPU_MEMORY_UTILIZATION=0.975",
  "LOAD_FORMAT=instanttensor",
  "INSTANTTENSOR_BACKEND=BUFFERED",
  "KV_OFFLOADING_SIZE=0",
  "MODEL_PATH=/root/.cache/huggingface/hub/models--deepseek-ai--DeepSeek-V4-Flash-0731/snapshots/9e165c30e2704aec5d9d593cce3eebd58bbef1cb",
  "SPEC_MODEL_PATH=/root/.cache/huggingface/hub/models--deepseek-ai--DeepSeek-V4-Flash-0731/snapshots/9e165c30e2704aec5d9d593cce3eebd58bbef1cb",
  "SERVED_MODEL_NAME=deepseek-v4-flash-0731-r16-b12x-dspark5-maxseq16-tp2-650k",
]
flags = []
note = "2026-08-06 image upgrade r16 -> r27 (Gilded Gnosis, digest-pinned): picks up the official 0731 reasoning/tool prompt contract (fork #235; reasoning_effort=HIGH was a silent no-op on r16), tiered-offload lifetime fixes, InstantTensor registration fallback, and PYTHONHASHSEED=0 for stable native-L2 cache keys. Fresh r27 JIT/tmp volumes; the r16 volumes and image remain locally for rollback. Same-day earlier retune: MAX_MODEL_LEN=262144 and MAX_NUM_BATCHED_TOKENS=8192 replace the 650000/4096 envelope (a pair outside the community-certified 131072/8192 default; revalidated locally on r27). The r16 preflight at this envelope passed with GPU KV cache 272,040 tokens (1.04x concurrency at 262,144/request); r27 preflight evidence recorded separately. Prior long-context and performance evidence (local Pi protocol gate, 640K retrieval, matched 32K performance, Dark Pi, Mini Pi, and Mini OpenClaw client smokes) was recorded at 650000/4096 and does not transfer without fresh measurement. MAX_NUM_SEQS=16, model, image, TP2, DCP1, DSpark K5, WSL2 transport, 0.975 utilization, and zero CPU KV offload remain pinned. The router tier independently caps output at 32768 tokens and warns when it clamps a larger caller request. The separate 3 GiB reported-free VRAM gate is waived for this single-user exclusive deployment; measured headroom remains a caveat."

[recipe.fit]
suited = ["qualification", "speculative-decoding", "coding-agent"]
rationale = "Current single-user coding-agent Primary at the 2026-08-06 262144/8192 envelope. Long-context and concurrency fitness were demonstrated at the prior 650000/4096 envelope and await fresh measurement here."

[recipe.sources]
official = [
  "https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731/tree/9e165c30e2704aec5d9d593cce3eebd58bbef1cb",
]
community = [
  "https://github.com/local-inference-lab/rtx6kpro/blob/master/models/ds4dspark-v20.md",
  "https://github.com/local-inference-lab/rtx6kpro/blob/master/models/ds4dspark-v20-r16.md",
  "https://github.com/local-inference-lab/blackwell-llm-docker/blob/74563bb/examples/docker-compose-ds4-v20-r27.yml",
]
local = [
  "configs/deepseek-v4-flash-0731-r16-b12x-dspark5-maxseq16-128k-recipe.toml",
  "docs/findings/2026-08-02-deepseek-r16-maxseq16-igpu-evidence/preflight-128k-maxseq16-low.json",
  "docs/findings/2026-08-02-deepseek-r16-maxseq16-igpu-evidence/capacity-4k-c16-r16-low.json",
  "private operator repository: evidence/2026-08-06-deepseek-650k-262k-8192-promotion/preflight-smoke-json-tools-toolresult.json",
]