Skip to content

Commit

Permalink
fixed docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
snarayan21 committed Feb 7, 2024
1 parent 4dd8524 commit 7d01495
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions llmfoundry/callbacks/curriculum_learning_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

"""Enable curriculum learning by resuming with a different dataset.
This callback is currently experimental. The API may change in the future.
This callback is currently experimental. The API may change without warning in
the future.
"""

import logging
Expand All @@ -20,7 +21,7 @@
class CurriculumLearning(Callback):
"""Starts an epoch with a different dataset when resuming from a checkpoint.
This callback is currently experimental. The API may change in the future.
This callback is currently experimental. The API may change without warning in the future.
Args:
dataset_index (int): The index of the dataset currently being used.
Expand Down
2 changes: 2 additions & 0 deletions scripts/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,8 @@ def main(cfg: DictConfig) -> Trainer:
)

# Callbacks
# This has been moved below dataloader instantiation since some callbacks
# (e.g. CurriculumLearning) require access to the dataloader.
callbacks: List[Callback] = [
build_callback(str(name), callback_cfg, om.to_container(logged_cfg),
train_loader.dataloader)
Expand Down

0 comments on commit 7d01495

Please sign in to comment.