Estimate the GPU memory needed to run a Hugging Face model (weights, KV cache and inference overhead) and whether it fits on given GPUs, without downloading it. Use when asked how much VRAM a model needs, whether it fits on a GPU, the longest context that fits, or which GGUF quantization to pick.
Compatibility
Through your Versatile gateway every MCP client can load this skill's instructions. Whether it can also do the work depends on what the skill needs and what the client can run.
Requires
- uv
- Network
| Client | Works | Why | Reads SKILL.md natively |
|---|---|---|---|
| Claude Code | Full | Has everything this skill needs | Yes |
| Codex CLI | Full | Has everything this skill needs | Yes |
| Cursor | Full | Has everything this skill needs | Yes |
| Gemini CLI | Full | Has everything this skill needs | Yes |
| VS Code Copilot | Full | Has everything this skill needs | Yes |
| opencode / oh-my-pi | Full | Has everything this skill needs | Yes |
| Claude Desktop | Instructions only | Cannot run commands, Cannot fetch from the web | Yes |
| ChatGPT and other chat-only MCP clients | Instructions only | Cannot run commands, Cannot fetch from the web | No |
How we determine this
Nothing here was run or tested. Each verdict is derived from the skill's own files and a fixed rule table, so read it as a forecast, not a guarantee.
From the skill we read the tools its frontmatter allows, the languages of its bundled scripts, the commands it names in code, any network use and the MCP servers it expects.
From each client we use three things it can do on your machine with no extra servers: run commands, read and write files, fetch from the web. A chat app's built-in search does not count, because a skill cannot drive it.
Full means the client can do everything the skill needs. Instructions only means it can load and follow the text but lacks a capability the skill uses. No means the skill ships code and the client cannot run it.
- Alternates
- 3 similar skills merged into this one
--- name: hf-mem description: Estimate the GPU memory needed to run a Hugging Face model (weights, KV cache and inference overhead) and whether it fits on given GPUs, without downloading it. Use when asked how much VRAM a model needs, whether it fits on a GPU, the longest context that fits, or which GGUF quantization to pick. license: mit --- # hf-mem ```bash uvx hf-mem <model> -o json [options] ``` `<model>` is a Hub ID (`org/name`, `org/name@revision`), a Hub URL, a local path, or `org/name-GGUF:Q4_K_M` for one GGUF quantization. Options: - `--gpu-memory 24` (GiB per GPU) or `8x80` (8 GPUs): adds `fit`. - `--max-model-len N`: context length, defaults to the model's maximum, which can dominate the total. - `--batch-size N`: concurrent sequences, defaults to 1. - `--kv-cache-dtype fp8` (vLLM names for Safetensors, llama.cpp cache types such as `q8_0` for GGUF). - `--file <file or variant>` and `--format safetensors|gguf|onnx` to pick the weights. - `--max-num-batched-tokens 2048` on A100s. - Gated or private models need `HF_TOKEN` or `--hf-token`. JSON (sizes in bytes, divide by 2^30 for GiB): - `total` is the GPU memory for one copy of the model: `weights` + `kv_cache` + `overhead` (vLLM for Safetensors, llama.cpp for GGUF, none for ONNX). - `offloaded` are weights the engine keeps in CPU memory: excluded from `weights` and `total`, but needed as free system RAM. - `fit` (with `--gpu-memory`): `fits`, `needed` GPUs, `max_model_len` (the longest context that fits), and the `required` vs `usable` memory across the given GPUs. Use `required` / GPUs for the memory per GPU, not `total` / GPUs, as each GPU also holds its own overhead and replicated KV cache. - GGUF and ONNX repositories with several files return a `files` list to compare quantizations; pick one with `:TAG` or `--file` to get `fit`. - Report `warnings` to the user, and errors explain how to fix them.
1 files, 1.9 KB
- SKILL.md1.9 KB
- Licence
- MITfound in SKILL.md frontmatter
- Listing
- Download the YAML
Gateway on port 7465 change
Saved in this browser only.
No gateway yet? Paste this in your terminal, then click Import again.
git clone https://github.com/versatile-sh/connector-engine && cd connector-engine && make upImport opens your own gateway in a new tab; this page never contacts it. How it works