Skip to content

Commit

Permalink
fix dataset preprocess (#2102)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jintao-Huang committed Sep 23, 2024
1 parent a3afb9f commit 4bd62ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swift/llm/utils/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2813,7 +2813,7 @@ def load_dataset_from_local(dataset_path_list: Optional[Union[str, List[str]]],
dataset = preprocess_func(dataset)
if streaming:
dataset = dataset.to_iterable_dataset()
dataset_list.append(preprocess_func(dataset))
dataset_list.append(dataset)

if len(dataset_list) == 1:
return dataset_list[0]
Expand Down

0 comments on commit 4bd62ea

Please sign in to comment.