Skip to content

[Bugfix] compressed-tensors: allow int8 grouped WNA16 MoE on Marlin - #47154

Merged
vllm-bot merged 2 commits into
vllm-project:mainfrom
joerowell:joerowell/marlin-int8-grouped-moe
Jun 30, 2026
Merged

[Bugfix] compressed-tensors: allow int8 grouped WNA16 MoE on Marlin#47154
vllm-bot merged 2 commits into
vllm-project:mainfrom
joerowell:joerowell/marlin-int8-grouped-moe

Conversation

@joerowell

@joerowell joerowell commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

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
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.

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>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@mergify mergify Bot added the bug Something isn't working label Jun 30, 2026
@robertgshaw2-redhat robertgshaw2-redhat added the ready ONLY add when PR is ready to merge/full CI is needed label Jun 30, 2026
@mergify

mergify Bot commented Jun 30, 2026

Copy link
Copy Markdown
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-files

Then, commit the changes and push to your branch.

For future commits, pre-commit will run automatically on changed files before each commit.

@mgoin mgoin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great enablement, thanks!

@mgoin
mgoin enabled auto-merge (squash) June 30, 2026 14:46

@yewentao256 yewentao256 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the work!

@vllm-bot
vllm-bot merged commit c8d2f3c into vllm-project:main Jun 30, 2026
100 of 104 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working quantization ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants