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
42f34437
Unverified
Commit
42f34437
authored
Aug 29, 2025
by
pranavm-nvidia
Committed by
GitHub
Aug 29, 2025
Browse files
Adds initialize_moe_config to bench_one_batch so MOE backend is respected (#9670)
parent
5c34b4f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
python/sglang/bench_one_batch.py
python/sglang/bench_one_batch.py
+3
-0
No files found.
python/sglang/bench_one_batch.py
View file @
42f34437
...
...
@@ -61,6 +61,7 @@ from sglang.srt.configs.model_config import ModelConfig
from
sglang.srt.distributed.parallel_state
import
destroy_distributed_environment
from
sglang.srt.entrypoints.engine
import
_set_envs_and_config
from
sglang.srt.hf_transformers_utils
import
get_tokenizer
from
sglang.srt.layers.moe
import
initialize_moe_config
from
sglang.srt.managers.schedule_batch
import
Req
,
ScheduleBatch
from
sglang.srt.managers.scheduler
import
Scheduler
from
sglang.srt.model_executor.forward_batch_info
import
ForwardBatch
...
...
@@ -509,6 +510,8 @@ def latency_test(
bench_args
,
tp_rank
,
):
initialize_moe_config
(
server_args
)
# Set CPU affinity
if
get_bool_env_var
(
"SGLANG_SET_CPU_AFFINITY"
):
set_gpu_proc_affinity
(
server_args
.
tp_size
,
server_args
.
nnodes
,
tp_rank
)
...
...
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