mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 09:21:18 +08:00
Fix link in docstring in wikitext function
This commit is contained in:
parent
1289f0bd9c
commit
5a0c36d8b6
@ -40,7 +40,9 @@ def _load(save_dir, filenames):
|
|||||||
def wikitext(dataset="2", save_dir="/tmp"):
|
def wikitext(dataset="2", save_dir="/tmp"):
|
||||||
"""
|
"""
|
||||||
Load the WikiText-* language modeling dataset:
|
Load the WikiText-* language modeling dataset:
|
||||||
https://paperswithcode.com/dataset/penn-treebank
|
https://paperswithcode.com/dataset/wikitext-2
|
||||||
|
https://paperswithcode.com/dataset/wikitext-103
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if dataset not in ("2", "103"):
|
if dataset not in ("2", "103"):
|
||||||
raise ValueError(f'Dataset must be either "2" or "103", got {dataset}')
|
raise ValueError(f'Dataset must be either "2" or "103", got {dataset}')
|
||||||
|
Loading…
Reference in New Issue
Block a user