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
zhaoyu6
sglang
Commits
92473e2e
"script/wheel.sh" did not exist on "b9a4c028e1aead32a7daac94d931685f2fcd6abb"
Unverified
Commit
92473e2e
authored
Oct 08, 2025
by
Lifu Huang
Committed by
GitHub
Oct 08, 2025
Browse files
Support LoRA in bench_serving oai interface (#11318)
parent
6c0bb327
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
python/sglang/bench_serving.py
python/sglang/bench_serving.py
+11
-0
No files found.
python/sglang/bench_serving.py
View file @
92473e2e
...
...
@@ -209,6 +209,11 @@ async def async_request_openai_completions(
**
request_func_input
.
extra_request_body
,
}
# hack to accommodate different LoRA conventions between SGLang and vLLM.
if
request_func_input
.
lora_name
:
payload
[
"model"
]
=
request_func_input
.
lora_name
payload
[
"lora_path"
]
=
request_func_input
.
lora_name
if
request_func_input
.
image_data
:
payload
.
update
({
"image_data"
:
request_func_input
.
image_data
})
...
...
@@ -326,6 +331,12 @@ async def async_request_openai_chat_completions(
"stream"
:
not
args
.
disable_stream
,
**
request_func_input
.
extra_request_body
,
}
# hack to accommodate different LoRA conventions between SGLang and vLLM.
if
request_func_input
.
lora_name
:
payload
[
"model"
]
=
request_func_input
.
lora_name
payload
[
"lora_path"
]
=
request_func_input
.
lora_name
headers
=
get_auth_headers
()
output
=
RequestFuncOutput
.
init_new
(
request_func_input
)
...
...
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