mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-30 02:53:41 +08:00
Fixes to references to hf_datasets
This commit is contained in:
parent
c72122064a
commit
04cf93df55
@ -201,7 +201,7 @@ def load_custom_hf_dataset(args, tokenizer: PreTrainedTokenizer):
|
||||
)
|
||||
return train, valid
|
||||
|
||||
if args.datasets:
|
||||
if args.hf_datasets:
|
||||
dataset_collection = args.hf_datasets
|
||||
train_collection = []
|
||||
valid_collection = []
|
||||
@ -263,7 +263,7 @@ def load_custom_hf_dataset(args, tokenizer: PreTrainedTokenizer):
|
||||
|
||||
|
||||
def load_dataset(args, tokenizer: PreTrainedTokenizer):
|
||||
if getattr(args, "hf_dataset", None) is not None:
|
||||
if getattr(args, "hf_dataset", None) is not None or getattr(args, "hf_datasets"):
|
||||
train, valid, test = load_custom_hf_dataset(args, tokenizer)
|
||||
else:
|
||||
data_path = Path(args.data)
|
||||
|
Loading…
Reference in New Issue
Block a user