About this tool
Paste a HuggingFace link, or drop a .gguf, and find out whether this machine can run it, how much context it can hold, and whether it is usable as a coding agent — without downloading several gigabytes first. Only the metadata in the file header is read (layer count, attention heads, native context, quantisation), and the rest is static arithmetic over weight size, KV cache and runtime overhead, so an answer takes seconds. It also recognises MoE/MLA, shards and attachment files such as mmproj. On a multi-GPU machine, hit "Add a GPU" to list your other cards by hand (a browser can only see the one rendering the page) and get both a single-GPU verdict and a combined plan — layers split across cards, VRAM summed, speed by the slowest card. The verdict separates what was read from the metadata from what was computed, and every assumption is on the page to inspect. The same engine powers the command-line version, npx vramfit, for scanning directories or CI.
The command-line version runs the same engine, for scanning a directory or wiring into CI:
npx vramfit model.gguf
FAQ
How can it answer without downloading the model?
It reads only the GGUF header (layer count, heads, native context, quantisation type) and computes from weight size, KV cache and runtime overhead. Every parameter lives in core/assumptions.mjs and the whole list is expandable on the page.
How accurate is it?
The VRAM figure is close. The speed figure is a zero-context, batch=1 estimate with all weights resident in VRAM: memory bandwidth multiplied by a backend-and-width efficiency factor, divided by weight size, with a ±20% band (speed only; VRAM estimates are unaffected). It excludes KV cache reads, time-to-first-token and tool execution, so real throughput at long context is well below it. Use it to rule out what cannot possibly work; load the model once before trusting it in production.
Web page or command line?
The arithmetic in the middle is the same core code, so the numbers match. The page is for checking a single model; the CLI (npx vramfit) scans directories and wires into CI. Both can estimate a combined multi-GPU setup: on the page, click "Add a GPU"; in the CLI, cards are detected automatically and launched with -dev CUDA0,CUDA1 -sm layer.
Can the browser detect both of my GPUs?
No — browser sandboxing only exposes the card rendering this page, and it cannot read VRAM capacity or call nvidia-smi. Add your other cards by clicking "Add a GPU"; pick a model from the list and enter its VRAM (common cards come with bandwidth and capacity pre-filled). You will then see both the single-GPU and combined verdicts, computed with exactly the same rules as the CLI.
Is my file uploaded?
No. A dropped .gguf is read in browser memory, a few megabytes of header, and never sent anywhere. With a pasted link the page asks hf-mirror only for the file list and the header.
How much VRAM does a 70B model need at Q4_K_M?
Take a 70B with 80 layers, 8 KV heads and an fp16 KV cache: the Q4_K_M weights are about 42–43GB, 8K of context adds roughly 2.5GB, and the CUDA context plus compute buffers take about 1GB, so around 46GB in total. That means a 24GB card cannot hold it and has to offload, which drops throughput to single-digit tokens per second; 48GB fits 8K but not 32K; 80GB is comfortable. Switching to Q5_K_M pushes the weights to about 50GB, so the same sum gains another 7GB. Models with different layer counts or head layouts shift these numbers — expand "Parameters and assumptions" on the page to see the exact values used for your run.
Q4_K_M or Q5_K_M — how big is the difference?
On the same 70B, Q5_K_M is roughly 17% larger (42.5GB against 50GB) and buys output closer to the original model. As a rule, at 70B the Q4_K_M loss is already small and it is the right pick when memory is tight; below 13B go to Q5_K_M at least, and at 7B a Q4 drop is noticeable. The real trade-off is whether those extra 7GB push you from "everything resident" to "a few layers offloaded to system RAM" — once offloading starts, speed is set by memory bandwidth and the drop is far larger than the quantisation loss. The page computes both options side by side for your card.
8K against 32K of context — how much VRAM does that add?
KV cache grows linearly with context. A 70B (80 layers, 8 KV heads, fp16) costs about 0.31MB per token: 2.5GB at 8K, 10GB at 32K, and 40GB at 128K — larger than the weights themselves. So "will it run" and "how much context fits" are two separate questions: a 7B at 4K is easy on a 24GB card, but forcing 32K will still run out of memory. Ask for what you need: 8K covers a code snippet or a conversation, and only pasting whole documents calls for 32K or more.