Skip to content

Commit

Permalink
fix standalone dataloader with 1 CPU host
Browse files Browse the repository at this point in the history
  • Loading branch information
aireenmei committed Nov 4, 2024
1 parent 5253b94 commit 6115660
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 6115660

Please sign in to comment.