-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
ref: separate slurm from ddp #3809
Conversation
This pull request is now in conflict... :( |
def broadcast(self, obj, src=0): | ||
return self.dist.broadcast(obj) |
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.
why's src unused?
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 is an override of the parent method in Accelerator. It's to keep behavior consistent
across accelerators.
src is already set into this object automatically.
Hello @williamFalcon! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-10-03 02:47:46 UTC |
# ------------------------------------------- | ||
# !!!!!!!!!!!!!! NOTE !!!!!!!!!!!!!!!!!!!!!! | ||
# TEMP CLASS WHILE WE DECOUPLE SLURM FROM DDP | ||
# !!!!!!!!!!!!!! NOTE !!!!!!!!!!!!!!!!!!!!!! | ||
# ------------------------------------------- | ||
class DDPSLURMBackend(Accelerator): |
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.
what's the final envisioned setup for slurm + DDP? is torchelastic being split out too?
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.
te is already split out :)
I think right now it's to finish fixing DDP and having 3 types of ddp tied to the same file is making debugging impossible.
Once those tests pass, i'll fix the TE cpu ddp.
Then we'll see where we are with time, but i'd like to make something like a cluster_manager or something that is passed into the trainer as well and then linked to a backend.
ref: separate slurm from ddp