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
58195dd5
Unverified
Commit
58195dd5
authored
Apr 29, 2025
by
Qiaolin Yu
Committed by
GitHub
Apr 29, 2025
Browse files
[Fix] Unload lora in HF_Runner if needed (#5899)
parent
799789af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
python/sglang/test/runners.py
python/sglang/test/runners.py
+4
-0
No files found.
python/sglang/test/runners.py
View file @
58195dd5
...
...
@@ -423,6 +423,10 @@ class HFRunner:
)
del
input_logits
if
lora_paths
is
not
None
and
lora_paths
[
i
]
is
not
None
:
# Unload the LoRA adapter if it is used
model
.
unload
()
return
ModelOutput
(
output_strs
=
output_strs
,
top_input_logprobs
=
top_input_logprobs
,
...
...
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