Skip to content

[Bugfix] Fix misnamed parameter in compressed_tensors_moe.py#35813

Merged
robertgshaw2-redhat merged 2 commits intovllm-project:mainfrom
neuralmagic:fix-mixtral
Mar 3, 2026
Merged

[Bugfix] Fix misnamed parameter in compressed_tensors_moe.py#35813
robertgshaw2-redhat merged 2 commits intovllm-project:mainfrom
neuralmagic:fix-mixtral

Conversation

@bnellnm
Copy link
Copy Markdown
Collaborator

@bnellnm bnellnm commented Mar 2, 2026

Purpose

Renamed FusedMoE layer parameter from num_local_experts -> local_num_experts.

Test Plan

Ran RedHatAI/Mixtral-8x7B-Instruct-v0.1-FP8

Test Result

No error, correct results.


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.
  • (Optional) Release notes update. If your change is user facing, please update the release notes draft in the Google Doc.

Signed-off-by: Bill Nell <bnell@redhat.com>
@mergify mergify Bot added the bug Something isn't working label Mar 2, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request corrects a typo in vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors_moe.py. The parameter num_experts was being assigned from layer.num_local_experts, which is an incorrect attribute name. The change corrects this to layer.local_num_experts, which correctly references the number of local experts on the FusedMoE layer. This is a necessary bug fix and the implementation is correct.

@robertgshaw2-redhat robertgshaw2-redhat enabled auto-merge (squash) March 2, 2026 23:58
@github-actions github-actions Bot added the ready ONLY add when PR is ready to merge/full CI is needed label Mar 2, 2026
Copy link
Copy Markdown
Member

@yewentao256 yewentao256 left a comment

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!

@robertgshaw2-redhat robertgshaw2-redhat merged commit a9b8b13 into vllm-project:main Mar 3, 2026
64 of 66 checks passed
Copilot AI pushed a commit to machov/vllm that referenced this pull request Mar 10, 2026
…oject#35813)

Signed-off-by: Bill Nell <bnell@redhat.com>
Co-authored-by: Robert Shaw <114415538+robertgshaw2-redhat@users.noreply.github.com>
avinashsingh77 pushed a commit to avinashsingh77/vllm that referenced this pull request Mar 12, 2026
…oject#35813)

Signed-off-by: Bill Nell <bnell@redhat.com>
Co-authored-by: Robert Shaw <114415538+robertgshaw2-redhat@users.noreply.github.com>
wendyliu235 pushed a commit to wendyliu235/vllm-public that referenced this pull request Mar 18, 2026
…oject#35813)

Signed-off-by: Bill Nell <bnell@redhat.com>
Co-authored-by: Robert Shaw <114415538+robertgshaw2-redhat@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working 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.

3 participants