File size: 295 Bytes
6ec9472 | 1 2 3 4 5 6 7 8 9 | import sys, time
from huggingface_hub import snapshot_download
repo = sys.argv[1]
t0 = time.time()
p = snapshot_download(repo, allow_patterns=["*.json", "*.safetensors", "*.txt", "*.model"],
max_workers=8)
print(f"DONE {repo} -> {p} in {time.time()-t0:.0f}s", flush=True)
|