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
c7a104c1
Unverified
Commit
c7a104c1
authored
Oct 05, 2025
by
Bowen Bao
Committed by
GitHub
Oct 05, 2025
Browse files
[quantization] Fix scale remapping for mllama4 (#10042)
Co-authored-by:
HAI
<
hixiao@gmail.com
>
parent
97d966a7
Changes
1
Hide 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 @
c7a104c1
...
@@ -700,7 +700,7 @@ class Llama4ForConditionalGeneration(nn.Module):
...
@@ -700,7 +700,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
Non
e
return
remapped_name
is
not
None
and
remapped_name
!=
nam
e
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