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
beac202b
"torchvision/vscode:/vscode.git/clone" did not exist on "dba5cf31d7b2d851945f3fbf7425d5850a491dfd"
Unverified
Commit
beac202b
authored
Sep 05, 2025
by
Baizhou Zhang
Committed by
GitHub
Sep 05, 2025
Browse files
Add lora_path argument to bench_multiturn.py (#10092)
parent
21b9a4b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
benchmark/hicache/bench_multiturn.py
benchmark/hicache/bench_multiturn.py
+15
-3
No files found.
benchmark/hicache/bench_multiturn.py
View file @
beac202b
...
...
@@ -130,6 +130,12 @@ def parse_args():
help
=
"Tag of a certain run in the log file"
,
)
parser
.
add_argument
(
"--seed"
,
type
=
int
,
default
=
1
,
help
=
"The random seed."
)
parser
.
add_argument
(
"--lora-path"
,
type
=
str
,
default
=
""
,
help
=
"String of LoRA path. Currently we only support benchmarking on a single LoRA adaptor."
,
)
return
parser
.
parse_args
()
...
...
@@ -205,7 +211,7 @@ async def async_request_sglang_generate(
return
output
def
gen_payload
(
prompt
,
output_len
):
def
gen_payload
(
prompt
,
output_len
,
lora_path
=
""
):
payload
=
{
"text"
:
prompt
,
"sampling_params"
:
{
...
...
@@ -215,7 +221,7 @@ def gen_payload(prompt, output_len):
},
"stream"
:
True
,
"stream_options"
:
{
"include_usage"
:
True
},
"lora_path"
:
""
,
"lora_path"
:
lora_path
,
"return_logprob"
:
False
,
"logprob_start_len"
:
-
1
,
}
...
...
@@ -303,7 +309,12 @@ class WorkloadGenerator:
)
init_requests
=
[
(
i
,
gen_payload
(
self
.
candidate_inputs
[
i
],
args
.
output_length
))
(
i
,
gen_payload
(
self
.
candidate_inputs
[
i
],
args
.
output_length
,
args
.
lora_path
),
)
for
i
in
range
(
args
.
num_clients
)
]
self
.
client_records
=
{
...
...
@@ -399,6 +410,7 @@ class WorkloadGenerator:
gen_payload
(
self
.
client_records
[
client_id
][
"history"
],
self
.
output_length
,
args
.
lora_path
,
),
)
)
...
...
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