Considering the lack of multi-threaded download support in the official huggingface-cli, and the inadequate error handling in hf_transfer, this command-line tool smartly utilizes wget or aria2 for LFS files and git clone for the rest.
- ⏯️ Resume from breakpoint: You can re-run it or Ctrl+C anytime.
- 🚀 Multi-threaded Download: Utilize multiple threads to speed up the download process.
- 🚫 File Exclusion: Use --excludeor--includeto skip or specify files, save time for models with duplicate formats (e.g.,*.binor*.safetensors).
- 🔐 Auth Support: For gated models that require Huggingface login, use --hf_usernameand--hf_tokento authenticate.
- 🪞 Mirror Site Support: Set up with HF_ENDPOINTenvironment variable.