-
Notifications
You must be signed in to change notification settings - Fork 496
[EP] add initial support for NVSHMEM-based all-to-all #1569
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,7 +88,9 @@ def forward( # type: ignore[no-untyped-def] | |
out_splits_offsets, grad_out_buf, grad_in_buf, grad_in_splits_offsets | ||
) | ||
ctx.group_name = group_name | ||
return out | ||
|
||
# TODO: why do we need this clone? | ||
return out.clone() | ||
Comment on lines
+92
to
+93
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you try removing this clone after we added out_buffer.detach() ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. still erroring out if removing this clone
|
||
|
||
@staticmethod | ||
def backward( # type: ignore[no-untyped-def] | ||
|
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.
i think this new implementation will get rid of the need of
torch._dynamo.config.capture_scalar_outputs
, avoiding the need to handle unbacked symints