hf-mem
Estimate GPU memory needed to run any Hugging Face model
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install hf-mem?โผ
Run `npx skills add alvarobartt/hf-mem --all -g -y` in your terminal to install this skill globally for your AI agent.
How to check if a model fits on my GPU?โผ
Ask your agent to run hf-mem with the model ID, and it returns the total memory needed for weights and KV cache without downloading anything.
Does hf-mem work with GGUF models?โผ
Yes. It estimates memory per GGUF file, and you can target a specific quantization file for an exact figure.
Can hf-mem estimate KV cache memory?โผ
Yes. The experimental flag adds KV cache estimates for LLMs and VLMs, with options for context length, batch size, and cache precision.
Do I need to download the model first?โผ
No. hf-mem reads only the model metadata over HTTP range requests, so estimates are fast and use no local storage.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core