-
Notifications
You must be signed in to change notification settings - Fork 108
[DTensor] Add torch symbol and prim for _grouped_mm #2503
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
7d785d7
to
9221690
Compare
We need to make the access to |
Have made the access conditional, thanks @t-vi |
"input_shardings", | ||
[ | ||
( | ||
[ | ||
Shard( | ||
-1, | ||
) | ||
], | ||
[ | ||
Shard(1), | ||
], | ||
[Replicate()], | ||
), | ||
], |
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.
QQ: what's the type of input_shardings
? Tuple of two list of Shard/Replicates?
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.
It is
[
([Shard(-1)], [Shard(1)], [Replicate()]),
]
NOTE: Each elements of the tuple is Sequence[Placement]
as expected by distribute_tensor
Related #2338
TODO:
Figure out why we seeNeed to set environment variables for nvFuser multi-device to work. See changes toError from segmentation group 1: The singleton Communicator isn't available. This is most likely because the instance wasn't successfully initialized due to lack of a multi-process running (e.g. mpirun or torchrun).
only when running this primitive.helper.py