Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/pip/accelerate-gte-0.25-and-lt-0.34
Browse files Browse the repository at this point in the history
  • Loading branch information
mvpatel2000 authored Jul 29, 2024
2 parents 71021d6 + 5c7e99b commit d8493f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions llmfoundry/command_utils/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ def train(cfg: DictConfig) -> Trainer:
dist_timeout=train_cfg.dist_timeout,
profiler=profiler,
compile_config=compile_config,
spin_dataloaders=train_cfg.spin_dataloaders,
)

# Optionally just save an HF checkpoint
Expand Down
1 change: 1 addition & 0 deletions llmfoundry/utils/config_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ class TrainConfig:
# Dataloader
device_train_microbatch_size: Union[str, int, float] = 'auto'
global_train_batch_size: Optional[int] = None
spin_dataloaders: bool = True

# Eval dataloader
eval_subset_num_batches: int = -1
Expand Down

0 comments on commit d8493f6

Please sign in to comment.