Skip to content

Commit

Permalink
Expose DistributedSampler RNG seed argument
Browse files Browse the repository at this point in the history
  • Loading branch information
janEbert committed Nov 28, 2024
1 parent d1f12f0 commit 68c0d6c
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 68c0d6c

Please sign in to comment.