Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
7a40e4f4
Unverified
Commit
7a40e4f4
authored
Sep 08, 2025
by
Rain Jiang
Committed by
GitHub
Sep 08, 2025
Browse files
fix the cutlass moe tests (#10182)
parent
19d64f2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
python/sglang/test/test_cutlass_moe.py
python/sglang/test/test_cutlass_moe.py
+4
-5
No files found.
python/sglang/test/test_cutlass_moe.py
View file @
7a40e4f4
...
@@ -22,7 +22,7 @@ def calc_diff(x, y):
...
@@ -22,7 +22,7 @@ def calc_diff(x, y):
def
get_model_config
(
tp_size
:
int
):
def
get_model_config
(
tp_size
:
int
):
config
=
AutoConfig
.
from_pretrained
(
config
=
AutoConfig
.
from_pretrained
(
"deepseek-ai/
d
eepseek-R1"
,
trust_remote_code
=
True
"deepseek-ai/
D
eepseek-R1"
,
trust_remote_code
=
True
)
)
E
=
config
.
n_routed_experts
E
=
config
.
n_routed_experts
topk
=
config
.
num_experts_per_tok
topk
=
config
.
num_experts_per_tok
...
@@ -163,11 +163,10 @@ def run_test(tp_size, batch_size, model_config, check=False):
...
@@ -163,11 +163,10 @@ def run_test(tp_size, batch_size, model_config, check=False):
moe_runner_config
=
MoeRunnerConfig
(
moe_runner_config
=
MoeRunnerConfig
(
num_experts
=
E
,
num_experts
=
E
,
topk
=
topk
,
top
_
k
=
topk
,
hidden_size
=
H
,
hidden_size
=
H
,
shard_intermediate_size
=
I
,
intermediate_size_per_partition
=
I
,
dtype
=
dtype
,
params_dtype
=
dtype
,
block_shape
=
block_shape
,
activation
=
"silu"
,
activation
=
"silu"
,
inplace
=
False
,
inplace
=
False
,
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment