Skip to content

[ROCm][Docs] DeepSeek-V4.1-Flash: MI355X AgentX TP and DP presets from InferenceX #5195 - #69752

Merged
ivanium merged 2 commits into
vllm-project:mainfrom
seungrokj:srok/recipe-dsv41f-mi355x-8a13616
Nov 24, 2026
Merged

ivanium merged 2 commits into
vllm-project:mainfrom
seungrokj:srok/recipe-dsv41f-mi355x-8a13616

Conversation

@seungrokj

Copy link
Copy Markdown
Contributor

Overview

Updates the MI355X AgentX presets in recipes/models/deepseek-ai/DeepSeek-V4.1-Flash.yaml to the settings of InferenceX #5195 (still open, source revision 66f2a2d), on its image vllm/vllm-openai-rocm:deepseek-v41-flash-8a13616@sha256:cea337b2…. It follows the previous MI355X recipe PR #67378, and regroups the presets in the format of #67600 (Kimi-K3.1-Pro): one preset per strategy, with one point per benchmark concurrency.

Preset Strategy Points
mi355x_agentx, AgentX TP single_node_tp 1 (TP8), 1 (TP4), 2 (TP4), 1 (TP2) … 64 (TP2)
mi355x_agentx_dp, AgentX DP (new key) single_node_dep 128 (DP2), 256 (DP2, UMBP), 384 (DP2, UMBP), 256 (DEP8), 512 (DEP8), 1024 (DEP8)

A preset cannot mix strategies, so the TP and DP points live in two presets. mi355x_agentx_tp8 becomes the 1 (TP8) point of AgentX TP, and mi355x_agentx_dp2_umbp becomes the DP2 points of AgentX DP. Nothing else in the repository references the two removed keys.

Claims

  • Each point's rendered vllm serve command matches its [Usage]: how to use the gpu_cache_usage_perc as a custom metric in k8s HPA? #5195 override flag for flag:
    • TP points: the same sequence caps, prefill budgets, graph sizes and Engram placement as before, and mono decode on.
    • DP2 points: unchanged from [ROCm][Docs] Add DeepSeek-V4.1-Flash MI355X DP2 AgentX preset with UMBP KV offload #67378 apart from the image and kernel config.
    • New DEP8 points:
      • --data-parallel-size 8 with expert parallelism and --all2all-backend mori.
      • --moe-backend aiter_mega_moe.
      • --engram-config '{"cpu_offload":false,"embedding_across_dp":true}'.
      • --max-num-seqs 128 (160 at 1024), --max-num-batched-tokens 32768 and --long-prefill-token-threshold 8192.
      • The prefill delayer: --prefill-schedule-policy delayer, interval 96 and --prefill-max-wait-ms 5000.
      • --kernel-config '{"amd_kernels":{"enabled":true,"expert_perm":"expert_plan_S49.npz"}}'.
      • MORI_SHMEM_HEAP_SIZE=64G, VLLM_RPC_TIMEOUT=600000 and VLLM_RANDOMIZE_DP_DUMMY_INPUTS=1.
  • Fix: the TP points now set VLLM_ROCM_QUICK_REDUCE_QUANTIZATION=NONE, as the lane does. They previously inherited INT4 from the MI355X single_node_tp profile, so the old AgentX TP2 and TP8 presets rendered INT4 QuickReduce, which the lane does not run.
  • amd_kernels routes: the image turns every route on by default, and only the DEP8 points use them. Every other point passes --kernel-config '{"amd_kernels":{"enabled":false}}', as [Usage]: how to use the gpu_cache_usage_perc as a custom metric in k8s HPA? #5195 does.
  • Runbooks record the results of InferenceX run 45218564620, the router settings the builder cannot express, and the UMBP pool sizing.

