A standalone version of TabbyAPI's downloader
I wanted to add a downloader in TabbyAPI, which is a backend for inferencing with LLMs. However, there were some problems with already existing implementations that use the huggingface_hub package and its snapshot_download function.
The main problem was that a KeyboardInterrupt would not stop the download (and therefore won't allow the API to close on SIGINT). In addition, TabbyAPI is an asynchronous program (like most modern networking programs in python). Therefore, huggingface_hub wouldn't fit the bill for a downloader that easily slotted into my project.
Therefore, this project was born and aims to bring an easier experience for users to download their models from huggingface.
The project can be run in multiple ways:
-
Download the exe or binary from Releases
-
On Windows:
.\async-hf-downloader-win.exe --help
-
On Linux:
./async-hf-downloader-linux --help
-
On macOS:
./async-hf-downloader-darwin --help
-
-
Download the python file and run it in your existing project
-
Run as a python package:
-
Clone the repository
-
Run
pip install .
in a venv -
Run
python -m async-hf-downloader.download --help
-
If you have issues with the project:
-
Describe the issue in detail
-
If you have a feature request, please indicate it as such.
If you have a Pull Request
- Describe the pull request in detail, what, and why you are changing something
Creators/Developers: