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
63d2705e
Unverified
Commit
63d2705e
authored
Apr 13, 2025
by
Jennifer Zhao
Committed by
GitHub
Apr 13, 2025
Browse files
[Benchmark][Bugfix] Fix SonnetDataset default values in benchmark_throughput.py (#16556)
parent
d085a440
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
benchmarks/benchmark_throughput.py
benchmarks/benchmark_throughput.py
+16
-8
No files found.
benchmarks/benchmark_throughput.py
View file @
63d2705e
...
...
@@ -597,18 +597,26 @@ if __name__ == "__main__":
parser
.
add_argument
(
"--prefix-len"
,
type
=
int
,
default
=
0
,
help
=
"Number of fixed prefix tokens before the random "
"context in a request (default: 0)."
,
)
default
=
None
,
help
=
f
"Number of prefix tokens to be used in RandomDataset "
"and SonnetDataset. For RandomDataset, the total input "
"length is the sum of prefix-len (default: "
f
"
{
RandomDataset
.
DEFAULT_PREFIX_LEN
}
) and a random context length "
"sampled from [input_len * (1 - range_ratio), "
"input_len * (1 + range_ratio)]. For SonnetDataset, "
f
"prefix_len (default:
{
SonnetDataset
.
DEFAULT_PREFIX_LEN
}
) "
"controls how much of the input is fixed lines versus "
"random lines, but the total input length remains approximately "
"input_len tokens."
)
# random dataset
parser
.
add_argument
(
"--random-range-ratio"
,
type
=
float
,
default
=
0.0
,
help
=
"Range ratio for sampling input/output length, "
"used only for RandomDataset. Must be in the range [0, 1) to define "
"a symmetric sampling range "
default
=
None
,
help
=
f
"Range ratio (default :
{
RandomDataset
.
DEFAULT_RANGE_RATIO
}
) "
"for sampling input/output length, "
"used only for RandomDataset. Must be in the range [0, 1) to "
"define a symmetric sampling range "
"[length * (1 - range_ratio), length * (1 + range_ratio)]."
,
)
...
...
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