■ space · the weighbridge · fig 1
VRAM ≈ weights + KV cache + overhead; the file size is the weights line only.
An 8B at Q4_K_M, 32k context: ~9.8 GB — misses an 8 GB card by 23%. The quant was never the villain; the context was.
Reverse mode answers the real question: budget in, largest-fitting quant out. All arithmetic, in your browser, nothing uploaded.
01THE WEIGHBRIDGE
the model is the crate, the context is the spool — the red mark is the card you own
LOAD ~9.8 GB · WEIGHTS 4.85 GB · KV 4.00 GB · TARE 0.94 GB · VERDICT MISSED BY 23%
key 2 winds 4,096 → 32,768 → 131,072 tokens onto the spool — watch the needle, not the quant
the needle sits at 9.8 of 16 — past the red mark at 8, and the flag does the arguing
02THE ARITHMETIC
two lines move the needle: what the crate weighs, what the context costs
VRAM ≈ weights + KV cache + overhead
weights = params × bits-per-weight / 8
KV cache = 2 × layers × kv_dim × context × 2 bytes (f16)
overhead ≈ 0.7 GB CUDA/runtime + ~5% compute buffers
bits-per-weight from llama.cpp's ggml quant formats — the same numbers the files on Hugging Face are built with
| Quant | bpw | Quant | bpw |
|---|---|---|---|
| Q2_K | 3.35 | Q5_K_M | 5.69 |
| Q3_K_M | 3.91 | Q6_K | 6.59 |
| IQ4_XS | 4.25 | Q8_0 | 8.50 |
| Q4_K_M | 4.85 | F16 | 16.0 |
03THE REVERSE LANE
budget in, quant out — a fixed card, a model in mind: the question people actually have
the record's own run: a 7B at 4,096 context against an 8 GB budget (GQA geometry)
| Quant | Weights | Total (est.) | Verdict |
|---|---|---|---|
| Q4_K_M | 4.24 GB | ~5.7 GB | fits with headroom |
| Q6_K | 5.77 GB | ~7.3 GB | tight |
| Q8_0 | 7.44 GB | ~9.0 GB | partial CPU offload, much slower |
The file size told you what you would download. It never told you what you could run.
one screen, and the age-old "Q4 or Q8" debate collapses into your hardware's answer instead of somebody else's
04RUN IT YOURSELF
three inputs you can re-derive by hand, one verdict you can argue with — the defaults are the record's worked example
the "8 GB card" verdict: missed by 23% — the quant was never the villain; the context was.
card strip: solid · fits — dark · tight — past the dashed 85% line — hatched · over · partial offload
gguf_dump.pyend of the weighbridge · nothing fetched · everything local