-
Notifications
You must be signed in to change notification settings - Fork 5.8k
docs(DeepSeek-V4): add h200|big verified recipes + tune H200 Pro parameters #23742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -184,6 +184,9 @@ export const DeepSeekV4Deployment = () => { | |
| "gb300|small|max-throughput", | ||
| "h200|small|cp", | ||
| "h200|small|pd-disagg", | ||
| "h200|big|low-latency", | ||
| "h200|big|balanced", | ||
| "h200|big|max-throughput", | ||
| "h200|big|pd-disagg", | ||
| "gb300|small|cp", | ||
| "gb300|big|cp", | ||
|
|
@@ -272,7 +275,9 @@ export const DeepSeekV4Deployment = () => { | |
| } | ||
| } else if (recipe === "balanced") { | ||
| if (hardware === "h200") { | ||
| recipeEnv.push("SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=256"); | ||
| recipeEnv.push(isBig | ||
| ? "SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=128" | ||
| : "SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=256"); | ||
| } else { | ||
| // Blackwell: small=1024, big=256 (allinone ternary). | ||
| recipeEnv.push(isBig | ||
|
|
@@ -281,7 +286,9 @@ export const DeepSeekV4Deployment = () => { | |
| } | ||
| } else if (recipe === "max-throughput") { | ||
| if (hardware === "h200") { | ||
| recipeEnv.push("SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=256"); | ||
| recipeEnv.push(isBig | ||
| ? "SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=128" | ||
| : "SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=256"); | ||
| } else { | ||
| recipeEnv.push(isBig | ||
| ? "SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=256" | ||
|
|
@@ -328,8 +335,8 @@ export const DeepSeekV4Deployment = () => { | |
| flags.push(" --moe-runner-backend flashinfer_mxfp4"); | ||
| } | ||
| if (hardware === "h200" && isBig) { | ||
| flags.push(" --cuda-graph-max-bs 32"); | ||
| flags.push(" --max-running-requests 64"); | ||
| flags.push(" --cuda-graph-max-bs 8"); | ||
| flags.push(" --max-running-requests 32"); | ||
| } | ||
| // MTP 3/4 | ||
| flags.push(" --speculative-algo EAGLE"); | ||
|
|
@@ -340,7 +347,7 @@ export const DeepSeekV4Deployment = () => { | |
| flags.push(" --chunked-prefill-size 4096"); | ||
| flags.push(" --disable-flashinfer-autotune"); | ||
| } | ||
| if (isBig) flags.push(" --mem-fraction-static 0.82"); | ||
| if (isBig) flags.push(" --mem-fraction-static 0.88"); | ||
|
||
| } else if (recipe === "balanced") { | ||
| // allinone balanced: TP + DP + DP-attn + DeepEP + MTP_112. | ||
| // H200 small: cg=128 max-run=128 | H200 big: cg=128 max-run=128 (same) | ||
|
|
@@ -355,12 +362,17 @@ export const DeepSeekV4Deployment = () => { | |
| flags.push(" --speculative-num-steps 1"); | ||
| flags.push(" --speculative-eagle-topk 1"); | ||
| flags.push(" --speculative-num-draft-tokens 2"); | ||
| if (isBig && hardware === "gb200") { | ||
| if (hardware === "h200" && isBig) { | ||
| flags.push(" --mem-fraction-static 0.88"); | ||
| } else if (isBig && hardware === "gb200") { | ||
| flags.push(" --mem-fraction-static 0.78"); | ||
| } else if (isBig) { | ||
| flags.push(" --mem-fraction-static 0.82"); | ||
| } | ||
| if (hardware === "h200") { | ||
| if (hardware === "h200" && isBig) { | ||
| flags.push(" --cuda-graph-max-bs 8"); | ||
| flags.push(" --max-running-requests 32"); | ||
| } else if (hardware === "h200") { | ||
|
Comment on lines
+372
to
+375
|
||
| flags.push(" --cuda-graph-max-bs 128"); | ||
| flags.push(" --max-running-requests 128"); | ||
| } else if (isBig && hardware === "b200") { | ||
|
|
@@ -386,7 +398,9 @@ export const DeepSeekV4Deployment = () => { | |
| flags.push(" --enable-dp-attention"); | ||
| if (multinode) flags.push(...multiNodeFlags(nnodes)); | ||
| flags.push(" --moe-a2a-backend deepep"); | ||
| if (isBig && hardware === "gb200") { | ||
| if (hardware === "h200" && isBig) { | ||
| flags.push(" --mem-fraction-static 0.88"); | ||
| } else if (isBig && hardware === "gb200") { | ||
| flags.push(" --mem-fraction-static 0.78"); | ||
| } else if (isBig) { | ||
| flags.push(" --mem-fraction-static 0.82"); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The surrounding allinone summary comment for H200 big low-latency still mentions
cg=32 max-run=64(andmem-frac 0.82), but the actual flags now emit--cuda-graph-max-bs 8and--max-running-requests 32(andmem-frac 0.88). Please update the comment to match the new tuned values so the snippet remains self-consistent.