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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions openfold/utils/seed.py

This file was deleted.

26 changes: 0 additions & 26 deletions openfold/utils/suppress_output.py

This file was deleted.

4 changes: 2 additions & 2 deletions train_openfold.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from pytorch_lightning.callbacks.model_checkpoint import ModelCheckpoint
from pytorch_lightning.loggers import WandbLogger
from pytorch_lightning.plugins.training_type import DeepSpeedPlugin, DDPPlugin
from pytorch_lightning.utilities.seed import seed_everything
import torch

from openfold.config import model_config
Expand All @@ -23,7 +24,6 @@
from openfold.utils.loss import AlphaFoldLoss, lddt_ca
from openfold.utils.lr_schedulers import AlphaFoldLRScheduler
from openfold.utils.multi_chain_permutation import multi_chain_permutation_align
from openfold.utils.seed import seed_everything
from openfold.utils.superimposition import superimpose
from openfold.utils.tensor_utils import tensor_tree_map
from openfold.utils.validation_metrics import (
Expand Down Expand Up @@ -272,7 +272,7 @@ def load_from_jax(self, jax_path):

def main(args):
if(args.seed is not None):
seed_everything(args.seed)
seed_everything(args.seed, workers=True)

config = model_config(
args.config_preset,
Expand Down
Loading