Skip to content

[Cookbook] Add DeepSeek-V4-Pro-0813 (Pro Official) serving recipes - #34809

Merged
Fridge003 merged 5 commits into
mainfrom
cookbook/dsv4-pro-0813
Aug 14, 2026
Merged

Fridge003 merged 5 commits into
mainfrom
cookbook/dsv4-pro-0813

Conversation

@zijiexia

@zijiexia zijiexia commented Aug 14, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

deepseek-ai/DeepSeek-V4-Pro-0813 is not in the cookbook yet. This adds it as a pro-official variant with the three serving strategies, verified end-to-end on 4×GB300, plus derived B300 (TP=8) cells marked not verified.

The 0813 checkpoint bundles a DSpark draft head, so the low-latency recipe uses --speculative-algorithm DSPARK. This matters because EAGLE fails silently on this checkpoint: it loads, serves, and returns correct output, but binds a draft head that accepts nothing — every decode batch logs accept len: 1.00, accept rate: 0.00, so you pay the draft cost for zero speedup. The page carries a warning for that.

Modifications

  • deepseek-v4.jsx — new pro-official variant + pro-official|fp4 model name; 3 GB300 cells (verified) and 3 B300 cells (not verified, derived by scaling TP/DP to the 8-GPU node).
  • deepseek-v4-benchmarks.jsx — measured numbers for the three GB300 cells.
  • DeepSeek-V4.mdx — variant table row, resource link, DSpark notes extended to 0813, and the EAGLE warning.

Benchmark

4×GB300, bench_serving, random 8192 in / 1024 out (--random-range-ratio 1.0), 64 warmup requests, cache flushed per point. tok/s/GPU is total (input + output) ÷ elapsed ÷ 4; TTFT/TPOT are means. GSM8K is 1319 examples at temperature 0 via sgl-eval.

Strategy Backend Conc. TTFT TPOT tok/s/GPU GSM8K
Low-Latency DSpark, TP=4 1 0.35 s 3.32 ms 615 96.13
16 2.85 s 9.35 ms 2,965
Balanced DeepEP, TP=4 DP=4 64 6.64 s 37.42 ms 3,281 96.44
256 19.71 s 76.80 ms 5,996
High-Throughput MegaMoE, TP=4 DP=4 256 10.15 s 75.29 ms 6,758 96.66
512 34.09 s 120.69 ms 7,475

The three strategies form a throughput-vs-interactivity frontier — none wins both ends.

Full frontier — interactivity (1000 / TPOT) vs throughput per GPU
Strategy Conc. Interactivity (tok/s/user) Throughput (tok/s/GPU)
Low-Latency 1 301.2 615
2 266.0 1,016
4 202.4 1,516
8 149.5 2,169
16 107.0 2,965
32 67.0 2,908
Balanced 32 34.2 2,162
64 26.7 3,281
128 18.7 4,559
256 13.0 5,996
512 12.1 5,904
High-Throughput 256 13.3 6,758
512 8.3 7,475
1024 6.1 6,755

Each strategy owns a region: Low-Latency is the only one that reaches above ~35 tok/s/user, and High-Throughput tops out 25% above Balanced's peak. Both non-speculative strategies regress past their knee — Balanced at 512 and High-Throughput at 1024 — which is why the cookbook cells stop where they do.

Two flag behaviors worth calling out, both encoded in the cells:

  • High-Throughput needs --mem-fraction-static 0.9, --cuda-graph-max-bs-decode 128 and --max-running-requests 512 together. Without them MegaMoE's workspace leaves the KV pool at roughly a third (490,752 vs 1,187,840 tokens/rank), concurrency stalls well below the slot budget, and throughput lands below the Balanced recipe rather than above it.
  • --max-running-requests is server-wide and floor-divided by attn_dp_size. With --dp 4, 512 yields 128 running slots per rank. The derived B300 cells double it to 1024 to keep 128/rank at --dp 8.

One caveat, also noted on the page and in the data file: the Low-Latency speed rows were measured with SGLANG_SIMULATE_ACC_LEN=4, which pins the DSpark accept length at exactly 4.00, while the shipped recipe earns 4.678 — so those two rows read slightly conservative. The GSM8K figure for that cell is from the shipped command.

Also fixed here (pre-existing, whole page)

The shared benchmarkCommands.speed template omitted --random-range-ratio, which defaults to 0.0 and samples input/output lengths uniformly instead of holding them fixed. Measured on 4xGB300 for the 8192/1024 shape this page advertises:

--random-range-ratio input tokens output tokens
0.0 (what the template emitted) min 714 / max 8135 / mean 5102 mean 570
1.0 8192 exactly 1024 exactly

So the ⚡ Reproduce modal handed you a materially lighter workload than the one the table was measured under, and could not reproduce it. The template now passes --random-range-ratio 1.0. This affects every DeepSeek-V4 cell, not only the ones added here — all 102 workload rows on this page use dataset random, which is exactly what the flag applies to. Existing cells' numbers are untouched by this PR; if any of them were measured at the default ratio, their rows are the ones to re-check.

Each new benchmark row also records the num_prompts actually used (5 x concurrency), so Reproduce emits the exact command the numbers came from rather than the engine's max(c*2, 200) fallback.

Hardware coverage

pro-official mirrors every verified Pro fp4 cell. Each one keeps its source cell's tuned flags and env byte-for-byte; only speculative decoding is re-fitted to the bundled DSpark head, following the same rule flash-official already uses:

hw / nodes low-latency balanced high-throughput
GB300 / single DSPARK target-only target-only
B200, B300 / single DSPARK target-only target-only
GB200 / 2-node DSPARK target-only target-only
H200 / single DSPARK DSPARK target-only
H100 / 2-node DSPARK DSPARK target-only
MI355X / single target-only target-only target-only
  • DSpark on low-latency wherever the GPU is CUDA. flash-official already ships DSPARK low-latency cells on B200, B300, GB200, GB300, H200 and H100.
  • balanced keeps DSPARK only where DP attention is off (H200, H100) — the two are mutually exclusive on the current release. flash-official's H100 balanced cell is DSPARK for the same reason.
  • MI355X is target-only throughout: DSpark requires CUDA, and EAGLE on this checkpoint binds a draft head that accepts nothing. This is a real capability loss relative to the Pro cells, forced by the checkpoint.
  • EAGLE is dropped from balanced too, not just low-latency — every Pro balanced cell carries EAGLE 1-1-2, which is exactly the silent-no-op path on 0813.
  • NVFP4 and FP8 are not mirrored. nvidia/DeepSeek-V4-Pro-0813-NVFP4 and sgl-project/DeepSeek-V4-Pro-0813-FP8 do not exist (HTTP 401, while their non-0813 counterparts return 200), and flash-official likewise carries neither.

Only the GB300 cells are marked verified and carry benchmarks — those are the ones measured end-to-end. Everything else is yellow until someone runs it on that hardware. The one step beyond existing precedent is nodes: multi-2 with DSPARK on GB200 and H100: the GPUs themselves are precedented by flash-official, but all of its cells are single-node, so the 2-node combination has not been exercised.

Checklist

  • Format the code and execute the pre-commit hooks
  • Verified on real hardware (4×GB300); B300 cells are explicitly marked not verified
  • Benchmark numbers and accuracy included in deepseek-v4-benchmarks.jsx

🤖 Generated with Claude Code


CI States

Latest PR Test (Base): ✅ Run #31773562836
Latest PR Test (Extra): ❌ Run #31773562685

Adds the 0813 Pro refresh as a `pro-official` variant with low-latency /
balanced / high-throughput recipes verified on 4xGB300, plus derived
B300 (TP=8) cells marked not-verified.

The 0813 checkpoint bundles a DSpark draft head, so the low-latency
recipe uses `--speculative-algorithm DSPARK`. EAGLE loads and serves on
this checkpoint without raising, but accepts no draft tokens
(`accept len: 1.00, accept rate: 0.00`), so the page carries a warning.

Measured on 4xGB300, random 8192/1024:

  balanced          conc 256  5,996 tok/s/GPU  TTFT 19.7s  GSM8K 96.44
  high-throughput   conc 512  7,475 tok/s/GPU  TTFT 34.1s  GSM8K 96.66

The high-throughput recipe needs `--mem-fraction-static 0.9`,
`--cuda-graph-max-bs-decode 128` and `--max-running-requests 512`
together; without them MegaMoE's workspace leaves roughly a third of the
KV pool and throughput lands below the balanced recipe.

Low-latency carries GSM8K only: its speed sweep used the
SGLANG_SIMULATE_ACC_LEN benchmark knob, which does not describe the
shipped command, so those numbers are deliberately not published.

Co-Authored-By: Claude Opus 5 <[email protected]>
@mintlify

mintlify Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
lmsysorg 🟢 Ready View Preview Aug 14, 2026, 4:36 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@Fridge003

Copy link
Copy Markdown
Collaborator

Can we add DSPark in the Speculative row of playground (including the parameter --speculative-dspark-block-size)

The 0813 variant bundles a DSpark head like Flash Official (0731), but the
playground gates were keyed to `flash-official` only, so on `pro-official`:

  - the two EAGLE/MTP presets were still offered, which is the exact path
    that binds a draft head accepting nothing on this checkpoint; and
  - the "DSpark Proposed Draft Tokens" slider
    (`--speculative-dspark-block-size`) never appeared.

Hide both EAGLE presets for `pro-official` and extend the slider's showWhen.
The DSpark row itself already resolved correctly — `hide` is exact array
membership, so `["flash","pro"]` does not catch `pro-official`.

Also record the actual `num_prompts` per benchmark row (5x concurrency) so
the Reproduce modal emits the command the numbers came from instead of the
`max(c*2, 200)` fallback, and note that both checkpoints resolve to gamma=5.

Co-Authored-By: Claude Opus 5 <[email protected]>
…command

The shared speed template omitted --random-range-ratio, which defaults to
0.0 — that samples input/output lengths uniformly rather than holding them
fixed. Measured on 4xGB300 for the 8192/1024 shape the page advertises:

  range_ratio 0.0  ->  input min 714 / max 8135 / mean 5102, output mean 570
  range_ratio 1.0  ->  input 8192 exactly,          output 1024 exactly

So the Reproduce modal emitted a materially lighter workload than the one
the numbers were measured under, and could not reproduce them.

This is a pre-existing defect on the shared template, so the fix applies to
every DeepSeek-V4 cell, not just the ones added in this PR. All 102 workload
rows on this page use dataset "random", which is exactly what the flag
applies to.

Co-Authored-By: Claude Opus 5 <[email protected]>
@Fridge003

Copy link
Copy Markdown
Collaborator
Screenshot 2026-08-13 at 10 27 31 PM The version here doesn't look correct (from GB300 + Pro official benchmark part) Maybe you can mark the commit hash on main branch instead of showing the 0.0.0dev1 thing

@Fridge003

Copy link
Copy Markdown
Collaborator

Please add B200/GB200/H200 commands for pro official.
Can be copied from pro review

Mirrors every verified Pro fp4 cell (B200, B300, GB200 2-node, H200,
H100 2-node, MI355X) onto pro-official, keeping each source cell's tuned
flags and env byte-for-byte and re-fitting only speculative decoding to
the bundled DSpark head, following the flash / flash-official precedent:

  low-latency      DSPARK on CUDA hardware
  balanced         DSPARK where DP attention is off (H200, H100),
                   otherwise target-only — DSpark and DP attention are
                   mutually exclusive on the current release
  high-throughput  target-only
  MI355X           target-only throughout; DSpark requires CUDA

EAGLE is dropped everywhere, not just on low-latency: the Pro balanced
cells all carry EAGLE 1-1-2, which on this checkpoint binds a draft head
that accepts nothing.

NVFP4 and FP8 are not mirrored — nvidia/DeepSeek-V4-Pro-0813-NVFP4 and
sgl-project/DeepSeek-V4-Pro-0813-FP8 do not exist, matching how
flash-official carries neither.

The earlier hand-scaled B300 cells are replaced by the tuned B300 Pro
config. All 18 new cells are marked not verified; the GB300 cells stay
verified and keep their measured benchmarks.

Co-Authored-By: Claude Opus 5 <[email protected]>
Replaces the raw `0.0.0.dev1+g273d978be` build stamp with `main @
273d978`, matching the `main @ <hash>` form already used elsewhere in
the cookbook. Same build either way; the commit is the reproducible
anchor, and the branch name makes clear it is a post-v0.5.17 nightly
rather than a release.

Co-Authored-By: Claude Opus 5 <[email protected]>

@Fridge003 Fridge003 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job

@Fridge003
Fridge003 merged commit 4639819 into main Aug 14, 2026
95 of 99 checks passed
@Fridge003
Fridge003 deleted the cookbook/dsv4-pro-0813 branch August 14, 2026 05:53
JustinTong0323 added a commit that referenced this pull request Aug 14, 2026
…813-dspark

Yields to zijiexia's merged #34809 baseline. On top this branch keeps:
(1) B200 pro-official verified=true with the full GSM8K/AIME25/GPQA
accuracy set our B200 run produced; (2) pro-official entries in
defaultAccuracy so every cell renders accuracy; (3) accuracy reproduce
commands for gpqa/aime25 on pro-official; (4) Playground polish (EAGLE
hidden on pro-official, DSpark hidden on AMD hardware, TP/DP-Attn/EP 1,2
hides extended, block-size slider for both official variants); (5) the
b200 pro-official benchmarks entry.
JustinTong0323 added a commit that referenced this pull request Aug 14, 2026
…uce commands

On top of #34809 (which seeded the pro-official variant and GB300
numbers): flip the B200 low-latency cell to verified with the accuracy
set our B200 run produced (GSM8K 96.13 / AIME25 98.1 / GPQA 89.7, all
100% stop-rate), give pro-official its defaultAccuracy entry so every
cell's benchmark card renders, add the gpqa/aime25 sgl-eval reproduce
commands, and restore the playground polish (EAGLE hidden on
pro-official, DSpark hidden on AMD hardware, TP/DP-Attn/EP 1,2 hides
extended to pro-official, block-size slider for both official variants).
saturn-acc pushed a commit to saturn-acc/sglang that referenced this pull request Aug 16, 2026
Atituiset pushed a commit to Atituiset/sglang that referenced this pull request Sep 10, 2026

This branch was successfully deployed

1 active deployment
staging - docs — af5fa137 Deployed Aug 14, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deepseek documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants