-
Notifications
You must be signed in to change notification settings - Fork 176
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
Disentangle DecentralizedAverager components, add weights #217
Conversation
@foksly if you have time, pls review this as well. |
return AllReduceRunner(group_id=group_info.group_id, tensors=averaged_tensors, endpoint=self.endpoint, | ||
ordered_group_endpoints=group_info.endpoints, part_sizes=part_sizes, | ||
weights=weights, gathered=user_gathered, return_deltas=True, **kwargs) | ||
except Exception as e: |
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's best to catch a more specific exception
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.
This code was intentionally written to catch all kinds of fails
including, but not limited to
- malformed metadata
- serialization errors
- negative throughputs
- unsolvable load_balancing
- your endpoint is not in group
- some endpoint is present multiple times
- AssertionError
[Resolution: let's keep it as is for now]
This PR changes the internal logic of DecentralizedAverager to make matchmaking code independent of allreduce and vice versa.