From aafe04b41e5c3d27aa584c2d4a6592904e5993e4 Mon Sep 17 00:00:00 2001 From: Ankit Kumar Jha Date: Fri, 20 Nov 2026 17:19:16 +0530 Subject: [PATCH 1/4] Fix ROCm breakable cudagraph defaults for GLM DSA Signed-off-by: Ankit Kumar Jha --- tests/test_config.py | 8 ++++---- vllm/config/vllm.py | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/test_config.py b/tests/test_config.py index 91152aca1024..57d8c9fd0cdd 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1044,8 +1044,8 @@ def test_rocm_keeps_compiled_deepseek_defaults(monkeypatch): try: breakable_architectures = default_breakable_cudagraph_architectures() assert "DeepseekV32ForCausalLM" not in breakable_architectures - assert "DeepseekV32MTPModel" not in breakable_architectures - assert "GlmMoeDsaForCausalLM" not in breakable_architectures + assert "DeepseekV32MTPModel" in breakable_architectures + assert "GlmMoeDsaForCausalLM" in breakable_architectures # V4.1 cannot torch.compile and the ROCm sparse SWA backend only # supports uniform-batch CUDA graphs, so it must opt in or the # default FULL_AND_PIECEWISE serve path cannot start. @@ -1114,9 +1114,9 @@ def test_dsa_models_default_to_breakable_cudagraph( ("DeepseekV32ForCausalLM", False, True), ("DeepseekV32ForCausalLM", True, False), ("DeepseekV32MTPModel", False, True), - ("DeepseekV32MTPModel", True, False), + ("DeepseekV32MTPModel", True, True), ("GlmMoeDsaForCausalLM", False, True), - ("GlmMoeDsaForCausalLM", True, False), + ("GlmMoeDsaForCausalLM", True, True), ("Qwen4ExpForCausalLM", False, True), ("Qwen4ExpForCausalLM", True, False), ("Qwen4ExpForConditionalGeneration", False, True), diff --git a/vllm/config/vllm.py b/vllm/config/vllm.py index 1e47453e4631..f4c161f0bbf0 100644 --- a/vllm/config/vllm.py +++ b/vllm/config/vllm.py @@ -159,6 +159,8 @@ def default_breakable_cudagraph_architectures() -> frozenset[str]: "HYV4ForCausalLM", "HYV4VLForConditionalGeneration", "HYV4MTPModel", + "GlmMoeDsaForCausalLM", + "DeepseekV32MTPModel", } ) | _QWEN3_5_ARCHITECTURES From 2150bb01510efea317bfbbf945928a3c10600a0b Mon Sep 17 00:00:00 2001 From: Ankit Kumar Jha Date: Fri, 20 Nov 2026 17:51:14 +0530 Subject: [PATCH 2/4] Clarify ROCm breakable cudagraph test Signed-off-by: Ankit Kumar Jha --- tests/test_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_config.py b/tests/test_config.py index 57d8c9fd0cdd..cccd24b57d4b 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1032,9 +1032,9 @@ def test_no_hisparse_connector_keeps_attention_config_unset(monkeypatch): assert config.attention_config.hisparse_config is None -def test_rocm_keeps_compiled_deepseek_defaults(monkeypatch): - """ROCm keeps the DSA models (DeepSeek V3.2/V4, GLM-5.2) on their compiled - paths and off breakable cudagraphs by default.""" +def test_rocm_breakable_cudagraph_architecture_defaults(monkeypatch): + """ROCm enables breakable cudagraphs for supported DSA architectures + while keeping DeepseekV32ForCausalLM excluded by default.""" from vllm.config.vllm import default_breakable_cudagraph_architectures from vllm.platforms import current_platform From a1fbf6f79568de00f06756ec4c4c0754e13fda48 Mon Sep 17 00:00:00 2001 From: Ankit847234 Date: Tue, 24 Nov 2026 16:01:39 +0530 Subject: [PATCH 3/4] Add ROCm rationale for GLM DSA breakable graphs Signed-off-by: Ankit847234 --- vllm/config/vllm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vllm/config/vllm.py b/vllm/config/vllm.py index 94bb2dcfa65d..71760de14f52 100644 --- a/vllm/config/vllm.py +++ b/vllm/config/vllm.py @@ -159,6 +159,7 @@ def default_breakable_cudagraph_architectures() -> frozenset[str]: "HYV4ForCausalLM", "HYV4VLForConditionalGeneration", "HYV4MTPModel", + # GLM DSA benefits from breakable CUDA graphs on ROCm. "GlmMoeDsaForCausalLM", "DeepseekV32MTPModel", } From 804e62cd82bc43b5b2c4d2eb211b9475d962858f Mon Sep 17 00:00:00 2001 From: Ankit847234 Date: Wed, 25 Nov 2026 15:29:15 +0530 Subject: [PATCH 4/4] Move GLM DSA rationale comment Signed-off-by: Ankit847234 --- vllm/config/vllm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/config/vllm.py b/vllm/config/vllm.py index 07160a85146a..0acf41776227 100644 --- a/vllm/config/vllm.py +++ b/vllm/config/vllm.py @@ -155,6 +155,7 @@ def default_breakable_cudagraph_architectures() -> frozenset[str]: # HYV4 also runs without torch.compile, preserving runtime-shape # kernel selection during graph capture. # Qwen3.5 runs the eager vllm/models/qwen3_5/amd model. + # GLM DSA benefits from breakable CUDA graphs on ROCm. return ( frozenset( { @@ -162,7 +163,6 @@ def default_breakable_cudagraph_architectures() -> frozenset[str]: "HYV4ForCausalLM", "HYV4VLForConditionalGeneration", "HYV4MTPModel", - # GLM DSA benefits from breakable CUDA graphs on ROCm. "GlmMoeDsaForCausalLM", "DeepseekV32MTPModel", }