echo-ilands commited on
Commit
8fbb027
·
1 Parent(s): cbf3e64

VRAM Match v7.5: display reserve measured (1.01-1.16 GiB bracket, reserve moves to 1.16), headless gate stays 0.96 with the measured range stated, every row labelled measured-check or no-measured-check, and a correction to my own v7.4 free-space figure (0.66 -> 0.50)

Browse files
Files changed (2) hide show
  1. README.md +23 -0
  2. index.html +58 -17
README.md CHANGED
@@ -52,6 +52,29 @@ That is why this page prints headroom, not a yes/no. No model numbers changed in
52
  **v7.2 (2026-10-23): the speed anchor is now per card era.** A published RTX 5080 run set broke the
53
  old band by 3x, so every speed line now prints which anchor it used and where that anchor came from.
54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  ## The fit
56
 
57
  weights measured from the actual GGUF file (dated snapshot: 2026-09-29)
 
52
  **v7.2 (2026-10-23): the speed anchor is now per card era.** A published RTX 5080 run set broke the
53
  old band by 3x, so every speed line now prints which anchor it used and where that anchor came from.
54
 
55
+ ## v7.5 (2026-10-27)
56
+
57
+ The display reserve is measured now, not derived. An RTX 5080 owner logged
58
+ nvidia-smi every 3s with no model loaded, moving his desktop off the card and
59
+ back: headless 314 MiB used (95.6% of sticker free), desktop on and idle 625 MiB
60
+ (sticker - 1.01 GiB), desktop with Chrome and three tabs 780 MiB (sticker - 1.16
61
+ GiB). The desktop costs 311 MiB and a browser 155 MiB on top of the ~0.70 GiB
62
+ Windows and the driver keep with no display at all.
63
+
64
+ The reserve goes from 1.1 GiB to 1.16 GiB, the top of that bracket, because the
65
+ desktop-plus-browser case is the one that actually spilled on his card (6x slower
66
+ decode with every health check green). The headless gate stays at 0.96: his two
67
+ readings are 95.6% and 95.8%, 36 MiB apart, and printing 0.956 would be precision
68
+ I have not earned.
69
+
70
+ Every row now says whether it has a measured check. Two do (the 27B IQ4_XS row he
71
+ ran end to end, and the 9B on one 8 GB Pascal card that all three fit verdicts
72
+ were calibrated on). The other seven say "no measured check" in those words.
73
+
74
+ Correction to my own v7.4 note: it said that row's predicted free space was 0.66
75
+ GiB. The page has always printed 0.50. His measured 0.57-0.66 means I run about
76
+ 0.1 GiB conservative on my tightest row.
77
+
78
  ## The fit
79
 
80
  weights measured from the actual GGUF file (dated snapshot: 2026-09-29)
index.html CHANGED
@@ -248,7 +248,7 @@
248
  <div class="out" id="out"></div>
249
 
250
  <div class="foot">
251
- v7.4: the 5080 owner took my row apart and was right about most of it. He read the page's own terms off its source, ran them against his 27B, and got "does not fit, 0.24 GiB free" for a model he runs fully resident at 49.4 tok/s. Three corrections, all his, all now in the arithmetic. <b>(1) The input embedding never goes on the card.</b> llama.cpp keeps the input layer on the CPU at every -ngl value ("there is very little benefit to offloading the input layer, so always keep it on the CPU", src/llama-model.cpp), so the token embedding table sits in system RAM and every row was over-counting VRAM by its size. Verified against his buffer report: 248320 x 5120 at 4.25 bits = 644.1 MiB predicted, 644 MiB measured. On these vocabularies that term is 0.2-0.7 GiB. <b>(2) q8_0 is 1.0625 bytes per value, not 0.5 of f16.</b> The cache factor was 6.25% low; his 32K cache came in at 1,088 MiB against my 1,024. <b>(3) Hybrid models pay a fixed recurrent state</b> that does not grow with context: 48 linear-attention layers hold 152 MiB on the 27B, measured 150, and the page now counts it instead of silently dropping it. His row then closes: 13.05 on-card weights + 1.06 cache + 0.15 state + 0.60 runtime and compute = 14.86 GiB against his measured 14.71-14.76, and headroom 0.66 against his 0.57-0.66, so the verdict is right and the margin is where he measured it. He also caught the gate: headless cards do not hand over 97% of sticker (his 16 GB gave 15,699 of 16,384 allocatable, 95.8%), so that gate is now 96%. And his file is a row you can pick: Qwen 3.5 27B IQ4_XS.<br><br>v7.3: a third measurement on the same RTX 5080, and the first number I have on what the cliff actually costs. The 5080 owner in the thread answered both of my open questions and gave me his hardest row: Qwen3.5-27B IQ4_XS, 14,689,289,728 bytes, 32K, 49.4 tok/s, 585 MiB free with the display moved to the motherboard output. That is 75.6% of his card's roofline, and his row now reproduces end to end: 13.68 GiB of weights plus 1.00 GiB of q8_0 cache at 32K (16 full-attention layers x 4 KV heads x head_dim 256) plus the 0.4 GiB runtime lands within 20 MiB of the 15.16 GiB he measured the model using. My efficiency band for Turing and newer was already 62-78% from his first two rows; a third row at 75.6% does not move it, it just stops it resting on two numbers. What does move something is his spill number: with the desktop on the card, about 480 MB went to the desktop and browser, roughly 300 MB of the model landed in shared memory, and decode went from 20 ms/token to 122 ms/token, six times slower, while every health check stayed green. That is the measured cost of the last 300 MB, and it is the argument for printing headroom instead of a yes/no. It also flags my one over-conservative term: on his card, with the display off, the driver held 279 MiB of 16 GiB, 1.7%, while my headless gate assumes 3%, so at the very edge I call a row tight about 0.2 GiB before it really is. No model numbers changed in this version.<br><br>v7.2: the tok/s estimate stopped using one efficiency number for every card. The old band (18-24% of the bandwidth/weights roofline) came from a single 8 GB Pascal run, and a stranger's published RTX 5080 measurements blow through it: a Qwen3-8B Q4_K_M at 125 tok/s is 65.5% of that card's roofline, a Qwen3-14B Q4_K_M at 83 tok/s is 77.8%. So the efficiency is now per card era and every row prints which anchor it used. On Pascal the honest answer is a 3x spread: my one measured run sits at 18%, published Pascal rows sit at 50-60%, and I have not explained the gap, so the band spans both ends instead of picking the flattering one.<br><br>
252
  v7.1: every row now hands you its arithmetic. One button copies the whole row as plain text: each term with where it came from (measured from the file, from the model config, or assumed), the total against what your card can actually allocate, the headroom, the speed estimate and whether it is a measurement, the file-size snapshot date, and my address to argue with. Nobody has to trust a screenshot of my page or find a link to send me a correction. The snapshot date matters: vendors requantise under the same quant name, so a size I measured on 2026-09-29 is a dated fact, not a live one, and I do not claim to track it. Same fit model as v7.0, no numbers changed.<br><br>
253
  v7.0: the fit stopped spending the card's sticker VRAM and stopped assuming its reserve is flat. The gate is now what you can actually allocate (90% of sticker with a display attached, 97% headless, declared) and the reserve grows with context, because llama.cpp's attention-score buffer with <code>-fa off</code> is roughly linear in context: ~0.5 GiB per 32K. The runtime floor drops to 0.4 GiB because the old 1.0 GiB was quietly paying for that buffer at 32K. Calibration is the one card I have measured: a 9B Q4_K_M (5.68 GiB) on 8 GB Pascal is resident at short context, tight at 32K and spilling by 64K, and this version reproduces all three. Two outside checks forced it. @vinceshady named the compute-buffer mechanism; @CyferUnknown, who runs a competing fit calculator, gates on 88% of sticker with a reserve that grows with context and put a row in front of me (Gemma 4 12B at 32K on 12 GB) where I printed 1.2 GiB free and he printed offload-required. He was right about the direction: the same row goes from 3.05 GiB free in v6 to 2.46 in v7 at my cache figure, and to 0.96 if his cache figure were the right one, which is why the cache row below matters too. Also in this version, Gemma 4 12B is re-checked against its own <code>config.json</code>: the 8 full-attention layers carry <code>num_global_key_value_heads 1</code> at <code>global_head_dim 512</code>, so 16,384 B/token, and the 40 sliding layers add a fixed 0.3125 GiB. That is 0.8125 GiB of cache at 32K, not the 2.31 GiB you get by giving the full layers the sliding-layer heads.<br><br>
254
  v6.0: a route for people who do not use a terminal. A user's own words — their local-LLM friends "can't open a terminal, only .exe installs" — named the real wall: the fit number was fine, but the only way to act on it was a llama.cpp command line. Every row now also prints a GUI recipe for the same model at the same context: the exact name to search in LM Studio's Discover tab and the Context Length to set, or the koboldcpp.exe route (drag the .gguf on, set Context Size, GPU Layers -1). Same weights, same KV arithmetic, same fit verdict — just a way in that is not a shell. No model data changed in this version.<br><br>
@@ -306,17 +306,32 @@ const COMPUTE_FA = 0.2 * GIB; // same file with -fa on: roughly flat
306
  and allocator take a share before you allocate anything, and that share grows
307
  with the card, so it is a fraction and not a fixed reserve. Declared, not
308
  measured: 90% for a card driving a display, 97% for a headless one. */
309
- /* v7.4: headless is 0.96, not 0.97. One measured card: 16 GB sticker, nvidia-smi
310
- memory.total 16,303 MiB, 326 reserved, 279 idle baseline -> 15,699 MiB
311
- allocatable = 95.8% of sticker. n=1, so 0.96 rather than the measured 0.958.
312
- A display is not a percentage. A 10% gate reserves 0.8 GiB on an 8 GB card and
313
- 2.4 GiB on a 24 GB one, which is backwards: a desktop plus a browser costs
314
- roughly a gigabyte whatever the card is. 1.1 GiB is DERIVED, not measured:
315
- it is the smallest reserve that reproduces the one 8 GB spill I have (9B
316
- Q4_K_M at 32K, layers pushed to shared memory, ~2.5 tok/s). It is the least
317
- solid term on this page and the one I most want a number for. */
318
- const USABLE_HEADLESS = 0.96;
319
- const DISPLAY_RESERVE = 1.1 * GIB;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
320
  const RT_DEFAULT = 0.4 * GIB;
321
  const MIN_HEADROOM = 0.4 * GIB; // a row is only a fit if this much stays free
322
  /* v7.4: q8_0 is 34 bytes per 32 values = 1.0625 B/element, so it takes 53.1% off
@@ -441,7 +456,7 @@ const MODELS = [
441
  hf:"tatsuyaaaaaaa/Qwen3.5-27B-gguf",
442
  arch:"hybrid, 64 layers, 16 carry a growing cache, 48 linear-attention layers hold a fixed 0.15 GiB state",
443
  why:"A 27B at 4.25 bits is the real answer to whether one 16 GB card can run something good, and this is the only row checked against a measurement on hardware I have never touched.",
444
- caveat:"RTX 5080, 16 GB, 32K, -ctk/-ctv q8_0, -fa on, -ngl 99: on-card weights 13.04 GiB (the 0.63 GiB token embedding stays in system RAM), cache 1.06, recurrent state 0.15, runtime and compute 0.60, total 14.85 against 14.71-14.76 measured, free 0.66 against 0.57-0.66 measured. Same card, one reload, llama.cpp's own buffer report. Note it does not fit a 16 GB card that is also driving a display: the 90% gate cuts usable to 14.4 GiB."
445
  },
446
  {
447
  id:"devstral-small-2", cap:9, agentOK:true,
@@ -546,6 +561,31 @@ function grade(h){ return h >= 1.0 * GIB ? "comfortable" : "tight"; }
546
  8 GB Pascal card, ~10 tok/s short-context falling to ~2.5 at 32K once the
547
  card filled. A user's own measured number, if they enter one, overrides
548
  this everywhere. */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
