Skip to content

Conversation

@metastableB
Copy link

Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/2142

  • Adds support for top_k=8 argument to the index_shuffling kernel, used as part of token shuffling moe implementations. Modifies tiling/dispatch logic to enable this.

  • Adds unit test for top_k=8.

Differential Revision: D86728049

@meta-cla meta-cla bot added the cla signed label Nov 17, 2025
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Nov 17, 2025

@metastableB has exported this pull request. If you are a Meta employee, you can view the originating Diff in D86728049.

metastableB added a commit to metastableB/FBGEMM-1 that referenced this pull request Nov 17, 2025
Summary:

X-link: facebookresearch/FBGEMM#2142

- Adds support for top_k=8 argument to the `index_shuffling` kernel, used as part of token shuffling moe implementations. Modifies tiling/dispatch logic to enable this.

- Adds unit test for top_k=8.

Differential Revision: D86728049
Summary:
- Existing `index_shuffling` kernel in fbgemm supports `top_k` values of `{1, 2, 4}`. This diff adds support for top_k=8.
- Refactors tiling/dispatch logic to enable the `top_k=8` case
- Adds unit test for k=8 and adds another additional test to explicitly test the tile size boundaries.

Reviewed By: jasonjk-park

Differential Revision: D86728049
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant