We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3f9b83 commit cbf7e2cCopy full SHA for cbf7e2c
mixtral-moe/scripts/download.py
@@ -13,7 +13,7 @@ def hf_download(repo_id: Optional[str] = None, hf_token: Optional[str] = None) -
13
from huggingface_hub import snapshot_download
14
os.makedirs(f"checkpoints/{repo_id}", exist_ok=True)
15
try:
16
- snapshot_download(repo_id, local_dir=f"checkpoints/{repo_id}", local_dir_use_symlinks=False, token=hf_token)
+ snapshot_download(repo_id, local_dir=f"checkpoints/{repo_id}", local_dir_use_symlinks=False, token=hf_token, ignore_patterns="*.safetensors")
17
except HTTPError as e:
18
if e.response.status_code == 401:
19
print("You need to pass a valid `--hf_token=...` to download private checkpoints.")
0 commit comments