From 49b1e88e3da3be0fb78f53e5f924a9be67568a02 Mon Sep 17 00:00:00 2001 From: hiyouga <467089858@qq.com> Date: Mon, 3 Jun 2024 18:28:27 +0800 Subject: [PATCH] fix data loader hint --- src/llamafactory/data/loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/llamafactory/data/loader.py b/src/llamafactory/data/loader.py index d4a19e27..f5929f15 100644 --- a/src/llamafactory/data/loader.py +++ b/src/llamafactory/data/loader.py @@ -62,9 +62,9 @@ def load_single_dataset( raise ValueError("File {} not found.".format(local_path)) if data_path is None: - raise ValueError("File extension must be txt, csv, json or jsonl.") + raise ValueError("Allowed file types: {}.".format(",".join(FILEEXT2TYPE.keys()))) else: - raise NotImplementedError + raise NotImplementedError("Unknown load type: {}.".format(dataset_attr.load_from)) if dataset_attr.load_from == "ms_hub": try: