Skip to content

Sparse MoE - #116

Open
Oleksiy Ostapenko (oleksost) wants to merge 25 commits into
mainfrom
sparse_masks
Open

Sparse MoE#116
Oleksiy Ostapenko (oleksost) wants to merge 25 commits into
mainfrom
sparse_masks

Conversation

@oleksost

@oleksost Oleksiy Ostapenko (oleksost) commented Sep 27, 2024

Copy link
Copy Markdown
Contributor

At a high level: we compute base activations first, and then in the kernel, we do the scattering and dds multiplication, where tokens are only processed by their selected (top-K) sparse experts.

TODOs:

  • look into runtime etc.
  • make it work with other block-sizes
  • look into scattered MoE implementation

with sparsity/stk/measure_time.py:
image

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.

2 participants