Validation

  • Renderer: node scripts/validate-source.mjs --source vllm --dir <this branch>/recipes passes (✓ vllm recipes … are valid against the renderer). test-guide-html, test-presets and test-schema pass with 50 of 50 tests, and typos is clean.

  • JSON API diff against main: the changes are confined to the mi355x_agentx* presets, the guide and date_updated. The baseline renderings of DeepSeek-V4.1-Flash, -1017 and the Eco-Tech W4A8 variant are unchanged.

  • Script check: the per-point argv and env of the built preset JSON were compared against [Usage]: how to use the gpu_cache_usage_perc as a custom metric in k8s HPA? #5195's agentic.yaml by script. Every flag matches. The remaining differences have no functional effect:

    • The UMBP socket path differs because of a mount difference.
    • InferenceX additionally sets --served-model-name, --max-model-len 1048576 (the model default), --disable-uvicorn-access-log and PYTHONUNBUFFERED.
    • InferenceX spells VLLM_ROCM_USE_AITER_TRITON_SPARSE_MLA as True.
  • Server logs from the run confirm the configuration:

    • The TP8 log shows amd_kernels routes: none and mono decode on for the backbone and the draft.
    • The DEP8 log lists every amd_kernels route, the S49 expert plan (49 slots per rank) and KV cache sizing keeps 20.0 GiB free for serving transients.
  • InferenceX run 45218564620 ran at 47e883bb9. Its serving settings equal 66f2a2d, which only moved GPU counts to the gpus-per-worker form. Each point is a single run with synthetic golden acceptance (3.51).

    Point Interactivity p50 / p90 (tok/s/user) Total tok/s/GPU
    1 (TP8) 812.0 / 789.0 4,050
    1 (TP4) 766.9 / 745.9 8,053
    2 (TP4) 763.6 / 736.3 8,391
    1 (TP2) 606.7 / 593.6 15,022
    2 (TP2) 607.0 / 591.1 15,069
    4 (TP2) 607.7 / 588.9 20,008
    8 (TP2) 495.1 / 459.0 32,663
    16 (TP2) 379.4 / 310.9 57,913
    32 (TP2) 238.6 / 192.7 112,868
    64 (TP2) 105.4 / 70.4 193,353
    128 (DP2) 69.1 / 44.3 266,589
    256 (DP2, UMBP) 35.0 / 24.5 407,378
    384 (DP2, UMBP) 20.0 / 15.5 421,803
    256 (DEP8) 235.5 / 200.2 206,961
    512 (DEP8) 163.8 / 101.8 353,736
    1024 (DEP8) 57.3 / 32.7 515,633

    TP2 c64 failed its first attempt with no successful requests and passed on the second, which the table reports. GSM8K strict over 1319 questions, with block verification, two runs each:

    • TP2 c64: 0.975 / 0.975
    • DP2 UMBP c384: 0.973 / 0.976
    • DEP8 c1024: 0.972 / 0.975

Details


Pull Request Checklist
  • I used vLLM's /pr-checklist skill. (Mandatory for agents, optional for humans).

  • AI assistance was used during the creation of this PR.

  • Design Fit: Minimizes impact on core components, reuses existing functionality, and justifies added complexity. (Recipe YAML only; reuses the TP and DEP strategies, the DEP router companion and the preset delta fields.)

  • Testing and Validation: Validates the change and ensures any added tests are meaningful and reliable, with CI coverage or documented CI resource constraints and validation performed outside CI.

  • Code Quality and Style: Keeps code and comments clear and concise, and updates relevant documentation and examples.

  • Pull Request Contents: Includes a brief summary and relevant links, supports claims with evidence, explains root causes and implementation trade-offs, and follows the contributing guide.

AI assistance: drafted with claude-opus-5-5 (Claude Opus 5.5) via Claude Code, which read the recipe, #5195 and the renderer, wrote the presets, ran the validation and wrote this description.

🤖 Generated with Claude Code

…m InferenceX vllm-project#5195

Restate the MI355X AgentX presets from SemiAnalysisAI/InferenceX#5195 on
the vllm/vllm-openai-rocm:deepseek-v41-flash-8a13616 image, one point per
benchmark concurrency under two presets:

- AgentX TP (mi355x_agentx, single_node_tp): TP8 at concurrency 1, TP4
  at 1 and 2, TP2 at 1 to 64. Absorbs the former mi355x_agentx_tp8.
- AgentX DP (mi355x_agentx_dp, single_node_dep): DP2 at 128, DP2 with
  UMBP at 256 and 384, and new DEP8 points at 256, 512 and 1024 (MoRI
  all-to-all, AITER MegaMoE, amd_kernels routes with the S49 expert plan,
  prefill delayer). Replaces mi355x_agentx_dp2_umbp.

The TP points now set VLLM_ROCM_QUICK_REDUCE_QUANTIZATION=NONE, as the
lane does, instead of inheriting the MI355X TP profile's INT4, and every
non-DEP8 point turns the image's amd_kernels routes off. Runbooks carry
the results of InferenceX run 45218564620.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: seungrokj <seungrok.jung@amd.com>
@seungrokj
seungrokj requested a review from esmeetu as a code owner November 24, 2026 21:59

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@mergify

mergify Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

@mergify mergify Bot added recipe deepseek Related to DeepSeek models rocm Related to AMD ROCm labels Nov 24, 2026
@github-project-automation github-project-automation Bot moved this to Todo in AMD Nov 24, 2026
@seungrokj

Copy link
Copy Markdown
Contributor Author

