Skip to content

Commit

Permalink
make VSL curr config more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Sep 28, 2024
1 parent 9a11166 commit 7d26589
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/olmo_core/data/numpy_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,11 @@ class VSLCurriculumConfig(Config):
num_cycles: Optional[int] = None
balanced: Optional[bool] = None

def validate(self):
if self.name == VSLCurriculumType.natural:
self.num_cycles = None
self.balanced = None

def build(self) -> VSLCurriculum:
"""
Build the VSL curriculum.
Expand Down

0 comments on commit 7d26589

Please sign in to comment.