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
8cddfa56
Unverified
Commit
8cddfa56
authored
Jul 19, 2025
by
Baizhou Zhang
Committed by
GitHub
Jul 19, 2025
Browse files
Clean warning logs for gate_proj loading in Lora (#8172)
parent
4e3defe5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
python/sglang/srt/lora/lora.py
python/sglang/srt/lora/lora.py
+0
-4
No files found.
python/sglang/srt/lora/lora.py
View file @
8cddfa56
...
@@ -186,10 +186,6 @@ class LoRAAdapter(nn.Module):
...
@@ -186,10 +186,6 @@ class LoRAAdapter(nn.Module):
up_name
=
weight_name
.
replace
(
"gate_proj"
,
"up_proj"
)
up_name
=
weight_name
.
replace
(
"gate_proj"
,
"up_proj"
)
gate_up_name
=
weight_name
.
replace
(
"gate_proj"
,
"gate_up_proj"
)
gate_up_name
=
weight_name
.
replace
(
"gate_proj"
,
"gate_up_proj"
)
if
up_name
not
in
weights
:
if
up_name
not
in
weights
:
logger
.
warning
(
f
"Gate projection
{
weight_name
}
does not have a corresponding up projection
{
up_name
}
. "
f
"Initializing up projection to zero."
)
weights
[
up_name
]
=
torch
.
zeros_like
(
weights
[
weight_name
])
weights
[
up_name
]
=
torch
.
zeros_like
(
weights
[
weight_name
])
# FIXME: Add gate-only support for flashinfer in future implementations
# FIXME: Add gate-only support for flashinfer in future implementations
assert
self
.
lora_backend
.
name
==
"triton"
,
(
assert
self
.
lora_backend
.
name
==
"triton"
,
(
...
...
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