-
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
Fix global seed missing bug with DDP [WIP] #3904
Conversation
Awaiting response on the issue to create a test to ensure case is fixed. |
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.
but this doesn't set the seed if it is not None, I think you need to keep the assignment
Codecov Report
@@ Coverage Diff @@
## master #3904 +/- ##
=======================================
- Coverage 87% 85% -2%
=======================================
Files 117 117
Lines 9214 9502 +288
=======================================
+ Hits 8053 8117 +64
- Misses 1161 1385 +224 |
@SeanNaren good catch! |
@awaelchli Shouldn't this already be set in env_copy since we're doing a copy?
@williamFalcon Will do, I really want to add a test because I'm unsure how to reproduce this and what's the case where this pops up. Any ideas? |
yeah, that's hard haha... i don't know where this would happen either. It looks like if you set an envvar and use popopen then it will crash? likely because a user calls popen themselves which is fine. the test is very involved though, we can talk offline about it. |
i don't understand what you mean by this |
Two cases:
|
As I said, if the user does not set the seed, running our mnist example with ddp gives
|
Thanks @awaelchli realised we were missing a check... has already been fixed in #3927 |
What does this PR do?
Closes #3898.
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