Upload folder using huggingface_hub
Browse files- tokenizer_nanogpt.py +1 -2
tokenizer_nanogpt.py
CHANGED
|
@@ -41,8 +41,7 @@ class NanoGPTTokenizer:
|
|
| 41 |
# This handles cache automatically and returns the cached file path
|
| 42 |
tok_path = hf_hub_download(
|
| 43 |
repo_id=pretrained_model_name_or_path,
|
| 44 |
-
filename="tokenizer.pkl"
|
| 45 |
-
**kwargs
|
| 46 |
)
|
| 47 |
with open(tok_path, "rb") as f:
|
| 48 |
enc = pickle.load(f)
|
|
|
|
| 41 |
# This handles cache automatically and returns the cached file path
|
| 42 |
tok_path = hf_hub_download(
|
| 43 |
repo_id=pretrained_model_name_or_path,
|
| 44 |
+
filename="tokenizer.pkl"
|
|
|
|
| 45 |
)
|
| 46 |
with open(tok_path, "rb") as f:
|
| 47 |
enc = pickle.load(f)
|