Skip to content

[ROCm] Keep GLM-5.2 on MRV1 and disable default breakable cudagraph - #53155

Merged
AndreasKaratzas merged 3 commits into
vllm-project:mainfrom
ROCm:rocm-glm52-mrv1-exclude
Sep 1, 2026
Merged

AndreasKaratzas merged 3 commits into
vllm-project:mainfrom
ROCm:rocm-glm52-mrv1-exclude

Conversation

@Rohan138

@Rohan138 Rohan138 commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

[ROCm] Keep GLM-5.2 on MRV1 and disable default breakable cudagraph

Purpose

#52861 routed the DSA models to the V2 model runner (MRV2) and breakable CUDA
graphs. On ROCm it excluded DeepseekV32ForCausalLM / DeepseekV4ForCausalLM
from MRV2 (the TODO(rocm) notes these are "unsupported by MRV2 or slower with
MRV2 on AMD GPUs") but missed GlmMoeDsaForCausalLM. GLM-5.2 (both FP8 and
MXFP4) thus became the only DSA model defaulting to MRV2 + breakable cudagraph on
ROCm, which regresses decode latency on gfx950 (MI355X) by ~30–37% TPOT at
batch 1 in nightly perf-eval.

This PR, ROCm-only:

  • adds GlmMoeDsaForCausalLM to the MRV2 exclusion so GLM-5.2 stays on the
    compiled MRV1 path like the other DSA models;
  • stops defaulting any architecture to breakable CUDA graphs on ROCm, where it
    currently regresses performance. Opt-in via VLLM_USE_BREAKABLE_CUDAGRAPH=1
    is unchanged.

No effect on non-ROCm platforms.

Not a duplicate

gh pr list --repo vllm-project/vllm --state open --search "52861 in:body" and a
search for the GLM/ROCm model-runner area returned no open PR addressing this;
the only related open PR (#41834) is NVIDIA SM12x DeepSeek-V4 enablement.

Perf results

GLM-5.2-MXFP4, gfx950 (MI355X), TP8, --load-format dummy, in/out 1024,
vllm bench serve --dataset-name random --max-concurrency 1 --num-prompts 10 --ignore-eos (warmup pass discarded), median TPOT:

build Median TPOT
good nightly (5a4c8d9, pre-#52861-in-range) 13.47 ms
bad nightly (d626108) 17.74 ms (+31.7%)
bad, VLLM_USE_BREAKABLE_CUDAGRAPH=0 only (still MRV2) 16.52 ms
bad + this PR (MRV1 + no default breakable) 13.46 ms (matches good baseline)

Decomposition: MRV2 accounts for ~3.0 ms of the ~4.3 ms regression and breakable
cudagraph for ~1.2 ms, so both changes are needed to fully recover; disabling
breakable alone (env workaround) leaves ~23% on the table.

Testing

  • Perf: commands and numbers above; the Using V2 Model Runner /
    Breakable CUDA graph enabled startup logs are absent with this PR.
  • Unit: tests/test_config.py covers the ROCm MRV2 / breakable defaults; the
    submitter should run pytest tests/test_config.py -k "rocm or dsa or breakable"
    in a built env (not runnable in the perf container used here).

AI assistance

This change was prepared with AI assistance (Claude) and reviewed by the
submitter.

@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 added glm nvidia rocm Related to AMD ROCm labels Aug 20, 2026
@github-project-automation github-project-automation Bot moved this to Todo in AMD Aug 20, 2026
@Rohan138

Copy link
Copy Markdown
Collaborator Author

cc @tjtanaa @dllehr-amd

@github-project-automation github-project-automation Bot moved this to Ready in NVIDIA Aug 24, 2026
@Rohan138 Rohan138 added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 24, 2026
@AndreasKaratzas

Copy link
Copy Markdown
Member

/ci run

@github-actions

Copy link
Copy Markdown

@Rohan138, CI is now available for this PR.

  • /ci run starts upstream CI; /amd-ci run starts AMD CI only.
  • /ci retry retries failed jobs in the CI build for the current PR head. If the current head has no CI build, it starts a new CI build for the current head containing only jobs that failed in the latest earlier CI build for this PR.
  • /amd-ci retry retries failed jobs in AMD CI for the current PR head. Use /amd-ci run when the current head has no AMD CI build.
  • /ci cancel cancels scheduled or running CI builds for this PR branch; /amd-ci cancel does the same for AMD CI only.

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #85387 for commit 4004208aafba.

@mawong-amd

Copy link
Copy Markdown
Contributor

Should revisit the perf numbers here after #53712, and maybe also let DSV4 go back on MRV2

@AndreasKaratzas

Copy link
Copy Markdown
Member

/ci run

@AndreasKaratzas

Copy link
Copy Markdown
Member

/amd-ci run

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #85730 for commit ee0063441df8.

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite AMD CI #12389 for commit ee0063441df8.

@mergify

mergify Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @Rohan138.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase label Aug 27, 2026
… cudagraph

vLLM vllm-project#52861 routed the DSA architectures onto the non-compiled V2 model
runner / breakable-cudagraph path, but GlmMoeDsaForCausalLM was left out of
the ROCm carve-out, flipping GLM-5.2 to MRV2 + breakable cudagraphs and
regressing batch-1 decode TPOT by ~30-37% on gfx950 (FP8 and MXFP4).

Add GlmMoeDsaForCausalLM to ROCM_DEFAULT_MRV1_ARCHITECTURES so GLM-5.2 stays
on the compiled MRV1 path, and default breakable cudagraphs off entirely on
ROCm (they regress performance today); VLLM_USE_BREAKABLE_CUDAGRAPH=1 still
forces them on.

Signed-off-by: Rohan Potdar <rohan.potdar@amd.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@Rohan138
Rohan138 force-pushed the rocm-glm52-mrv1-exclude branch from ee00634 to d8602dd Compare August 28, 2026 19:33
@mergify mergify Bot removed the needs-rebase label Aug 28, 2026
@Rohan138

Copy link
Copy Markdown
Collaborator Author

/ci run

@Rohan138

Copy link
Copy Markdown
Collaborator Author

/amd-ci retry

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #86044 for commit d8602dd360db.

@github-actions

Copy link
Copy Markdown

✅ No failed, timed-out, or expired jobs need retrying: https://buildkite.com/vllm/amd-ci/builds/12427

@Rohan138

Copy link
Copy Markdown
Collaborator Author

/ci retry

@Rohan138

Copy link
Copy Markdown
Collaborator Author

/amd-ci retry

@github-actions

Copy link
Copy Markdown

✅ The previous CI build is still running: https://buildkite.com/vllm/ci/builds/86044

@github-actions

Copy link
Copy Markdown

✅ No failed, timed-out, or expired jobs need retrying: https://buildkite.com/vllm/amd-ci/builds/12478

@AndreasKaratzas

Copy link
Copy Markdown
Member

/ci run

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #86417 for commit 5037b989070a.

@Rohan138

Copy link
Copy Markdown
Collaborator Author

/ci run

@github-actions

Copy link
Copy Markdown

✅ CI is already running for this commit: https://buildkite.com/vllm/ci/builds/86417

@Rohan138

Copy link
Copy Markdown
Collaborator Author

/amd-ci run

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite AMD CI #12493 for commit 5037b989070a.

@AndreasKaratzas
AndreasKaratzas merged commit ce2e343 into vllm-project:main Sep 1, 2026
96 checks passed
@github-project-automation github-project-automation Bot moved this from Ready to Done in NVIDIA Sep 1, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in AMD Sep 1, 2026
@AndreasKaratzas
AndreasKaratzas deleted the rocm-glm52-mrv1-exclude branch September 1, 2026 04:18
am-cohere pushed a commit to am-cohere/vllm that referenced this pull request Sep 1, 2026
…llm-project#53155)

Signed-off-by: Rohan Potdar <rohan.potdar@amd.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
mylibrar pushed a commit to tanyuqian/vllm that referenced this pull request Sep 3, 2026
…llm-project#53155)

Signed-off-by: Rohan Potdar <rohan.potdar@amd.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
sheralskumar pushed a commit to sheralskumar/vllm that referenced this pull request Sep 8, 2026
…llm-project#53155)

Signed-off-by: Rohan Potdar <rohan.potdar@amd.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
D-G-Dimitrov pushed a commit to D-G-Dimitrov/vllm that referenced this pull request Sep 9, 2026
…llm-project#53155)

Signed-off-by: Rohan Potdar <rohan.potdar@amd.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit ce2e343)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

glm nvidia ready ONLY add when PR is ready to merge/full CI is needed rocm Related to AMD ROCm

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants