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
fd8a0b29
Unverified
Commit
fd8a0b29
authored
Oct 06, 2025
by
Xinyuan Tong
Committed by
GitHub
Oct 06, 2025
Browse files
fix: correct scale parameter remapping logic in Llama4ForConditionalGeneration (#11282)
parent
afc35ccc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/models/mllama4.py
python/sglang/srt/models/mllama4.py
+1
-1
No files found.
python/sglang/srt/models/mllama4.py
View file @
fd8a0b29
...
@@ -710,7 +710,7 @@ class Llama4ForConditionalGeneration(nn.Module):
...
@@ -710,7 +710,7 @@ class Llama4ForConditionalGeneration(nn.Module):
"""Handle scale parameter remapping. Returns True if handled."""
"""Handle scale parameter remapping. Returns True if handled."""
if
"scale"
in
name
and
"expert"
not
in
name
:
if
"scale"
in
name
and
"expert"
not
in
name
:
remapped_name
=
maybe_remap_kv_scale_name
(
name
,
params_dict
)
remapped_name
=
maybe_remap_kv_scale_name
(
name
,
params_dict
)
return
remapped_name
is
not
None
and
remapped_name
!=
name
return
remapped_name
!=
name
return
False
return
False
def
_handle_stacked_params
(
def
_handle_stacked_params
(
...
...
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