Bug fix in lora.py (#468)

This commit is contained in:
Sergey Shumov
2024-02-20 12:53:30 -08:00
committed by GitHub
parent 20b39c7fee
commit 15ecf692b9

View File

@@ -141,7 +141,7 @@ def load(args):
def load_and_check(name):
dataset_path = Path(args.data) / f"{name}.jsonl"
try:
train = Dataset(dataset_path)
return Dataset(dataset_path)
except Exception as e:
print(f"Unable to build dataset {dataset_path} ({e})")
raise