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
844a8f42
"src/diffusers/pipelines/pag/pipeline_pag_sd.py" did not exist on "04d696d65053644775b104cb3af92aff8338e6fc"
Unverified
Commit
844a8f42
authored
May 28, 2025
by
Wenxuan Tan
Committed by
GitHub
May 28, 2025
Browse files
Fix LoRA bench (#6719)
parent
791b3bfa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
benchmark/lora/lora_bench.py
benchmark/lora/lora_bench.py
+7
-8
No files found.
benchmark/lora/lora_bench.py
View file @
844a8f42
...
...
@@ -162,13 +162,13 @@ async def benchmark(
raise
ValueError
(
f
"Unknown backend:
{
backend
}
"
)
print
(
"Starting initial single prompt test run..."
)
test_
prompt
,
test_prompt_len
,
test_output_len
=
input_requests
[
0
]
test_
request
=
input_requests
[
0
]
test_input
=
RequestFuncInput
(
model
=
model_id
,
prompt
=
test_prompt
,
prompt
=
test_
request
.
prompt
,
api_url
=
api_url
,
prompt_len
=
test_prompt_len
,
output_len
=
test_output_len
,
prompt_len
=
test_
request
.
prompt_len
,
output_len
=
test_
request
.
output_len
,
lora_name
=
"dummy"
,
# the lora_name argument will not be used
image_data
=
None
,
extra_request_body
=
extra_request_body
,
...
...
@@ -187,13 +187,12 @@ async def benchmark(
benchmark_start_time
=
time
.
perf_counter
()
tasks
:
List
[
asyncio
.
Task
]
=
[]
async
for
request
in
get_request
(
input_requests
,
request_rate
):
prompt
,
prompt_len
,
output_len
=
request
request_func_input
=
RequestFuncInput
(
model
=
model_id
,
prompt
=
prompt
,
prompt
=
request
.
prompt
,
api_url
=
api_url
,
prompt_len
=
prompt_len
,
output_len
=
output_len
,
prompt_len
=
request
.
prompt_len
,
output_len
=
request
.
output_len
,
lora_name
=
"dummy"
,
image_data
=
None
,
extra_request_body
=
extra_request_body
,
...
...
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