Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
d231876c
Unverified
Commit
d231876c
authored
Nov 15, 2025
by
ai-jz
Committed by
GitHub
Nov 16, 2025
Browse files
[Benchmark] Fix client seed synchronization in multi-turn benchmark (#28512)
Signed-off-by:
ai-jz
<
aijz.xplr@gmail.com
>
parent
f849ee73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
benchmarks/multi_turn/benchmark_serving_multi_turn.py
benchmarks/multi_turn/benchmark_serving_multi_turn.py
+6
-2
No files found.
benchmarks/multi_turn/benchmark_serving_multi_turn.py
View file @
d231876c
...
...
@@ -561,8 +561,11 @@ async def client_main(
f
"
{
Color
.
CYAN
}
Started client
{
client_id
}
: max_num_requests=
{
args
.
max_num_requests
}
, max_active_conversations=
{
args
.
max_active_conversations
}{
Color
.
RESET
}
"
# noqa: E501
)
random
.
seed
(
args
.
seed
)
np
.
random
.
seed
(
args
.
seed
)
# Set unique seed per client (each client runs in its own process)
# Add 1 to ensure no client uses the same seed as the main process
client_seed
=
args
.
seed
+
client_id
+
1
random
.
seed
(
client_seed
)
np
.
random
.
seed
(
client_seed
)
# Active conversations
active_convs
:
ConversationsMap
=
{}
...
...
@@ -1490,6 +1493,7 @@ async def main() -> None:
f
"Invalid --warmup-percentage=
{
args
.
warmup_percentage
}
"
)
from
None
# Set global seeds for main process
random
.
seed
(
args
.
seed
)
np
.
random
.
seed
(
args
.
seed
)
...
...
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