CLI tool for downloading Hugging Face models/datasets
Top 49.4% on sourcepulse
This Go utility provides a fast, multithreaded alternative to git lfs
for downloading models and datasets from HuggingFace. It targets developers and researchers needing efficient access to large AI models, offering features like SHA256 checksum verification, download resumption, and flexible filtering for specific model files, particularly useful for quantized formats like GGML.
How It Works
The tool leverages Go's concurrency primitives to download large LFS files using multiple connections simultaneously, significantly speeding up transfers compared to single-threaded methods. It performs SHA256 checksum verification post-download to ensure data integrity and supports resuming interrupted downloads by skipping already downloaded files. Users can filter LFS files based on patterns, which is particularly beneficial for downloading specific quantized variants of models (e.g., GGML q4_0, q5_0).
Quick Start & Requirements
bash <(curl -sSL https://g.bodaay.io/hfd)
(installs to current directory) or bash <(curl -sSL https://g.bodaay.io/hfd) -i
(installs to OS bin folder).hfdownloader -m <model_name>
or hfdownloader -d <dataset_name>
.Highlighted Details
HF_TOKEN
), .env
file, or command-line flag.~/.config/hfdownloader.json
) for default settings.Maintenance & Community
The project is maintained by bodaay. No specific community channels (Discord/Slack) or roadmap are mentioned in the README.
Licensing & Compatibility
The README does not explicitly state a license. This requires clarification for commercial use or integration into closed-source projects.
Limitations & Caveats
The project's license is not specified, which may pose a risk for commercial adoption. The README focuses on Linux/Mac/WSL2; Windows native support is not detailed.
9 months ago
1 day