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
7cee07a0
Unverified
Commit
7cee07a0
authored
Nov 04, 2025
by
Ke Bao
Committed by
GitHub
Nov 04, 2025
Browse files
Fix skip layer in get_quant_method (#12632)
parent
bb517fe3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
python/sglang/srt/layers/quantization/compressed_tensors/compressed_tensors.py
...ers/quantization/compressed_tensors/compressed_tensors.py
+4
-1
No files found.
python/sglang/srt/layers/quantization/compressed_tensors/compressed_tensors.py
View file @
7cee07a0
...
@@ -123,7 +123,10 @@ class CompressedTensorsConfig(QuantizationConfig):
...
@@ -123,7 +123,10 @@ class CompressedTensorsConfig(QuantizationConfig):
if
should_ignore_layer
(
if
should_ignore_layer
(
prefix
,
ignore
=
self
.
ignore
,
fused_mapping
=
self
.
packed_modules_mapping
prefix
,
ignore
=
self
.
ignore
,
fused_mapping
=
self
.
packed_modules_mapping
):
):
if
isinstance
(
layer
,
LinearBase
):
return
UnquantizedLinearMethod
()
return
UnquantizedLinearMethod
()
return
None
if
isinstance
(
layer
,
LinearBase
):
if
isinstance
(
layer
,
LinearBase
):
if
CompressedTensorsConfig
.
DeepSeekFP8Config
is
not
None
:
if
CompressedTensorsConfig
.
DeepSeekFP8Config
is
not
None
:
return
Fp8LinearMethod
(
CompressedTensorsConfig
.
DeepSeekFP8Config
)
return
Fp8LinearMethod
(
CompressedTensorsConfig
.
DeepSeekFP8Config
)
...
...
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