huggingface/skills/skills/huggingface-local-models
Hugging Face local models
Helps select models to run locally with llama.cpp and GGUF on CPU, Mac Metal, CUDA or ROCm: GGUF search, quant choice, conversion and OpenAI-compatible serving.
What Hugging Face local models does
This skill has the agent find a GGUF model on the Hugging Face Hub and start it with llama.cpp. The default workflow in SKILL.md has seven steps. The agent searches the Hub's model list with the apps=llama.cpp filter, then opens the chosen repository's ?local-app=llama.cpp page and prefers the launch snippet and quant recommendation shown there. It confirms exact .gguf filenames through the Hub's tree API. Launching uses llama-cli -hf <repo>:<QUANT> or llama-server -hf <repo>:<QUANT>, with --hf-repo plus --hf-file as the fallback for repositories with custom file names. Converting from Transformers weights comes last, only for repositories without GGUF files.
For quant choice, SKILL.md defaults to Q4_K_M unless the repository page or the hardware suggests otherwise, and prefers Q5_K_M or Q6_K for code or technical work when memory allows. Three reference files add detail. hub-discovery.md covers the URL workflow and how to build the command. Format and RAM tables, conversion and imatrix steps are in quantization.md, and hardware.md lists build flags for Metal, CUDA, ROCm and CPU.
The example output in hub-discovery.md is a short report: the repository, the recommended quant with its size, a llama-server command and the other GGUF files. SKILL.md also has a curl request to localhost:8080 for testing the running server.
Install
hf skills add huggingface-local-modelsRead the security check below before you run it. The repository's own instructions win if they differ.
Security check
What the skill's files do, from reading them. A flag that nobody has checked yet says "Not checked", never "No".
- Runs scripts
- No
- Uses the network
- Yes
- Installs hooks
- No
- Asks for secrets
- No
Checked at commit 25910b3 on 2026-11-12: four Markdown files, all read. The folder ships no scripts and no hooks, but its instructions are shell commands. SKILL.md lists brew install llama.cpp, winget install llama.cpp, a git clone and make of llama.cpp, hf download and a python convert_hf_to_gguf.py step; hardware.md and quantization.md add build and quantize commands. The files tell the agent to open huggingface.co search, model and tree API URLs, and the -hf commands run models straight from the Hub. No file reads a token or environment variable, though SKILL.md lists hf auth login for gated repositories. Its curl test targets localhost. Approve each command yourself and check file sizes first.
Scan details: SKILL.md instructions include web requests or URLs to fetch. SKILL.md tells the agent to install packages (brew install). Checked at commit 25910b3d0ba3.
Use cases
- Find GGUF repositories on the Hugging Face Hub that work with llama.cpp.
- Pick a quant that fits the available RAM or VRAM.
- Build a `llama-server` or `llama-cli` command for an exact GGUF file.
- Convert a model to GGUF when the repository has none.
Limitations
- The folder ships no llama.cpp binaries; SKILL.md lists `brew`, `winget` and source-build commands for it.
- Gated repositories need a Hugging Face login through `hf auth login`.
- The perplexity and speed figures in `quantization.md` come without a named source.
- The install command needs the Hugging Face `hf` CLI; the README says the Claude Code and Cursor marketplaces carry only `hf-cli`.
Sources
- huggingface-local-models skill folderRepositoryPrimarygithub.com
- huggingface/skillsRepositoryPrimarygithub.com
- github.com/huggingface/skills/blob/main/skills/huggingface-local-models/SKILL.mdRepositoryPrimary
- github.com/huggingface/skills/blob/main/skills/huggingface-local-models/references/hub-discovery.mdRepositoryPrimary
- github.com/huggingface/skills/blob/main/skills/huggingface-local-models/references/quantization.mdRepositoryPrimary
- github.com/huggingface/skills/blob/main/skills/huggingface-local-models/references/hardware.mdRepositoryPrimary
- github.com/huggingface/skills/tree/25910b3d0ba31a2ba102f901cdc9e008c278a69c/skills/huggingface-local-modelsRepositoryPrimary
- github.com/huggingface/skills/blob/main/README.mdRepositoryPrimary
- github.com/huggingface/skills/blob/main/LICENSERepositoryPrimary

