Skip to content

Commit f479b07

Browse files
authored
moe/download.py - ignore safetensors download (#130)
* moe/download.py - ignore safetensors download
1 parent 9575c7b commit f479b07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mixtral-moe/scripts/download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def hf_download(repo_id: Optional[str] = None, hf_token: Optional[str] = None) -
1313
from huggingface_hub import snapshot_download
1414
os.makedirs(f"checkpoints/{repo_id}", exist_ok=True)
1515
try:
16-
snapshot_download(repo_id, local_dir=f"checkpoints/{repo_id}", local_dir_use_symlinks=False, token=hf_token)
16+
snapshot_download(repo_id, local_dir=f"checkpoints/{repo_id}", local_dir_use_symlinks=False, token=hf_token, ignore_patterns="*.safetensors")
1717
except HTTPError as e:
1818
if e.response.status_code == 401:
1919
print("You need to pass a valid `--hf_token=...` to download private checkpoints.")

0 commit comments

Comments
 (0)