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
84a9f5d6
Unverified
Commit
84a9f5d6
authored
Sep 30, 2025
by
Chenxi Li
Committed by
GitHub
Sep 30, 2025
Browse files
Feature/make PEFT adapter module format compatibile (#11080)
parent
8ce830a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
python/sglang/srt/lora/utils.py
python/sglang/srt/lora/utils.py
+3
-1
No files found.
python/sglang/srt/lora/utils.py
View file @
84a9f5d6
...
@@ -98,6 +98,7 @@ def get_normalized_target_modules(
...
@@ -98,6 +98,7 @@ def get_normalized_target_modules(
)
->
set
[
str
]:
)
->
set
[
str
]:
"""
"""
Mapping a list of target module name to names of the normalized LoRA weights.
Mapping a list of target module name to names of the normalized LoRA weights.
Handles both base module names (e.g., "gate_proj") and prefixed module names (e.g., "feed_forward.gate_proj").
"""
"""
params_mapping
=
{
params_mapping
=
{
"q_proj"
:
"qkv_proj"
,
"q_proj"
:
"qkv_proj"
,
...
@@ -109,7 +110,8 @@ def get_normalized_target_modules(
...
@@ -109,7 +110,8 @@ def get_normalized_target_modules(
result
=
set
()
result
=
set
()
for
name
in
target_modules
:
for
name
in
target_modules
:
normalized_name
=
params_mapping
.
get
(
name
,
name
)
base_name
=
name
.
split
(
"."
)[
-
1
]
normalized_name
=
params_mapping
.
get
(
base_name
,
base_name
)
result
.
add
(
normalized_name
)
result
.
add
(
normalized_name
)
return
result
return
result
...
...
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