Skip to content

[Bugfix] Support 2D input shape in MoE layer #6287

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Merged
merged 2 commits into from
Jul 10, 2024
Merged

[Bugfix] Support 2D input shape in MoE layer #6287

merged 2 commits into from
Jul 10, 2024

Conversation

WoosukKwon
Copy link
Collaborator

The MoE layer current assumes 1D input shape, i.e., [num_tokens, hidden_size]. This PR enhances this to support both 1D and 2D ([batch_size, seq_len, hidden_size]) input shapes.

@WoosukKwon WoosukKwon requested a review from mgoin July 10, 2024 06:54
@mgoin mgoin merged commit e72ae80 into main Jul 10, 2024
70 of 71 checks passed
@WoosukKwon WoosukKwon deleted the fix-mixtral-shape branch July 10, 2024 16:02
adityagoel14 pushed a commit to adityagoel14/vllm-torchrun-test that referenced this pull request Jul 10, 2024
xjpang pushed a commit to xjpang/vllm that referenced this pull request Jul 24, 2024
Alvant pushed a commit to compressa-ai/vllm that referenced this pull request Oct 26, 2024
LeiWang1999 pushed a commit to LeiWang1999/vllm-bitblas that referenced this pull request Mar 26, 2025
Signed-off-by: LeiWang1999 <leiwang1999@outlook.com>
No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants