mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-09-01 12:49:50 +08:00
Support for slerp merging models (#455)
* support for slerp merging models * docs * update docs * format'
This commit is contained in:
12
lora/lora.py
12
lora/lora.py
@@ -139,12 +139,12 @@ class Dataset:
|
||||
|
||||
def load(args):
|
||||
def load_and_check(name):
|
||||
dataset_path = Path(args.data) / f"{name}.jsonl"
|
||||
try:
|
||||
train = Dataset(dataset_path)
|
||||
except Exception as e:
|
||||
print(f"Unable to build dataset {dataset_path} ({e})")
|
||||
raise
|
||||
dataset_path = Path(args.data) / f"{name}.jsonl"
|
||||
try:
|
||||
train = Dataset(dataset_path)
|
||||
except Exception as e:
|
||||
print(f"Unable to build dataset {dataset_path} ({e})")
|
||||
raise
|
||||
|
||||
names = ("train", "valid", "test")
|
||||
train, valid, test = (load_and_check(n) for n in names)
|
||||
|
Reference in New Issue
Block a user