/ci run

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #105528 for commit 8663e5f05206.

ℹ️ This PR is 2 commits behind upstream main. Merged upstream main into this branch as 8663e5f05206 before starting CI. Pull the branch before pushing more changes.

@ivanium
ivanium merged commit 97245ef into vllm-project:main Nov 24, 2026
13 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in AMD Nov 24, 2026
vllm-recipes-publisher Bot pushed a commit to vllm-project/recipes that referenced this pull request Nov 24, 2026
vllm-project/vllm@main:recipes 32e14dfc397f → 97245ef4e576 [latest.vllm]
vllm-project/vllm@32e14df...97245ef

Commits:
- vllm-project/vllm@97245ef4e576 [ROCm][Docs] DeepSeek-V4.1-Flash: MI355X AgentX TP and DP presets from InferenceX #5195 (vllm-project/vllm#69752)

Recipes:
- deepseek-ai/DeepSeek-V4.1-Flash (modified): https://recipes.vllm.ai/deepseek-ai/DeepSeek-V4.1-Flash

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit to zexplorerhj/recipes that referenced this pull request Nov 25, 2026
…mni@649e7b3b9a5b

vllm-project/vllm@main:recipes ba4b266dfadb → ddcf64b36fa9 [latest.vllm]
vllm-project/vllm@ba4b266...ddcf64b

Commits:
- vllm-project/vllm@04f0149d472c [Bugfix][Rust Frontend] Bump fastokens to 0.3.6 (vllm-project/vllm#66327)
- vllm-project/vllm@97245ef4e576 [ROCm][Docs] DeepSeek-V4.1-Flash: MI355X AgentX TP and DP presets from InferenceX #5195 (vllm-project/vllm#69752)
- vllm-project/vllm@32e14dfc397f [Recipe] Kimi-K3.1-Pro: MI355X kimi-k31-020490a image (amd_kernels bridge) and FlyDSL draft attention, align with InferenceX#5196 (vllm-project/vllm#69749)

Recipes:
- deepseek-ai/DeepSeek-V4.1-Flash (modified): https://recipes.vllm.ai/deepseek-ai/DeepSeek-V4.1-Flash
- moonshotai/Kimi-K3.1-Pro (modified): https://recipes.vllm.ai/moonshotai/Kimi-K3.1-Pro
- nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16 (modified): https://recipes.vllm.ai/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16

vllm-project/vllm-omni@main:recipes be17481fe141 → 649e7b3b9a5b [latest.vllm-omni]
vllm-project/vllm-omni@be17481...649e7b3

Commits:
- vllm-project/vllm-omni@341b3391dbee [Model] Support Ming-3.0-TTS dense 0.5B checkpoint (vllm-project/vllm-omni#10977)

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit to wombat/recipes that referenced this pull request Nov 25, 2026
…mni@649e7b3b9a5b

vllm-project/vllm@main:recipes b90597b7581c → ddcf64b36fa9 [latest.vllm]
vllm-project/vllm@b90597b...ddcf64b

Commits:
- vllm-project/vllm@04f0149d472c [Bugfix][Rust Frontend] Bump fastokens to 0.3.6 (vllm-project/vllm#66327)
- vllm-project/vllm@97245ef4e576 [ROCm][Docs] DeepSeek-V4.1-Flash: MI355X AgentX TP and DP presets from InferenceX #5195 (vllm-project/vllm#69752)
- vllm-project/vllm@32e14dfc397f [Recipe] Kimi-K3.1-Pro: MI355X kimi-k31-020490a image (amd_kernels bridge) and FlyDSL draft attention, align with InferenceX#5196 (vllm-project/vllm#69749)

Recipes:
- deepseek-ai/DeepSeek-V4.1-Flash (modified): https://recipes.vllm.ai/deepseek-ai/DeepSeek-V4.1-Flash
- moonshotai/Kimi-K3.1-Pro (modified): https://recipes.vllm.ai/moonshotai/Kimi-K3.1-Pro
- nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16 (modified): https://recipes.vllm.ai/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16

vllm-project/vllm-omni@main:recipes be17481fe141 → 649e7b3b9a5b [latest.vllm-omni]
vllm-project/vllm-omni@be17481...649e7b3

Commits:
- vllm-project/vllm-omni@341b3391dbee [Model] Support Ming-3.0-TTS dense 0.5B checkpoint (vllm-project/vllm-omni#10977)

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

This branch was previously deployed

1 inactive deployment
recipes-preview — 8663e5f0 Deployed Nov 24, 2026 by ivanium via dispatch #937
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deepseek Related to DeepSeek models recipe rocm Related to AMD ROCm

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants