hf-mem
Estimates the memory needed to load Safetensors or GGUF model weights for inference from the Hub, using the hf-mem CLI.
- Kind
- Skill
- Works with
- Claude Code
- Source
- Hugging Face Skills @ 25910b3d0ba3
- Path
- skills/hf-mem/SKILL.md
- Jobs
- Implementation
- Topics
- Machine learning, LLM apps & RAG
Credit
- Made by
- huggingface
- Original
- github.com/huggingface/skills/blob/25910b3d0ba31a2ba102f901cd…
- License
- Apache-2.0
Listed by Skill Manifest; not made by us.
InstallInstall it by hand, following the source.
hf skills add hf-mem
Install factsScanned 2 Nov 2026
- Adds
- .claude/skills/hf-mem/ (the skill folder)
- Runs scripts
- Yes
- shell block in the text
- Uses the network
- Yes
- downloads Python packages
- Needs secrets
- Yes
- HF_TOKEN
- Reads environment variables
- HF_TOKEN
- Source revision
- 25910b3d0ba3
- Licence
- Apache-2.0
- Last activity
- 30 Oct 2026
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
- Only the main file is read; other files in the folder are not scanned
`hf_mem` estimates the required memory for inference, including model weights and an optional KV cache, for Safetensors and GGUF for models on the Hugging Face Hub using HTTP Range requests i.e., without downloading or loading any weights locally. ## When to use? - User asks how much VRAM or memory a model needs to run - User wants to know if a model fits on their GPU or a given instance - User references a Hugging Face model ID or URL and asks about inference requirements ## What are the requirements? - `uv` installed (for `uvx`) - `HF_TOKEN` env var or `--hf-token` flag (for gated or private models only) ## How to run? Run with `--model-id` pointing to the Hugging Face Hub repository which will check that it either contains Safetensors (via `model.safetensors`, `model.safetensors.index.json` if sharded, or `model_index.json` for Diffusers) or GGUF model weights within. ```bash uvx hf-mem --model-id <model-id> --json-output ``` …