[Bugfix] compressed-tensors: allow int8 grouped WNA16 MoE on Marlin - #47154
Merged
vllm-bot merged 2 commits intoJun 30, 2026
Merged
Conversation
The num_bits==8 branch of CompressedTensorsWNA16MarlinMoEMethod asserted
group_size == -1, rejecting int8 experts quantized with a group size (e.g.
group_size=128) even though Marlin supports them: uint8b128 is a supported
quant type and MARLIN_SUPPORTED_GROUP_SIZES includes 128, and
check_moe_marlin_supports_layer already admits group_size in {-1,32,64,128}
(so the method is selected and then asserts against itself). Drop the assert;
the scale key (kInt8StaticGroupScale) is unchanged and mirrors the int4 branch,
which already uses one *StaticGroupScale key across non-32 group sizes.
Validated on a mixed-precision int4/int8 compressed-tensors MoE checkpoint
(int8 layers at group_size=128): loads on the Marlin backend and produces
output byte-identical to the non-Marlin WNA16 MoE path and to bf16.
Signed-off-by: Joe Rowell <joerowell4@gmail.com>
joerowell
requested review from
mgoin,
pavanimajety,
robertgshaw2-redhat,
tlrmchlsmth,
yewentao256 and
zyongye
as code owners
June 30, 2026 12:42
Contributor
|
Hi @joerowell, the pre-commit checks have failed. Please run: uv pip install pre-commit>=4.5.1
pre-commit install
pre-commit run --all-filesThen, commit the changes and push to your branch. For future commits, |
mgoin
enabled auto-merge (squash)
June 30, 2026 14:46
yewentao256
approved these changes
Jun 30, 2026
yewentao256
left a comment
Member
There was a problem hiding this comment.
LGTM, thanks for the work!
rjrock
pushed a commit
to rjrock/vllm
that referenced
this pull request
Jul 1, 2026
…llm-project#47154) Signed-off-by: Joe Rowell <joerowell4@gmail.com> Co-authored-by: Robert Shaw <114415538+robertgshaw2-redhat@users.noreply.github.com>
jakki-amd
pushed a commit
to jakki-amd/vllm
that referenced
this pull request
Jul 6, 2026
…llm-project#47154) Signed-off-by: Joe Rowell <joerowell4@gmail.com> Co-authored-by: Robert Shaw <114415538+robertgshaw2-redhat@users.noreply.github.com>
lkk12014402
pushed a commit
to lkk12014402/vllm
that referenced
this pull request
Jul 8, 2026
…llm-project#47154) Signed-off-by: Joe Rowell <joerowell4@gmail.com> Co-authored-by: Robert Shaw <114415538+robertgshaw2-redhat@users.noreply.github.com>
noooop
pushed a commit
to noooop/vllm
that referenced
this pull request
Jul 9, 2026
…llm-project#47154) Signed-off-by: Joe Rowell <joerowell4@gmail.com> Co-authored-by: Robert Shaw <114415538+robertgshaw2-redhat@users.noreply.github.com> Signed-off-by: wang.yuqi <yuqi.wang@daocloud.io>
philippesic
pushed a commit
to philippesic/vllm-semantic-cache
that referenced
this pull request
Jul 19, 2026
…llm-project#47154) Signed-off-by: Joe Rowell <joerowell4@gmail.com> Co-authored-by: Robert Shaw <114415538+robertgshaw2-redhat@users.noreply.github.com>
plasticchris
pushed a commit
to plasticchris/vllm
that referenced
this pull request
Jul 20, 2026
…llm-project#47154) Signed-off-by: Joe Rowell <joerowell4@gmail.com> Co-authored-by: Robert Shaw <114415538+robertgshaw2-redhat@users.noreply.github.com>
aditi-amd
pushed a commit
to aditi-amd/vllm
that referenced
this pull request
Aug 4, 2026
…llm-project#47154) Signed-off-by: Joe Rowell <joerowell4@gmail.com> Co-authored-by: Robert Shaw <114415538+robertgshaw2-redhat@users.noreply.github.com> Signed-off-by: root <root@smci355-ccs-aus-m02-09.cs-aus.dcgpu>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The num_bits==8 branch of CompressedTensorsWNA16MarlinMoEMethod asserted group_size == -1, rejecting int8 experts quantized with a group size (e.g. group_size=128) even though Marlin supports them: uint8b128 is a supported quant type and MARLIN_SUPPORTED_GROUP_SIZES includes 128, and check_moe_marlin_supports_layer already admits group_size in {-1,32,64,128} (so the method is selected and then asserts against itself).
The assert isn't needed, and crucially, it unblocks mixed-precision INT models (such as
poolside/Laguna-XS.2-INT4, which has INT4 & INT8 layers).Purpose
Test Plan
Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.