Skip to content

Commit

Permalink
Set shuffle=True to test again #6531
Browse files Browse the repository at this point in the history
  • Loading branch information
loadams committed Nov 4, 2024
1 parent 9068acb commit 29587e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deepspeed/runtime/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,7 @@ def deepspeed_io(self,
dataset,
num_replicas=data_parallel_world_size,
rank=data_parallel_rank,
shuffle=False,
shuffle=True,
)

deepspeed_dataloader_config = {}
Expand Down
2 changes: 1 addition & 1 deletion deepspeed/runtime/pipe/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def _build_data_iter(self, dataset):
sampler = torch.utils.data.distributed.DistributedSampler(dataset,
num_replicas=self.dp_world_size,
rank=self.mpu.get_data_parallel_rank(),
shuffle=False)
shuffle=True)
# Build a loader and make it repeating.
pipe_dataloader = self.deepspeed_io(dataset, data_sampler=sampler)
pipe_dataloader = RepeatingLoader(pipe_dataloader)
Expand Down

0 comments on commit 29587e2

Please sign in to comment.