Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions test/registered/cpu/test_subblock_sparse_attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def test_sage_fp8_dependency_is_checked_during_server_validation(self):
return_value=DeviceCapability(9, 0),
),
patch(
"sglang.multimodal_gen.configs.pipeline_configs.minimax_h3."
"sglang.multimodal_gen.runtime.layers.attention.selector."
"get_global_forced_attn_backend",
return_value=None,
),
Expand All @@ -321,7 +321,7 @@ def test_sage_fp8_dependency_is_checked_during_server_validation(self):
loader,
),
patch(
"sglang.multimodal_gen.configs.pipeline_configs.minimax_h3."
"sglang.multimodal_gen.runtime.layers.attention.selector."
"get_attn_backend"
),
):
Expand All @@ -340,7 +340,7 @@ def test_missing_sage_fp8_dependency_fails_server_validation(self):
return_value=DeviceCapability(9, 0),
),
patch(
"sglang.multimodal_gen.configs.pipeline_configs.minimax_h3."
"sglang.multimodal_gen.runtime.layers.attention.selector."
"get_global_forced_attn_backend",
return_value=None,
),
Expand All @@ -350,7 +350,7 @@ def test_missing_sage_fp8_dependency_fails_server_validation(self):
side_effect=ImportError("Install SpargeAttention"),
),
patch(
"sglang.multimodal_gen.configs.pipeline_configs.minimax_h3."
"sglang.multimodal_gen.runtime.layers.attention.selector."
"get_attn_backend"
) as get_backend,
self.assertRaisesRegex(ImportError, "Install SpargeAttention"),
Expand All @@ -371,7 +371,7 @@ def test_sm120_sage_dependency_is_checked_during_server_validation(self):
return_value=DeviceCapability(12, 0),
),
patch(
"sglang.multimodal_gen.configs.pipeline_configs.minimax_h3."
"sglang.multimodal_gen.runtime.layers.attention.selector."
"get_global_forced_attn_backend",
return_value=None,
),
Expand All @@ -381,7 +381,7 @@ def test_sm120_sage_dependency_is_checked_during_server_validation(self):
loader,
),
patch(
"sglang.multimodal_gen.configs.pipeline_configs.minimax_h3."
"sglang.multimodal_gen.runtime.layers.attention.selector."
"get_attn_backend"
),
):
Expand All @@ -400,7 +400,7 @@ def test_missing_sm120_sage_dependency_fails_server_validation(self):
return_value=DeviceCapability(12, 0),
),
patch(
"sglang.multimodal_gen.configs.pipeline_configs.minimax_h3."
"sglang.multimodal_gen.runtime.layers.attention.selector."
"get_global_forced_attn_backend",
return_value=None,
),
Expand All @@ -410,7 +410,7 @@ def test_missing_sm120_sage_dependency_fails_server_validation(self):
side_effect=ImportError("FlashInfer SM120 Sage backend is unavailable"),
),
patch(
"sglang.multimodal_gen.configs.pipeline_configs.minimax_h3."
"sglang.multimodal_gen.runtime.layers.attention.selector."
"get_attn_backend"
) as get_backend,
self.assertRaisesRegex(
Expand All @@ -428,7 +428,7 @@ def test_bf16_does_not_require_sparge_attention(self):
with (
patch.object(current_platform, "is_mps", return_value=False),
patch(
"sglang.multimodal_gen.configs.pipeline_configs.minimax_h3."
"sglang.multimodal_gen.runtime.layers.attention.selector."
"get_global_forced_attn_backend",
return_value=None,
),
Expand All @@ -438,7 +438,7 @@ def test_bf16_does_not_require_sparge_attention(self):
loader,
),
patch(
"sglang.multimodal_gen.configs.pipeline_configs.minimax_h3."
"sglang.multimodal_gen.runtime.layers.attention.selector."
"get_attn_backend"
),
):
Expand All @@ -457,12 +457,12 @@ def test_sage_fp8_rejects_sm100_during_server_validation(self):
return_value=DeviceCapability(10, 0),
),
patch(
"sglang.multimodal_gen.configs.pipeline_configs.minimax_h3."
"sglang.multimodal_gen.runtime.layers.attention.selector."
"get_global_forced_attn_backend",
return_value=None,
),
patch(
"sglang.multimodal_gen.configs.pipeline_configs.minimax_h3."
"sglang.multimodal_gen.runtime.layers.attention.selector."
"get_attn_backend"
) as get_backend,
self.assertRaisesRegex(ValueError, "requires SM90.*found 10.0"),
Expand Down
4 changes: 3 additions & 1 deletion test/registered/moe/test_hash_topk.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def on_select_experts(self, *, topk_ids):
)

with (
get_parallel().override(moe_ep_size=4, moe_ep_rank=2),
get_parallel().override(
tp_size=4, attn_tp_size=4, moe_ep_size=4, moe_ep_rank=2
),
hash_topk_module.envs.SGLANG_OPT_USE_FUSED_HASH_TOPK.override(False),
):
output = topk(
Expand Down
Loading