Skip to content

Commit

Permalink
Expose DistributedSampler RNG seed argument (#1677)
Browse files Browse the repository at this point in the history
Co-authored-by: Mihir Patel <[email protected]>
Co-authored-by: Saaketh Narayan <[email protected]>
  • Loading branch information
3 people authored Dec 5, 2024
1 parent f0cf727 commit ff3d901
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llmfoundry/data/finetuning/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ def build_finetuning_dataloader(
replication_factor if replication_factor > 1 else None,
rank=dist.get_global_rank() //
replication_factor if replication_factor > 1 else None,
seed=dataset_cfg.get('shuffle_seed', 0),
)

assert streaming_dataset is not None # for pyright
Expand Down

0 comments on commit ff3d901

Please sign in to comment.