Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyouga authored and Yu Wang committed Sep 5, 2024
1 parent 2050320 commit 2d6e64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llamafactory/data/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def get_dataset(
if data_args.streaming:
dataset_module = {k: v.to_iterable_dataset() for k, v in dataset_module.items()}

return dataset_module
return dataset_module, template

if data_args.streaming:
raise ValueError("Turn off `streaming` when saving dataset to disk.")
Expand Down

0 comments on commit 2d6e64b

Please sign in to comment.