Skip to content

[WIP] token-expert assignments and layer affinity tracking for expert placement via ILP solving #1152

New issue

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

By clicking “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? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lessw2020
Copy link
Contributor

Token tracking class that can be plugged in via two points into a given MoE model to track expert assignments per layer, per token.
This generates:
a - expert load per layer stats
b - token to expert per layer flow for ILP solving of token-expert affiliation for better expert placement.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 28, 2025
@lessw2020 lessw2020 changed the title [WIP] expert assignments tracking for ILP solving [WIP] token-expert assignments and layer affinity tracking for expert placement via ILP solving Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants