downloading-hf-models
Get the correct command syntax for downloading models from HuggingFace. Use when downloading models, running "hf download", or pulling models from HuggingFace repos.
npx skills add majiayu000/claude-skill-registry --skill downloading-hf-models --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# HuggingFace Model Download ## Command Pattern Always use `uv run` with the HuggingFace Hub package as an inline dependency: ```bash uv run --with huggingface_hub hf download <repo> <file> --local-dir <path> ``` ## Common Mistakes to Avoid - **Wrong**: `pip install huggingface_hub && huggingface-cli download ...` - **Wrong**: `uv run hf download ...` (missing `--with`) - **Wrong**: `uv run --with "huggingface_hub[cli]" ...` (the `[cli]` extra doesn't exist, the CLI is included in the base package) ## Syntax Reference ### Download a specific file ```bash uv run --with huggingface_hub hf download <org>/<repo> <filename> --local-dir <destination> ``` ### Download multiple files ```bash uv run --with huggingface_hub hf download <org>/<repo> <file1> <file2> --local-dir <destination> ``` ### Download with glob pattern ```bash uv run --with huggingface_hub hf download <org>/<repo> --include "*.gguf" --local-dir <destination> ``` **Warning**: Large GGUF models are often split into parts (e.g., `model.gguf.part-000`, `.part-001`, etc.). Use `--include "*.gguf*"` (note the trailing `*`) to match both single GGUFs and split parts. Use `--dry-run` first to check what files will be downloaded.
- Command Pattern
- Common Mistakes to Avoid
- Syntax Reference
- Download a specific file
- Download multiple files
- Download with glob pattern
- Download entire repo
- Notes
uv run --with huggingface_hub hf download <repo> <file> --local-dir <path> uv run --with huggingface_hub hf download <org>/<repo> <filename> --local-dir <destination> uv run --with huggingface_hub hf download <org>/<repo> <file1> <file2> --local-dir <destination> uv run --with huggingface_hub hf download <org>/<repo> --include "*.gguf" --local-dir <destination> uv run --with huggingface_hub hf download <org>/<repo> --local-dir <destination>
What does the downloading-hf-models skill do?
Get the correct command syntax for downloading models from HuggingFace. Use when downloading models, running "hf download", or pulling models from HuggingFace repos.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill downloading-hf-models --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