549
  const MEASURED = {}; // in-session only: the playable sandbox blocks storage APIs
550
  function measuredFor(id){ const v = MEASURED[id]; return (v === undefined || v === "") ? null : v; }
551
  function setMeasured(id, v){ if(v === "") delete MEASURED[id]; else MEASURED[id] = v; }
@@ -776,7 +816,7 @@ function fitLine(m, ctx, vram, disp, kvq, inc){
776
  segs.push(`compute buffer <b>${cb.toFixed(2)}</b> at ${CTX_WORD(ctx)} <span style="opacity:.55">(assumed, ${faOn?"flat because -fa on":"grows with context"})</span>`);
777
  }
778
  let html = `<div class="fit"><span style="opacity:.7">all terms GiB</span> — ${segs.join(" + ")} = <b>${t.toFixed(2)} GiB</b> of <b>${card.toFixed(2)} GiB usable</b>, <b>${free.toFixed(2)} GiB</b> still free. <span style="opacity:.75">${m.arch}.</span></div>`;
779
- html += `<div class="fit" style="opacity:.8">The gate is what your card can actually hand over: ${disp?`a display, so ${vram} GB sticker minus ${(DISPLAY_RESERVE/GIB).toFixed(1)} GiB for the driver and desktop`:`headless, so 96% of the ${vram} GB sticker`} = ${usable.toFixed(2)} GiB. ${OVERHEAD_OVERRIDE>0?`Your measured overhead replaces that reserve and the usable cut.`:`Two terms here are assumptions, and on a small card they decide whether the row spills. If you have run anything on this card, measure them and put the real non-weight total in the box above.`}</div>`;
780
  if(kvq) html += `<div class="fit" style="opacity:.85">Your ${CTX_WORD(ctx)} target fits here only with the cache quantised. The command below adds <code>-ctk q8_0 -ctv q8_0 -fa on</code>.</div>`;
781
  else if(headroom(m,ctx,vram,disp,inc) < 1.0*GIB) html += `<div class="fit" style="opacity:.8">Tight margin. Add <code>-ctk q8_0 -ctv q8_0 -fa on</code> to cut the KV cache by 47% and flatten the compute buffer, which keeps this context safely resident.</div>`;
782
  return html;
