Use this command to install HuggingFace Model Downloader:
winget install --id=bodaay.hfdownloader -e
The HuggingFace Model Downloader is a utility tool designed to streamline the process of downloading models and datasets from the HuggingFace platform. It simplifies access to machine learning resources by offering efficient and reliable retrieval mechanisms.
Key Features:
Multithreaded LFS File Downloads: Enhances download speeds for large files, making it easier to handle extensive model and dataset files.
SHA256 Checksum Verification: Ensures the integrity of downloaded models, confirming they are unchanged and valid.
Cross-Platform Compatibility: Operates seamlessly across various operating systems, including Linux, macOS, and Windows WSL2.
Configuration File Support: Allows users to set default values for command flags, enhancing customization and ease of use.
Download Resumption: Continues interrupted downloads without starting over, saving time and bandwidth.
HuggingFace Access Token Integration: Supports secure access to restricted models and datasets using tokens.
Audience & Benefit:
Ideal for researchers, data scientists, and developers working with machine learning models. This tool enables efficient retrieval of resources, ensuring reliability and integrity while handling large-scale downloads. Its flexibility and robust features make it a valuable asset in managing machine learning projects effectively.
The HuggingFace Model Downloader can be installed via winget, offering a straightforward setup process to integrate into your workflow seamlessly.
README
HuggingFace Downloader
The fastest, smartest way to download models from HuggingFace Hub
Parallel downloads • Smart GGUF analyzer • Python compatible • Full proxy support
Files go into the standard HuggingFace cache so Python libraries
(transformers, diffusers, huggingface_hub, llama.cpp's Python
bindings, …) find them automatically — nothing to configure.
Layer 1 (hub/): Standard HF cache structure. Python tools just work.
Layer 2 (models/): Human-readable paths via symlinks — browse your
downloads like normal folders.
> Windows: The friendly view (Layer 2) needs symlinks, which require
> Administrator or Developer Mode on Windows. Downloads still succeed —
> files land in Layer 1 — but the readable paths in Layer 2 won't be
> created. Use Mode 2 below if you want plain files on Windows without
> elevated privileges.
Mode 2 — Flat files in a directory you choose
If you want real files at a path of your choice — no cache, no blob
hashes, no symlinks — use --local-dir (matching
huggingface-cli download --local-dir):
git clone https://github.com/bodaay/HuggingFaceModelDownloader
cd HuggingFaceModelDownloader
go build -o hfdownloader ./cmd/hfdownloader
Docker
# Pull from GitHub Container Registry
docker pull ghcr.io/bodaay/huggingfacemodeldownloader:latest
# Or build locally
docker build -t hfdownloader .
# Run (mounts your local HF cache)
docker run --rm -v ~/.cache/huggingface:/home/hfdownloader/.cache/huggingface \
ghcr.io/bodaay/huggingfacemodeldownloader download TheBloke/Mistral-7B-Instruct-v0.2-GGUF
Private & Gated Models
For private repos or gated models (Llama, etc.):
# Set token via environment
export HF_TOKEN=hf_xxxxx
hfdownloader download meta-llama/Llama-2-7b
# Or via flag
hfdownloader download meta-llama/Llama-2-7b -t hf_xxxxx
For gated models, you must first accept the license on the model's HuggingFace page.
China Mirror
Use the HuggingFace mirror for faster downloads in China:
Downloads use standard HuggingFace cache structure by default (see Storage Modes)
--local-dir flag
One-flag opt-in to flat files at a path of your choice — huggingface-cli-style
Dual-Layer Storage
Python-compatible cache + human-readable symlinks
Smart Analyzer
Auto-detect model types, GGUF quality ratings, RAM estimates
Web UI v3
Modern interface with real-time WebSocket progress
Mirror Sync
Push/pull cache between locations
Full Proxy Support
HTTP, SOCKS5, authentication, CIDR bypass
Manifest Tracking
hfd.yaml records what/when/how for every download
Both storage modes (HF cache and flat-file --local-dir / --legacy -o)
are fully supported and permanent — neither is deprecated. See
Storage Modes for when to pick which.
Environment Variables
Variable
Purpose
HF_TOKEN
HuggingFace access token
HF_HOME
Override ~/.cache/huggingface
HTTP_PROXY
Proxy for HTTP requests
HTTPS_PROXY
Proxy for HTTPS requests
NO_PROXY
Comma-separated bypass list
License
Apache 2.0 — use freely in personal and commercial projects.