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
b3fa5dc3
Unverified
Commit
b3fa5dc3
authored
Jul 02, 2025
by
Kyungmin Lee
Committed by
GitHub
Jul 01, 2025
Browse files
Fix GPTQMarlinMoE (#7697)
parent
00aec6ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
python/sglang/srt/layers/quantization/gptq.py
python/sglang/srt/layers/quantization/gptq.py
+5
-1
No files found.
python/sglang/srt/layers/quantization/gptq.py
View file @
b3fa5dc3
...
...
@@ -344,6 +344,10 @@ class GPTQMarlinConfig(QuantizationConfig):
if
(
num_bits
,
sym
)
not
in
cls
.
TYPE_MAP
:
return
False
assert
(
VLLM_AVAILABLE
),
"vllm is not installed, to use gptq_marlin, please install vllm"
return
check_marlin_supported
(
quant_type
=
cls
.
TYPE_MAP
[(
num_bits
,
sym
)],
group_size
=
group_size
)
...
...
@@ -726,6 +730,6 @@ class GPTQMarlinMoEMethod(FusedMoEMethodBase):
g_idx2
=
layer
.
w2_g_idx
,
sort_indices1
=
layer
.
w13_g_idx_sort_indices
,
sort_indices2
=
layer
.
w2_g_idx_sort_indices
,
num_bits
=
self
.
quant_config
.
quant_type
.
size_bits
,
quant_type_id
=
self
.
quant_config
.
quant_type
.
id
,
is_k_full
=
self
.
is_k_full
,
).
to
(
orig_dtype
)
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