Skip to content

Commit b35ba1d

Browse files
committed
[dataset] fix toolbench (local) (#4563)
1 parent d88bada commit b35ba1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/llm/dataset/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def _load_repo_dataset(
243243
# The dataset downloaded from modelscope will have an additional dataset_infos.json file.
244244
dataset_infos_path = os.path.join(dataset_id, 'dataset_infos.json')
245245
if os.path.isfile(dataset_infos_path):
246-
os.rename(dataset_infos_path, f'{dataset_infos_path}.bak')
246+
os.rename(dataset_infos_path, f'{dataset_infos_path}_bak')
247247
elif dataset_id.startswith('/'):
248248
raise ValueError(f'The local path does not exist, dataset_id: `{dataset_id}`. '
249249
f'os.path.exists(dataset_id): {os.path.exists(dataset_id)}')

0 commit comments

Comments
 (0)