Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion swift/llm/utils/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ def load_dataset_from_local(
assert isinstance(dataset_path, str)
df: DataFrame
if dataset_path.endswith('.csv'):
df = pd.read_csv(dataset_path)
df = pd.read_csv(dataset_path, na_filter=False)
elif dataset_path.endswith('.jsonl'):
df = transform_jsonl_to_df(read_from_jsonl(dataset_path))
elif dataset_path.endswith('.json'):
Expand Down
2 changes: 1 addition & 1 deletion tests/llm/data/alpaca.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
instruction,input,output
11111,22222,33333
aaaaa,bbbbb,ccccc
aaaaa,,ccccc
AAAAA,BBBBB,CCCCC