@@ -811,6 +851,7 @@ function render(res){
811
  html += `<div class="card">
812
  <h3>${i+1}. ${m.name}<button class="copy receipt" data-mid="${m.id}" data-ctx="${ctx}" data-kvq="${kvq?1:0}" data-inc="${inc?1:0}" data-gen="${gen}">copy receipt</button></h3>
813
  <div class="tagline">${m.tag}</div>
 
814
  <div class="meta">${pills(m,ctx,vram,disp,kvq,gen,inc)}</div>
815
  ${fitLine(m,ctx,vram,disp,kvq,inc)}
816
  ${speedLine(m,ctx,vram,disp,gen,inc,kvq)}
@@ -855,7 +896,7 @@ function render(res){
855
  <p class="why"><strong>llama.cpp route</strong> (<code>-hf repo:QUANT</code>) downloads the GGUF straight from Hugging Face and gives you real control over context length. <code>-ngl 99</code> pushes all layers onto the GPU. If the <code>:Q4_K_M</code> tag errors, drop it and llama.cpp will list the files in the repo.</p>
856
  <p class="why"><strong>No terminal?</strong> Use a GUI app instead. The model and the context do not change; only the way you load them does. <code>LM Studio</code> (lmstudio.ai) is a full GUI: search the model name in its Discover tab, download a Q4_K_M build, set Context Length to the number printed on the card, then load. <code>koboldcpp.exe</code> is a single file from the LostRuins/koboldcpp releases page: drag the .gguf onto it, set Context Size to the same number, leave GPU Layers at -1 (all), and Launch. Both take the identical Q4_K_M file and the identical context the fit above is computed from, so the number does not change just because you skipped the shell.</p>
857
  <p class="why"><strong>Why a command can be missing.</strong> Ollama's tag is a different file from the Hugging Face Q4_K_M, and sometimes a bigger one. If the tag cannot fit your card once runtime and display are reserved, the Ollama lines are dropped and only the llama.cpp route is shown, so the command you read and the fit number above it never disagree. For Qwen 3.5 9B the tag is 6.59 GB against a 5.68 GB HF file, so on 8 GB you get llama.cpp alone.</p>
858
- <p class="why"><strong>Where the fit number comes from.</strong> A card runs out of room in six places: the weights that are actually on it, the KV cache, the fixed recurrent state of a hybrid model, a runtime floor (CUDA context plus backend, about 0.4 GiB), the attention-score buffer llama.cpp allocates when flash attention is off (about 0.5 GiB per 32K of context, roughly linear in context), and the share of sticker VRAM the driver, desktop and allocator keep for themselves, which is why the gate is 90% of sticker rather than 100%. The KV cache grows with context and is the part most guides skip. Two things it used to get wrong. <b>The weights term is not the file size.</b> llama.cpp keeps the input layer on the CPU at every <code>-ngl</code> value ("very little benefit to offloading the input layer", <code>src/llama-model.cpp</code>), so the token-embedding table lives in system RAM: 0.2-0.7 GiB depending on vocabulary, and on a small card that is the whole margin. And <b>hybrid models hold a fixed recurrent state</b> for their linear-attention layers that never grows with context. Both are computed from the config and printed in the receipt, so you can check them. For each model I read its <code>config.json</code> and compute bytes per token: <code>2 x layers x kv_heads x head_dim x 2</code>, summing full-attention and sliding-window layers separately (a sliding layer only stores its window). The context shown is the largest standard size whose total still leaves 0.4 GiB free. On a hybrid model like Qwen 3.5, only the full-attention layers keep a growing cache, which is why a 9B holds more context than a dense 7B of similar size. If a row says tight, <code>-ctk q8_0 -ctv q8_0 -fa on</code> cuts the cache by 47% (q8_0 is 1.0625 bytes per value, not half) and turns on flash attention, which keeps the compute buffer from growing at long context. Both matter on a small card. The buffer's size matters more than the margin suggests. One 16 GB card owner measured it directly: with his desktop on the same GPU, about 300 MB of the model was pushed into shared memory and decode went from 20 ms/token to 122 ms/token, 6x slower, with every health check still green. A fit that leaves 300 MB free is not a fit that runs at its speed, which is why the number below is headroom and not a yes/no. Two of those terms are measured (the file, off the live HF API, and the KV, off the model's own config). Three are declared assumptions: runtime 0.4 GiB, the compute buffer, and the usable share of sticker VRAM. On a small card those two assumptions decide whether the row fits, so they are tagged <span style="opacity:.55">(assumed)</span> and you can replace them with overhead you measured. A fit number whose margin is smaller than its own assumptions is not a verdict, it is a question.</p>
859
  <p class="why">Two traps worth knowing before you trust a size. Ollama's tag is a different file: <code>ollama pull qwen3.5:9b</code> is 6.59 GB, while the Hugging Face Q4_K_M is 5.68 GB, because the Ollama blob can carry an extra vision tower and an MTP head. And <code>-hf repo:QUANT</code> is case-insensitive and, if the quant is missing, silently falls back to the first file in the repo instead of erroring. When you need the exact file, pass <code>--hf-file</code> with the name. Multimodal repos also auto-pull an <code>mmproj</code> projector. The 9B and 4B rows here are multimodal, so the fit now counts it: mmproj-F16 is another 918 MB on the 9B (672 MB on the 4B), and each row has a text-only toggle that drops it (the command then adds <code>--no-mmproj</code>). Counting it matters because <code>-hf</code> loads it by default; a vision user on 8 GB would otherwise OOM on a command this page told them to run.</p>
860
  <p class="why">Every Hugging Face repo id and every file size on this page was re-checked against the live API in raw bytes, not remembered. None of the tok/s numbers are mine. They are other people's measurements on this class of card.</p>
861
  <p class="why"><strong>Why the speed line says "short ctx."</strong> I could not find an honest 8 GB measurement online, so I went and got one. A 9B Q4_K_M on an 8 GB Pascal card ran ~10 tok/s resident and ~2.5 once context hit 32k: the model did not get worse, the card filled up, and once a 32k cache leaves no room for all the layers some offload to the CPU. The person who ran it confirmed the 2.5 was a steady generation rate while the offload was happening, not an average that includes the prompt. The same card ran a 1.7B Q4 at ~70 tok/s. On a small card, long context is a range, not a number.</p>
@@ -878,8 +919,8 @@ function receiptText(m, ctx, vram, disp, kvq, inc, gen){
878
  const usable = usableBytes(vram, disp)/GIB;
879
  const free = (OVERHEAD_OVERRIDE > 0 ? vram - total : usable - total);
880
  const L = [];
881
- L.push("VRAM Match v7.4 receipt · file-size snapshot " + SNAPSHOT);
882
- L.push("card: " + vram + " GB VRAM, " + (disp ? "display attached (sticker - " + (DISPLAY_RESERVE/GIB).toFixed(1) + " GiB for driver and desktop)" : "headless (96% of sticker)") + ", usable " + usable.toFixed(2) + " GiB");
883
  L.push("model: " + m.name + " " + QUANT(m) + (inc ? " + vision projector" : " text-only"));
884
  L.push("context: " + CTX_WORD(ctx));
885
  L.push("");
 
248
  <div class="out" id="out"></div>
249
 
250
  <div class="foot">
251
+ v7.5: the last unmeasured term in the fit gets a number, from a measurement rather than from me. The 5080 owner logged nvidia-smi every 3 s with no model loaded and moved his desktop off the card and back. Headless he gets 314 MiB used, 15,663 MiB free of 16,384, so 95.6% of sticker is allocatable; my headless gate said 96% and was 65 MiB optimistic at the edge, which matters only on rows that sit inside their own noise. With one 1440p monitor on the card and idle it is 625 MiB used, sticker minus 1.01 GiB; add Chrome with three tabs and it is 780 MiB, sticker minus 1.16 GiB. The desktop alone costs 311 MiB and the browser another 155 MiB, on top of about 0.70 GiB that Windows and the driver keep with no display at all. My flat 1.1 GiB was the midpoint of that bracket and I never had a number for it. It moves to 1.16 GiB now, the top of the bracket, because that is the configuration that actually spilled on his card: desktop plus browser, ~300 MB of the model into shared memory, 20 ms/token to 122 ms/token. A reserve built on the midpoint is 60 MiB optimistic in the one direction that costs 6x. The headless gate stays where it was, at 0.96: his two readings are 95.6% and 95.8%, 36 MiB apart, and rounding those to 0.956 would be precision I have not earned while moving the one row that reproduces end to end further from his measurement. Where this stops being true: one 1440p monitor, one card, Windows. A 4K or dual-monitor desktop adds more and I have not measured one, so those setups are still under-reserved by an unknown amount. His earlier paired 14B load agrees on the size of the swing: 3.5 GB free with the desktop off the card, 3.0 GB with desktop and browser on it. <b>Also in this version, every row says whether it has a measured check.</b> Two do: the 27B IQ4_XS row he ran end to end, and the 9B on one 8 GB Pascal card that all three fit verdicts were calibrated on. The other seven say "no measured check" on the card, in those words, because they were computed from the config and never confirmed on hardware by anyone. One correction to my own last note while I was in there: v7.4's entry said this row's predicted free space was 0.66 GiB, and the page has always printed 0.50. His measured 0.57-0.66 means I am about 0.1 GiB conservative on the tightest row I have, which is the right direction to be wrong in but is not what I wrote. The row's caveat now says 0.50.<br><br>v7.4: the 5080 owner took my row apart and was right about most of it. He read the page's own terms off its source, ran them against his 27B, and got "does not fit, 0.24 GiB free" for a model he runs fully resident at 49.4 tok/s. Three corrections, all his, all now in the arithmetic. <b>(1) The input embedding never goes on the card.</b> llama.cpp keeps the input layer on the CPU at every -ngl value ("there is very little benefit to offloading the input layer, so always keep it on the CPU", src/llama-model.cpp), so the token embedding table sits in system RAM and every row was over-counting VRAM by its size. Verified against his buffer report: 248320 x 5120 at 4.25 bits = 644.1 MiB predicted, 644 MiB measured. On these vocabularies that term is 0.2-0.7 GiB. <b>(2) q8_0 is 1.0625 bytes per value, not 0.5 of f16.</b> The cache factor was 6.25% low; his 32K cache came in at 1,088 MiB against my 1,024. <b>(3) Hybrid models pay a fixed recurrent state</b> that does not grow with context: 48 linear-attention layers hold 152 MiB on the 27B, measured 150, and the page now counts it instead of silently dropping it. His row then closes: 13.05 on-card weights + 1.06 cache + 0.15 state + 0.60 runtime and compute = 14.86 GiB against his measured 14.71-14.76, and headroom 0.66 against his 0.57-0.66, so the verdict is right and the margin is where he measured it. He also caught the gate: headless cards do not hand over 97% of sticker (his 16 GB gave 15,699 of 16,384 allocatable, 95.8%), so that gate is now 96%. And his file is a row you can pick: Qwen 3.5 27B IQ4_XS.<br><br>v7.3: a third measurement on the same RTX 5080, and the first number I have on what the cliff actually costs. The 5080 owner in the thread answered both of my open questions and gave me his hardest row: Qwen3.5-27B IQ4_XS, 14,689,289,728 bytes, 32K, 49.4 tok/s, 585 MiB free with the display moved to the motherboard output. That is 75.6% of his card's roofline, and his row now reproduces end to end: 13.68 GiB of weights plus 1.00 GiB of q8_0 cache at 32K (16 full-attention layers x 4 KV heads x head_dim 256) plus the 0.4 GiB runtime lands within 20 MiB of the 15.16 GiB he measured the model using. My efficiency band for Turing and newer was already 62-78% from his first two rows; a third row at 75.6% does not move it, it just stops it resting on two numbers. What does move something is his spill number: with the desktop on the card, about 480 MB went to the desktop and browser, roughly 300 MB of the model landed in shared memory, and decode went from 20 ms/token to 122 ms/token, six times slower, while every health check stayed green. That is the measured cost of the last 300 MB, and it is the argument for printing headroom instead of a yes/no. It also flags my one over-conservative term: on his card, with the display off, the driver held 279 MiB of 16 GiB, 1.7%, while my headless gate assumes 3%, so at the very edge I call a row tight about 0.2 GiB before it really is. No model numbers changed in this version.<br><br>v7.2: the tok/s estimate stopped using one efficiency number for every card. The old band (18-24% of the bandwidth/weights roofline) came from a single 8 GB Pascal run, and a stranger's published RTX 5080 measurements blow through it: a Qwen3-8B Q4_K_M at 125 tok/s is 65.5% of that card's roofline, a Qwen3-14B Q4_K_M at 83 tok/s is 77.8%. So the efficiency is now per card era and every row prints which anchor it used. On Pascal the honest answer is a 3x spread: my one measured run sits at 18%, published Pascal rows sit at 50-60%, and I have not explained the gap, so the band spans both ends instead of picking the flattering one.<br><br>
252
  v7.1: every row now hands you its arithmetic. One button copies the whole row as plain text: each term with where it came from (measured from the file, from the model config, or assumed), the total against what your card can actually allocate, the headroom, the speed estimate and whether it is a measurement, the file-size snapshot date, and my address to argue with. Nobody has to trust a screenshot of my page or find a link to send me a correction. The snapshot date matters: vendors requantise under the same quant name, so a size I measured on 2026-09-29 is a dated fact, not a live one, and I do not claim to track it. Same fit model as v7.0, no numbers changed.<br><br>
253
  v7.0: the fit stopped spending the card's sticker VRAM and stopped assuming its reserve is flat. The gate is now what you can actually allocate (90% of sticker with a display attached, 97% headless, declared) and the reserve grows with context, because llama.cpp's attention-score buffer with <code>-fa off</code> is roughly linear in context: ~0.5 GiB per 32K. The runtime floor drops to 0.4 GiB because the old 1.0 GiB was quietly paying for that buffer at 32K. Calibration is the one card I have measured: a 9B Q4_K_M (5.68 GiB) on 8 GB Pascal is resident at short context, tight at 32K and spilling by 64K, and this version reproduces all three. Two outside checks forced it. @vinceshady named the compute-buffer mechanism; @CyferUnknown, who runs a competing fit calculator, gates on 88% of sticker with a reserve that grows with context and put a row in front of me (Gemma 4 12B at 32K on 12 GB) where I printed 1.2 GiB free and he printed offload-required. He was right about the direction: the same row goes from 3.05 GiB free in v6 to 2.46 in v7 at my cache figure, and to 0.96 if his cache figure were the right one, which is why the cache row below matters too. Also in this version, Gemma 4 12B is re-checked against its own <code>config.json</code>: the 8 full-attention layers carry <code>num_global_key_value_heads 1</code> at <code>global_head_dim 512</code>, so 16,384 B/token, and the 40 sliding layers add a fixed 0.3125 GiB. That is 0.8125 GiB of cache at 32K, not the 2.31 GiB you get by giving the full layers the sliding-layer heads.<br><br>
254
  v6.0: a route for people who do not use a terminal. A user's own words — their local-LLM friends "can't open a terminal, only .exe installs" — named the real wall: the fit number was fine, but the only way to act on it was a llama.cpp command line. Every row now also prints a GUI recipe for the same model at the same context: the exact name to search in LM Studio's Discover tab and the Context Length to set, or the koboldcpp.exe route (drag the .gguf on, set Context Size, GPU Layers -1). Same weights, same KV arithmetic, same fit verdict — just a way in that is not a shell. No model data changed in this version.<br><br>
 
306
  and allocator take a share before you allocate anything, and that share grows
307
  with the card, so it is a fraction and not a fixed reserve. Declared, not
308
  measured: 90% for a card driving a display, 97% for a headless one. */
309
+ /* v7.5: the display reserve stops being a guess. An RTX 5080 owner logged
310
+ nvidia-smi every 3 s on Windows 11 with one 2560x1440 monitor at 164 Hz and no
311
+ model loaded, and moved the desktop on and off the card between runs:
312
+ headless 314 MiB used -> 15,663 MiB free of 16,384 = 95.6%
313
+ desktop on, idle 625 MiB used -> sticker - 1.01 GiB
314
+ desktop + Chrome 780 MiB used -> sticker - 1.16 GiB
315
+ So the desktop's own share is 311 MiB and a 3-tab browser adds 155 MiB, on top
316
+ of ~0.70 GiB that Windows and the driver hold back with no display at all. My
317
+ flat 1.1 GiB was right for this card, but only because it landed between the
318
+ idle desktop and the desktop-with-a-browser case, not because I had measured
319
+ anything. It is now a measured bracket: 1.01-1.16 GiB, one 1440p screen.
320
+ Above 1440p or with a second monitor the desktop's 311 MiB will grow and I have
321
+ no number for that, so the flat reserve understates those setups by an unknown
322
+ amount. It stays flat rather than scaled, because a scaled guess is still a
323
+ guess with a decimal point.
324
+ The reserve moves from 1.1 to 1.16 GiB: the top of the bracket, the case with a
325
+ browser open, because that is the case that spilled on his card and cost 6x.
326
+ Using the midpoint would be 60 MiB optimistic in exactly the direction that
327
+ hurts.
328
+ Headless gate stays 0.96. He read 95.8% on the 27B run and 95.6% headless-idle;
329
+ two readings 36 MiB apart do not justify printing 0.956, so the gate stays at
330
+ the rounded 0.96 and this comment carries the range. That keeps the 27B row
331
+ reproducing his measurement instead of trading it away for a decimal. */
332
+ const USABLE_HEADLESS = 0.96; // measured 95.6-95.8% of sticker, one card
333
+ const DISPLAY_RESERVE = 1.16 * GIB; // measured top of 1.01-1.16 GiB, one 1440p desktop + browser
334
+ const DISPLAY_RESERVE_IDLE = 1.01; // desktop on the card, no browser
335
  const RT_DEFAULT = 0.4 * GIB;
336
  const MIN_HEADROOM = 0.4 * GIB; // a row is only a fit if this much stays free
337
  /* v7.4: q8_0 is 34 bytes per 32 values = 1.0625 B/element, so it takes 53.1% off
 
456
  hf:"tatsuyaaaaaaa/Qwen3.5-27B-gguf",
457
  arch:"hybrid, 64 layers, 16 carry a growing cache, 48 linear-attention layers hold a fixed 0.15 GiB state",
458
  why:"A 27B at 4.25 bits is the real answer to whether one 16 GB card can run something good, and this is the only row checked against a measurement on hardware I have never touched.",
459
+ caveat:"RTX 5080, 16 GB, 32K, -ctk/-ctv q8_0, -fa on, -ngl 99: on-card weights 13.04 GiB (the 0.63 GiB token embedding stays in system RAM), cache 1.06, recurrent state 0.15, runtime and compute 0.60, total 14.85 against 14.71-14.76 measured, free 0.50 against 0.57-0.66 measured (I am about 0.1 GiB conservative on this row, which is the direction I want to be wrong in). Same card, one reload, llama.cpp's own buffer report. Note it does not fit a 16 GB card that is also driving a display: the 90% gate cuts usable to 14.4 GiB."
460
  },
461
  {
462
  id:"devstral-small-2", cap:9, agentOK:true,
 
561
  8 GB Pascal card, ~10 tok/s short-context falling to ~2.5 at 32K once the
562
  card filled. A user's own measured number, if they enter one, overrides
563
  this everywhere. */
564
+ /* v7.5: every row says whether it has a measured check, out loud, in those
565
+ words. Two rows do. The rest were computed from the model's config and the
566
+ HF file and have never been confirmed on hardware by me or by anyone I have
567
+ heard from, so they say so on the card instead of borrowing confidence from
568
+ the two rows that were checked. A missing entry is not a gap I am hiding; it
569
+ is the honest state of that row. */
570
+ const EVIDENCE = {
571
+ "qwen35-27b-iq4xs": {
572
+ who: "wichita-cloud",
573
+ when: "2026-10-24",
574
+ what: "RTX 5080 16 GB, 32K, -fa on, -ngl 99: 14.71-14.76 GiB used against 14.85 predicted, 0.57-0.66 GiB free against 0.50 predicted (I am ~0.1 GiB conservative here), 49.4 tok/s = 75.6% of roofline. Fit verdict lands where he measured it."
575
+ },
576
+ "qwen35-9b": {
577
+ who: "one 8 GB Pascal card",
578
+ when: "2026-10-03",
579
+ what: "Q4_K_M, Q4_K_M cache f16: resident at short context (~10 tok/s), tight at 32K (~2.5 tok/s while layers were offloaded to shared memory), spilling by 64K. All three of this page's fit verdicts on this row were calibrated on that one run, so this row is measured against its own hardware. Caveat: the exact GGUF vendor of that run was not recorded."
580
+ }
581
+ };
582
+ function evidenceLine(m){
583
+ const e = EVIDENCE[m.id];
584
+ if(e){
585
+ return `<div class="fit" style="border-left:2px solid var(--ok,#3ba55d);padding-left:.6em">✓ <b>measured check</b> — ${e.who}, ${e.when}: ${e.what}</div>`;
586
+ }
587
+ return `<div class="fit" style="opacity:.75;border-left:2px solid var(--warn);padding-left:.6em">no measured check — this row is computed from the model config and the HF file. Nobody I know of has run this exact file on this class of card and reported back.</div>`;
588
+ }
589
  const MEASURED = {}; // in-session only: the playable sandbox blocks storage APIs
590
  function measuredFor(id){ const v = MEASURED[id]; return (v === undefined || v === "") ? null : v; }
591
  function setMeasured(id, v){ if(v === "") delete MEASURED[id]; else MEASURED[id] = v; }
 
816
  segs.push(`compute buffer <b>${cb.toFixed(2)}</b> at ${CTX_WORD(ctx)} <span style="opacity:.55">(assumed, ${faOn?"flat because -fa on":"grows with context"})</span>`);
817
  }
818
  let html = `<div class="fit"><span style="opacity:.7">all terms GiB</span> — ${segs.join(" + ")} = <b>${t.toFixed(2)} GiB</b> of <b>${card.toFixed(2)} GiB usable</b>, <b>${free.toFixed(2)} GiB</b> still free. <span style="opacity:.75">${m.arch}.</span></div>`;
819
+ html += `<div class="fit" style="opacity:.8">The gate is what your card can actually hand over: ${disp?`a display, so ${vram} GB sticker minus ${(DISPLAY_RESERVE/GIB).toFixed(1)} GiB for the driver and desktop (measured 1.01 GiB for an idle desktop up to 1.16 GiB with a browser, on one 1440p screen; a 4K or dual-monitor desktop needs more and I have not measured one)`:`headless, so 96% of the ${vram} GB sticker (measured 95.6-95.8% on one card)`} = ${usable.toFixed(2)} GiB. ${OVERHEAD_OVERRIDE>0?`Your measured overhead replaces that reserve and the usable cut.`:`Two terms here are assumptions, and on a small card they decide whether the row spills. If you have run anything on this card, measure them and put the real non-weight total in the box above.`}</div>`;
820
  if(kvq) html += `<div class="fit" style="opacity:.85">Your ${CTX_WORD(ctx)} target fits here only with the cache quantised. The command below adds <code>-ctk q8_0 -ctv q8_0 -fa on</code>.</div>`;
821
  else if(headroom(m,ctx,vram,disp,inc) < 1.0*GIB) html += `<div class="fit" style="opacity:.8">Tight margin. Add <code>-ctk q8_0 -ctv q8_0 -fa on</code> to cut the KV cache by 47% and flatten the compute buffer, which keeps this context safely resident.</div>`;
822
  return html;
 
851
  html += `<div class="card">
852
  <h3>${i+1}. ${m.name}<button class="copy receipt" data-mid="${m.id}" data-ctx="${ctx}" data-kvq="${kvq?1:0}" data-inc="${inc?1:0}" data-gen="${gen}">copy receipt</button></h3>
853
  <div class="tagline">${m.tag}</div>
854
+ ${evidenceLine(m)}
855
  <div class="meta">${pills(m,ctx,vram,disp,kvq,gen,inc)}</div>
856
  ${fitLine(m,ctx,vram,disp,kvq,inc)}
857
  ${speedLine(m,ctx,vram,disp,gen,inc,kvq)}
 
896
  <p class="why"><strong>llama.cpp route</strong> (<code>-hf repo:QUANT</code>) downloads the GGUF straight from Hugging Face and gives you real control over context length. <code>-ngl 99</code> pushes all layers onto the GPU. If the <code>:Q4_K_M</code> tag errors, drop it and llama.cpp will list the files in the repo.</p>
897
  <p class="why"><strong>No terminal?</strong> Use a GUI app instead. The model and the context do not change; only the way you load them does. <code>LM Studio</code> (lmstudio.ai) is a full GUI: search the model name in its Discover tab, download a Q4_K_M build, set Context Length to the number printed on the card, then load. <code>koboldcpp.exe</code> is a single file from the LostRuins/koboldcpp releases page: drag the .gguf onto it, set Context Size to the same number, leave GPU Layers at -1 (all), and Launch. Both take the identical Q4_K_M file and the identical context the fit above is computed from, so the number does not change just because you skipped the shell.</p>
898
  <p class="why"><strong>Why a command can be missing.</strong> Ollama's tag is a different file from the Hugging Face Q4_K_M, and sometimes a bigger one. If the tag cannot fit your card once runtime and display are reserved, the Ollama lines are dropped and only the llama.cpp route is shown, so the command you read and the fit number above it never disagree. For Qwen 3.5 9B the tag is 6.59 GB against a 5.68 GB HF file, so on 8 GB you get llama.cpp alone.</p>
899
+ <p class="why"><strong>Where the fit number comes from.</strong> A card runs out of room in six places: the weights that are actually on it, the KV cache, the fixed recurrent state of a hybrid model, a runtime floor (CUDA context plus backend, about 0.4 GiB), the attention-score buffer llama.cpp allocates when flash attention is off (about 0.5 GiB per 32K of context, roughly linear in context), and the share of sticker VRAM the driver, desktop and allocator keep for themselves, which is why the gate is 90% of sticker rather than 100%. The KV cache grows with context and is the part most guides skip. Two things it used to get wrong. <b>The weights term is not the file size.</b> llama.cpp keeps the input layer on the CPU at every <code>-ngl</code> value ("very little benefit to offloading the input layer", <code>src/llama-model.cpp</code>), so the token-embedding table lives in system RAM: 0.2-0.7 GiB depending on vocabulary, and on a small card that is the whole margin. And <b>hybrid models hold a fixed recurrent state</b> for their linear-attention layers that never grows with context. Both are computed from the config and printed in the receipt, so you can check them. For each model I read its <code>config.json</code> and compute bytes per token: <code>2 x layers x kv_heads x head_dim x 2</code>, summing full-attention and sliding-window layers separately (a sliding layer only stores its window). The context shown is the largest standard size whose total still leaves 0.4 GiB free. On a hybrid model like Qwen 3.5, only the full-attention layers keep a growing cache, which is why a 9B holds more context than a dense 7B of similar size. If a row says tight, <code>-ctk q8_0 -ctv q8_0 -fa on</code> cuts the cache by 47% (q8_0 is 1.0625 bytes per value, not half) and turns on flash attention, which keeps the compute buffer from growing at long context. Both matter on a small card. The buffer's size matters more than the margin suggests. One 16 GB card owner measured it directly: with his desktop on the same GPU, about 300 MB of the model was pushed into shared memory and decode went from 20 ms/token to 122 ms/token, 6x slower, with every health check still green. A fit that leaves 300 MB free is not a fit that runs at its speed, which is why the number below is headroom and not a yes/no. Two of those terms are measured from files (the model off the live HF API, the KV off the model's own config), one is measured on hardware (the share of sticker a card actually hands over: 95.6% headless and sticker minus 1.01-1.16 GiB with a 1440p desktop on it, both from one RTX 5080 owner's nvidia-smi log), and two are still declared assumptions: runtime 0.4 GiB and the compute buffer. On a small card those two assumptions decide whether the row fits, so they are tagged <span style="opacity:.55">(assumed)</span> and you can replace them with overhead you measured. A fit number whose margin is smaller than its own assumptions is not a verdict, it is a question.</p>
900
  <p class="why">Two traps worth knowing before you trust a size. Ollama's tag is a different file: <code>ollama pull qwen3.5:9b</code> is 6.59 GB, while the Hugging Face Q4_K_M is 5.68 GB, because the Ollama blob can carry an extra vision tower and an MTP head. And <code>-hf repo:QUANT</code> is case-insensitive and, if the quant is missing, silently falls back to the first file in the repo instead of erroring. When you need the exact file, pass <code>--hf-file</code> with the name. Multimodal repos also auto-pull an <code>mmproj</code> projector. The 9B and 4B rows here are multimodal, so the fit now counts it: mmproj-F16 is another 918 MB on the 9B (672 MB on the 4B), and each row has a text-only toggle that drops it (the command then adds <code>--no-mmproj</code>). Counting it matters because <code>-hf</code> loads it by default; a vision user on 8 GB would otherwise OOM on a command this page told them to run.</p>
901
  <p class="why">Every Hugging Face repo id and every file size on this page was re-checked against the live API in raw bytes, not remembered. None of the tok/s numbers are mine. They are other people's measurements on this class of card.</p>
902
  <p class="why"><strong>Why the speed line says "short ctx."</strong> I could not find an honest 8 GB measurement online, so I went and got one. A 9B Q4_K_M on an 8 GB Pascal card ran ~10 tok/s resident and ~2.5 once context hit 32k: the model did not get worse, the card filled up, and once a 32k cache leaves no room for all the layers some offload to the CPU. The person who ran it confirmed the 2.5 was a steady generation rate while the offload was happening, not an average that includes the prompt. The same card ran a 1.7B Q4 at ~70 tok/s. On a small card, long context is a range, not a number.</p>
 
919
  const usable = usableBytes(vram, disp)/GIB;
920
  const free = (OVERHEAD_OVERRIDE > 0 ? vram - total : usable - total);
921
  const L = [];
922
+ L.push("VRAM Match v7.5 receipt · file-size snapshot " + SNAPSHOT);
923
+ L.push("card: " + vram + " GB VRAM, " + (disp ? "display attached (sticker - " + (DISPLAY_RESERVE/GIB).toFixed(2) + " GiB for driver, desktop and a browser; measured 1.01 GiB idle desktop to 1.16 GiB with a browser, on one 1440p screen)" : "headless (96% of sticker; measured 95.6-95.8% on one card)") + ", usable " + usable.toFixed(2) + " GiB");
924
  L.push("model: " + m.name + " " + QUANT(m) + (inc ? " + vision projector" : " text-only"));
925
  L.push("context: " + CTX_WORD(ctx));
926
  L.push("");