mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-28 00:30:09 +08:00
Fixes to references to hf_datasets
This commit is contained in:
parent
214c79be9c
commit
387c45efa2
@ -254,7 +254,7 @@ def load_custom_hf_dataset(args, tokenizer: PreTrainedTokenizer):
|
||||
|
||||
|
||||
def load_dataset(args, tokenizer: PreTrainedTokenizer):
|
||||
if getattr(args, "hf_dataset", False):
|
||||
if getattr(args, "hf_dataset", False) or getattr(args, "hf_datasets", False):
|
||||
train, valid, test = load_custom_hf_dataset(args, tokenizer)
|
||||
else:
|
||||
data_path = Path(args.data)
|
||||
|
Loading…
Reference in New Issue
Block a user