Skip to content

Commit

Permalink
Merge pull request #1013 from AI-Hypercomputer:aireen/fix_standalone_…
Browse files Browse the repository at this point in the history
…dataloader

PiperOrigin-RevId: 693467499
  • Loading branch information
maxtext authors committed Nov 5, 2024
2 parents 5253b94 + 6115660 commit 3350da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MaxText/input_pipeline/input_pipeline_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def get_process_loading_real_data(
batch_cutoff = global_batch_size_to_train_on
process_loading_real_data = set()
for p, indices in devices_indices_map.items():
if indices[0].stop <= batch_cutoff:
if not indices[0].stop or indices[0].stop <= batch_cutoff:
process_loading_real_data.add(p.process_index)
return list(process_loading_real_data)

Expand Down

0 comments on commit 3350da4

Please sign in to comment.