[Bugfix] Correct block shape logic in WNA16 MoE triton kernel#31686
Closed
JartX wants to merge 2 commits intovllm-project:mainfrom
Closed
[Bugfix] Correct block shape logic in WNA16 MoE triton kernel#31686JartX wants to merge 2 commits intovllm-project:mainfrom
JartX wants to merge 2 commits intovllm-project:mainfrom
Conversation
Signed-off-by: JartX <sagformas@epdcenter.es>
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a bugfix for the WNA16 MoE Triton kernel by correcting the block shape logic. It ensures that BLOCK_SIZE_N and BLOCK_SIZE_K are always set in the configuration before the kernel grid is defined, which resolves an inference regression. Additionally, the code is refactored to use a new dispatch_fused_moe_kernel function, which adds support for zero-point quantization (w1_zp and w2_zp) for the expert weights. The changes appear correct and improve the robustness and functionality of the fused MoE layer.
Contributor
Author
|
#31752 works fine close it |
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.
This PR addresses an inference regression introduced in PR #31050. Specifically, it fixes a failure when loading models that use WNA16 Triton.
Note: This PR depends on PR #31663, which contains the fix for the failure introduced in PR #31533.
CC: @zyongye @robertgshaw2-redhat @jeejeelee — please take a look. :)