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
d07e797a
Unverified
Commit
d07e797a
authored
Apr 20, 2025
by
fzyzcjy
Committed by
GitHub
Apr 20, 2025
Browse files
Fix bench_one_batch producing unnatural results for expert parallel (#5149)
parent
c555d794
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/bench_one_batch.py
python/sglang/bench_one_batch.py
+1
-1
No files found.
python/sglang/bench_one_batch.py
View file @
d07e797a
...
...
@@ -207,7 +207,7 @@ def prepare_extend_inputs_for_correctness_test(
def
prepare_synthetic_inputs_for_latency_test
(
batch_size
,
input_len
):
input_ids
=
np
.
ones
(
(
batch_size
,
input_len
),
dtype
=
np
.
int32
)
input_ids
=
np
.
random
.
randint
(
0
,
10000
,
(
batch_size
,
input_len
),
dtype
=
np
.
int32
)
sampling_params
=
SamplingParams
(
temperature
=
0
,
max_new_tokens
=
BenchArgs
.
output_len
,
...
...
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