Skip to content

Commit

Permalink
Disable batch shuffling. Only per sample (#196)
Browse files Browse the repository at this point in the history
disable batch shuffling. only per sample

Currently batch size will affect the order of samples, therefore can't adjust the effective batch_size (num_gpus * batch_size * update_freq) and keep the same results. 

See for context: dptech-corp/Uni-Core#39
  • Loading branch information
hypnopump authored Dec 26, 2023
1 parent d4d5590 commit 5a9f8fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions unimol/unimol/tasks/unimol.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,7 @@ def build_model(self, args):

model = models.build_model(args, self)
return model

def disable_shuffling(self) -> bool:
return True

0 comments on commit 5a9f8fe

Please sign in to comment.