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
e5760bc4
Unverified
Commit
e5760bc4
authored
Mar 05, 2025
by
Lu Changqi
Committed by
GitHub
Mar 05, 2025
Browse files
bench: add dataset param for bench_multiturn (#3990)
parent
56a724eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
benchmark/hicache/bench_multiturn.py
benchmark/hicache/bench_multiturn.py
+7
-1
No files found.
benchmark/hicache/bench_multiturn.py
View file @
e5760bc4
...
...
@@ -85,6 +85,12 @@ def parse_args():
default
=
"meta-llama/Llama-3.1-8B-Instruct"
,
help
=
"model path compatible with Hugging Face Transformers"
,
)
parser
.
add_argument
(
"--dataset-path"
,
type
=
str
,
default
=
""
,
help
=
"local dataset to sample tokens from"
,
)
parser
.
add_argument
(
"--log-file"
,
type
=
str
,
...
...
@@ -231,7 +237,7 @@ class WorkloadGenerator:
num_prompts
=
args
.
num_clients
*
args
.
num_rounds
,
range_ratio
=
1.0
,
tokenizer
=
self
.
tokenizer
,
dataset_path
=
""
,
dataset_path
=
args
.
dataset_path
,
)
self
.
candidate_inputs
=
[
i
[
0
]
for
i
in
self
.
candidate_inputs
]
...
...
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