Upload hfhub.py with huggingface_hub
Browse files
hfhub.py
CHANGED
|
@@ -31,7 +31,8 @@ ckpt_filepath = hf_hub_download(
|
|
| 31 |
repo_type="model",
|
| 32 |
cache_dir=Path(repo_dir),
|
| 33 |
resume_download=True,
|
| 34 |
-
subfolder="checkpoints",
|
| 35 |
-
filename=
|
|
|
|
| 36 |
)
|
| 37 |
print(ckpt_filepath)
|
|
|
|
| 31 |
repo_type="model",
|
| 32 |
cache_dir=Path(repo_dir),
|
| 33 |
resume_download=True,
|
| 34 |
+
# subfolder="checkpoints",
|
| 35 |
+
filename="hfhub.py",
|
| 36 |
+
local_dir=Path(repo_dir) / "checkpoints",
|
| 37 |
)
|
| 38 |
print(ckpt_filepath)
|