Skip to content

Add support for Tokamax GMM v2 heuristic tiling function. - #4935

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_966100631
Open

Add support for Tokamax GMM v2 heuristic tiling function.#4935
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_966100631

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Add support for Tokamax GMM v2 heuristic tiling function.

Description

This change introduces a new configuration option, use_gmm_v2_tiling_fn, which allows MaxText to use the heuristic tiling functions from Tokamax GMM v2 and TGMM v2 instead of custom tile sizes. The option is integrated into the MoE layer, Megablox GMM operations, configuration validation, and documentation. An integration test has also been added to verify the heuristic tiling path.

Tests

E2E Test

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • [] I have performed a self-review of my code. For an optional AI review, add the gemini-review label.
  • [] I have necessary comments in my code, particularly in hard-to-understand areas.
  • [] I have run end-to-end tests tests and provided workload links above if applicable.
  • [] I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

# Description

This change introduces a new configuration option, use_gmm_v2_tiling_fn, which allows MaxText to use the heuristic tiling functions from Tokamax GMM v2 and TGMM v2 instead of custom tile sizes. The option is integrated into the MoE layer, Megablox GMM operations, configuration validation, and documentation. An integration test has also been added to verify the heuristic tiling path.

# Tests

### E2E Test

# Checklist

Before submitting this PR, please make sure (put X in square brackets):
- [] I have performed a self-review of my code. For an optional AI review, add the `gemini-review` label.
- [] I have necessary comments in my code, particularly in hard-to-understand areas.
- [] I have run end-to-end tests tests and provided workload links above if applicable.
- [] I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

PiperOrigin-RevId: 966100631
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.

1 participant