mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 17:31:18 +08:00
Bug fix in lora.py (#468)
This commit is contained in:
parent
20b39c7fee
commit
15ecf692b9
@ -141,7 +141,7 @@ def load(args):
|
|||||||
def load_and_check(name):
|
def load_and_check(name):
|
||||||
dataset_path = Path(args.data) / f"{name}.jsonl"
|
dataset_path = Path(args.data) / f"{name}.jsonl"
|
||||||
try:
|
try:
|
||||||
train = Dataset(dataset_path)
|
return Dataset(dataset_path)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Unable to build dataset {dataset_path} ({e})")
|
print(f"Unable to build dataset {dataset_path} ({e})")
|
||||||
raise
|
raise
|
||||||
|
Loading…
Reference in New Issue
Block a user