-
Notifications
You must be signed in to change notification settings - Fork 335
Fallback to standard mesh on neuron backend for incompatible multi-granule meshes #1146
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
base: main
Are you sure you want to change the base?
Conversation
Rebased the PR |
axlearn/common/utils.py
Outdated
if ( | ||
device_platform == "gpu" | ||
device_platform in ("gpu", "neuron") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
device_platform in ("gpu", "neuron") | |
device_platform != "tpu" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made this change, thank you!
axlearn/common/utils.py
Outdated
@@ -1743,13 +1743,15 @@ def create_device_mesh( | |||
assert num_devices % num_granules == 0, "Number of devices should divide number of granules." | |||
num_devices_per_granule = num_devices // num_granules | |||
|
|||
# Fallback to a standard mesh if on GPU with incompatible multi-granule mesh. | |||
# Fallback to a standard mesh if on GPU or neuron with incompatible multi-granule mesh. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Fallback to a standard mesh if on GPU or neuron with incompatible multi-granule mesh. | |
# Fallback to a standard mesh with incompatible multi-granule mesh if not on TPU. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made this change, thank you!
- Switch to a new mesh for neuron-(trn2|trn2n).48xlarge-64 with better scale-out performance.
Allow fallback to standard mesh for multi-granule mesh as such a mesh provides better performance on TRN2
neuron-(trn2|trn2n).48xlarge-64
on70B-FujiV2
as it provides better scale-out performance.