-
Notifications
You must be signed in to change notification settings - Fork 370
Moe support #3811
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?
Moe support #3811
Conversation
22edfe6
to
fa53986
Compare
fa53986
to
6ea89ae
Compare
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.
Could you add detailed comments demonstrating what it does now that you've gone through the entire converter ? that would be helpful
9e7ca5d
to
c286767
Compare
gm.graph.erase_node(node) | ||
gm = clean_up_graph_after_modifications(gm) | ||
|
||
gm = clean_up_graph_after_modifications(gm) |
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.
Is this just because we only need one cleanup?
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.
Yeah or otherwise it could take forever
# param( | ||
# test_name="4d_indices_none_none_multiple_idx_broadcast_error", | ||
# source_tensor=torch.zeros([1, 2, 5, 3], dtype=torch.float32), | ||
# indices_tensor=(None, None, torch.tensor([0, 1, 2], dtype=torch.int64)), | ||
# value_tensor=torch.randn([2, 3, 3], dtype=torch.float32), | ||
# ), |
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.
Consider mentioning the limitations of this converter and why this case is not supported ?
class Model(torch.nn.Module): | ||
def forward(self, x, y, z, a, b): | ||
x.index_add_(0, y, z) | ||
x.index_add_(0, a, b) | ||
return x |
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.
Does this testcase produce index_put ops ? or how is this connected ?
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant and/or add your own.
Checklist: