Skip to content

Commit

Permalink
tools: Remove two deprecated arguments from download.py
Browse files Browse the repository at this point in the history
Recent versions of huggingface_hub ignore these.
  • Loading branch information
zeux committed Jul 22, 2024
1 parent 9a90022 commit 50f502e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

# download model folder from HuggingFace, excluding .bin files (assume the model contains safetensors)
ignore_patterns = ["*.bin", "*.pth", "*.pt", "*.gguf", "consolidated.safetensors"] if not args.all else []
huggingface_hub.snapshot_download(repo_id=args.repo, local_dir=args.output, local_dir_use_symlinks=False, resume_download=True, ignore_patterns=ignore_patterns)
huggingface_hub.snapshot_download(repo_id=args.repo, local_dir=args.output, ignore_patterns=ignore_patterns)

0 comments on commit 50f502e

Please sign in to comment.