Skip to content
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

Support splitting physical axis in SPMD mesh #8698

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

Conversation

tengyifei
Copy link
Collaborator

@tengyifei tengyifei commented Feb 11, 2025

Previously, you cannot create a logical [64, 4] mesh that is backed by a physical [16, 16] torus. That requires splitting one physical axis to support two logical axes.

This is now supported by copying a bunch of code from JAX, updating the copies we had before.

Fixes #8381

Previously, you cannot create a logical [64, 4] mesh that is backed by a
physical [16, 16] torus. That requires splitting one physical axis to
support two logical axes.

This is now supported by copying a bunch of code from JAX, updating the
copies we had before.
@tengyifei tengyifei marked this pull request as ready for review February 11, 2025 02:13
@tengyifei tengyifei requested a review from bhavya01 February 11, 2025 22:52
@tengyifei
Copy link
Collaborator Author

I couldn't add a test because there's no large enough TPUs in CI to demonstrate breaking a physical axis. But I did cloud build this branch and tested the docker with torchprime.

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.

Support splitting physical axis in HybridMesh
1 participant