Skip to content

Support splitting physical axis in SPMD mesh#8698

Merged
qihqi merged 1 commit intomasterfrom
yifeit/split-physical-axis
Feb 14, 2025
Merged

Support splitting physical axis in SPMD mesh#8698
qihqi merged 1 commit intomasterfrom
yifeit/split-physical-axis

Conversation

@tengyifei
Copy link
Copy Markdown
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
Copy Markdown
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.

@tengyifei tengyifei requested review from lsy323 and qihqi February 12, 2025 19:03
@qihqi qihqi merged commit 8a71249 into master Feb 14, 2025
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

2 participants