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
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def test_cutlass_preserves_prefill_and_decode_combine_formats(self):
StandardCombineInput,
StandardDispatchOutput,
)
from sglang.srt.runtime_context import get_parallel
from sglang.srt.runtime_context import get_context, get_parallel

layer = SimpleNamespace(
moe_tp_size=1, moe_tp_rank=0, moe_ep_size=4, moe_ep_rank=0
Expand Down Expand Up @@ -190,6 +190,7 @@ def kernel(**kwargs):
return (kwargs["output"],)

with (
get_context().override_server_args(model_path="dummy"),
get_parallel().override(tp_group=None),
patch.object(
runner,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,13 @@ def fallback(**kwargs):
)
for tp, ep in [(1, 1), (2, 1), (1, 2)]:
layer.moe_tp_size, layer.moe_ep_size = tp, ep
flashinfer_cutlass._run_flashinfer_cutlass(
dispatch_output=dispatch,
quant_info=quant,
runner_config=config,
output=torch.empty_like(x),
)
with get_context().override_server_args(model_path="dummy"):
flashinfer_cutlass._run_flashinfer_cutlass(
dispatch_output=dispatch,
quant_info=quant,
runner_config=config,
output=torch.empty_like(x),
)
assert calls == ["native", (2, 1), (1, 2)]


Expand Down
Loading