Skip to content

Conversation

@stas00
Copy link
Collaborator

@stas00 stas00 commented Oct 6, 2025

MoE routers seem to drop the bs dimension in x so the [bs, seqlen, hidden_size] is no longer always expected. This PR adds support for x.shape being [seqlen, hidden_size] use-case.

Signed-off-by: Stas Bekman <[email protected]>
@stas00 stas00 removed the request for review from tohtana October 6, 2025 22:30
@stas00 stas00 enabled auto-merge (squash) October 6, 2025 23:19
@stas00 stas00 merged commit 1b08325 into master Oct 7, 2025
10 of 12 checks passed
@stas00 stas00 deleted the stas/tiled_mlp_moe branch October 7, 2025 13:33
Liangliang-Ma pushed a commit to Liangliang-Ma/DeepSpeed that referenced this pull request Oct 13, 2025
MoE routers seem to drop the `bs` dimension in `x` so the `[bs, seqlen,
hidden_size]` is no longer expected. support that use-case.

Signed-off-by: Stas Bekman <[email protected]>
Signed-off-by: Ma, Liangliang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants