Skip to content

Commit

Permalink
Change back to changing all seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasburian committed Oct 29, 2024
1 parent b3535ec commit 269e1a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bulkmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def run_main(args):
torch.cuda.manual_seed(seed)
torch.cuda.manual_seed_all(seed)
#from transformers import *
random.seed(42)
np.random.seed(42)
os.environ['PYTHONHASHSEED'] = str(42)
random.seed(seed)
np.random.seed(seed)
os.environ['PYTHONHASHSEED'] = str(seed)
#torch.manual_seed(seed)
#torch.cuda.manual_seed(seed)
torch.backends.cudnn.deterministic = True
Expand Down
6 changes: 3 additions & 3 deletions scmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ def run_main(args):
torch.cuda.manual_seed(seed)
torch.cuda.manual_seed_all(seed)
#from transformers import *
random.seed(42)
np.random.seed(42)
os.environ['PYTHONHASHSEED'] = str(42)
random.seed(seed)
np.random.seed(seed)
os.environ['PYTHONHASHSEED'] = str(seed)

torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark=False
Expand Down

0 comments on commit 269e1a1

Please sign in to comment.