Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JAEarly committed Jun 20, 2024
1 parent 8fb310d commit 523ac9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3640,8 +3640,8 @@ def _iter_dataloader(self, trainer_mode: TrainerMode):
else:
dataloader_iter = itertools.islice(self.state.dataloader, int(self.state.dataloader_len))

# Track if iteration has finished (use for distributed training when we have variable length dataloaders)
# 0 = not finished, 1 = finished (use integer tensors so we can use dist.all_reduce)
# Track if iteration has finished (used for distributed training when we have variable length dataloaders)
# 0 = not finished, 1 = finished (using integer tensors so we can use dist.all_reduce)
iter_finished = torch.zeros(1, dtype=torch.uint8)
iter_finished = self.state.device.tensor_to_device(iter_finished)
while True:
Expand Down

0 comments on commit 523ac9e

Please sign in to comment.