Skip to content

Add chunked MoE support to MaxText. - #4499

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_948589902
Jul 18, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_948589902

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Add chunked MoE support to MaxText.
It introduces the num_moe_token_chunks configuration to allow chunking of the MoE layer.
Also includes equiv_chunk_test.py to verify that chunked MoE produces equivalent results to the unchunked implementation.

  • I have tested these changes
  • I have updated the documentation

@codecov

codecov Bot commented Jul 16, 2026 •

Copy link
Copy Markdown

@copybara-service
copybara-service Bot force-pushed the test_948589902 branch 6 times, most recently from 135b744 to d842281 Compare July 16, 2026 19:51
It introduces the `num_moe_token_chunks` configuration to allow chunking of the MoE layer.
Also includes `equiv_chunk_test.py` to verify that chunked MoE produces equivalent results to the unchunked implementation.

- [x] I have tested these changes
- [x] I have updated the documentation

PiperOrigin-RevId: 950076344
@copybara-service
copybara-service Bot merged commit dfd8d29 into main Jul 18, 2026
@copybara-service
copybara-service Bot deleted the test_948589902 branch July 18, 2026 15:01
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.

2 participants