Skip to content
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 distributed seeding behavior #418

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Fix distributed seeding behavior #418

merged 1 commit into from
Mar 21, 2024

Conversation

ljarosch
Copy link
Collaborator

This adds workers=True to the Lightning seed_everything function which guarantees different random states across all processes in distributed training. Prior to that some processes on different GPUs with the same worker ID could share the same random state.

Note that this will break reproducibility between runs prior to and after this change.

Also removes the seed and suppress_output modules that were not used anymore in OpenFold.

This adds workers=True to the Lightning seed_everything function which guarantees different random states across all processes in distributed training. Prior to that some processes on different GPUs with the same worker ID could share the same random state.

Note that this will break reproducibility between runs prior to and after this change.

Also removes the seed and supress_output modules that were not used anymore in OpenFold.
@ljarosch ljarosch requested a review from jnwei March 19, 2024 17:06
Copy link
Collaborator

@jnwei jnwei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jnwei jnwei merged commit 127f1e7 into main Mar 21, 2024
3 checks passed
@jnwei jnwei deleted the seeding-fix branch March 21, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants