Skip to content

Commit

Permalink
Hardcodings for Grain Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
anfals committed Aug 20, 2024
1 parent bf33d7c commit 90d7304
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MaxText/input_pipeline/input_pipeline_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ def make_mixed_train_iterator(config, mesh, add_bos, add_eos):
if config.dataset_type == "tfds":
return make_tfds_iterator(config, mesh, add_bos, add_eos, process_indices)
elif config.dataset_type == "grain":
return make_grain_iterator(config, mesh, add_bos, add_eos, process_indices)
# Hardcoding this for now
return make_grain_iterator(config, mesh, False, False, process_indices)
elif config.dataset_type == "hf":
return make_hf_iterator(config, mesh, add_bos, add_eos, process_indices)
else:
Expand Down

0 comments on commit 90d7304

Please sign in to comment.