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
99795d61
Unverified
Commit
99795d61
authored
Aug 01, 2025
by
Even Zhou
Committed by
GitHub
Jul 31, 2025
Browse files
[Bugfix] fix w8a8_int8 load issue (#8308)
Co-authored-by:
ronnie_zheng
<
zl19940307@163.com
>
parent
fe5086fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
python/sglang/srt/layers/quantization/w8a8_int8.py
python/sglang/srt/layers/quantization/w8a8_int8.py
+4
-1
python/sglang/srt/model_loader/weight_utils.py
python/sglang/srt/model_loader/weight_utils.py
+2
-0
No files found.
python/sglang/srt/layers/quantization/w8a8_int8.py
View file @
99795d61
...
@@ -231,7 +231,10 @@ class W8A8Int8Config(QuantizationConfig):
...
@@ -231,7 +231,10 @@ class W8A8Int8Config(QuantizationConfig):
@
classmethod
@
classmethod
def
get_config_filenames
(
cls
)
->
List
[
str
]:
def
get_config_filenames
(
cls
)
->
List
[
str
]:
return
[]
filenames
=
[]
if
_is_npu
:
filenames
.
append
(
"quant_model_description.json"
)
return
filenames
@
classmethod
@
classmethod
def
from_config
(
cls
,
config
:
Dict
[
str
,
Any
])
->
W8A8Int8Config
:
def
from_config
(
cls
,
config
:
Dict
[
str
,
Any
])
->
W8A8Int8Config
:
...
...
python/sglang/srt/model_loader/weight_utils.py
View file @
99795d61
...
@@ -229,6 +229,8 @@ def get_quant_config(
...
@@ -229,6 +229,8 @@ def get_quant_config(
f
"Unsupported quantization config"
f
"Unsupported quantization config"
f
" found for
{
model_config
.
quantization
}
in
{
f
}
."
f
" found for
{
model_config
.
quantization
}
in
{
f
}
."
)
)
elif
model_config
.
quantization
==
"w8a8_int8"
:
config
[
"packed_modules_mapping"
]
=
packed_modules_mapping
return
quant_cls
.
from_config
(
config
)
return
quant_cls
.
from_config
(
config
)
...
...
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