Skip to content

Instantly share code, notes, and snippets.

View yvonwin's full-sized avatar
🎯
Focusing

yvonwin

🎯
Focusing
View GitHub Profile
@yvonwin
yvonwin / README_hfd.md
Created March 21, 2024 01:19 — forked from padeoe/README_hfd.md
CLI-Tool for download Huggingface models and datasets with aria2/wget+git

🤗Huggingface Model Downloader

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.

Features

  • ⏯️ 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 --exclude or --include to skip or specify files, save time for models with duplicate formats (e.g., *.bin or *.safetensors).
  • 🔐 Auth Support: For gated models that require Huggingface login, use --hf_username and --hf_token to authenticate.
  • 🪞 Mirror Site Support: Set up with HF_ENDPOINT environment variable.
@yvonwin
yvonwin / listen1_aha_playlist.md
Last active January 15, 2019 07:28
updated by Listen1(http://listen1.github.io/listen1/) at 2019/1/15 下午3:28:39

本歌单由Listen1创建, 歌曲数:114,歌单数:2,点击查看更多