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
f16356fe
Unverified
Commit
f16356fe
authored
Dec 05, 2025
by
Ming Yang
Committed by
GitHub
Dec 05, 2025
Browse files
[bench] Support common prefix len config (for decode-only bench) (#29934)
Signed-off-by:
Ming Yang
<
minos.future@gmail.com
>
parent
65ee9728
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
vllm/benchmarks/datasets.py
vllm/benchmarks/datasets.py
+1
-0
vllm/benchmarks/serve.py
vllm/benchmarks/serve.py
+6
-0
No files found.
vllm/benchmarks/datasets.py
View file @
f16356fe
...
...
@@ -1842,6 +1842,7 @@ def get_samples(args, tokenizer) -> list[SampleRequest]:
random_seed
=
args
.
seed
,
dataset_path
=
args
.
dataset_path
,
disable_shuffle
=
args
.
disable_shuffle
,
prefix_len
=
args
.
common_prefix_len
,
).
sample
(
tokenizer
=
tokenizer
,
num_requests
=
args
.
num_prompts
,
...
...
vllm/benchmarks/serve.py
View file @
f16356fe
...
...
@@ -1221,6 +1221,12 @@ def add_cli_args(parser: argparse.ArgumentParser):
help
=
"Repetition penalty sampling parameter. Only has effect on "
"openai-compatible backends."
,
)
sampling_group
.
add_argument
(
"--common-prefix-len"
,
type
=
int
,
default
=
None
,
help
=
"Common prefix length shared by all prompts (used by random dataset)"
,
)
parser
.
add_argument
(
"--tokenizer-mode"
,
...
...
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