Download index.html from HWu0101/Local-LLM-Hardware-Explorer: direct link, hf CLI and curl.
- Browser
- Download file 222 kB
-
https://huggingface.co/spaces/HWu0101/Local-LLM-Hardware-Explorer/resolve/main/index.html
- Command line
-
hf download hf://spaces/HWu0101/Local-LLM-Hardware-Explorer/index.html
-
curl -L -o index.html https://huggingface.co/spaces/HWu0101/Local-LLM-Hardware-Explorer/resolve/main/index.html
222 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Local LLM explorer — quality vs speed vs hardware</title>
<style>
:root {
--bg: #faf9f7;
--panel: #ffffff;
--ink: #14140f;
--ink2: #5c5b54;
--ink3: #8a8880;
--line: #e2e0d8;
--line2: #c9c7bd;
--band1: #f6dede;
--band2: #faf0d8;
--band3: #e2f1e6;
--band4: #dfeaf8;
--fit: #1b8a5a;
--part: #c9891a;
--cpu: #c0392b;
--none: #a8a6a0;
--acc: #2a6fd6;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #14140f;
--panel: #1c1c18;
--ink: #f2f1ec;
--ink2: #b4b2a8;
--ink3: #7e7c74;
--line: #2f2f29;
--line2: #45443c;
--band1: #2e1c1c;
--band2: #2e2718;
--band3: #16281d;
--band4: #161f2e;
--fit: #3fbf85;
--part: #e0a637;
--cpu: #e0645a;
--none: #55544e;
--acc: #5b9df5;
}
}
* {
box-sizing: border-box
}
body {
margin: 0;
background: var(--bg);
color: var(--ink);
font: 15px/1.6 ui-sans-serif, -apple-system, "Segoe UI", Inter, system-ui, sans-serif;
-webkit-font-smoothing: antialiased
}
.wrap {
max-width: 1280px;
margin: 0 auto;
padding: 28px 22px 80px
}
h1 {
font-size: 23px;
font-weight: 600;
margin: 0 0 4px;
letter-spacing: -.01em
}
.sub {
color: var(--ink2);
font-size: 14px;
margin: 0 0 22px
}
h2 {
font-size: 15px;
font-weight: 600;
margin: 30px 0 10px;
letter-spacing: -.005em
}
.eq {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 10px;
padding: 12px 15px;
font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
color: var(--ink2);
margin: 0 0 22px;
overflow-x: auto
}
.eq b {
color: var(--ink);
font-weight: 600
}
.hwgrid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
gap: 9px;
margin-bottom: 22px
}
.hw {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 10px;
padding: 11px 13px;
cursor: pointer;
transition: .14s;
text-align: left;
font-family: inherit;
color: inherit
}
.hw:hover {
border-color: var(--line2)
}
.hw.on {
border-color: var(--acc);
box-shadow: 0 0 0 1px var(--acc) inset
}
.hw .n {
font-size: 13.5px;
font-weight: 600;
margin-bottom: 3px;
display: block
}
.hw .m {
font-size: 11.5px;
color: var(--ink3);
line-height: 1.5
}
.hw .p {
font-size: 13px;
font-weight: 600;
margin-top: 5px;
color: var(--acc)
}
.hw .p.own {
color: var(--fit)
}
.hw .sep {
display: block;
margin-top: 6px;
padding-top: 6px;
border-top: 1px solid var(--line)
}
.hw .d {
display: flex;
flex-wrap: wrap;
gap: 4px 6px;
margin-top: 6px
}
.hw .d i {
font-style: normal;
font-size: 10.5px;
letter-spacing: .01em;
padding: 1.5px 6px;
border-radius: 20px;
background: var(--bg);
border: 1px solid var(--line2);
color: var(--ink3)
}
.hw .d i.up {
color: var(--fit);
border-color: var(--fit)
}
.hw .d i.dn {
color: var(--cpu);
border-color: var(--cpu)
}
.hw.add {
border-style: dashed;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
color: var(--ink3);
min-height: 96px
}
.hw.add .n {
color: var(--ink2)
}
.hw.cus {
border-style: dashed;
border-color: var(--acc)
}
.bnh {
font-size: 12.5px;
color: var(--ink2);
margin: 16px 0 0
}
.bng {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
gap: 8px;
margin-top: 9px
}
.bn {
background: var(--bg);
border: 1px solid var(--line);
border-left-width: 3px;
border-radius: 9px;
padding: 9px 11px
}
.bn.red {
border-left-color: var(--cpu)
}
.bn.amber {
border-left-color: var(--part)
}
.bn.green {
border-left-color: var(--fit)
}
.bn .h {
display: flex;
align-items: center;
gap: 7px;
font-size: 12.5px;
font-weight: 600
}
.bn .h b {
width: 7px;
height: 7px;
border-radius: 50%;
flex: none
}
.bn.red .h b {
background: var(--cpu)
}
.bn.amber .h b {
background: var(--part)
}
.bn.green .h b {
background: var(--fit)
}
.bn .vv {
font-size: 11.5px;
color: var(--ink2);
margin: 5px 0 0;
font-variant-numeric: tabular-nums
}
.bn .dd {
font-size: 11px;
color: var(--ink3);
line-height: 1.55;
margin: 5px 0 0
}
#hwNote details {
margin-top: 6px
}
#hwNote summary {
cursor: pointer;
color: var(--ink2)
}
#hwNote ul {
margin: 8px 0 0;
padding-left: 18px;
max-height: 190px;
overflow: auto;
line-height: 1.65
}
.chartbox {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 12px;
padding: 6px 4px 4px
}
.charts {
display: grid;
grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
gap: 10px
}
@media (max-width:900px) {
.charts {
grid-template-columns: minmax(0, 1fr)
}
}
/* The staircase gets crowded once server and multi-socket builds are on it, so
hovering any step lifts that one out: its dot grows, its label goes full
strength, and every other step drops back. Driven by a class on the <svg> so a
single hover dims siblings without per-node JS. */
#path.hov .step { opacity: .22; transition: opacity .12s }
#path.hov .step.up { opacity: 1 }
#path .step { cursor: pointer }
/* The custom builder's GPU list. One row per card model, added and removed by
the buttons rather than by a fixed set of controls that go dead when the
board fills up. */
#cuGpuWrap { margin-top: 12px }
.gpurow { display: flex; gap: 10px 14px; align-items: flex-end; margin-bottom: 7px;
flex-wrap: wrap; border-left: 3px solid transparent; padding-left: 10px;
transition: border-color .12s }
.gpurow label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px;
color: var(--ink3); flex: 0 0 auto }
/* These rows are generated outside .cfg, so they have to carry the same control
styling themselves -- without it the selects render unstyled. And width, never
flex-basis: inside a column-direction label a flex basis sets the HEIGHT, which
turned the card picker into a 260px-tall list box. */
.gpurow select {
font: inherit; font-size: 13px; padding: 5px 7px; border-radius: var(--radius);
border: 1px solid var(--line2); background: var(--bg); color: var(--ink)
}
.gpurow .gsel { width: 340px; max-width: 100% }
.gpurow .gcnt { width: 78px }
.gpurow button { padding: 5px 10px; line-height: 1; align-self: flex-end }
/* Cards that can share a coherent link get a green edge. Adjacent rows form one
continuous bar, which is the point: it shows at a glance which of the cards in
the list are able to talk to each other. */
.gpurow.nvl { border-left-color: var(--fit) }
.gpurow.nvl.off { border-left-color: var(--ink3) }
/* A group of linked cards is drawn as ONE unbroken line down the left of every
row it covers, which is the whole point of the indicator: it shows at a glance
how far the fabric reaches. */
.gpurow.nvl-cont { margin-bottom: 0; padding-bottom: 7px }
.gpurow .nvltag { font-size: 10.5px; color: var(--fit); align-self: flex-end;
padding-bottom: 7px; letter-spacing: .3px; white-space: nowrap }
.gpurow.off .nvltag { color: var(--ink3); text-decoration: line-through }
#cuNvlWrap { margin-left: 14px; font-size: 12px; color: var(--ink2);
display: inline-flex; align-items: center; gap: 6px }
#cuGpuWrap, #rigGpuWrap { margin-top: 12px }
#cuAdd, #rigAdd { padding: 6px 12px; margin-top: 2px }
#cuAdd[disabled], #rigAdd[disabled] { opacity: .4; cursor: not-allowed }
#cuNvlWrap, #rigNvlWrap { margin-left: 14px; font-size: 12px; color: var(--ink2);
display: inline-flex; align-items: center; gap: 6px }
/* the slot held open for a staircase pick */
.hw.pick { border-style: dashed; border-color: var(--ink3) }
#path .step .hit { fill: transparent; stroke: none }
#path .step.up circle.pt { stroke: var(--ink); stroke-width: 2.5 }
#path .step.up text { fill: var(--ink) !important; font-weight: 600 }
/* scoped to the two charts — a bare svg{width:100%} also hits legend icons */
#chart,
#path {
display: block;
width: 100%;
height: auto;
overflow: visible
}
.gl {
stroke: var(--line);
stroke-width: 1
}
.ax {
fill: var(--ink3);
font-size: 11px
}
.axl {
fill: var(--ink2);
font-size: 12px;
font-weight: 600
}
.bandl {
fill: var(--ink3);
font-size: 10.5px;
letter-spacing: .04em;
text-transform: uppercase
}
.dot {
cursor: pointer;
transition: opacity .18s
}
.dot circle {
transition: cx .55s cubic-bezier(.4, 0, .2, 1), fill .3s, stroke .3s, r .3s
}
.dot text {
font-size: 10.5px;
fill: var(--ink2);
transition: x .55s cubic-bezier(.4, 0, .2, 1)
}
.dot:hover circle {
stroke-width: 2.5
}
.rng {
stroke: var(--line2);
stroke-width: 1.5;
transition: x1 .55s cubic-bezier(.4, 0, .2, 1), x2 .55s cubic-bezier(.4, 0, .2, 1)
}
.row {
display: flex;
flex-wrap: wrap;
gap: 8px 16px;
align-items: center;
margin: 12px 2px 0;
font-size: 12px;
color: var(--ink2)
}
.key {
display: flex;
align-items: center;
gap: 5px;
white-space: nowrap
}
.key svg {
flex: none;
display: block
}
.sw {
width: 11px;
height: 11px;
border-radius: 50%;
flex: none
}
.tog {
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
user-select: none;
white-space: nowrap
}
.tog input {
flex: none;
margin: 0
}
/* controls sit on their own line so the metric switch never orphans its label */
.ctl {
display: flex;
flex-wrap: wrap;
gap: 10px 22px;
align-items: center;
margin: 10px 2px 0;
padding-top: 10px;
border-top: 1px solid var(--line);
font-size: 12px;
color: var(--ink2)
}
.grp {
display: flex;
align-items: center;
gap: 12px;
white-space: nowrap
}
.grp b {
font-weight: 600;
color: var(--ink)
}
.cfg {
display: flex;
flex-wrap: wrap;
gap: 10px 18px;
align-items: flex-end
}
.cfg label {
display: flex;
flex-direction: column;
gap: 4px;
font-size: 11.5px;
color: var(--ink3)
}
.cfg select,
.cfg input {
font: inherit;
font-size: 13px;
padding: 5px 7px;
border-radius: var(--radius);
border: 1px solid var(--line2);
background: var(--bg);
color: var(--ink)
}
.cfg input[type=number] {
width: 88px
}
.warn {
background: var(--bg);
border: 1px solid var(--cpu);
border-radius: 10px;
padding: 11px 14px;
margin: 0 0 16px;
font-size: 12.5px;
line-height: 1.65;
color: var(--ink2)
}
.warn b {
color: var(--cpu)
}
.prov {
width: 100%;
border-collapse: collapse;
font-size: 12.5px;
margin-top: 6px
}
.prov th {
text-align: left;
font-size: 11px;
text-transform: uppercase;
letter-spacing: .03em;
color: var(--ink3);
padding: 6px 9px;
border-bottom: 1px solid var(--line2);
font-weight: 600
}
.prov td {
padding: 6px 9px;
border-bottom: 1px solid var(--line);
vertical-align: top
}
.prov .no {
color: var(--cpu);
font-weight: 600
}
.prov .yes {
color: var(--fit)
}
.panel {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 12px;
padding: 16px 18px;
margin-top: 16px
}
.ph {
font-size: 15px;
font-weight: 600;
margin: 0 0 3px
}
.pm {
font-size: 12.5px;
color: var(--ink3);
margin: 0 0 13px
}
.bar {
height: 11px;
border-radius: 4px;
overflow: hidden;
display: flex;
background: var(--line);
margin-bottom: 7px
}
.bar span {
display: block;
height: 100%
}
.st {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
gap: 11px;
margin-top: 13px
}
.st div {
background: var(--bg);
border-radius: 8px;
padding: 9px 11px
}
.st .l {
font-size: 11px;
color: var(--ink3);
margin-bottom: 2px
}
.st .v {
font-size: 17px;
font-weight: 600;
font-variant-numeric: tabular-nums
}
table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
margin-top: 6px
}
th {
text-align: left;
font-weight: 600;
color: var(--ink2);
font-size: 11.5px;
letter-spacing: .03em;
text-transform: uppercase;
padding: 7px 9px;
border-bottom: 1px solid var(--line2);
cursor: pointer;
white-space: nowrap
}
th:hover {
color: var(--ink)
}
td {
padding: 7px 9px;
border-bottom: 1px solid var(--line);
font-variant-numeric: tabular-nums
}
td.nm {
font-variant-numeric: normal
}
tbody tr {
cursor: pointer
}
tbody tr:hover {
background: var(--bg)
}
.tag {
display: inline-block;
padding: 1px 7px;
border-radius: 5px;
font-size: 11px;
font-weight: 600
}
.note {
font-size: 12.5px;
color: var(--ink2);
line-height: 1.75
}
.note b {
color: var(--ink)
}
.note code {
font: 12px ui-monospace, Menlo, monospace;
background: var(--bg);
padding: 1px 5px;
border-radius: 4px
}
a {
color: var(--acc)
}
.cols {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 22px
}
.tip {
position: fixed;
pointer-events: none;
background: var(--panel);
border: 1px solid var(--line2);
border-radius: 8px;
padding: 8px 11px;
font-size: 12px;
line-height: 1.6;
opacity: 0;
transition: opacity .12s;
box-shadow: 0 6px 22px rgba(0, 0, 0, .16);
z-index: 50;
max-width: 240px
}
.tip b {
display: block;
font-size: 13px;
margin-bottom: 3px
}
</style>
</head>
<body>
<div class="wrap">
<h1>Local LLM explorer — quality vs speed vs hardware</h1>
<p class="sub">Pick a machine, or set a budget and let it search several hundred builds for the ones nothing
else beats. Every model repositions horizontally by how fast it decodes on the selected build, and
drops into the zero column if it will not load. Click any model for its own price-vs-speed staircase
on the right. Hardware is filtered to upgrades that actually move quality or speed. Ratings 22–27 Oct 2026,
prices 28 Oct 2026 · sourced in AUD inc GST, switchable to USD.</p>
<div class="eq">
<b>t/token</b> = bytes_read × [ f / BW<sub>fast</sub> + (1−f) / BW<sub>slow</sub> ] + overhead
·
<b>f</b> = fraction of active bytes resident in fast memory ·
speedup over pure-CPU experts ≈ <b>1/(1−f)</b>
</div>
<h2>Your system</h2>
<div class="panel" style="margin-top:0">
<div class="cfg">
<label>system type<select id="cfgKind">
<option value="std">standard — graphics card + system RAM</option>
<option value="uni">unified memory — one pool</option>
</select></label>
<label id="uniLbl" style="display:none">machine<select id="cfgUni"></select></label>
<label id="uniNLbl" style="display:none">how many<select id="cfgUniN"></select></label>
<label id="lblRam">system RAM<input type="number" id="cfgRam" min="8" max="2048" step="8"></label>
<label id="lblCpu">CPU platform<select id="cfgCpu"></select></label>
<label id="numaLbl" style="display:none">NUMA policy<select id="cfgNuma"></select></label>
<label id="lblMts">RAM speed MT/s<input type="number" id="cfgMts" min="2000" max="9000" step="100"></label>
<button id="cfgReset" style="padding:6px 12px">reset</button>
</div>
<div id="rigGpuWrap">
<div id="rigGpuList"></div>
<button id="rigAdd" type="button">+ add GPU</button>
<label id="rigNvlWrap"><input type="checkbox" id="rigNvl" checked>
NVLink / NVSwitch between matching cards</label>
</div>
<p class="pm" id="rigSlots" style="margin:10px 0 0"></p>
<p class="pm" id="cfgOut" style="margin:8px 0 0"></p>
</div>
<h2>Upgrades that change something</h2>
<p class="pm" style="margin:0 0 12px">Every build is compared against everything cheaper, and only the
ones that win by a margin worth the money get a card — a quality step big enough to be a different
class of model, or a speed step big enough to feel different. The rest are listed underneath with the
reason. Build your own in the last slot.</p>
<div class="row" style="margin:0 0 12px">
<label class="tog"><input type="radio" name="mode" value="hw" checked> pick a machine</label>
<label class="tog"><input type="radio" name="mode" value="budget"> pick by budget</label>
</div>
<div id="modeHw">
<div class="hwgrid" id="hw"></div>
<p class="pm" id="hwNote" style="margin:-12px 0 14px"></p>
<div class="panel" id="customPanel" style="display:none;margin:0 0 22px">
<div class="cfg">
<label>system type<select id="cuKind">
<option value="std">standard — graphics cards + system RAM</option>
<option value="uni">unified memory — one pool</option>
</select></label>
<label id="cuUniLbl" style="display:none">machine<select id="cuUni"></select></label>
<label id="cuUniNLbl" style="display:none">how many<select id="cuUniN"></select></label>
<label id="cuPlatLbl">platform<select id="cuPlat"></select></label>
<label id="cuNumaLbl" style="display:none">NUMA policy<select id="cuNuma"></select></label>
<label id="cuRamLbl">system RAM GB<input type="number" id="cuRam" min="16" max="2048" step="16"></label>
<button id="cuClose" style="padding:6px 12px">remove</button>
</div>
<div id="cuGpuWrap">
<div id="cuGpuList"></div>
<button id="cuAdd" type="button">+ add GPU</button>
<label id="cuNvlWrap"><input type="checkbox" id="cuNvl" checked>
NVLink / NVSwitch between matching cards</label>
</div>
<p class="pm" id="cuSlots" style="margin:10px 0 0"></p>
<p class="pm" id="cuOut" style="margin:8px 0 0"></p>
</div>
</div>
<div id="modeBudget" style="display:none">
<div class="panel" style="margin-top:0">
<div style="display:flex;align-items:center;gap:14px;flex-wrap:wrap">
<span style="font-size:13px;color:var(--text-secondary)">budget</span>
<input type="range" id="bud" min="0" max="250000" step="500" value="8000" style="flex:1;min-width:220px">
<span id="budOut"
style="font-size:19px;font-weight:600;font-variant-numeric:tabular-nums;min-width:92px">$8,000</span>
</div>
<p class="pm" style="margin:10px 0 0">Every build at or under this price is searched, and the
options below are the ones nothing else beats on all three of quality, speed and cost.
Click one to load it into the chart.</p>
</div>
<div id="paretoOut"></div>
</div>
<div class="charts">
<div class="chartbox">
<svg id="chart" viewBox="0 0 900 620" role="img"
aria-label="Scatter chart of model quality against decode speed"></svg>
</div>
<div class="chartbox">
<svg id="path" viewBox="0 0 470 620" role="img"
aria-label="Decode speed against upgrade price for the selected model"></svg>
</div>
</div>
<div class="row">
<div class="key"><span class="sw" style="background:var(--fit)"></span>fits in fast memory</div>
<div class="key"><span class="sw" style="background:var(--part)"></span>partial offload</div>
<div class="key"><span class="sw" style="background:var(--cpu)"></span>mostly on CPU</div>
<div class="key"><span class="sw" style="background:var(--none)"></span>won't load</div>
<div class="key"><span class="sw" style="width:6px;height:6px;background:var(--ink3)"></span><span class="sw"
style="background:var(--ink3)"></span>bubble size = Q4 GB</div>
<div class="key"><span class="sw" style="background:var(--ink3);opacity:.85"></span>speed measured</div>
<div class="key"><span class="sw" style="border:1.5px dashed var(--ink3)"></span>speed modelled</div>
<div class="key"><span class="sw" style="border:1.5px solid var(--ink3)"></span>proxy quality score</div>
<div class="key"><span class="sw" style="border:1.5px dashed var(--acc);background:none;border-radius:50%"></span>server card / rack build \u2014 staircase only</div>
<div class="key"><svg width="16" height="11" aria-hidden="true" style="flex:none">
<line x1="0" y1="5.5" x2="16" y2="5.5" stroke="var(--ink3)" stroke-width="1" stroke-dasharray="4 3" />
</svg>frontier closed model</div>
</div>
<div class="ctl">
<span class="grp"><b>context</b>
<select id="cfgCtx" style="font:inherit;font-size:12px;padding:3px 6px;border-radius:var(--radius);
border:1px solid var(--line2);background:var(--bg);color:var(--ink)"></select>
<span id="ctxNote" style="color:var(--ink3)"></span>
</span>
<span class="grp"><b>phase</b>
<label class="tog"><input type="radio" name="phase" value="decode" checked> decode</label>
<label class="tog"><input type="radio" name="phase" value="prefill"> prefill</label>
<label class="tog"><input type="radio" name="phase" value="ttft"> TTFT</label>
</span>
<span class="grp" id="promptGrp" style="display:none"><b>prompt</b>
<select id="cfgPrompt" style="font:inherit;font-size:12px;padding:3px 6px;border-radius:var(--radius);
border:1px solid var(--line2);background:var(--bg);color:var(--ink)"></select>
<span id="promptNote" style="color:var(--ink3)"></span>
</span>
<span class="grp"><b>currency</b>
<label class="tog"><input type="radio" name="cur" value="aud" checked> AUD</label>
<label class="tog"><input type="radio" name="cur" value="usd"> USD</label>
</span>
<span class="grp"><b>quality metric</b>
<label class="tog"><input type="radio" name="met" value="elo" checked> Arena text</label>
<label class="tog"><input type="radio" name="met" value="wd"> Arena webdev</label>
<label class="tog"><input type="radio" name="met" value="ag"> Arena agent</label>
<span id="metNote" style="color:var(--ink3)"></span>
</span>
<label class="tog"><input type="checkbox" id="showNone" checked> show unloadable</label>
</div>
<div class="panel" id="detail"></div>
<h2>All models on the selected machine</h2>
<div style="overflow-x:auto">
<table id="tbl">
<thead></thead>
<tbody></tbody>
</table>
</div>
<h2>How to read this</h2>
<div class="cols">
<div class="note">
<p><b>Up and to the right wins.</b> Up = smarter, right = faster. The frontier is what your machine can actually
do; everything below-left is dominated by something else you could run instead.</p>
<p><b>Why models jump when you switch hardware.</b> Decode speed is set almost entirely by which memory tier the
active weights sit in. A GPU with more VRAM does not make arithmetic faster — it moves bytes from the ~85 GB/s
tier to the ~600 GB/s tier. Because <code>1/(1−f)</code> is hyperbolic, the payoff is back-loaded: covering
50% of experts doubles speed, but covering 90% is a 7.6× gain.</p>
<p><b>Dashed rings</b> are modelled speeds; solid dots are published benchmarks. Where a model has been
benchmarked on any machine, that correction is carried across to the machines it has not been
benchmarked on — otherwise a measured machine and a modelled one are not comparable and an upgrade
looks better or worse purely by which one happens to have a benchmark. Scored leave-one-out
(each measurement predicted without itself): <b>median error 6%, 90th percentile 11%</b>, worst 34%.
Treat modelled values as ±30%.</p>
</div>
<div class="note">
<p><b>Params stopped predicting quality.</b> Dense Qwen3.8-27B rates 1590 on Arena WebDev, ahead of every model here under 170B, and Gemma 4 31B (1452 on Arena text) beats Mistral Large 3 675B (1414) at 1/22nd the size. Never buy capacity for a number of parameters — buy it for a specific model you have benchmarked.</p>
<p><b>Three lenses, because they disagree.</b> Arena text is style-controlled human preference on ordinary chat — read it as “is it pleasant to talk to”. Arena WebDev is the same method on front-end build tasks, and separates these models over roughly 430 rating points against text arena’s 170. Arena Agent is a standardised score on agentic sessions, where 0 is the field average. They rank these models very differently; none is the truth, so pick the one matching your workload. There is deliberately <b>no blended score</b> — coverage differs per lens (shown beside the selector), and averaging would hide the disagreement worth seeing.</p>
<p><b>Bandwidth does not become tokens.</b> Decode scales roughly as BW<sup>0.65</sup>, and the gap
widens with platform size. The cleanest evidence is one Phoronix run of the same llama.cpp
benchmark on two servers: an EPYC 9755 (24× DDR5-6400) does <b>41.9 t/s</b> on gpt-oss-20b while a
Xeon 6980P (24× MRDIMM-8800) does <b>16.2</b> — the Xeon has 37% <i>more</i> bandwidth and is 2.6×
slower. Same story within one machine: swapping RDIMM for MRDIMM lifted measured bandwidth 32% and
decode only 6.5–10.5%. Buy a bandwidth number and you may receive a fifth of it.</p>
</div>
</div>
<h2>Data provenance</h2>
<div id="licNotice"></div>
<div style="overflow-x:auto">
<table class="prov" id="prov">
<thead>
<tr>
<th>Source</th>
<th>As of</th>
<th>Licence / terms</th>
<th>Republishable</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<div class="note" id="provNote" style="margin-top:14px"></div>
<h2>Caveats and sources</h2>
<div class="note" id="caveats"></div>
</div>
<div class="tip" id="tip"></div>
<script>
// ---------- hardware ----------
// bwFast / bwSlow are EFFECTIVE GB/s during MoE decode, back-calculated from
// published benchmarks, not theoretical peaks. See caveats.
// ===========================================================================
// DATA LAYER -- every figure that ages lives here with its own as-of date and
// licence status. The page renders its provenance footer from SRC, so a stale
// number cannot quietly outlive its date stamp, and a source that forbids
// redistribution cannot be published by accident.
// ===========================================================================
const SRC = {
dspark: {
name: 'DSpark speculative decoding (DeepSeek-AI / Peking University)', asOf: '2026-07-06', pub: true,
licence: 'Paper arXiv:2607.05147; DeepSpec code MIT',
url: 'https://arxiv.org/abs/2607.05147',
note: 'Reports 60-85% faster per-user generation on DeepSeek V4-Flash and 57-78% on V4-Pro, ' +
'measured against an MTP-1 baseline, with bit-identical output via rejection sampling. ' +
'Recorded here so published V4 figures can be checked for it -- a DSpark decode number is ' +
'not comparable to a batch-1 one. It does NOT apply to the datasets in SRC.userbench: ' +
'those were run with speculative decoding switched off, so they are used as-is with no ' +
'de-rating. Prefill would be unaffected in any case; speculative decoding accelerates ' +
'generation, not prompt ingestion.'
},
numa: {
name: 'Dual-socket NUMA scaling (llama.cpp issue #11744)', asOf: '2026-07-27', pub: true,
licence: 'Public issue tracker; figures are facts',
url: 'https://github.com/ggml-org/llama.cpp/issues/11744',
note: 'Dual EPYC 9175F, 16x DDR5-6400, Llama-3.1-70B f16: 2.4 -> 4.31 tok/s (about 1.8x) ' +
'using --numa distribute with a matched thread count. This is the ONLY measurement behind ' +
'the multi-socket model, it is a DENSE model, and it is decode-only -- no prefill figures ' +
'are given. Everything multi-socket here is flagged speculative for that reason.'
},
prefill: {
name: 'Prompt-processing benchmarks (llama.cpp discussions, hardware-corner)', asOf: '2026-07-27', pub: true,
licence: 'Public benchmark posts; figures are facts',
url: 'https://github.com/ggml-org/llama.cpp/discussions/19890',
note: 'Qwen3.5-35B-A3B Q4 on RTX 5090: pp about 6773-6960 tok/s against tg 194 tok/s, the ' +
'same machine and model this tool already calibrates decode against. gpt-oss-120b with ' +
'--n-cpu-moe shows prefill rising 48 -> 246 tok/s (RTX 3090) and 85 -> 448 (RTX 5090) as ' +
'the prompt lengthens, because llama.cpp streams CPU-resident experts to the GPU for any ' +
'batch over 32 tokens (GGML_OP_OFFLOAD_MIN_BATCH).'
},
fx: {
name: 'AUD\u2192USD conversion rate 0.6973', asOf: '2026-07-24', pub: true,
licence: 'Exchange rates are facts; rate is a dated constant, not a live feed',
url: '', note: 'Held as a constant so the page works with no network. AU retail ' +
'prices include 10% GST while US list prices normally exclude sales tax, so a ' +
'converted figure sits above the US sticker you would compare it against.'
},
prices: {
name: 'Australian retail prices', asOf: '2026-10-28', pub: true,
licence: 'observed retail listings; facts, not a licensed dataset',
url: 'https://www.staticice.com.au/', note: 'inc GST, cheapest AU listing per card. ' +
'Consumer Blackwell is still climbing: the 5090 is A$10,499 and the 5080 A$2,580, ' +
'up 17% and 23% in five weeks. RTX PRO 4000/4500 were priced from estimates and ' +
'were ~50% low; both are now sighted. Memory eased slightly. Re-check before deciding anything.'
},
arena: {
name: 'Arena ratings (Bradley-Terry) \u2014 text (style-controlled), WebDev, Agent',
asOf: '2026-10-27', pub: true, licence: 'CC BY 4.0',
creator: 'Arena Intelligence, Inc. (lmarena-ai)',
url: 'https://huggingface.co/datasets/lmarena-ai/leaderboard-dataset',
changes: 'subset of models selected; reformatted for plotting; no values altered',
cite: 'Chiang et al., Chatbot Arena, arXiv:2403.04132',
note: 'Taken from the CC BY dataset, not scraped from the site: text split ' +
'22 Oct, Agent 23 Oct, WebDev 27 Oct 2026. These are ' +
'Bradley-Terry ratings, not Elo, despite the common label.'
},
bench: {
name: 'Published decode benchmarks (llama.cpp, ik_llama.cpp, vLLM, MLX)',
asOf: '2026-07-26', pub: true, licence: 'individual measurements are facts; sources cited inline',
url: '', note: 'Kernel work moves these fast -- one RTX PRO 6000 figure gained 43% in five months. ' + 'The Qwen3.5 122B-A10B figure on the 5080 is USER-REPORTED at 21.4 t/s on a Q4 build, replacing an earlier 16.6 that came from an MXFP4 quant and so was never a Q4 number.'
}
};
// AUD inc GST, as dated in SRC.prices. Re-checked 28 Oct 2026 against the cheapest
// AU listing on StaticICE for each card, which is the convention for every line here.
//
// RTX 5090 8,999 -> 10,499 (PC Case Gear, MSI Ventus). The "7,599 floor"
// noted in September was an RTX 5090 LAPTOP that StaticICE files under the same
// search; it is still listed at 7,599. Laptops are now excluded by hand.
// RTX 5080 2,099 -> 2,580 (CCPU; Scorptec/PCCG at 2,699)
// RTX 5070 Ti 1,574 -> 1,749 (Scorptec)
// RTX 5060 Ti 849 -> 1,049 (PCCG / Scorptec, 16 GB)
// RTX 5070 1,050 -> 1,099 (PCCG) -- now a sighted price
// RTX PRO 6000 24,354 -> 25,100 (MSY / UMart, Workstation Edition)
// RTX PRO 5000 11,999 -> 12,999 (48 GB); the 72 GB has no card-only listing
// RTX PRO 4500 4,600 -> 6,999 and PRO 4000 2,400 -> 4,499: both were
// estimates and both were ~50% low. Now sighted (PLE/Scorptec, Computer Alliance).
// RTX 6000 Ada 11,000 -> 11,999 (MSY / UMart)
// DGX Spark 7,999 -> 8,879 (Landmark, Founders Edition 4 TB)
// TR PRO 9975WX 6,749 -> 6,499 (PLE); WRX90 board unchanged at 1,799 (ASRock)
// DDR5 /GB 18.7 -> 15.1 (Crucial 2x32 GB 4800, A$969 in stock at MSY and
// UMart). Computer & Parts Land lists kits from A$399, but the same Team kit is
// A$1,499 at PCCG, so those look like stale listings and are not used.
// RDIMM /GB 62 -> 55 (Micron 32 GB 5600 at A$1,729; 64 GB at A$3,554)
//
// Previous check (23 Sep 2026):
//
// RTX 5090 6,999 -> 8,999. USER-REPORTED. The cheapest StaticICE listing
// on 23 Sep was A$7,599 at Mwave, so 8,999 is what the user is seeing rather
// than the aggregator floor -- carried because 5090 stock has been thin enough
// that the aggregator floor is often a backorder price.
// RTX 5080 1,660 -> 2,099 (Scorptec / Mwave)
// RTX 5070 Ti 1,400 -> 1,574 (I-Tech)
// RTX 5060 Ti 799 -> 849 (Mwave, 16 GB)
// RTX PRO 6000 24,999 -> 24,354 (I-Tech, Workstation Edition; Max-Q 24,699)
// RTX PRO 5000 12,999 -> 11,999 (48 GB, PLE); the 72 GB holds at 15,999
// DDR5 /GB 18.5 -> 18.7 (cheapest 2x32 GB kit, A$1,199)
//
// RDIMM stays at 62/GB: the US tracker median moved to US$37/GB in September,
// which lands at ~A$59/GB with GST, inside the A$59-66 AU quote it came from.
//
// Earlier history (7 Aug 2026):
//
// Two of these moved enough to change which builds the tool recommends:
//
// RTX PRO 6000 17,999 -> 18,499. The old figure was the Max-Q variant; the
// card modelled here is the 600W Workstation Edition, which is the dearer
// one. Both are listed side by side at Mwave, which is how the mix-up
// happened.
// RTX 5090 5,999 -> 6,999. Cheapest AU listing was 6,499 in June 2026
// and has kept climbing.
// RDIMM /GB 48 -> 62. The big one. A 256 GB set of 8x32 GB DDR5
// ECC RDIMM quotes at A$15-17k in AU retail, i.e. A$59-66/GB. The old 48
// was closer to the US spot index (US$30.94/GB best-case mid-July 2026,
// ~A$49/GB landed with GST), which is not what anyone here actually pays.
// Server RDIMM is under allocation pressure -- hyperscalers are taking the
// high-capacity modules -- so treat this as a floor that is still rising.
//
// Verified unchanged rather than assumed: consumer DDR5 at 18.5/GB is still the
// cheapest in-stock 2x32 GB kit (A$1,199 = A$18.7/GB); mid-market kits run to
// A$31/GB, so this line is the bottom of the range, deliberately. EPYC at 7,500
// matches a 9754 at ~A$7k, though AU distributor RRP for the 12-channel Turin
// parts spans A$6.3k-13.1k inc GST depending on core count.
const PR = {
gpu4060ti: 400, gpu5060ti: 1049, gpu5070ti: 1749, gpu5080: 2580, gpu5090: 10499, gpuPro: 25100,
ramPerGB: 15.1, ramPerGBRdimm: 55, trCpu: 6499, trMobo: 1799, xeonCpu: 8000, xeonMobo: 2500,
// EPYC. The 7002/7003 pair is a used-market figure: these are several
// generations old and are bought second-hand, which is the only reason a
// 16-channel box lands anywhere near a consumer budget.
//
// epycRome2 covers TWO CPUs plus a dual-SP3 board, and it was badly low at
// 2,800. It is now 9,600, and this is the widest uncertainty in the table --
// the two markets disagree by 3x and both are real:
// US eBay, converted: 7413 24c ~A$525, 7543 32c ~A$1,180, 7713 64c ~A$2,180,
// dual-SP3 boards A$1,075-1,580. A 2P box lands
// A$3,400-6,000 if you are willing to import.
// AU-sourced: A$3-8k PER CPU, so A$7.5-17.5k assembled.
// 9,600 sits at the lower-middle of the AU range, on the reasoning that memory
// bandwidth comes from CHANNELS rather than cores, so the value build is the
// cheapest part that populates all eight channels per socket -- not the top SKU.
epyc1Cpu: 7500, epyc1Mobo: 1600, epyc2Cpu: 15000, epyc2Mobo: 2600, epycRome2: 9600,
// Used DDR4 RDIMM is a different market, but "different" no longer means
// "cheap and stable". Refurbished DDR4 is up 30-50% in the same squeeze, from a
// lower base: NEW 64 GB DDR4 ECC RDIMM runs US$472-499 (~A$12/GB landed), and
// AU-sourced 512 GB sets quote A$5-10k, i.e. A$10-19.5/GB. 15 is the middle of
// that, above the US figure because this page is priced in AU retail.
//
// This still beats DDR5 RDIMM at 55/GB by 3.7x, which is why used boxes keep the
// value end of the staircase -- but the gap is narrower than the old 12.5
// implied, and the CPU correction above matters more than this line does.
ramPerGBDdr4Used: 15
};
// Memory cost for a build, from the rate above rather than a hand-written figure.
const rdimmP = gb => Math.round(gb * PR.ramPerGBRdimm);
const ddr4P = gb => Math.round(gb * PR.ramPerGBDdr4Used);
// GPU catalogue. bw is EFFECTIVE GB/s during batch-1 MoE decode, back-calculated
// from published benchmarks -- never a spec sheet. nom is kept only so the UI can
// show how little of the nominal figure survives.
// Effective figures for cards with no benchmark of their own are estimated from
// nominal bandwidth at the conversion rate this table already exhibits: ~55% for
// consumer cards, ~45% for RTX PRO / workstation parts, which clock lower. Every
// such entry is flagged est:1 and renders "(est)" in the picker. Checked against
// the two anchors that do exist, the rule lands within ~12% (5080) and ~2%
// (5090). pest:1 marks a price that is an estimate rather than a sighted listing
// -- used and grey-market cards especially, which have no retail price at all.
const GPUC = {
// 4060 Ti at 59% of nominal matches the 5060 Ti exactly, so it is left alone.
// LocalScore back-calculates to 237-252 GB/s (82-88% of nominal) for the 16GB
// variant, which no card in this table approaches -- another reason to treat
// that dataset as a cross-check, not a calibration source.
'4060ti': { n: 'RTX 4060 Ti 8GB', vram: 8, bw: 170, nom: 288, p: PR.gpu4060ti, est: 1 },
'4060ti16': { n: 'RTX 4060 Ti 16GB', vram: 16, bw: 170, nom: 288, p: 650, est: 1, pest: 1 },
'3090': { n: 'RTX 3090 24GB', vram: 24, bw: 515, nom: 936, p: 1250, est: 1, pest: 1, used: 1 },
'4070tis': { n: 'RTX 4070 Ti Super', vram: 16, bw: 370, nom: 672, p: 1250, est: 1, pest: 1 },
'4080s': { n: 'RTX 4080 Super', vram: 16, bw: 405, nom: 736, p: 1650, est: 1, pest: 1 },
'4090': { n: 'RTX 4090 24GB', vram: 24, bw: 554, nom: 1008, p: 3500, est: 1, pest: 1, used: 1 },
'5070': { n: 'RTX 5070 12GB', vram: 12, bw: 370, nom: 672, p: 1099, est: 1 },
'5060ti': { n: 'RTX 5060 Ti 16GB', vram: 16, bw: 265, nom: 448, p: PR.gpu5060ti },
// 5070 Ti: still an estimate, but no longer an outlier. At bw 300 it converted
// 33% of nominal while every sibling here converts 38-59%, which is not a
// defensible gap for a 256-bit GDDR7 card one SKU below the 5080. Set to the
// 5080's 49% of its own nominal. LocalScore's crowd-sourced entries suggest
// lower (322-333 GB/s back-calculated from Llama 3.1 8B and Qwen2.5 14B), but
// that same dataset puts this card at only 1.45x a 4060 Ti despite 3.1x the
// bandwidth, so it is treated as a cross-check rather than a source.
'5070ti': { n: 'RTX 5070 Ti 16GB', vram: 16, bw: 439, nom: 896, p: PR.gpu5070ti, est: 1 },
'5080': { n: 'RTX 5080 16GB', vram: 16, bw: 470, nom: 960, p: PR.gpu5080 },
'5090': { n: 'RTX 5090 32GB', vram: 32, bw: 1000, nom: 1792, p: PR.gpu5090 },
'pro6000': { n: 'RTX PRO 6000 96GB', vram: 96, bw: 674, nom: 1792, p: PR.gpuPro },
'pro4000': { n: 'RTX PRO 4000 24GB', vram: 24, bw: 302, nom: 672, p: 4499, est: 1 },
'pro4500': { n: 'RTX PRO 4500 32GB', vram: 32, bw: 403, nom: 896, p: 6999, est: 1 },
// The PRO 5000 pair moved hard in Aug 2026 on the same memory squeeze that took
// the PRO 6000 to 24,999: 48GB from 8,500 to 12,999, and the 72GB variant -- same
// die, same 1344 GB/s nominal, more VRAM -- arriving at 15,999. At these prices
// the 72GB card is 1.23x the 48GB one for 1.5x the capacity, which is the only
// reason it belongs on the list.
'pro5000': { n: 'RTX PRO 5000 48GB', vram: 48, bw: 605, nom: 1344, p: 12999, est: 1 },
'pro5000_72': { n: 'RTX PRO 5000 72GB', vram: 72, bw: 605, nom: 1344, p: 15999, est: 1, pest: 1 },
'6000ada': { n: 'RTX 6000 Ada 48GB', vram: 48, bw: 432, nom: 960, p: 11999, est: 1 },
'a6000': { n: 'RTX A6000 48GB', vram: 48, bw: 346, nom: 768, p: 6000, est: 1, pest: 1, used: 1 },
// ---- server / datacentre PCIe -----------------------------------------
// Conversion rates here are the weakest in the table and every entry is
// flagged. No clean single-card llama.cpp anchor for these exists: the one
// figure found is an old 2x A100 layer-split run on Llama2-70B Q4 at 10.46
// tok/s, which back-calculates to ~403 GB/s, i.e. about 21% of an A100's
// nominal. HBM parts are therefore set at 0.35 -- between that 21% and the
// RTX PRO 6000's measured 38% -- and GDDR server parts at 0.45, matching the
// workstation class they actually resemble. llama.cpp does not saturate HBM
// for batch-1 decode; these cards earn their keep on capacity and on batched
// serving, neither of which is what this tool measures.
//
// All are PCIe variants, NOT SXM: SXM boards cannot go in a workstation and
// their higher bandwidth would be misleading here. Most are passive-cooled and
// assume server chassis airflow, which no desktop case provides.
'v100': { n: 'Tesla V100 32GB', vram: 32, bw: 315, nom: 900, p: 2000, est: 1, pest: 1, used: 1, srv: 1 },
'a30': { n: 'A30 24GB', vram: 24, bw: 327, nom: 933, p: 5500, est: 1, pest: 1, used: 1, srv: 1 },
'l4': { n: 'L4 24GB', vram: 24, bw: 135, nom: 300, p: 4500, est: 1, pest: 1, srv: 1 },
'a40': { n: 'A40 48GB', vram: 48, bw: 313, nom: 696, p: 8500, est: 1, pest: 1, used: 1, srv: 1 },
'l40s': { n: 'L40S 48GB', vram: 48, bw: 389, nom: 864, p: 16000, est: 1, pest: 1, srv: 1 },
'a100': { n: 'A100 40GB PCIe', vram: 40, bw: 544, nom: 1555, p: 9000, est: 1, pest: 1, used: 1, srv: 1 },
'a100x': { n: 'A100 80GB PCIe', vram: 80, bw: 677, nom: 1935, p: 18000, est: 1, pest: 1, used: 1, srv: 1 },
'h100': { n: 'H100 80GB PCIe', vram: 80, bw: 714, nom: 2039, p: 42000, est: 1, pest: 1, srv: 1 },
'h100n': { n: 'H100 NVL 94GB', vram: 94, bw: 1365, nom: 3900, p: 52000, est: 1, pest: 1, srv: 1 },
'h200': { n: 'H200 NVL 141GB', vram: 141, bw: 1680, nom: 4800, p: 70000, est: 1, pest: 1, srv: 1 },
// Blackwell Ultra, shipped Jan 2026. 288 GB HBM3e at 8 TB/s nominal -- the
// largest single-card pool on this list by a wide margin, and the only part
// that holds a 1T-class model at Q4 on two cards. Priced from the 8-GPU rack
// it actually ships in: about A$800k a system, so A$100k a GPU. The 0.35 HBM
// conversion is the same one every other HBM part here carries; nothing about
// batch-1 llama.cpp decode gets near 8 TB/s.
'b300': { n: 'B300 288GB (Blackwell Ultra)', vram: 288, bw: 2800, nom: 8000, p: 100000, est: 1, pest: 1, srv: 1 }
};
// Buildable arrangements as {model:count}; priced against what you already own.
// Arrangements offered as upgrades. Kept to combinations someone would actually
// build: one of a card, pairs, and the few high-count configurations that only
// make sense on a workstation board. buildHW() filters these against what you
// already own and against the slot count of your platform, and drops any set that
// a strictly larger set matches on price.
const GSETS = [
{ '5080': 1 }, { '5080': 2 }, { '5080': 1, '4060ti': 1 }, { '5080': 1, '5060ti': 1 },
{ '5090': 1 }, { '5090': 1, '5080': 1 }, { '5090': 2 }, { '5090': 4 },
{ '3090': 1 }, { '3090': 2 }, { '3090': 4 },
{ '4090': 1 }, { '4090': 2 }, { '4090': 4 },
{ '4080s': 1 }, { '4080s': 2 }, { '4070tis': 1 }, { '4070tis': 2 }, { '4060ti16': 1 }, { '4060ti16': 2 },
{ '5070': 1 }, { '5070': 2 }, { '5060ti': 1 }, { '5060ti': 2 }, { '5070ti': 1 }, { '5070ti': 2 },
{ 'pro4000': 1 }, { 'pro4000': 2 }, { 'pro4500': 1 }, { 'pro4500': 2 },
{ 'pro5000': 1 }, { 'pro5000': 2 }, { 'pro5000': 4 },
{ 'pro5000_72': 1 }, { 'pro5000_72': 2 }, { 'pro5000_72': 4 }, { 'pro5000_72': 8 },
{ 'b300': 1 }, { 'b300': 2 }, { 'b300': 4 }, { 'b300': 8 },
{ '6000ada': 1 }, { '6000ada': 2 }, { 'a6000': 1 }, { 'a6000': 2 }, { 'a6000': 4 },
{ 'pro6000': 1 }, { 'pro6000': 1, '5080': 1 }, { 'pro6000': 2 }, { 'pro6000': 4 }, { 'pro6000': 8 },
{ 'v100': 1 }, { 'v100': 2 }, { 'v100': 4 },
{ 'a30': 1 }, { 'a30': 2 }, { 'l4': 1 }, { 'l4': 2 },
{ 'a40': 1 }, { 'a40': 2 }, { 'a40': 4 },
{ 'l40s': 1 }, { 'l40s': 2 }, { 'l40s': 4 },
{ 'a100': 1 }, { 'a100': 2 }, { 'a100': 4 },
{ 'a100x': 1 }, { 'a100x': 2 }, { 'a100x': 4 }, { 'a100x': 8 },
{ 'h100': 1 }, { 'h100': 2 }, { 'h100': 4 }, { 'h100': 8 },
{ 'h100n': 1 }, { 'h100n': 2 }, { 'h100n': 4 },
{ 'h200': 1 }, { 'h200': 2 }, { 'h200': 4 }, { 'h200': 8 }
];
// Tensor-parallel gain over PCIe. Sub-linear because every layer ends in an
// AllReduce that the bus has to carry, and at batch 1 there is almost no compute
// to hide it behind.
const TPF = { 2: 1.60, 4: 2.40, 8: 3.00 };
// Tensor-parallel gain when the cards share a COHERENT link -- NVLink bridges on
// the older workstation parts, NVSwitch on an HGX board. The AllReduce still
// happens, but a hidden state is single-digit KB and NVLink round-trips in a few
// microseconds rather than the tens PCIe needs, so the per-layer cost stops being
// the thing that decides the answer. Closer to linear, still not linear: the
// reduce is serialised against the layer whatever the wire.
const TPF_NVL = { 2: 1.85, 4: 3.40, 8: 6.00 };
// Max GPUs that can be joined by a coherent link, per card. Absent = PCIe only.
// Consumer Blackwell has no NVLink at all, and neither does the RTX PRO 6000 --
// the 3090 is the last GeForce with a bridge, which is a large part of why used
// 3090 pairs keep turning up in this kind of build.
const NVL = {
'3090': 2, 'a6000': 2, '6000ada': 0,
'a100': 2, 'a100x': 2, 'h100': 2, 'h100n': 2, 'h200': 2,
// HGX B300: eight GPUs on NVSwitch, all-to-all, which is what the A$800k buys
// beyond the silicon itself. This is the only entry here that is a whole
// fabric rather than a bridge between a pair.
'b300': 8
};
const nvlMax = k => NVL[k] || 0;
// Platforms the custom-build card can sit on. bw is the effective system-memory
// figure, matched to the fixed builds above; null means derive it from the RAM
// you declared in "your system". slots caps how many cards the board can feed.
// Platforms the custom builder can sit on. Entries carrying `cpu` route their
// system-memory bandwidth through numaBW() instead of a fixed figure, so a
// dual-socket build responds to the NUMA policy the same way the rig builder does
// -- including being SLOWER than one socket when the pages are naively interleaved.
const CPLAT = {
d: { n: 'your own board', slots: 0, base: 0, ch: 0, bw: null, rdimm: 0 },
t: { n: 'Threadripper PRO 9000', slots: 4, base: PR.trCpu + PR.trMobo, ch: 8, bw: 190, rdimm: 1 },
x: { n: 'Xeon 6 12-channel', slots: 8, base: PR.xeonCpu + PR.xeonMobo, ch: 12, bw: 150, rdimm: 1 },
e1: { n: 'EPYC 9004/9005 \u2014 1P, 12-ch DDR5', slots: 4, base: PR.epyc1Cpu + PR.epyc1Mobo, ch: 12, cpu: 'ep9004', rdimm: 1, spec: 1 },
e2: { n: 'EPYC 9004/9005 \u2014 2P, 24-ch DDR5', slots: 6, base: PR.epyc2Cpu + PR.epyc2Mobo, ch: 24, cpu: 'ep9004x2', rdimm: 1, spec: 1 },
r2: { n: 'EPYC 7002/7003 \u2014 2P, 16-ch DDR4 (used)', slots: 6, base: PR.epycRome2, ch: 16, cpu: 'ep7003x2', rdimm: 1, spec: 1, used: 1 }
};
// Bandwidth for a custom platform. Multi-socket entries defer to the same NUMA
// model the rig builder uses; everything else keeps its fixed calibrated figure.
function cplatBW(k) {
const pl = CPLAT[k] || CPLAT.d;
if (pl.cpu) return numaBW(CPUP[pl.cpu], CUSTOM.numa || 'unknown').bw;
return pl.bw;
}
// gpus is the list the builder edits: [{k, n}], up to CU_MAX_ROWS entries. The
// old gpu/n/gpu2/n2 keys are kept only so a saved config from before this change
// still loads; migrateGpus() folds them in and they are never written again.
const CU_MAX_ROWS = 8;
const DEFAULT_CUSTOM = { on: 0, plat: 't', gpus: [{ k: '5090', n: 2 }], nvlink: 1,
ramGB: 256, numa: 'distribute', kind: 'std', uni: 'spark', uniN: 2 };
// Absent means on: a saved config from before the toggle existed should keep the
// link, not silently lose it.
const nvlOn = () => CUSTOM.nvlink !== 0;
// Fold a pre-list config (gpu/n, gpu2/n2, gpu3/n3) into the array form, and
// guarantee the array is always present, non-empty and within bounds.
function migrateGpus(c) {
if (!Array.isArray(c.gpus) || !c.gpus.length) {
const rows = [];
for (const p of [['gpu', 'n'], ['gpu2', 'n2'], ['gpu3', 'n3']])
if (c[p[0]] && GPUC[c[p[0]]] && (c[p[1]] | 0) > 0)
rows.push({ k: c[p[0]], n: c[p[1]] | 0 });
c.gpus = rows.length ? rows : [{ k: '5090', n: 2 }];
}
c.gpus = c.gpus.filter(r => r && GPUC[r.k]).slice(0, CU_MAX_ROWS)
.map(r => ({ k: r.k, n: Math.max(1, r.n | 0) }));
if (!c.gpus.length) c.gpus = [{ k: '5090', n: 1 }];
delete c.gpu; delete c.n; delete c.gpu2; delete c.n2; delete c.gpu3; delete c.n3;
return c;
}
let CUSTOM = (function () {
try {
return migrateGpus(Object.assign({}, DEFAULT_CUSTOM,
JSON.parse(localStorage.getItem('custom') || '{}')));
} catch (e) { return migrateGpus(Object.assign({}, DEFAULT_CUSTOM)); }
})();
// One GPU arrangement, described as {model: count}. Shared by the catalogue and
// by the custom builder so a hand-rolled machine is costed and modelled by
// exactly the same rules as a listed one.
// nvlOff opts OUT of the coherent link. Default is ON for every card that has
// one -- an NVLink bridge or an NVSwitch board is a property of the hardware, so
// the model should assume it works and let the user say otherwise (bridge not
// fitted, driver refuses, cards in different root complexes).
function gpuSet(c, owned, nvlOff) {
owned = owned || {};
const ks = Object.keys(c).filter(k => c[k] > 0 && GPUC[k]);
const vram = ks.reduce((t, k) => t + GPUC[k].vram * c[k], 0);
const slots = ks.reduce((t, k) => t + c[k], 0);
// Layer split reads from every card in turn, so the effective figure is the
// capacity-weighted harmonic mean -- one slow card drags the whole build.
const bw = Math.round(vram / ks.reduce((t, k) => t + GPUC[k].vram * c[k] / GPUC[k].bw, 0));
const price = ks.reduce((t, k) => t + Math.max(0, c[k] - (owned[k] || 0)) * GPUC[k].p, 0);
const nm = ks.map(k => (c[k] > 1 ? c[k] + 'x ' : '') + GPUC[k].n.replace(/ \d+GB$/, '')).join(' + ');
const fast = ks.slice().sort((x, y) => GPUC[y].bw - GPUC[x].bw)[0];
// Prefill compute is set by the FASTEST card, not the harmonic mean:
// a GEMM runs on one device at a time under layer split.
// pfKey stays the highest-BANDWIDTH card because that is what decides PCIe
// generation. Prefill compute is a different question and must not reuse it:
// a 3090 has more bandwidth than a 5080 but less compute, so picking by
// bandwidth made adding one LOWER prefill.
const pfKey = fast;
// Layer split runs layers in sequence, each on the card that holds it, so the
// build's prefill rate is the capacity-weighted harmonic mean of its cards --
// the same structure already used for memory bandwidth.
const pfTF = vram / ks.reduce((t, k) => t + GPUC[k].vram * c[k] / (PFTF[k] || 20), 0);
// If the model fits on the best-compute card alone you would simply run it
// there, so carry that card's rate and its VRAM as the alternative.
const pfCard = ks.slice().sort((x, y) => (PFTF[y] || 20) - (PFTF[x] || 20))[0];
// A build counts as server-class if ANY card in it is. Those are passive-cooled
// parts that need chassis airflow, so they are kept out of the machine cards
// (reachable through the custom builder) but still plotted on the staircase.
const srv = ks.some(k => GPUC[k].srv) ? 1 : 0;
const mine = ks.length === Object.keys(owned).length && ks.every(k => c[k] === (owned[k] || 0));
// Tensor parallelism needs IDENTICAL cards. In a mixed build the largest
// identical group can still run TP with the odd card left out, so carry that
// subset -- otherwise adding a spare card to 2x5090 would silently remove the
// tensor-parallel option that made it good at dense models in the first place.
// A group of identical cards can run tensor-parallel. Whether it is worth
// doing on an MoE depends entirely on whether they share a coherent link.
let tpSet = null;
for (const k of ks) {
if (c[k] < 2 || !TPF[c[k]]) continue;
const nvl = !nvlOff && c[k] <= nvlMax(k);
const cand = { vram: GPUC[k].vram * c[k], bw: GPUC[k].bw,
f: (nvl ? TPF_NVL : TPF)[c[k]], nvl: nvl };
if (!tpSet || cand.vram * cand.f > tpSet.vram * tpSet.f) tpSet = cand;
}
const soloK = ks.length === 1 ? ks[0] : null;
const tpNvl = soloK ? (!nvlOff && c[soloK] >= 2 && c[soloK] <= nvlMax(soloK)) : false;
// Capability, independent of the opt-out, so the UI can show the indicator
// even while the link is switched off.
const nvlAble = ks.some(k => c[k] >= 2 && c[k] <= nvlMax(k));
return {
k: ks.map(k => k + (c[k] > 1 ? 'x' + c[k] : '')).join('_'), n: nm, s: nm, mine: mine, c: c,
vram: vram, bw: bw, slots: slots, p: price,
pfKey: pfKey, pfTF: pfTF, pfBest: (PFTF[pfCard] || 20), pfBestVram: GPUC[pfCard].vram, srv: srv,
alt: ks.length > 1 ? { vram: GPUC[fast].vram, bwFast: GPUC[fast].bw } : null,
tp: (soloK && c[soloK] >= 2) ? (tpNvl ? TPF_NVL : TPF)[c[soloK]] : null,
tpNvl: tpNvl, nvlAble: nvlAble, nvlMax: soloK ? nvlMax(soloK) : 0,
tpSet: (ks.length > 1 && tpSet) ? tpSet : null
};
}
// Desktop CPU platforms. lanes is CPU-attached PCIe lanes, which is what decides
// whether a second card runs at x8 or drops to x4 off the chipset; slots is how
// many cards the platform can realistically feed. ch fixes the memory channel
// count, so it is derived from the platform rather than typed in by hand.
// sock = populated sockets. ch = channels PER SOCKET that are actually
// populated -- an empty channel contributes no bandwidth, so the picker never
// quotes a platform maximum. mts = typical shipping DIMM rate. lanes/slots are
// CPU-attached PCIe lanes and realistically feedable card slots.
const CPUP = {
arrow: { n: 'Intel Core Ultra 200S \u2014 Arrow Lake, LGA1851', sock: 1, ch: 2, mts: 6000, lanes: 20, slots: 2 },
raptor: { n: 'Intel Core 12\u201314th gen \u2014 LGA1700', sock: 1, ch: 2, mts: 5600, lanes: 20, slots: 2 },
am5: { n: 'AMD Ryzen 7000/9000 \u2014 AM5', sock: 1, ch: 2, mts: 6000, lanes: 24, slots: 2 },
trx50: { n: 'AMD Threadripper 7000/9000 \u2014 TRX50', sock: 1, ch: 4, mts: 6400, lanes: 48, slots: 3 },
wrx90: { n: 'AMD Threadripper PRO \u2014 WRX90', sock: 1, ch: 8, mts: 6400, lanes: 128, slots: 4 },
xeonw: { n: 'Intel Xeon W-2500/3500 \u2014 W790/W890', sock: 1, ch: 8, mts: 6400, lanes: 112, slots: 4 },
// Multi-socket. These are SPECULATIVE: see numaBW() for the model and SRC.numa
// for the single measurement behind it. xgmi is per-direction inter-socket
// bandwidth, which is what caps interleaved access.
// NAMING: 7002 is Rome, 7003 is Milan -- this entry was calling 7003 "Rome",
// which is wrong by one generation. Both are socket SP3 with 8 channels of
// DDR4-3200, so they model identically here, and the yield below is calibrated
// from a 7642, which is a ROME part. Labelled for both rather than picking the
// wrong one.
// yld overrides the default wide-bus yield. These cannot convert their
// channels the way Genoa can -- Infinity Fabric, not the DIMMs, is the
// limiter. 0.45 is back-calculated from the dual-7642 dataset in SRC.userbench,
// which lands on 180-204 GB/s against a 410 GB/s theoretical.
ep7003: { n: 'AMD EPYC 7002/7003 \u2014 1P, 8-ch DDR4', sock: 1, ch: 8, mts: 3200, lanes: 128, slots: 4, yld: 0.5, spec: 1 },
ep7003x2: { n: 'AMD EPYC 7002/7003 \u2014 2P, 16-ch DDR4', sock: 2, ch: 8, mts: 3200, lanes: 160, slots: 6, xgmi: 64, yld: 0.5, spec: 1 },
ep9004: { n: 'AMD EPYC 9004/9005 \u2014 1P, 12-ch DDR5', sock: 1, ch: 12, mts: 4800, lanes: 128, slots: 4, spec: 1 },
ep9004x2: { n: 'AMD EPYC 9004/9005 \u2014 2P, 24-ch DDR5', sock: 2, ch: 12, mts: 4800, lanes: 160, slots: 6, xgmi: 64, spec: 1 }
};
const myCpu = () => CPUP[RIG.cpu] || CPUP.arrow;
// ---- prefill ------------------------------------------------------------
// Prefill is a different physical regime from decode. Decode is a batch-1 GEMV:
// it reads every active byte to emit one token, so it is memory-bound. Prefill
// is a GEMM over the whole prompt: weights are read once and reused across the
// batch, so it is compute-bound while resident, and TRANSFER-bound when the
// weights live in system RAM.
//
// pf = effective prefill TFLOPS, i.e. what the runtime actually sustains, not
// the marketing figure. Only two clean anchors exist:
// Qwen3.5-35B-A3B Q4, RTX 5090, fully resident: pp about 6900 t/s
// -> 6900 x 2 x 3e9 = 41.4 TFLOPS (SRC.prefill)
// V4-Flash, RTX PRO 6000 + dual EPYC, saturated: pp 3144 t/s
// -> 3144 x 2 x 13e9 = 81.7 TFLOPS, but ~47% of weights were off the card,
// so this is a LOWER bound on resident compute (SRC.userbench)
// Everything else is scaled by class off those two and is an ESTIMATE. The
// implied PRO 6000 / 5090 ratio is 1.97x where the dies are within ~1.1x, so
// the spread is runtime and model, not silicon -- which is exactly why these
// are not presented as measurements.
const PFTF = {
'4060ti': 8, '4060ti16': 8, '5060ti': 12, '5070': 18, '4070tis': 20,
'5070ti': 26, '4080s': 24, '5080': 28, '3090': 16, '4090': 32,
'5090': 41.4, 'pro6000': 81.7, 'pro4000': 20, 'pro4500': 30,
'pro5000': 55, 'pro5000_72': 55, '6000ada': 30, 'a6000': 18,
// Server parts. Scaled by class off the 5090 anchor; datacentre silicon has
// far more peak FP16 than llama.cpp extracts, so these are deliberately well
// below the marketing figure and remain estimates.
'v100': 18, 'a30': 26, 'l4': 14, 'a40': 20, 'l40s': 42,
'a100': 55, 'a100x': 60, 'h100': 110, 'h100n': 125, 'h200': 130, 'b300': 280
};
// PCIe effective bandwidth, GB/s, by generation at x16.
const PCIE = { 3: 11, 4: 24, 5: 55 };
// Effective PCIe bandwidth per card. On a consumer board the CPU lanes are
// split across the cards, so a second card halves the link -- and prefill is
// the phase that actually notices, because it is the phase that streams
// weights. Workstation platforms have lanes to spare.
function pcieFor(platKey, cards, gpuKey) {
// Generation is set by the CARD: 30/40-series and Ampere workstation parts are
// Gen4, Blackwell and RTX PRO are Gen5. A Gen4 card in a Gen5 slot is still Gen4,
// and prefill is the phase that notices because it is the phase that streams.
const gen = !gpuKey ? PCIE[5]
: GEN3.indexOf(gpuKey) >= 0 ? PCIE[3]
: GEN4.indexOf(gpuKey) >= 0 ? PCIE[4] : PCIE[5];
if (platKey === 't' || platKey === 'x') return gen; // x16 each
const cp = myCpu(), per = Math.floor(cp.lanes / Math.max(1, cards || 1));
return per >= 16 ? gen : per >= 8 ? gen / 2 : gen / 4;
}
const GEN4 = ['3090', '4060ti', '4060ti16', '4070tis', '4080s', '4090', 'a6000', '6000ada',
'a100', 'a100x', 'a30', 'a40'];
const GEN3 = ['v100'];
// NUMA policy. llama.cpp's default leaves a second socket contributing capacity
// but not bandwidth; --numa distribute plus a matched thread count is what
// actually recruits it.
// eta = share of the S-socket aggregate that survives.
// lam = fraction of reads served by the socket that issued them. It sets how
// much traffic crosses the fabric, and therefore the cap below.
const NUMA = {
local: { n: 'pinned to one socket', eta: 1, lam: 1, oneOnly: 1 },
distribute: { n: '--numa distribute, tuned threads', eta: 0.9, lam: 0.75 },
interleave: { n: 'interleaved, untuned', eta: 0.7, lam: 0.5 },
unknown: { n: 'untuned / unknown', eta: 0.7, lam: 0.5 }
};
// ---- multi-socket system memory bandwidth ------------------------------
//
// Per socket, theoretical is channels x rate x 8 bytes. Aggregating across S
// sockets is only real if each socket reads its OWN memory, because a remote
// read crosses the inter-socket fabric (xGMI/UPI), which is far narrower than
// local DRAM.
//
// With pages interleaved across S=2 nodes and threads spread evenly, a thread
// finds its data local half the time. Total demand D therefore splits:
// each socket serves D/2 (balanced across memory controllers, fine)
// cross-socket traffic is D/4 in each direction
// so the fabric imposes D <= 4 x BW_xgmi independently of how many channels
// are populated. At xGMI ~64 GB/s that is ~256 GB/s -- which is why naive
// interleaving on a wide DDR5 part can be no better than one socket, and why
// untuned dual-socket llama.cpp is often SLOWER than single socket.
//
// Partitioning work so each socket touches mostly local pages raises the local
// fraction and relaxes the fabric term. Rather than model lambda explicitly on
// one data point, that is folded into a single NUMA efficiency eta applied to
// the aggregate, calibrated so 'distribute' reproduces the one published
// measurement (1.8x of a single socket => eta 0.9 of a 2x aggregate).
// remote traffic = (1 - lam) x D, shared over S sockets
// per direction = (1 - lam) x D / S (S = 2 here)
// fabric constraint = (1 - lam) x D / 2 <= xgmi
// => D <= 2 x xgmi / (1 - lam)
// At lam = 0.5 (naive interleave) that is 4 x xgmi, which on a 64 GB/s link is
// 256 GB/s -- less than one Genoa socket. That is the arithmetic behind untuned
// dual-socket llama.cpp being SLOWER than single socket. Pinning to one socket
// crosses nothing, so the cap does not apply and the second socket contributes
// capacity only.
function numaBW(cpu, numaKey) {
const sock = cpu.sock || 1;
const one = cpu.ch * cpu.mts * 8 / 1000; // per-socket theoretical
const yieldRate = cpu.yld || (cpu.ch <= 2 ? 0.875 : 0.72); // measured DRAM->tokens yield
const oneEff = Math.round(one * yieldRate);
if (sock < 2) return { bw: oneEff, cap: null, eta: 1, oneSocket: oneEff, sock: 1 };
const p = NUMA[numaKey] || NUMA.unknown;
if (p.oneOnly) return { bw: oneEff, cap: null, eta: 1, oneSocket: oneEff, sock: sock,
note: 'second socket adds capacity, not bandwidth' };
const agg = Math.round(one * sock * yieldRate * p.eta);
const cap = (cpu.xgmi && p.lam < 1) ? Math.round(2 * cpu.xgmi / (1 - p.lam)) : Infinity;
return { bw: Math.min(agg, cap), cap: cap, eta: p.eta, lam: p.lam,
oneSocket: oneEff, sock: sock, capped: cap < agg };
}
const DEFAULT_RIG = {
gpus: [{ k: '5080', n: 1 }], nvlink: 1,
cpu: 'arrow', numa: 'unknown', ramGB: 96, ramCh: 2, ramMTs: 6000,
kind: 'std', uni: 'spark', uniN: 1
};
// What the machine is holding before a model loads. This used to be split by OS,
// which is a distinction without a difference: anyone can run WSL2, and the whole
// spread between Windows and a bare Linux console is a couple of GB against
// models measured in tens. One averaged figure each, applied everywhere.
const SYSRES = 14; // GB of system RAM the OS and the runtime hold
const DISPVRAM = 2; // GB of VRAM the desktop holds on a discrete card
// Unified-memory machines. One pool, no link to cross, so the whole model is
// resident by definition and prefill is purely compute-bound. Held in a table
// rather than written inline in buildHW() so the rig picker, the custom builder
// and the catalogue all read the same figures.
//
// link/maxN describe CLUSTERING. Several of these can be wired together to hold
// a model none of them fits alone -- two DGX Sparks over ConnectX-7, Macs over
// Thunderbolt 5 -- and what that buys is explained in uniHW().
const UNI = {
halo: {
n: 'Framework Desktop', meta: 'Strix Halo \u00b7 128GB unified \u00b7 215 GB/s',
vram: 128, bw: 165, res: 14, pfTF: 6.6, price: 6069,
link: 5, linkN: 'USB4 40Gb/s', hopUs: 300, maxN: 4
},
spark: {
n: 'NVIDIA DGX Spark', meta: 'GB10 \u00b7 128GB unified \u00b7 273 GB/s',
vram: 128, bw: 175, res: 14, pfTF: 18.4, price: 8879,
link: 25, linkN: 'ConnectX-7 200GbE', hopUs: 30, maxN: 2
},
mac: {
n: 'Mac Studio M3 Ultra', meta: '96GB unified \u00b7 819 GB/s \u00b7 superseded by M5 Ultra',
vram: 96, bw: 214, res: 14, pfTF: 6.6, price: 9099, apple: 1,
link: 10, linkN: 'Thunderbolt 5', hopUs: 200, maxN: 4
},
m5max: {
n: 'MacBook Pro M5 Max', meta: '128GB unified \u00b7 614 GB/s \u00b7 40-core \u00b7 buyable new',
vram: 128, bw: 262, res: 16, pfTF: 8.7, price: 9999, apple: 1,
link: 10, linkN: 'Thunderbolt 5', hopUs: 200, maxN: 4
},
// Announced 25 Aug 2026; ships 22 Sep, and the 512 GB build slips to October.
// 1.2 TB/s nominal, 50% over the M3 Ultra, from two M5 Max dies on UltraFusion.
//
// The effective figure is the weakest number here. This table's two Mac anchors
// convert very differently -- the M3 Ultra lands at 26% of nominal (214 of 819)
// and the M5 Max at 43% (262 of 614) -- and no M5 Ultra benchmark exists yet.
// 35% is a deliberate midpoint: the M5 generation converts better than M3, but
// an Ultra pays cross-die traffic on UltraFusion that a single Max die does not.
//
// Checked Oct 2026 against the first published runs. Dense: Tom's Hardware's
// llama.cpp Qwen3.8-27B is now an anchor (see that model and APPLE_DENSE). MoE:
// MacStories' MLX runs put the M5 Ultra at 1.54-1.58x an M3 Ultra on
// Qwen3.8-Flash-Next and GLM-5.3-Flash; this table gives 1.84-1.92x, i.e. the M5
// Ultra MoE figure may be ~15% high, but those runs were MLX at mixed 4/8-bit,
// not llama.cpp Q4, so they are a cross-check rather than an anchor. Still est.
// The 512 GB build's AU price is still unannounced; 40,000 is a press estimate.
m5ultra: {
n: 'Mac Studio M5 Ultra 256GB', meta: 'M5 Ultra · 256GB unified · 1.2 TB/s · 80-core GPU',
vram: 256, bw: 420, res: 16, pfTF: 17.4, price: 28699, est: 1, apple: 1,
link: 10, linkN: 'Thunderbolt 5', hopUs: 200, maxN: 4
},
m5ultra512: {
n: 'Mac Studio M5 Ultra 512GB', meta: 'M5 Ultra · 512GB unified · 1.2 TB/s · Oct 2026',
vram: 512, bw: 420, res: 16, pfTF: 17.4, price: 40000, est: 1, pest: 1, apple: 1,
link: 10, linkN: 'Thunderbolt 5', hopUs: 200, maxN: 4
},
mac256: {
n: 'Mac Studio 256GB (grey)', meta: 'M3 Ultra 256GB \u00b7 pulled May 2026 \u00b7 AU resale',
vram: 256, bw: 214, res: 14, pfTF: 6.6, price: 29999, apple: 1,
link: 10, linkN: 'Thunderbolt 5', hopUs: 200, maxN: 4
},
mac512: {
n: 'Mac Studio 512GB (grey)', meta: 'M3 Ultra 512GB \u00b7 pulled Mar 2026 \u00b7 US resale',
vram: 512, bw: 214, res: 14, pfTF: 6.6, price: 36800, apple: 1,
link: 10, linkN: 'Thunderbolt 5', hopUs: 200, maxN: 4
},
// Two tiers rather than one pool, so it is NOT flagged unified: the 496 GB of
// LPDDR5X sits behind the 252 GB of HBM and the model has to choose.
gb300: {
n: 'DGX Station GB300', meta: '252GB HBM3e + 496GB LPDDR5X \u00b7 Grace Blackwell Ultra',
vram: 252, ram: 496, bw: 2400, bwSlow: 350, res: 20, pfTF: 60, price: 134600,
plat: 'g', gpus: 1, tiered: 1, linkNote: 'NVLink-C2C at 900 GB/s, not PCIe', maxN: 1
}
};
// Apple GPUs convert bandwidth far better on dense models than on MoE, and the
// bw figures in UNI are MoE-derived. One M3 Ultra measured dense at 93.9%
// of its sustained-read roofline against 33.8% for a fine MoE (2.8x); the first
// dense llama.cpp anchor on an M5 Ultra lands at 1.7x the MoE figure. 1.7 is the
// value that makes the M5 Ultra and DGX Spark Qwen3.8-27B pair consistent under
// leave-one-out, and it is the conservative end of the two. The Spark needs no
// such factor: its dense run converts within 6% of its MoE runs.
const APPLE_DENSE = 1.7;
// One unified machine, optionally several of them clustered.
//
// Clustering is modelled honestly, and the honest answer is unintuitive: at batch
// 1 pipeline parallelism runs ONE node at a time. Node A computes its layers
// while B idles, then B computes its layers while A idles. The cluster therefore
// reads the whole model at ONE node's bandwidth -- capacity multiplies, bandwidth
// does not. That is exactly why two Sparks run a model neither of them fits, and
// run it no faster than a single Spark would if the model fitted on it.
//
// The activations that actually cross the link are tiny (a hidden state is single
// -digit KB, microseconds even on Thunderbolt), so the link cost is latency per
// hop, not bandwidth. It is small. The reason a cluster is slow is the serialised
// compute above, not the wire.
function uniHW(key, n, id) {
const u = UNI[key]; if (!u) return null;
n = Math.max(1, Math.min(u.maxN || 1, (n | 0) || 1));
const hops = n > 1 ? (n - 1) * 2 : 0; // there and back per token
return {
id: id || (key + (n > 1 ? 'x' + n : '')),
name: u.n + (n > 1 ? ' \u00d7' + n : ''),
meta: u.meta + (n > 1 ? ' \u00b7 ' + n + ' nodes over ' + u.linkN : ''),
vram: u.vram * n, ram: (u.ram || 0) * n,
bwFast: u.bw, bwSlow: u.bwSlow || u.bw, // per node, NOT summed -- see above
res: u.res, pfTF: u.pfTF, pfBest: u.pfTF, pfBestVram: 9999,
price: u.price * n, unified: u.tiered ? 0 : 1, dEff: u.apple ? APPLE_DENSE : 1,
plat: u.plat, gpus: u.gpus, link: u.linkNote,
nodes: n, uniKey: key, linkGBs: u.link, linkN: u.linkN,
ovh: .0012 + hops * (u.hopUs || 200) / 1e6
};
}
// Context length. A model that only fits at 8k is a demo; real work starts where
// a codebase or a long document fits, and agentic loops need more again.
const CTXS = [
{ k: 8192, n: '8k', band: 'demo only' },
{ k: 32768, n: '32k', band: 'marginal' },
{ k: 131072, n: '128k', band: 'agent-ready' },
{ k: 262144, n: '256k', band: 'agent-ready' }
];
let CTX = 131072;
// The context every published decode benchmark in this file was run at. Vendors
// and community testers quote short-prompt decode; none of the sources here ran
// a full 128k window. Measurements are therefore anchored HERE and carried to
// the selected context by the model, never reprinted verbatim at every context.
const BENCH_CTX = 8192;
// KV cache bytes per token, Q8 cache, estimated from architecture class:
// 2 (K+V) x layers x kv_dim, with kv_dim ~ hidden/4 under typical GQA.
// Tiered by total parameters because per-model layer counts are not all public.
// Reproduces the ~1.5 GB flat figure previously used, at 8k on a 122B.
function kvKB(m) {
const t = m.total;
if (t <= 15) return 54;
if (t <= 40) return 40;
if (t <= 150) return 72;
if (t <= 400) return 124;
return 230;
}
// Per-model KV, from each model's own config.json (read 28 Oct 2026), at a Q8
// cache -- one byte per element -- in KB (1000 B) per token:
// kvF bytes cached for EVERY token: the full-attention layers only. Gated
// DeltaNet, KDA, Mamba and other linear layers keep a fixed-size state
// instead, small enough to sit inside the 1 GB buffer added in calc().
// MLA layers cache kv_lora_rank + rope dims, not heads x head_dim, and a
// sparse-attention indexer adds its own key per token, which is counted.
// kvS bytes per token on sliding-window layers, which stop growing at swa.
// Sizing everything as a plain full-attention transformer, as kvKB() does, was
// off by up to 25x: Qwen3.5-122B caches 12 KB a token, not 72. kvKB() remains as
// the fallback for any model added without its config having been read.
// Gemma 4's global layers share K and V (attention_k_eq_v); both are counted,
// since a runtime that does not exploit the sharing still stores two copies.
const kvAt = (m, ctx) => m.kvF == null ? kvKB(m) * ctx / 1e6
: (m.kvF * ctx + (m.kvS || 0) * Math.min(ctx, m.swa || 0)) / 1e6;
const kvGB = m => kvAt(m, CTX);
// tbl = billions of parameters in a LOOKUP TABLE that sits outside the model
// proper (Qwen3.8-Flash-Next's n-gram embeddings, DeepSeek V4.1 Flash's Engram). A token reads a handful of
// rows from it, not the table, so llama.cpp can leave it memory-mapped on disk
// and it costs neither RAM nor bandwidth. total, gb and active all describe the
// model WITHOUT it; it is shown, never counted.
const tblNote = m => m.tbl ? ', with its ' + m.tbl + 'B lookup table left on SSD' : '';
// Your rig is a list of cards for the same reason the custom build is: two
// fields could not describe a four-card workstation, and plenty of people who
// would use this page own one. Old saved configs carried gpu + spare; fold them
// in once and never write them again.
function migrateRigGpus(c) {
if (!Array.isArray(c.gpus) || !c.gpus.length) {
const rows = [];
if (c.gpu && GPUC[c.gpu]) rows.push({ k: c.gpu, n: 1 });
if (c.spare && GPUC[c.spare]) {
const same = rows.find(r => r.k === c.spare);
if (same) same.n += 1; else rows.push({ k: c.spare, n: 1 });
}
c.gpus = rows.length ? rows : [{ k: '5080', n: 1 }];
}
c.gpus = c.gpus.filter(r => r && GPUC[r.k]).slice(0, CU_MAX_ROWS)
.map(r => ({ k: r.k, n: Math.max(1, r.n | 0) }));
if (!c.gpus.length) c.gpus = [{ k: '5080', n: 1 }];
delete c.gpu; delete c.spare;
return c;
}
let RIG = (function () {
try {
return migrateRigGpus(Object.assign({}, DEFAULT_RIG,
JSON.parse(localStorage.getItem('rig') || '{}')));
} catch (e) { return migrateRigGpus(Object.assign({}, DEFAULT_RIG)); }
})();
// {model: count} for everything you already own, which is what pricing nets off.
const rigOwned = () => {
const o = {};
for (const r of (RIG.gpus || [])) if (GPUC[r.k]) o[r.k] = (o[r.k] || 0) + r.n;
return o;
};
// The card the upgrade filter compares against: the biggest thing you own.
const rigPrimary = () => {
const ks = Object.keys(rigOwned());
if (!ks.length) return '5080';
return ks.slice().sort((a, b) =>
(GPUC[b].vram - GPUC[a].vram) || (GPUC[b].bw - GPUC[a].bw))[0];
};
const rigNvlOn = () => RIG.nvlink !== 0;
// Consumer dual-channel converts ~87% of theoretical into tokens. Wide server
// buses convert far less and are hand-specified below instead of derived.
const ramBW = (ch, mts) => Math.round(ch * mts * 8 / 1000 * (ch <= 2 ? 0.875 : 0.72));
// not batch-1 decode throughput, and the two are not interchangeable: a roofline
// says what the bus can do with perfect sequential access, while MoE decode
// issues scattered per-expert reads and converts roughly half of it. The
// platform figures below stay back-calculated from token benchmarks; these sit
// beside them so the size of that gap is visible rather than assumed.
// Rooflines measured privately are not reproduced here.
// Prices are held in AUD because that is where they were sourced. The rate is a
// dated constant, not a live lookup -- the page must keep working with no network.
// Note AU retail includes 10% GST while US list prices normally exclude sales
// tax, so a converted figure sits above the US sticker you would compare it to.
const FX = { aud: { sym: 'A$', rate: 1, n: 'AUD' }, usd: { sym: 'US$', rate: 0.6973, n: 'USD' } };
let CUR = (function () {
try { return localStorage.getItem('cur') === 'usd' ? 'usd' : 'aud'; }
catch (e) { return 'aud'; }
})();
const cx = n => n * FX[CUR].rate;
const AUD = n => n ? FX[CUR].sym + Math.round(cx(n)).toLocaleString() : 'owned';
// What is uncertain about a card, said in the picker rather than buried.
const gpuFlag = k => {
const g = GPUC[k]; if (!g) return '';
const f = []; if (g.est) f.push('bw est'); if (g.pest) f.push('price est');
if (g.used) f.push('used market'); if (g.srv) f.push('server card \u2014 passive cooling');
return f.length ? ' \u2014 ' + f.join(', ') : '';
};
const kAUD = n => (n >= 1000 ? FX[CUR].sym + Math.round(cx(n) / 1000) + 'k' : FX[CUR].sym + Math.round(cx(n)));
let HW = [];
function buildHW() {
HW = [];
const owned = rigOwned();
const res = SYSRES;
// Offer an arrangement only if it builds on something you already own, or
// replaces it with something at least as good on capacity or bandwidth.
// Otherwise a 5090 owner gets offered "buy an RTX 5080", which nobody would do.
const mineC = GPUC[rigPrimary()] || GPUC['5080'];
const sets = GSETS.filter(c => {
const ks = Object.keys(c);
if (ks.some(k => owned[k])) return true;
return ks.every(k => GPUC[k].vram > mineC.vram || GPUC[k].bw > mineC.bw);
});
// The exact arrangement you already own must appear, or there is no baseline
// to compare anything against. With a list rather than a card plus a spare,
// that arrangement can be any shape, so match on the whole set.
const sameSet = (a, b) => {
const ka = Object.keys(a), kb = Object.keys(b);
return ka.length === kb.length && ka.every(k => a[k] === b[k]);
};
if (Object.keys(owned).length && !sets.some(c => sameSet(c, owned)))
sets.unshift(Object.assign({}, owned));
const gpuAll = sets.map(c => gpuSet(c, owned));
// Leaving a card you own in a drawer is never the plan. If a strictly larger
// arrangement costs no more -- which happens exactly when the extra card is one
// you already have -- offer that instead, and let calc() idle the slower card if
// layer-splitting onto it would hurt. This is what turns "RTX 5090 + 96GB" into
// "RTX 5080 + RTX 5090 + 96GB". The test is on price, after ownership is netted
// off, so a second identical card is correctly NOT free.
const superset = (t, c) => Object.keys(c).every(k => (t[k] || 0) >= c[k]) &&
Object.keys(t).some(k => (t[k] || 0) > (c[k] || 0));
const gpus = gpuAll.filter(g => !gpuAll.some(t =>
t !== g && t.p <= g.p && t.slots <= 4 && superset(t.c, g.c)));
// Multi-socket platforms route through numaBW(); single-socket keeps the
// existing measured-yield formula so no calibrated value moves.
const myBW = (myCpu().sock || 1) > 1
? numaBW(myCpu(), RIG.numa || 'unknown').bw
: ramBW(RIG.ramCh, RIG.ramMTs);
const dRam = [
{
k: 'cur', ram: RIG.ramGB, bw: myBW, p: 0,
d: RIG.ramGB + 'GB DDR5-' + RIG.ramMTs + ' ' + RIG.ramCh + '-channel'
},
{
k: 'x2', ram: RIG.ramGB * 2, bw: Math.round(myBW * 0.83), p: Math.round(RIG.ramGB * PR.ramPerGB),
d: (RIG.ramGB * 2) + 'GB, fills the slots and drops a speed grade'
}];
const PLAT = [
{ k: 'd', n: '', slots: myCpu().slots, res: res, base: 0, rams: dRam },
// The two server memory figures below are MODELLED, not measured. No published
// llama.cpp MoE-offload token benchmark for a Threadripper PRO 9000 or a Xeon 6
// was found (searched 27 Jul 2026); what exists is dense-model and streaming
// benchmarks, which do not transfer. The one real roofline in hand -- 341 GB/s
// figures sit at roughly 55% of a streaming read, consistent with the pattern
// everywhere else in this table, but that is corroboration, not calibration.
{
k: 't', n: 'Threadripper', slots: 4, res: res, base: PR.trCpu + PR.trMobo, rams: [
{ k: '192', ram: 192, bw: 190, p: rdimmP(192), d: '192GB RDIMM 8-ch' },
{ k: '256', ram: 256, bw: 190, p: rdimmP(256), d: '256GB RDIMM 8-ch' },
{ k: '384', ram: 384, bw: 190, p: rdimmP(384), d: '384GB RDIMM 8-ch' },
{ k: '512', ram: 512, bw: 190, p: rdimmP(512), d: '512GB RDIMM 8-ch' },
{ k: '768', ram: 768, bw: 190, p: rdimmP(768), d: '768GB RDIMM 8-ch' }]
},
{
// Dual-socket EPYC. Present so the staircase shows what a multi-CPU box
// does to a big MoE, which is the whole point of one. Bandwidth comes from
// numaBW() under the tuned policy; the audit and the custom builder both
// flag the scaling as speculative.
k: 'e', n: 'EPYC 9004 2P', slots: 6, res: res, base: PR.epyc2Cpu + PR.epyc2Mobo,
cpuKey: 'ep9004x2', rams: [
{ k: '384', ram: 384, bw: 0, p: rdimmP(384), d: '384GB RDIMM 24-ch' },
{ k: '768', ram: 768, bw: 0, p: rdimmP(768), d: '768GB RDIMM 24-ch' },
{ k: '1536', ram: 1536, bw: 0, p: rdimmP(1536), d: '1536GB RDIMM 24-ch' }]
},
{
k: 'r', n: 'EPYC 7002/7003 2P (used)', slots: 6, res: res, base: PR.epycRome2,
cpuKey: 'ep7003x2', rams: [
{ k: '512', ram: 512, bw: 0, p: ddr4P(512), d: '512GB DDR4 16-ch (used)' },
{ k: '1024', ram: 1024, bw: 0, p: ddr4P(1024), d: '1TB DDR4 16-ch (used)' }]
},
{
k: 'x', n: 'Xeon 6', slots: 8, res: res, base: PR.xeonCpu + PR.xeonMobo, rams: [
{ k: '384', ram: 384, bw: 150, p: rdimmP(384), d: '384GB RDIMM 12-ch' },
{ k: '768', ram: 768, bw: 150, p: rdimmP(768), d: '768GB RDIMM 12-ch' },
{ k: '1152', ram: 1152, bw: 150, p: rdimmP(1152), d: '1152GB RDIMM 12-ch' }]
}
];
// A workstation board has slots and lanes to spare, so a card you already own
// stays in the machine rather than going in a drawer. Desktop boards cannot do
// this -- two slots is two slots -- which is why the augmentation is per
// platform rather than applied once to the catalogue.
const augment = (g, slots) => {
const c = Object.assign({}, g.c); let extra = 0;
for (const k in owned) {
const add = Math.max(0, owned[k] - (c[k] || 0));
if (add && g.slots + extra + add <= slots) { c[k] = (c[k] || 0) + add; extra += add; }
}
return extra ? gpuSet(c, owned) : g;
};
for (const pl of PLAT) {
const byKey = new Map();
for (const g0 of gpus.filter(x => x.slots <= pl.slots)) {
const g = augment(g0, pl.slots);
if (!byKey.has(g.k)) byKey.set(g.k, g);
}
for (const g of byKey.values())
for (const r of pl.rams)
HW.push({
id: pl.k + '_' + g.k + '_' + r.k,
name: pl.k === 'd' ? ((g.mine && r.k === 'cur' && RIG.kind !== 'uni')
? 'Your current rig' : g.n + ' + ' + r.ram + 'GB') : pl.n + ' + ' + g.s,
meta: (pl.k === 'd' ? g.n : pl.n + ' \u00b7 ' + g.n) + ' \u00b7 ' + r.d + (g.slots > 1 ? ' \u00b7 layer-split' : ''),
vram: g.vram, ram: r.ram, bwFast: g.bw,
bwSlow: pl.cpuKey ? numaBW(CPUP[pl.cpuKey], 'distribute').bw : r.bw,
res: pl.res, gpus: g.slots, plat: pl.k, cpuKey: pl.cpuKey,
pfKey: g.pfKey, pfTF: g.pfTF, pfBest: g.pfBest, pfBestVram: g.pfBestVram,
srv: g.srv, tpNvl: g.tpNvl, nvlAble: g.nvlAble, nvlMax: g.nvlMax,
pcieGBs: pcieFor(pl.k, g.slots, g.pfKey),
alt: g.alt, tp: g.tp, tpSet: g.tpSet,
mine: (RIG.kind !== 'uni' && pl.k === 'd' && g.mine && r.k === 'cur'),
price: pl.base + g.p + r.p, ovh: .0012
});
}
// The unified machines, from the table above. When "your system" is one of
// these it is marked as yours -- costed at zero, like an owned card -- and the
// next node up is offered as the upgrade it actually is.
for (const k of Object.keys(UNI)) {
const isMine = RIG.kind === 'uni' && RIG.uni === k;
const h = uniHW(k, isMine ? RIG.uniN : 1);
if (isMine) { h.mine = 1; h.name = 'Your current rig'; h.price = 0; }
HW.push(h);
if (isMine && RIG.uniN < (UNI[k].maxN || 1)) {
const up = uniHW(k, RIG.uniN + 1, k + '_more');
up.price = UNI[k].price * (up.nodes - RIG.uniN); // you only buy the new ones
HW.push(up);
}
}
if (CUSTOM.on) HW.push(customHW(owned, res));
HW.forEach(h => h.priceTxt = AUD(h.price));
}
// CPLAT.d inherits the slot count of the platform declared in "your system", so
// a Threadripper owner is not told their own board has two slots.
const cplatSlots = k => (k === 'd' || !CPLAT[k]) ? myCpu().slots : CPLAT[k].slots;
// One machine assembled from the custom-build card. Priced the same way as every
// other build: you only pay for cards you do not already own.
function customHW(owned, res) {
// A unified custom build is just an entry from the table, possibly clustered.
if ((CUSTOM.kind || 'std') === 'uni') {
const h = uniHW(CUSTOM.uni, CUSTOM.uniN, 'custom');
if (h) { h.name = 'Custom build'; h.custom = 1; return h; }
}
const pl = CPLAT[CUSTOM.plat] || CPLAT.d;
const c = customCards();
const plName = CUSTOM.plat === 'd' ? myCpu().n.split(' \u2014 ')[0] : pl.n;
const g = gpuSet(c, owned, !nvlOn());
const ramGB = Math.max(16, CUSTOM.ramGB | 0 || 128);
// Server memory is RDIMM and priced per GB from the fixed builds above.
// On your own board you only pay for what you add, and filling every slot
// costs a speed grade -- the same 0.83 penalty the stock upgrade path carries.
const ramP = pl.used ? ddr4P(ramGB)
: pl.rdimm ? rdimmP(ramGB)
: Math.round(Math.max(0, ramGB - RIG.ramGB) * PR.ramPerGB);
const bw = cplatBW(CUSTOM.plat) || Math.round(ramBW(RIG.ramCh, RIG.ramMTs) * (ramGB > RIG.ramGB ? 0.83 : 1));
return {
id: 'custom', name: 'Custom build',
meta: g.n + ' \u00b7 ' + ramGB + 'GB \u00b7 ' + plName + (g.slots > 1 ? ' \u00b7 layer-split' : ''),
vram: g.vram, ram: ramGB, bwFast: g.bw, bwSlow: bw, res: res, gpus: g.slots, plat: CUSTOM.plat,
pfKey: g.pfKey, pfTF: g.pfTF, pfBest: g.pfBest, pfBestVram: g.pfBestVram,
tpNvl: g.tpNvl, nvlAble: g.nvlAble, nvlMax: g.nvlMax,
pcieGBs: pcieFor(CUSTOM.plat, g.slots, g.pfKey),
alt: g.alt, tp: g.tp, tpSet: g.tpSet, custom: 1,
price: pl.base + g.p + ramP, ovh: .0012
};
}
// The card list the custom builder currently describes, clamped to the slots the
// chosen platform actually has. Card A is filled first, so raising the platform's
// slot count never silently reorders what you asked for.
// The builder's GPU list, always a clean array. Rows beyond the board's slot
// count are clamped rather than dropped, so shrinking the platform and growing
// it again does not silently lose a card model.
function customRows() {
return (CUSTOM.gpus || []).filter(r => r && GPUC[r.k]);
}
function customCards() {
const slots = cplatSlots(CUSTOM.plat), c = {};
let used = 0;
for (const r of customRows()) {
const take = Math.max(0, Math.min(r.n | 0, slots - used));
if (take) { c[r.k] = (c[r.k] || 0) + take; used += take; }
}
if (!used) c['5090'] = 1;
return c;
}
// Slots the current selection occupies, against what the board offers.
function customSlotUse() {
const c = customCards();
return { used: Object.keys(c).reduce(function (t, k) { return t + c[k]; }, 0),
total: cplatSlots(CUSTOM.plat) };
}
buildHW();
// ---------- models ----------
// gb = Q4-class file size. elo/wd/ag = Arena text / WebDev / Agent ratings.
// eloP and wdP are sibling PROXY values, drawn hollow. est = estimated size.
// meas = {hwId: measured tok/s} from published benchmarks on a MATCHING config.
// g = expert granularity: 'd' dense, 'c' coarse MoE (few large experts),
// 'f' fine (128-256 experts), 'u' ultra-fine (512+). Drives GPU kernel efficiency.
const M = [
{ name: 'Gemma 4 E4B', total: 8, active: 4.5, gb: 4.6, g: 'd', kvF: 8.2, kvS: 20.5, swa: 512 },
{ name: 'Gemma 4 12B QAT', total: 12, active: 12, gb: 6.66, g: 'd', meas: { d_5080_cur: 60 }, kvF: 8.2, kvS: 163.8, swa: 1024 },
{
name: 'gpt-oss-20b', total: 21, active: 3.6, gb: 12, g: 'c', elo: 1317, meas: { d_5080_cur: 205, spark: 83.4, mac: 115.5, d_pro6000_cur: 287, d_5090_cur: 419 }, kvF: 12.3, kvS: 12.3, swa: 128
},
{ name: 'Gemma 4 26B-A4B', total: 25.2, active: 3.8, gb: 14.56, g: 'f', elo: 1437, wd: 1359, kvF: 10.2, kvS: 102.4, swa: 1024 },
{
name: 'Qwen3.8-27B dense', total: 27, active: 27, gb: 16.1, g: 'd', elo: 1437, wd: 1590, ag: -0.041,
meas: { m5ultra: 44.9, spark: 11.4 }, kvF: 32.8, est: 1
},
{ name: 'Qwen3.5-27B dense', total: 27.8, active: 27.8, gb: 16.1, g: 'd', elo: 1409, wd: 1359, kvF: 32.8 },
{ name: 'Qwen3.6-27B dense', total: 27.8, active: 27.8, gb: 16.1, g: 'd', eloP: 1408, wdP: 1357, kvF: 32.8 },
{ name: 'GLM-4.7-Flash', total: 30, active: 3.5, gb: 17.4, g: 'f', elo: 1365, kvF: 27.1 },
{ name: 'Granite 4.2 30B dense', total: 30, active: 30, gb: 17.4, g: 'd', elo: 1340, kvF: 131.1, est: 1 },
{ name: 'Muse Glimmer', total: 30, active: 30, gb: 17.4, g: 'd', elo: 1425, wd: 1355, kvF: 6.7, kvS: 20, swa: 2048, est: 1 },
{ name: 'Gemma 4 31B dense', total: 30.7, active: 30.7, gb: 17.8, g: 'd', elo: 1452, wd: 1369, kvF: 41, kvS: 409.6, swa: 1024 },
{ name: 'Nemotron 3 Nano 30B-A3B', total: 31.6, active: 3.2, gb: 18.3, g: 'f', elo: 1314, kvF: 3.1, est: 1 },
{ name: 'Nemotron 3.5 Lightning', total: 31.6, active: 3.6, gb: 18.3, g: 'f', elo: 1353, kvF: 3.1, est: 1 },
{
name: 'Qwen3.5 35B-A3B', total: 36, active: 3, gb: 20.6, g: 'f', elo: 1394, meas: { d_5090_cur: 194 }, wd: 1254, kvF: 10.2
},
{ name: 'Qwen3.6 35B-A3B', total: 36, active: 3, gb: 20.6, g: 'f', eloP: 1395, wdP: 1250, kvF: 10.2 },
{ name: 'Nemotron 3.5 Bolt 74B-A9B', total: 74, active: 9, gb: 42.9, g: 'f', kvF: 4.1, est: 1 },
{
name: 'Qwen3 Next 80B-A3B', total: 80, active: 3, gb: 46.4, g: 'u', elo: 1399, meas: { halo: 42.7, d_pro6000_cur: 124 }, kvF: 12.3
},
{
name: 'GLM-4.5-Air', total: 106, active: 12, gb: 61.5, g: 'f', elo: 1373, meas: { halo: 22.6, spark: 22.6 }, kvF: 94.2
},
{
name: 'gpt-oss-120b', total: 117, active: 5.1, gb: 63.4, g: 'c', elo: 1352, meas: { halo: 55.6, spark: 58.7, mac: 70.8, d_pro6000_cur: 196 }, kvF: 18.4, kvS: 18.4, swa: 128
},
{ name: 'Mistral Small 4', total: 119, active: 6.5, gb: 69, g: 'f', kvF: 11.5 },
{
name: 'Nemotron 3 Super', total: 120, active: 12, gb: 69.6, g: 'f', elo: 1360, meas: { halo: 18.4, spark: 19.9 }, kvF: 4.1
},
{ name: 'Nemotron 3.5 Super VL', total: 120, active: 12, gb: 69.6, g: 'f', elo: 1413, wd: 1399, ag: -0.136, kvF: 4.1, est: 1 },
{
name: 'Qwen3.5 122B-A10B', total: 125, active: 10, gb: 71.22, g: 'f', elo: 1417, meas: { d_5080_cur: 21.4, d_pro6000_cur: 100.6 }, wd: 1360, kvF: 12.3
},
{
name: 'Mistral Medium 3.5', total: 128, active: 128, gb: 74.2, g: 'd', elo: 1426, wd: 1264, ag: -0.121, kvF: 180.2, est: 1
},
{ name: 'Qwen3.8-Flash-Next', total: 125, active: 6, gb: 72.5, tbl: 51, g: 'f', wd: 1628, ag: -0.033, kvF: 13.8, est: 1 },
{ name: 'Step 3.7 Flash', total: 198, active: 11, gb: 115, g: 'f', kvF: 24.6, kvS: 67.6, swa: 512, est: 1 },
{ name: 'Command A+', total: 218, active: 25, gb: 126.4, g: 'f', kvF: 16.4, kvS: 49.2, swa: 4096, est: 1 },
{ name: 'Laguna M.1', total: 225, active: 23, gb: 131, g: 'f', wd: 1349, kvF: 143.4, est: 1 },
{ name: 'MiniMax-M2.7', total: 230, active: 10, gb: 133, g: 'f', elo: 1415, wd: 1398, kvF: 127 },
{ name: 'Qwen3-235B-A22B', total: 235, active: 22, gb: 136, g: 'f', elo: 1375, kvF: 96.3 },
{ name: 'Inkling-Small', total: 276, active: 12, gb: 160, g: 'f', elo: 1405, wd: 1409, ag: -0.161, kvF: 14.3, kvS: 71.7, swa: 512, est: 1 },
{
name: 'DeepSeek V4 Flash', total: 284, active: 13, gb: 165, g: 'f', elo: 1436, wd: 1582, kvF: 3.5
},
{
name: 'Hunyuan Hy3', total: 295, active: 21, gb: 171, g: 'f', elo: 1454, wd: 1506, ag: -0.068, kvF: 163.8, est: 1
},
{ name: 'MiMo-V2.5', total: 310, active: 15, gb: 180, g: 'f', elo: 1434, wd: 1438, kvF: 11.5, kvS: 99.8, swa: 128, est: 1 },
{ name: 'MiMo-V2.6-Flash', total: 309, active: 15, gb: 179, g: 'f', elo: 1448, wd: 1638, ag: 0.021, kvF: 11.5, kvS: 99.8, swa: 128, est: 1 },
{
name: 'GLM-5.3 Flash', total: 320, active: 18, gb: 178, g: 'f', elo: 1476, wd: 1607, ag: -0.018, kvF: 7, est: 1
},
{ name: 'GLM-4.7', total: 355, active: 32, gb: 197, g: 'f', elo: 1441, wd: 1435, kvF: 188.4, est: 1 },
{ name: 'K2 Horizon 375B-A23B', total: 375, active: 23, gb: 218, g: 'f', kvF: 124.9, est: 1 },
{ name: 'Qwen3.5-397B-A17B', total: 397, active: 17, gb: 230, g: 'f', elo: 1442, wd: 1400, kvF: 15.4 },
{ name: 'MiniMax-M3', total: 428, active: 23, gb: 248, g: 'f', elo: 1440, wd: 1483, ag: -0.101, kvF: 68.7 },
{ name: 'MiniMax-M3.1-Flash', total: 428, active: 23, gb: 248, g: 'f', wd: 1581, kvF: 69.1, est: 1 },
{ name: 'Qwen3-Coder 480B-A35B', total: 480, active: 35, gb: 278, g: 'f', elo: 1388, wd: 1275, kvF: 127, est: 1 },
{ name: 'Beam 1.0 501B-A23B', total: 501, active: 23, gb: 291, g: 'f', elo: 1436, wd: 1436, ag: -0.03, kvF: 18.4, kvS: 88.1, swa: 512, est: 1 },
{ name: 'Nemotron 3 Ultra', total: 550, active: 55, gb: 319, g: 'f', ag: -0.147, elo: 1426, kvF: 6.1 },
{
name: 'DeepSeek V4.1 Flash', total: 552, active: 16, gb: 321, tbl: 196, g: 'f', elo: 1476, wd: 1666, ag: 0.023, kvF: 0.9, est: 1
},
{ name: 'Ling 3.1 Flash', total: 560, active: 25, gb: 325, g: 'f', kvF: 5.2, est: 1 },
{ name: 'Step 5 Preview', total: 600, active: 27, gb: 348, g: 'f', elo: 1448, wd: 1570, ag: -0.02, kvF: 41.2, kvS: 106, swa: 512, est: 1 },
{ name: 'Mistral Large 3', total: 675, active: 41, gb: 392, g: 'f', elo: 1414, wd: 1232, kvF: 35.1, est: 1 },
{ name: 'DeepSeek V3.2', total: 685, active: 37, gb: 397, g: 'f', elo: 1425, wd: 1326, kvF: 42.9 },
{ name: 'A.X-K2', total: 692, active: 33, gb: 401, g: 'f', kvF: 42.9, est: 1 },
{ name: 'GLM-5', total: 744, active: 40, gb: 413, g: 'f', elo: 1457, wd: 1436, kvF: 54.9, est: 1 },
{ name: 'GLM-5.1', total: 744, active: 40, gb: 413, g: 'f', elo: 1465, wd: 1508, kvF: 54.9, est: 1 },
{
name: 'GLM-5.2', total: 744, active: 40, gb: 413, g: 'f', elo: 1475, meas: { mac512: 14.5 }, wd: 1606, ag: 0.017, kvF: 47.6
},
{ name: 'GLM-5.3', total: 744, active: 40, gb: 413, g: 'f', elo: 1481, wd: 1623, ag: 0.012, kvF: 47.6, est: 1 },
{ name: 'K-EXAONE 2.0', total: 750, active: 37, gb: 435, g: 'f', kvF: 41, kvS: 116.7, swa: 128, est: 1 },
{ name: 'Hy4 preview', total: 770, active: 49, gb: 447, g: 'f', wd: 1631, ag: 0.02, kvF: 47.6, est: 1 },
{ name: 'Muse Spark Open', total: 816, active: 42, gb: 473, g: 'f', wd: 1526, kvF: 32.8, kvS: 94.2, swa: 2048, est: 1 },
{ name: 'Inkling', total: 975, active: 41, gb: 566, g: 'f', elo: 1442, wd: 1415, ag: -0.149, kvF: 22.5, kvS: 225.3, swa: 512, est: 1 },
{ name: 'Kimi K2.6', total: 1000, active: 32, gb: 580, g: 'f', elo: 1461, wd: 1509, kvF: 35.1 },
{ name: 'Kimi K2.7 Code', total: 1000, active: 32, gb: 580, g: 'f', wd: 1474, kvF: 35.1 },
{
name: 'MiMo-V2.5-Pro', total: 1020, active: 42, gb: 592, g: 'f', elo: 1466, wd: 1480, ag: -0.087, kvF: 25.6, kvS: 153.6, swa: 128, est: 1
},
{ name: 'MiMo-V2.6-Pro', total: 1020, active: 42, gb: 592, g: 'f', elo: 1480, wd: 1625, ag: 0.033, kvF: 25.6, kvS: 153.6, swa: 128, est: 1 },
{
name: 'DeepSeek V4 Pro', total: 1600, active: 49, gb: 928, g: 'f', elo: 1465, wd: 1582, ag: -0.003, kvF: 4.3
},
{
name: 'Kimi K3', total: 2800, active: 104, gb: 1400, g: 'f', elo: 1487, wd: 1656, ag: 0.016, kvF: 13.8, est: 1
}
];
// Kernel efficiency by expert granularity. At batch 1 a routed MoE issues
// hundreds of tiny per-expert GEMVs per token, so it converts far less of a
// fast memory tier into tokens than a dense model does. Directly measured on
// one M3 Ultra: dense hits 93.9% of the sustained-read roofline, a fine MoE
// only 33.8%, with the gap being per-token dispatch structure, not matmul
// speed. Discrete GPUs suffer most; unified memory sees a milder version;
// CPU-resident experts do not pay it at all (no kernel launches).
// llama.cpp streams CPU-resident experts to the GPU for any batch over this
// many tokens (GGML_OP_OFFLOAD_MIN_BATCH). Below it the experts are computed on
// the CPU instead. This threshold is why offloaded prefill and offloaded decode
// behave nothing alike.
const OFFLOAD_MIN_BATCH = 32;
// Phases. Decode stays the default so every existing comparison keeps its
// meaning. A prefill number without its prompt length is meaningless -- the
// same machine and model spans 10x across the prompt sizes below -- so the
// prompt selector appears whenever a prefill-derived phase is active.
// Each phase carries its OWN axis domain, bands, ticks and usability floor.
// Reusing the decode tiers was meaningless: 15/50/100 tok/s describes reading
// speed for a stream a human is watching, while prefill runs in the hundreds to
// thousands and TTFT is a duration where LOWER is better.
//
// decode -- the reading-speed thresholds HW set: 15 usable, 50 fast, 100 ultrafast.
// prefill -- expressed as how long a 4k prompt takes to ingest, which is what the
// number is actually for: 100 t/s = 41 s (unusable), 500 = 8 s (slow),
// 2000 = 2 s (usable), 5000+ = under a second.
// ttft -- seconds, inverted: under 1 s feels instant, 1-5 s is fine, 5-30 s is
// a wait you notice, beyond 30 s the turn is broken.
const PHASES = {
decode: {
n: 'decode', unit: 'tok/s', axis: 'decode speed \u2014 tokens/sec (log)', needsN: 0,
lo: 1, hi: 520, ticks: [1, 5, 15, 50, 100, 300], floor: 15,
bands: [{ a: 1, b: 15, c: 'var(--band1)', l: 'barely usable' },
{ a: 15, b: 50, c: 'var(--band2)', l: 'usable' },
{ a: 50, b: 100, c: 'var(--band3)', l: 'fast' },
{ a: 100, b: 520, c: 'var(--band4)', l: 'ultrafast' }]
},
prefill: {
n: 'prefill', unit: 'tok/s', axis: 'prompt processing \u2014 tokens/sec (log)', needsN: 1,
lo: 10, hi: 20000, ticks: [10, 100, 500, 2000, 5000, 15000], floor: 500,
bands: [{ a: 10, b: 100, c: 'var(--band1)', l: 'unusable' },
{ a: 100, b: 500, c: 'var(--band2)', l: 'slow' },
{ a: 500, b: 2000, c: 'var(--band3)', l: 'usable' },
{ a: 2000, b: 20000, c: 'var(--band4)', l: 'fast' }]
},
ttft: {
n: 'time to first token', unit: 's', needsN: 1, invert: 1,
axis: 'time to first token \u2014 seconds (log, lower is better)',
lo: 0.05, hi: 600, ticks: [0.1, 0.5, 1, 5, 30, 300], floor: 5,
bands: [{ a: 0.05, b: 1, c: 'var(--band4)', l: 'instant' },
{ a: 1, b: 5, c: 'var(--band3)', l: 'fine' },
{ a: 5, b: 30, c: 'var(--band2)', l: 'noticeable wait' },
{ a: 30, b: 600, c: 'var(--band1)', l: 'broken' }]
}
};
const PROMPTS = [512, 4096, 16384, 131072];
let PHASE = 'decode';
let NPROMPT = 4096;
const curPh = () => PHASES[PHASE] || PHASES.decode;
// Format a value on the active phase's own scale and unit. TTFT is a duration,
// so it needs decimals at the fast end and never reads "t/s".
const phFmt = v => curPh().invert
? (v < 10 ? v.toFixed(v < 1 ? 2 : 1) : Math.round(v)) + ' s'
: Math.round(v) + ' tok/s';
// One entry point for "how fast is this pair, on the active phase". Returns a
// value on the phase's own axis plus the confidence that belongs to it.
function phaseVal(m, hw) {
if (PHASE === 'decode') {
const r = calc(m, hw);
return r.fit === 'none' ? { fit: 'none' }
: { fit: r.fit, v: r.tps, conf: r.measured ? 'measured' : (r.calibrated ? 'calibrated' : 'estimate'), r: r };
}
const p = (PHASE === 'ttft' ? ttft : prefill)(m, hw, NPROMPT);
if (p.fit === 'none') return { fit: 'none' };
return { fit: p.fit, v: PHASE === 'ttft' ? p.sec : p.tps, conf: p.conf, p: p };
}
// Physical batch actually submitted per pass. llama.cpp defaults to 512; tuned
// long-context setups raise it, and prefill throughput scales almost linearly
// with it while transfer-bound -- a published ubatch sweep moved one config
// 121 -> 273 t/s on identical hardware.
// llama.cpp defaults to 512, which would make every offloaded prefill
// transfer-bound. Setups that actually run long prompts raise it: the dual-EPYC
// dataset in SRC.userbench states --max_num_batched_tokens 8192 outright, and a
// published ubatch sweep moved one config 121 -> 273 t/s on identical hardware.
const UBATCH = 8192;
const GEFF = { d: 1, c: 1, f: .45, u: .28 }; // discrete GPU fast tier
const GEFFU = { d: 1, c: 1, f: 1, u: .5 }; // unified memory
// Kernel efficiency for this model on this machine's fast tier.
const kEff = (m, hw) => hw.unified
? (GEFFU[m.g] || 1) * (m.g === 'd' ? (hw.dEff || 1) : 1)
: (GEFF[m.g] || 1);
// ---------- speed model ----------
// A multi-GPU build can be run more than one way, and which way wins depends on
// the model. Enumerate the legal arrangements and take the best:
// base — layer split, every card holds whole layers and they run in sequence.
// alt — a spare owned card sits idle, trading VRAM for the fast card's full
// bandwidth. Only for mixed-card builds. One --tensor-split away.
// tp — tensor parallelism, every card splits every matrix. Genuinely adds
// bandwidth, but only pays on DENSE models: at batch 1 an MoE has too
// little work per layer to amortise the per-layer AllReduce, which on
// these PCIe-only cards (NVLink is absent from consumer Blackwell AND
// from the RTX PRO 6000) costs latency, not bandwidth.
function calc(m, hw) {
const modes = [hw];
if (hw.alt) modes.push({ ...hw, ...hw.alt, alt: null, tp: null });
// Tensor parallelism pays on DENSE models over any bus, and on MoE too when the
// cards share a coherent link. The old rule barred MoE outright, which was
// right for PCIe -- a batch-1 MoE has too little work per layer to hide the
// AllReduce -- but wrong for an NVSwitch board, where the reduce costs
// microseconds. On an 8-way HGX that rule was throwing away the entire reason
// the machine costs what it does.
const tpOK = m.g === 'd' || hw.tpNvl;
if (hw.tp && tpOK) modes.push({ ...hw, bwFast: hw.bwFast * hw.tp, alt: null, tp: null });
// Mixed build: run TP across the largest identical group and leave the odd card
// idle. Costs its VRAM, buys the parallel bandwidth.
if (hw.tpSet && (m.g === 'd' || hw.tpSet.nvl)) modes.push({
...hw, vram: hw.tpSet.vram,
bwFast: hw.tpSet.bw * hw.tpSet.f, alt: null, tp: null, tpSet: null
});
if (modes.length === 1) return calc1(m, hw);
let best = null;
for (const md of modes) {
const r = calc1(m, md);
if (r.fit === 'none') { best = best || r; continue; }
if (!best || best.fit === 'none' || r.tps > best.tps) best = r;
}
return best;
}
function calc1(m, hw) {
const bpp = m.gb / m.total; // bytes per param at this quant
const bytes = m.active * bpp; // GB read per token
const isMoE = m.g !== 'd';
// KV cache now scales with the chosen context, plus ~1 GB of compute buffers.
const KV = kvGB(m) + 1;
// Usable pool, not nameplate. An OS, a desktop and the runtime all want
// memory, and a discrete GPU loses some VRAM to display + context.
const DISP = hw.unified ? 0 : DISPVRAM;
const pool = hw.unified ? hw.vram - hw.res : (hw.vram - DISP) + (hw.ram - hw.res);
// Q4 only. Dropping to Q3/Q2 would fit more but costs too much quality.
const gb = m.gb;
if (gb + KV > pool) return { fit: 'none', pool };
// Residency for a given KV footprint. Called twice: once at the selected
// context, once at the context the published benchmarks were run at, so a
// measurement can be carried across contexts instead of being asserted at all
// of them. Without the second evaluation a short-context benchmark gets fitted
// against a long-context model and the calibration constant explodes.
// Non-routed weights: attention, embeddings, any shared expert. They are read
// on EVERY token, so by definition they are part of the active set and can
// never exceed it -- which the old flat "8% of the file" rule violated for 27
// of the 32 MoEs here. Kimi K3 came out at 112 GB of non-routed against 25 GB
// of total active bytes, an impossibility that made the model demand 112 GB of
// VRAM before a single expert could be resident. Cap it against the active set.
const nonRouted = Math.min(gb * 0.08, 0.35 * bytes);
const routedFile = gb - nonRouted;
const routedActive = Math.max(0, bytes - nonRouted);
// Residency for a given KV footprint. Called twice: once at the selected
// context, once at the context the published benchmarks were run at, so a
// measurement can be carried across contexts instead of being asserted at all
// of them. Without the second evaluation a short-context measurement gets
// fitted against a long-context model and the calibration constant explodes.
//
// Returns the fraction of ACTIVE BYTES in fast memory, which is what time()
// needs. The old version returned the fraction of the ROUTED FILE resident and
// fed that straight into the byte split -- two different quantities. On a 16 GB
// card that reported f = 0 for six models, i.e. "every byte comes from system
// RAM", when in practice llama.cpp puts the attention layers on the GPU and
// only the experts on the CPU. That is the whole point of --n-cpu-moe.
const resid = kv => {
if (hw.unified) return 1;
// A dense model is split by LAYER (-ngl), so the resident fraction is simply
// the fraction of the file that fits. This used to be binary -- all, or a 2%
// floor -- which was harmless while everything either fitted or did not, but
// became wrong once the KV cache started pushing models over the edge by a
// gigabyte or two. Spilling 12% of a 12B is not the same as running it on
// the CPU, and the audit panel reported the artifact as "2% resident".
if (!isMoE) {
const free = hw.vram - DISP - kv;
return free <= 0 ? 0 : Math.min(1, free / gb);
}
const free = hw.vram - DISP - kv;
if (free <= 0) return 0;
// Attention goes on the card first -- it is small, it is read every token,
// and every offload guide says to keep it there. Experts take what is left.
const nrRes = Math.min(nonRouted, free);
const fRouted = routedFile > 0 ? Math.min(1, Math.max(0, free - nrRes) / routedFile) : 1;
return bytes > 0 ? (nrRes + routedActive * fRouted) / bytes : 0;
};
// Routed-expert residency, kept separate because it is what CAPACITY questions
// turn on. f above drives speed; this drives the fit label and the audit, so a
// model with its attention resident and no experts still reads as "mostly on
// CPU" rather than being promoted to "partial" by the attention alone.
const residRouted = kv => {
if (hw.unified) return 1;
if (!isMoE) return resid(kv);
const free = hw.vram - DISP - kv - nonRouted;
return free <= 0 ? 0 : Math.min(1, free / routedFile);
};
const f = resid(KV);
const fRouted = residRouted(KV);
// Resident FILE bytes, which is a different quantity from either fraction
// above and the one prefill needs: streaming an expert to the GPU moves the
// whole tensor, not just the slice this token happens to read.
const residFileGB = hw.unified ? gb
: Math.min(nonRouted, Math.max(0, hw.vram - DISP - KV)) + routedFile * fRouted;
// NOTE: a residency-dependent efficiency (eff rising with f, on the theory
// that a fully resident model lets fused MoE kernels run clean) was tried and
// REJECTED — it fixed Qwen3.5-122B on the RTX PRO 6000 but pushed the two
// fully-resident 35B-A3B cases 52-75% too fast, and overall leave-one-out
// error went from 5% to 7% median and 36% to 75% worst. The real driver looks
// to be per-token dispatch cost scaling with layers x experts-per-token,
// which is not derivable from the fields in this table.
const eff = kEff(m, hw);
const time = ff => bytes * ff / (hw.bwFast * eff) + bytes * (1 - ff) / hw.bwSlow + hw.ovh;
const tFast = bytes * f / (hw.bwFast * eff);
const tSlow = bytes * (1 - f) / hw.bwSlow;
const t = time(f);
const measured = m.meas && m.meas[hw.id] != null;
// Where a model has been benchmarked anywhere, carry that correction across
// to the machines it has not been benchmarked on. Without this, a measured
// machine and a modelled one are not comparable and upgrades look better or
// worse than they are purely from which one happens to have a benchmark.
//
// A measurement is only true at the context it was taken at. Published decode
// benchmarks are short-context, so the figure is carried to the selected
// context by the ratio of modelled times rather than reprinted verbatim --
// otherwise a 12B that no longer fits on the card at 128k still reports the
// speed it had when it did fit.
const tBench = time(resid(kvAt(m, BENCH_CTX) + 1));
const tps = measured ? m.meas[hw.id] * (tBench / t) : (1 / t) * calib(m);
const fit = fRouted >= 0.95 ? 'fit' : (fRouted >= 0.15 ? 'part' : 'cpu');
return {
fit, f, fRouted, nonRouted, routedFile, residFileGB, tps, bytes, measured, pool,
calibrated: !measured && calib(m) !== 1,
atBench: measured ? m.meas[hw.id] : null, ctxCost: tBench / t,
modelled: (1 / t) * calib(m), share: [tFast / t, tSlow / t, hw.ovh / t]
};
}
// Prompt-processing rate for a prompt of N tokens.
//
// t(N) = N / R_compute resident GEMM work
// + ceil(N/U) x B_offload / L weights crossing the link, per pass
// + a x N^2 attention, which grows quadratically
//
// The middle term is the one that matters and the one decode does not have: it
// is paid PER PASS, not per token, so a short prompt pays the whole transfer for
// a handful of tokens while a long prompt amortises it. That single term
// reproduces three independent published observations -- prefill climbing
// 48 -> 246 t/s with prompt length on a fixed machine, +125% from raising ubatch
// alone, and -54% when the link narrows from x16 to x4.
function prefill(m, hw, N) {
const r = calc(m, hw);
if (r.fit === 'none') return { fit: 'none' };
const act = m.active; // billions, active per token
// Effective prefill TFLOPS for this machine. Every machine now has one --
// fixed and unified boxes carry pfTF directly -- so no build falls through to
// a different formula. Comparing a PFTF-derived rate against a bandwidth proxy
// was what made Strix Halo read as 0.0x against a 5080.
const disp0 = hw.unified ? 0 : DISPVRAM;
const fitsBest = hw.pfBestVram && (m.gb + kvGB(m) + 1) <= (hw.pfBestVram - disp0);
const tf = fitsBest ? hw.pfBest : (hw.pfTF || null);
// Unified-memory machines have no link to cross: weights are already where
// the compute is, so prefill is purely compute-bound.
const unified = !!hw.unified;
// What actually crosses the link per pass: the part of the FILE that is not on
// the card. This used to be file x (1 - f), which was only ever right while f
// meant "fraction of the file resident". It now means "fraction of the ACTIVE
// BYTES resident", and multiplying a file size by an active-byte fraction is
// a category error -- it over-reported the transfer for every model whose
// attention is resident but whose experts are not, which is most of them.
const offloadGB = unified ? 0 : Math.max(0, m.gb - (r.residFileGB || 0));
// Resident compute. On a CPU-only or unified box, fall back to a bandwidth
// proxy rather than asserting a FLOPS figure we do not have.
const Rcomp = (tf ? tf : 20) * 1e12 / (2 * act * 1e9);
const lanes = hw.pcieGBs || PCIE[5];
const passes = Math.max(1, Math.ceil(N / UBATCH));
const tTransfer = offloadGB > 0 ? passes * offloadGB / lanes : 0;
const tCompute = N / Rcomp;
// Attention cost, normalised so it is negligible below ~8k and visible at 128k,
// which is the shape every published long-context prefill sweep shows.
const tAttn = 2.2e-10 * N * N * (m.total > 150 ? 1.6 : 1);
// max(), not sum: llama.cpp prefetches the next expert while computing the
// current one, so streaming overlaps compute rather than serialising behind
// it. Summing them double-counts, and double-counted badly here because the
// PRO 6000 compute constant was itself derived from a transfer-bound run.
const t = Math.max(tCompute, tTransfer) + tAttn;
const tps = N / t;
const share = [tCompute / t, tTransfer / t, tAttn / t];
const bound = tAttn > Math.max(tCompute, tTransfer) ? 'attention'
: tTransfer > tCompute ? 'link' : 'compute';
// Confidence is about evidence, not arithmetic. Nothing here is measured on
// the selected machine; the resident path leans on two anchors and the
// offloaded path on one user-reported curve.
const conf = unified || r.fRouted >= 0.95 ? 'estimate' : 'speculative';
// Hand back the terms as well as the total. The panel re-prices the transfer
// term at llama.cpp's DEFAULT ubatch, because the gap between the two is the
// single most common reason a real machine misses this number by a multiple.
return {
fit: r.fit, tps: tps, sec: t, share: share, bound: bound, conf: conf,
passes: passes, offloadGB: offloadGB, link: lanes, Rcomp: Rcomp,
tComp: tCompute, tXfer: tTransfer, tAttn: tAttn
};
}
// Time to first token: prompt ingestion plus a fixed launch cost. Model load is
// deliberately excluded -- it is paid once per session, not once per turn.
function ttft(m, hw, N) {
const p = prefill(m, hw, N);
if (p.fit === 'none') return p;
const launch = 0.15 + (p.offloadGB > 0 ? 0.25 : 0);
return Object.assign({}, p, { sec: p.sec + launch, launch: launch });
}
// Geometric mean of measured/modelled across every machine this model has a
// published benchmark on. 1 when there are none.
//
// The comparison MUST be made at the context the benchmarks were run at. Fitting
// a short-context measurement against a long-context model inflates the constant
// by however much the KV cache has pushed the weights off the card -- and that
// inflated constant is then applied to every OTHER machine. Left uncorrected it
// reported a 12B dense at 1,195 tok/s on a GB300, and made models get FASTER as
// the context grew.
const _cc = {};
function calib(m) {
if (_cc[m.name] !== undefined) return _cc[m.name];
_cc[m.name] = 1; // guard against recursion
if (!m.meas) return 1;
let logsum = 0, n = 0;
const savedCtx = CTX;
CTX = BENCH_CTX;
try {
for (const [hid, mv] of Object.entries(m.meas)) {
const hw = HW.find(h => h.id === hid);
if (!hw) continue;
const saved = m.meas; delete m.meas;
const r = calc(m, hw); m.meas = saved;
if (r.fit === 'none' || !isFinite(r.tps) || r.tps <= 0) continue;
logsum += Math.log(mv / r.tps); n++;
}
} finally { CTX = savedCtx; }
return _cc[m.name] = n ? Math.exp(logsum / n) : 1;
}
// ---------- chart ----------
const W = 900, H = 620, P = { t: 26, r: 22, b: 52, l: 52 };
// A dedicated zero column at the far left. A model that will not load has no
// speed at all, so it does not belong anywhere on a log axis — but hiding it
// loses the most important fact about it, that this machine cannot run it.
const ZW = 64, AX0 = P.l + ZW + 14, ZX = P.l + ZW / 2;
// Domain, bands and ticks all come from the active phase. TTFT additionally
// reverses the axis so that better is still to the right.
const axLo = () => curPh().lo, axHi = () => curPh().hi;
const sx = v => {
const lo = Math.log10(axLo()), hi = Math.log10(axHi());
let f = (Math.log10(Math.min(Math.max(v, axLo()), axHi())) - lo) / (hi - lo);
if (curPh().invert) f = 1 - f;
return AX0 + f * (W - AX0 - P.r);
};
// Two quality metrics that measure different things and disagree usefully.
// Arena text is human preference on ordinary chat, style-controlled; WebDev is
// the same method on front-end tasks; Agent is a standardised score on agentic
// sessions. None is "the" answer, which is why there is no blended score.
// Four lenses on the same models, deliberately measuring different things.
// k = field on a model, p = optional field holding a PROXY value (a same-size
// sibling's score, rendered hollow). step = the gap the upgrade staircase treats
// as a real difference on this scale.
//
// Coverage is shown beside the metric selector and differs per lens.
const METRICS = {
elo: {
k: 'elo', p: 'eloP', label: 'quality — Arena text rating (Bradley–Terry, style-controlled)',
short: 'Arena text', col: 'Arena', unit: 'Arena points',
lo: 1290, hi: 1520, ticks: [1300, 1350, 1400, 1450, 1500], fmt: v => v, step: 15
},
wd: {
k: 'wd', p: 'wdP', label: 'quality — Arena WebDev rating (Bradley–Terry)',
short: 'Arena webdev', col: 'WebDev', unit: 'WebDev points',
lo: 1210, hi: 1820, ticks: [1250, 1350, 1450, 1550, 1650, 1750], fmt: v => v, step: 25
},
ag: {
k: 'ag', label: 'quality — Arena Agent score (standardised, 0 = field average)',
short: 'Arena agent', col: 'Agent', unit: 'agent points',
lo: -0.18, hi: 0.22, ticks: [-0.15, -0.1, -0.05, 0, 0.05, 0.1, 0.15, 0.2],
fmt: v => (v > 0 ? '+' : '') + v.toFixed(3), step: 0.03
}
};
// Frontier closed models, drawn as horizontal reference lines so the open-weight
// scores have something to be measured against. Not runnable locally at any
// price — they are here purely to show where the ceiling sits. Claude Opus 5 has
// no Arena entry yet, so Opus 4.8 carries that axis.
// Frontier reference lines.
const REF = [
{ n: 'Claude Opus 5.5', elo: 1509, wd: 1809, ag: 0.208 },
{ n: 'Claude Sonnet 5.5', elo: 1478, wd: 1769, ag: 0.140 },
{ n: 'Claude Fable 5.1', elo: 1503, wd: 1745, ag: 0.139 },
{ n: 'Claude Opus 5', elo: 1491, wd: 1690, ag: 0.082 },
{ n: 'Claude Haiku 5.5', elo: 1425, wd: 1588, ag: 0.011 },
{ n: 'Claude Sonnet 5', elo: 1461, wd: 1540, ag: 0.038 },
{ n: 'Claude Sonnet 4.6', elo: 1472, wd: 1523 }
];
let metric = 'elo';
const MT = () => METRICS[metric];
// Score on the active metric. On Arena, fall back to a same-size sibling's Elo
// (eloP) when the model itself was never rated, flagged via isProxy().
const qv = m => { const t = MT(); return m[t.k] ?? (t.p ? m[t.p] : undefined); };
const isProxy = m => { const t = MT(); return !!t.p && m[t.k] == null && m[t.p] != null; };
// The active lens's score for the tooltip. It used to show the Arena text rating
// on every Arena lens, so WebDev and Agent hovers reported the wrong number.
const tipScore = m => {
const t = MT(), v = qv(m);
if (v == null) return t.short + ' unrated';
return t.short + ' ' + t.fmt(v) + (isProxy(m) ? ' — proxy from 3.5 sibling' : '') +
(t.r && m[t.r] != null ? ' (' + t.fmt(m[t.r]) + ' at low effort)' : '');
};
const sy = v => { const t = MT(); return H - P.b - (v - t.lo) / (t.hi - t.lo) * (H - P.t - P.b); };
const sr = g => Math.max(4, Math.min(20, 2.9 * Math.pow(g, .31)));
let cur = (HW.find(h => h.mine) || HW[0]).id, showNone = true, sortK = 'elo', sortDir = -1, sel = null;
const $ = id => document.getElementById(id);
const svg = $('chart'), tip = $('tip');
// The model the detail panel and staircase are showing. Nothing is selected on
// first load, so both fall back to the same model and this keeps them in step.
const DEF = 'Qwen3.5 122B-A10B';
const selName = () => M.some(x => x.name === sel) ? sel : DEF;
// Why a machine has no best-usable model on the active lens. A bare dash reads
// as a bug; the three real reasons are quite different from each other, and on a
// sparse lens the answer is usually "the rated models are all too big for this
// machine" rather than anything about the machine's speed.
function noneWhy(hw) {
const rated = M.filter(m => qv(m) != null);
if (!rated.length) return 'no model rated on this lens';
const loads = rated.filter(m => calc(m, hw).fit !== 'none');
if (!loads.length) return 'nothing rated on this lens fits';
return 'all rated models below 15 t/s';
}
// Highest-quality model that still clears the 15 tok/s usability floor.
// Must be measured on the ACTIVE phase: comparing a decode tok/s against the
// prefill floor of 500 would call every machine unusable. On TTFT the test also
// flips, because there lower is better.
function bestUsable(hw) {
return M.map(m => { const pv = phaseVal(m, hw); return { m, v: pv.v, fit: pv.fit }; })
.filter(x => x.fit !== 'none' && (curPh().invert ? x.v <= curPh().floor : x.v >= curPh().floor))
.filter(x => qv(x.m) != null)
.sort((a, b) => qv(b.m) - qv(a.m) || (curPh().invert ? a.v - b.v : b.v - a.v))
.map(x => ({ m: x.m, r: { tps: x.v, fit: x.fit } }))[0];
}
// ---------- which upgrades actually change anything --------------------------
// Spending money is not the same as gaining capability. A build earns a card
// only if it beats EVERY cheaper build by a margin worth the trip: a quality
// step big enough to be a different class of model (3 AA points, 15 Arena
// points), or a speed step big enough to feel different (1.25x). Everything
// else is a bigger number on a spec sheet attached to the same working day.
const SPEED_STEP = 1.25;
// Hardware families. The strict staircase compares every build against every
// cheaper build regardless of kind, so a whole class of machine can vanish
// because something unrelated got there first. Each family therefore gets its
// own staircase against the same baseline, and the winners are unioned in.
const FAMS = [
{ k: 'uni', n: 'unified', long: 'unified-memory boxes', t: h => !!h.unified },
{ k: 'ws', n: 'workstation', long: 'workstation platforms', t: h => /^[tx]_/.test(h.id) },
{ k: 'gpu', n: 'more GPUs', long: 'more cards on your board', t: h => /^d_/.test(h.id) && !h.mine }
];
// The grid is two rows of six and the last slot belongs to the custom build, so
// eleven is the real budget. Family cards yield first; the strict staircase is
// never trimmed, because dropping a rung would misreport the walk.
const CARD_MAX = 11;
// Speed has to be compared on a fixed model or it is meaningless -- each build's
// own best model differs, so "108 t/s" and "44 t/s" can describe different work.
// The reference is whatever your current rig runs best today.
// On a sparse lens your own rig may run nothing that is rated at all, in which
// case there is no "best model today" to measure speed against. Fall back to the
// smallest model so the axis still has a scale, but flag it -- describing that
// fallback as your best model would be a plain lie.
function refModel(base) {
const b = bestUsable(base);
return b ? { m: b.m, fallback: false }
: { m: M.slice().sort((x, y) => x.gb - y.gb)[0], fallback: true };
}
function impactList() {
const base = HW.find(h => h.mine) || HW[0];
const R0 = refModel(base), ref = R0.m;
// Server-class builds are excluded from the card list entirely: they are not
// things you buy for a desk. They remain in HW, so the staircase still plots
// them, and the custom builder can still assemble one.
const rows = HW.filter(h => !h.srv || h.custom).map(h => {
const b = bestUsable(h), rr = calc(ref, h), pp = prefill(ref, h, NPROMPT);
return {
h: h, best: b, q: b ? qv(b.m) : -Infinity,
s: (rr.fit === 'none' ? 0 : rr.tps),
// Prefill on the same reference model. Kept separate from decode because
// they move independently: extra VRAM can roughly double prompt processing
// while leaving decode flat, and a build like that was previously invisible
// here no matter how much it improved the wait before the first token.
p: (pp.fit === 'none' ? 0 : pp.tps)
};
}).sort((a, b) => a.h.price - b.h.price || b.q - a.q);
const step = MT().step, keep = [], drop = [];
const me = rows.find(r => r.h.mine) || rows[0];
const bq = me ? me.q : 0, bs = me ? me.s : 0, bp = me ? me.p : 0;
// Walk one: beat everything cheaper, of any kind, by a real margin on ANY of
// the three axes a build can actually improve -- quality, decode, prefill.
// Requiring decode alone hid every build whose value is prompt ingestion.
let q = -Infinity, sp = 0, pf = 0;
for (const r of rows) {
const gainQ = r.q >= q + step;
const gainS = r.s > 0 && r.s >= sp * SPEED_STEP;
const gainP = r.p > 0 && r.p >= pf * SPEED_STEP;
if (r.h.mine || r.h.custom || gainQ || gainS || gainP) {
r.why = 'main';
// Record when a build earns its place on prefill alone, so the card can
// say so rather than looking like it got in for nothing.
if (!gainQ && !gainS && gainP) r.only = 'prefill';
keep.push(r);
}
else drop.push(r);
if (r.q > q) q = r.q;
if (r.s > sp) sp = r.s;
if (r.p > pf) pf = r.p;
}
// Walk two: represent each KIND of machine with exactly two builds -- the
// cheapest one that is a genuine step over your rig, and the cheapest one that
// reaches the best quality that family can reach. An entry point and a ceiling
// is enough to place a family on the map; a full staircase per family just
// fills the grid with near-identical cards.
for (const f of FAMS) {
const fam = rows.filter(x => f.t(x.h));
if (!fam.length) continue;
const entry = fam.find(r => r.q >= bq + step || (r.s > 0 && r.s >= bs * SPEED_STEP) ||
(r.p > 0 && r.p >= bp * SPEED_STEP));
const topQ = Math.max.apply(null, fam.map(r => r.q));
const ceil = topQ >= bq + step ? fam.filter(r => r.q === topQ)[0] : null; // fam is price-sorted
[[entry, 'entry'], [ceil, 'ceiling']].forEach(function (p) {
const r = p[0];
if (!r || keep.indexOf(r) >= 0 || keep.length >= CARD_MAX) return;
r.why = 'fam'; r.fam = f.n + ' · ' + p[1]; keep.push(r);
});
}
for (let i = drop.length - 1; i >= 0; i--) if (keep.indexOf(drop[i]) >= 0) drop.splice(i, 1);
keep.sort((a, b) => a.h.price - b.h.price || b.q - a.q);
// name the cheapest build that already does everything a dropped one does
for (const r of drop) {
const dom = k => k.h.id !== r.h.id && k.q >= r.q && k.s >= r.s && k.h.price <= r.h.price;
r.by = keep.filter(dom)[0] || rows.filter(dom)[0];
}
return { keep: keep, drop: drop, base: base, ref: ref, refFallback: R0.fallback, bq: bq, bs: bs, bp: bp };
}
function card(r, L) {
const h = r.h, b = r.best, chips = [];
if (h.mine) chips.push('<i>your baseline</i>');
else {
const ds = L.bs > 0 ? r.s / L.bs : 0;
// Quality deltas are only meaningful when BOTH ends are real numbers. If your
// rig runs nothing rated on this lens the baseline is -Infinity, and
// subtracting it yielded "+Infinity quality" on every card.
if (!isFinite(r.q)) chips.push('<i>nothing rated runs</i>');
else if (!isFinite(L.bq)) chips.push('<i class="up">unlocks ' + MT().fmt(r.q) + '</i>');
else {
// Scale-aware: a third of the metric's own step is the noise floor, and the
// precision follows the metric. Hardcoded integers read every agent-lens
// delta as "same quality", because that whole scale spans 0.27.
const dq = r.q - L.bq, eps = MT().step / 3;
const t = v => (v > 0 ? '+' : '\u2212') + (MT().step >= 1 ? Math.round(Math.abs(v))
: Math.abs(v).toFixed(3));
chips.push(dq >= eps ? '<i class="up">' + t(dq) + ' quality</i>'
: dq <= -eps ? '<i class="dn">' + t(dq) + ' quality</i>'
: '<i>same quality</i>');
}
chips.push(ds >= 1.1 ? '<i class="up">' + ds.toFixed(ds < 10 ? 1 : 0) + '× decode</i>'
: ds <= 0.9 ? '<i class="dn">' + ds.toFixed(1) + '× decode</i>'
: '<i>same decode</i>');
// Prefill moves independently of decode -- extra VRAM can roughly double prompt
// processing while leaving decode flat -- so it gets its own chip instead of
// being averaged into one "speed" number that would hide exactly that.
const dp = L.bp > 0 ? r.p / L.bp : 0;
if (dp) chips.push(dp >= 1.1 ? '<i class="up">' + dp.toFixed(dp < 10 ? 1 : 0) + '× prefill</i>'
: dp <= 0.9 ? '<i class="dn">' + dp.toFixed(1) + '× prefill</i>'
: '<i>same prefill</i>');
if (r.only === 'prefill') chips.push('<i>earns its place on prefill</i>');
if (r.fam) chips.push('<i>' + r.fam + '</i>');
if (r.why === 'picked') chips.push('<i>selected on the staircase</i>');
if (r.h.srv) chips.push('<i>server build</i>');
}
return `<button class="hw ${h.custom ? 'cus ' : ''}${r.why === 'picked' ? 'pick ' : ''}${h.id === cur ? 'on' : ''}" data-h="${h.id}">
<span class="n">${h.name}${h.custom ? ' \u2699' : ''}</span><span class="m">${h.meta}</span>
<span class="p ${h.price ? '' : 'own'}">${h.priceTxt}</span>
<span class="d">${chips.join('')}</span>
<span class="m sep">best usable<br>${b
? `<b style="color:var(--ink)">${b.m.name}</b> \u00b7 ${MT().fmt(qv(b.m))} \u00b7 ${b.r.tps.toFixed(0)} t/s`
: `<b style="color:var(--ink3)">${noneWhy(h)}</b>`}</span></button>`;
}
function wire(el) {
el.querySelectorAll('.hw[data-h]').forEach(b => b.onclick = () => {
cur = b.dataset.h; if (b.dataset.h === 'custom') customOpen(true); render();
});
}
function hwCards() {
const L = impactList();
// The custom build holds the last slot rather than sorting into the staircase,
// so it stays where you put it while you change it.
const rows = L.keep.filter(r => !r.h.custom), cus = L.keep.find(r => r.h.custom);
// Clicking a build on the staircase can select something the card list does not
// contain -- a server build, or a rung the impact filter dropped. Give it its
// own slot so the selection is always visible somewhere, rather than the grid
// silently showing nothing highlighted.
let picked = null;
if (cur && !L.keep.some(r => r.h.id === cur)) {
const h = HW.find(x => x.id === cur);
if (h) {
const b = bestUsable(h), rr = calc(L.ref, h);
picked = { h: h, best: b, q: b ? qv(b.m) : -Infinity,
s: rr.fit === 'none' ? 0 : rr.tps, why: 'picked' };
}
}
const addCard = CUSTOM.on ? '' :
`<button class="hw add" id="addCustom"><span class="n">+ custom build</span>
<span class="m">any card count, platform and memory \u2014 priced and modelled like the rest</span></button>`;
$('hw').innerHTML = rows.map(r => card(r, L)).join('') +
(picked ? card(picked, L) : '') + (cus ? card(cus, L) : '') + addCard;
wire($('hw'));
const ac = $('addCustom'); if (ac) ac.onclick = () => {
CUSTOM.on = 1; customSave(); buildHW(); cur = 'custom'; customFill(); customOpen(true); render();
};
// Say plainly what was left out. Builds are named per platform+GPU, so the same
// name recurs at five memory sizes -- keep the cheapest of each name, then rank
// by wasted spend (what it costs over the build that already does everything it
// does), which is the number that actually answers "why not this one".
const seen = {}, distinct = [];
for (const r of L.drop.slice().sort((a, b) => a.h.price - b.h.price)) {
if (seen[r.h.name]) continue; seen[r.h.name] = 1;
r.waste = r.by ? r.h.price - r.by.h.price : r.h.price;
distinct.push(r);
}
const worst = distinct.slice().sort((a, b) => b.waste - a.waste).slice(0, 3);
const li = r => {
const ds = L.bs > 0 ? r.s / L.bs : 0;
const dtxt = !isFinite(r.q) ? 'nothing rated runs'
: !isFinite(L.bq) ? 'unlocks ' + MT().fmt(r.q)
: (() => {
const d = r.q - L.bq;
return (d > 0 ? '+' : '') + (MT().step >= 1 ? Math.round(d) : d.toFixed(3)) + ' quality';
})();
return `<li><b>${r.h.name}</b> \u00b7 ${r.h.priceTxt} \u00b7 ` +
`${dtxt}, ${ds.toFixed(1)}\u00d7 speed vs your rig` +
(!r.by ? ` \u2014 under the ${MT().step}-point / ${SPEED_STEP}\u00d7 bar`
: r.waste <= 0 ? ` \u2014 no better than ${r.by.h.name} at the same price`
: ` \u2014 ${AUD(r.waste)} over ${r.by.h.name}, which already matches it on both`) + `</li>`;
};
const nMain = L.keep.filter(r => r.why !== 'fam' && !r.h.custom).length,
nFam = L.keep.filter(r => r.why === 'fam').length;
$('hwNote').innerHTML = L.drop.length
? `<b>${nMain}</b> build${nMain > 1 ? 's' : ''} shown beat everything cheaper by at least
<b>${MT().step} ${MT().unit}</b> of quality or <b>${SPEED_STEP}\u00d7</b>
the decode or prefill speed of <b>${L.ref.name}</b>, ${L.refFallback
? 'the smallest model here \u2014 your rig runs nothing rated on this lens, so there is no ' +
'best model to measure against and quality is shown as an absolute score rather than a gain'
: 'your rig\u2019s best model today'}.` +
(nFam ? ` A further <b>${nFam}</b> place a whole kind of machine on the map that the
field-wide comparison hid \u2014 ${FAMS.map(f => f.long).join(', ')} \u2014 each contributing
at most its cheapest real step over your rig (<b>entry</b>) and the cheapest build that
reaches the best quality it can reach (<b>ceiling</b>).`: '') +
` ${L.drop.length} other builds cost more without clearing either bar` +
(worst.length ? `; the biggest wasted spends are ${worst.map(r =>
`<b>${r.h.name}</b> at ${r.h.priceTxt}`).join(', ')}` : '') + `.
<details><summary>${distinct.length} distinct builds hidden</summary><ul>${distinct.map(li).join('')}</ul></details>`
: '';
}
// Every (build, model) pair the budget allows, reduced to those nothing else
// beats on all three axes at once: quality up, speed up, price down. Keeping
// the whole frontier rather than one "winner" is the point — at most budgets
// there is a real choice between a fast small model and a slow large one.
function frontier(budget) {
const pts = [];
for (const hw of HW) {
if (hw.price > budget) continue;
for (const m of M) {
const r = calc(m, hw);
if (r.fit === 'none' || r.tps < 15 || qv(m) == null) continue;
pts.push({ hw, m, tps: r.tps, r });
}
}
const keep = pts.filter(a => !pts.some(b =>
qv(b.m) >= qv(a.m) && b.tps >= a.tps && b.hw.price <= a.hw.price &&
(qv(b.m) > qv(a.m) || b.tps > a.tps || b.hw.price < a.hw.price)));
// one row per build — show each build's strongest model
const byHw = new Map();
for (const p of keep) {
const cur = byHw.get(p.hw.id);
if (!cur || qv(p.m) > qv(cur.m) || (qv(p.m) === qv(cur.m) && p.tps > cur.tps)) byHw.set(p.hw.id, p);
}
return [...byHw.values()].sort((a, b) => qv(b.m) - qv(a.m) || b.tps - a.tps);
}
function budgetView() {
const bud = +$('bud').value;
$('budOut').textContent = bud ? AUD(bud) : FX[CUR].sym + '0';
const F = frontier(bud);
if (!F.length) {
$('paretoOut').innerHTML =
`<div class="panel"><p class="ph">Nothing new at this budget</p>
<p class="note">No build at or under ${AUD(bud)} runs anything at 15 tok/s or better that your
current rig cannot already run.</p></div>`; return;
}
const top = F.slice(0, 6);
$('paretoOut').innerHTML = `<div class="hwgrid" style="margin-top:12px">` +
top.map(p => `<button class="hw ${p.hw.id === cur ? 'on' : ''}" data-h="${p.hw.id}">
<span class="n">${p.hw.name}</span><span class="m">${p.hw.meta}</span>
<span class="p ${p.hw.price ? '' : 'own'}">${p.hw.priceTxt}</span>
<span class="m" style="display:block;margin-top:6px;padding-top:6px;border-top:1px solid var(--line)">
best usable<br><b style="color:var(--ink)">${p.m.name}</b>
· ${MT().fmt(qv(p.m))} · ${p.tps.toFixed(0)} t/s</span></button>`).join('') +
`</div>` +
(F.length > top.length ? `<p class="pm" style="margin-top:10px">${F.length - top.length} further
non-dominated build${F.length - top.length > 1 ? 's' : ''} not shown.</p>` : '');
wire($('paretoOut'));
}
function draw() {
const hw = HW.find(h => h.id === cur);
let s = '';
// zero column, then a break, then the log axis
s += `<rect x="${P.l}" y="${P.t}" width="${ZW}" height="${H - P.t - P.b}" fill="var(--band1)" opacity=".55"/>`;
s += `<text class="bandl" x="${ZX}" y="${P.t + 14}" text-anchor="middle">won't load</text>`;
s += `<text class="ax" x="${ZX}" y="${H - P.b + 18}" text-anchor="middle">0</text>`;
const bx = AX0 - 7;
s += `<line x1="${bx}" y1="${P.t}" x2="${bx}" y2="${H - P.b}" stroke="var(--line2)" stroke-width="1" stroke-dasharray="3 3"/>`;
curPh().bands.forEach(b => {
const x = Math.min(sx(b.a), sx(b.b)), w = Math.abs(sx(b.b) - sx(b.a));
s += `<rect x="${x}" y="${P.t}" width="${w}" height="${H - P.t - P.b}" fill="${b.c}"/>`;
s += `<text class="bandl" x="${x + 6}" y="${P.t + 14}">${b.l}</text>`;
});
MT().ticks.forEach(v => {
s += `<line class="gl" x1="${P.l}" y1="${sy(v)}" x2="${W - P.r}" y2="${sy(v)}"/>`;
s += `<text class="ax" x="${P.l - 9}" y="${sy(v) + 4}" text-anchor="end">${v}</text>`;
});
curPh().ticks.forEach(v => {
s += `<line class="gl" x1="${sx(v)}" y1="${P.t}" x2="${sx(v)}" y2="${H - P.b}"/>`;
s += `<text class="ax" x="${sx(v)}" y="${H - P.b + 18}" text-anchor="middle">${v}</text>`;
});
s += `<text class="axl" x="${(W + P.l) / 2}" y="${H - P.b + 40}" text-anchor="middle">${curPh().axis}</text>`;
s += `<text class="axl" transform="translate(15,${(H) / 2}) rotate(-90)" text-anchor="middle">${MT().label}</text>`;
const rows = M.map(m => { const pv = phaseVal(m, hw); return { m, r: pv.fit === 'none' ? pv : Object.assign({}, pv.r || pv.p || {}, { fit: pv.fit, tps: pv.v, conf: pv.conf, measured: pv.conf === 'measured' }) }; })
.filter(d => (showNone || d.r.fit !== 'none') && qv(d.m) != null)
.sort((a, b) => b.m.gb - a.m.gb);
const missing = M.filter(m => qv(m) == null).length;
if (missing) s += `<text class="ax" x="${W - P.r}" y="${H - P.b + 34}" text-anchor="end"
>${missing} model${missing > 1 ? 's' : ''} unrated on this metric, hidden</text>`;
// Frontier reference lines. Labels are spread apart where the scores nearly
// coincide, which several of the Claude lines do on every lens.
const refs = REF.filter(r => r[MT().k] != null)
.map(r => ({ n: r.n, v: r[MT().k], y: sy(r[MT().k]) }))
.sort((a, b) => a.y - b.y);
let ry = -99;
refs.forEach(r => {
const ly = Math.max(r.y - 2, ry + 11); ry = ly;
s += `<line x1="${P.l}" y1="${r.y}" x2="${W - P.r}" y2="${r.y}"
stroke="var(--ink3)" stroke-width="1" stroke-dasharray="5 4" opacity=".45"/>`;
s += `<text class="ax" x="${W - P.r - 3}" y="${ly}" text-anchor="end"
style="opacity:.85">${r.n} · ${MT().fmt(r.v)}</text>`;
});
// Label placement. Two models can land on identical coordinates — the
// Qwen3.5 / 3.6 27B pair is the same size, the same speed, and on Arena the
// 3.6 borrows the 3.5's Elo as a proxy, so they sit exactly on top of each
// other. Nudge colliding labels down and draw a leader back to the dot.
const wants = m => m.gb >= 14 || m.meas || m.name === selName() ||
qv(m) != null && qv(m) >= MT().lo + (MT().hi - MT().lo) * 0.44;
const LBL = new Map(), taken = [];
rows.slice().sort((a, b) => sy(qv(a.m)) - sy(qv(b.m))).forEach(({ m, r }) => {
if (!wants(m)) return;
const rad = sr(m.gb), x = (r.fit === 'none' ? ZX : sx(r.tps)) + rad + 7, y0 = sy(qv(m)) + 3.5;
const w = (m.name.length + (isProxy(m) ? 2 : 0)) * 5.6 + 10;
let ly = y0, guard = 0;
while (guard++ < 60 && taken.some(t => Math.abs(t.ly - ly) < 12 && x < t.x1 && x + w > t.x0)) ly += 12;
if (ly > H - P.b - 4) ly = y0; // give up rather than run off-chart
taken.push({ ly, x0: x, x1: x + w });
LBL.set(m.name, { x, ly, y0 });
});
rows.forEach(({ m, r }) => {
const none = r.fit === 'none';
const x = none ? ZX : sx(r.tps), y = sy(qv(m));
const col = none ? 'var(--none)' : `var(--${r.fit})`;
const rad = sr(m.gb);
const on = m.name === selName(), px = isProxy(m);
s += `<g class="dot" data-n="${m.name}" opacity="${none && !on ? .45 : (px && !on ? .7 : 1)}">`;
if (on) s += `<circle cx="${x}" cy="${y}" r="${rad + 6}" fill="none"
stroke="var(--acc)" stroke-width="2"/>`;
const rk = MT().r;
if (rk && m[rk] != null && !none)
s += `<line class="rng" x1="${x}" y1="${sy(m[rk])}" x2="${x}" y2="${y}"/>`;
s += `<circle cx="${x}" cy="${y}" r="${rad}" fill="${col}" fill-opacity="${px ? 0 : (r.measured ? .85 : .18)}"
stroke="${col}" stroke-width="${r.measured ? 1 : 1.6}"
${r.measured ? '' : 'stroke-dasharray="2.6 2"'}/>`;
const L = LBL.get(m.name);
if (L) {
if (L.ly - L.y0 > 4)
s += `<path d="M ${x + rad + 2} ${y} L ${L.x - 3} ${L.ly - 3.5}" fill="none"
stroke="var(--line2)" stroke-width="1"/>`;
s += `<text x="${L.x}" y="${L.ly}"
style="${on ? 'fill:var(--ink);font-weight:600' : ''}">${px ? '≈ ' : ''}${m.name}</text>`;
}
s += `</g>`;
});
svg.innerHTML = s;
svg.querySelectorAll('.dot').forEach(g => {
const nm = g.getAttribute('data-n');
g.onclick = () => { sel = nm; draw(); detail(); drawPath() };
g.onmousemove = e => {
const m = M.find(x => x.name === nm), r = calc(m, HW.find(h => h.id === cur));
tip.innerHTML = `<b>${m.name}</b>${m.total}B${m.tbl ? ' + ' + m.tbl + 'B table' : ''} total · ${m.active}B active · ${m.gb} GB<br>
${tipScore(m)}<br>
${r.fit === 'none' ? '<span style="color:var(--none)">will not load</span>' :
`<b style="display:inline">${r.tps.toFixed(1)} tok/s</b> · ${(r.f * 100).toFixed(0)}% in VRAM
${r.measured ? ' · measured' : ' · modelled'}`}`;
tip.style.opacity = 1;
tip.style.left = Math.min(e.clientX + 14, innerWidth - 256) + 'px';
tip.style.top = (e.clientY + 14) + 'px';
};
g.onmouseleave = () => tip.style.opacity = 0;
});
}
// Cheapest build reaching each new speed level for one model. Every step is a
// turning point: below it the extra money buys nothing for this model.
function upgradePath(m) {
const pts = HW.map(h => ({ hw: h, r: calc(m, h) }))
.filter(x => x.r.fit !== 'none')
.sort((a, b) => a.hw.price - b.hw.price || b.r.tps - a.r.tps);
const steps = []; let best = 0;
for (const p of pts) { if (p.r.tps > best * 1.02) { steps.push(p); best = p.r.tps; } }
return steps;
}
const PW = 470, PH = 620, PP = { t: 26, r: 20, b: 52, l: 50 };
function drawPath() {
const m = M.find(x => x.name === selName());
const hwNow = HW.find(h => h.id === cur);
const steps = upgradePath(m);
const el = $('path');
if (!steps.length) {
el.innerHTML = `<text class="axl" x="${PW / 2}" y="${PH / 2}" text-anchor="middle">no build runs ${m.name}</text>`;
return;
}
const maxP = Math.max(steps[steps.length - 1].hw.price, hwNow.price, 1000) * 1.12;
const maxT = Math.max(...steps.map(s => s.r.tps)) * 1.15;
const px = v => PP.l + v / maxP * (PW - PP.l - PP.r);
const py = v => PH - PP.b - v / maxT * (PH - PP.t - PP.b);
let s = '';
[0, .25, .5, .75, 1].forEach(f => {
const v = maxT * f;
s += `<line class="gl" x1="${PP.l}" y1="${py(v)}" x2="${PW - PP.r}" y2="${py(v)}"/>`;
s += `<text class="ax" x="${PP.l - 8}" y="${py(v) + 4}" text-anchor="end">${v.toFixed(0)}</text>`;
});
[0, .5, 1].forEach(f => {
const v = maxP * f;
s += `<text class="ax" x="${px(v)}" y="${PH - PP.b + 18}" text-anchor="middle">${kAUD(v)}</text>`;
});
s += `<text class="axl" x="${PW / 2}" y="${PH - PP.b + 40}" text-anchor="middle">upgrade cost — ${FX[CUR].n}</text>`;
s += `<text class="axl" transform="translate(13,${PH / 2}) rotate(-90)" text-anchor="middle">decode speed — tokens/sec</text>`;
// 15 t/s usability floor
s += `<line x1="${PP.l}" y1="${py(15)}" x2="${PW - PP.r}" y2="${py(15)}" stroke="var(--cpu)" stroke-width="1" stroke-dasharray="4 3" opacity=".7"/>`;
s += `<text class="ax" x="${PW - PP.r}" y="${py(15) - 5}" text-anchor="end" fill="var(--cpu)">15 t/s floor</text>`;
// staircase
let d = `M ${px(steps[0].hw.price)} ${py(steps[0].r.tps)}`;
for (let i = 1; i < steps.length; i++)
d += ` L ${px(steps[i].hw.price)} ${py(steps[i - 1].r.tps)} L ${px(steps[i].hw.price)} ${py(steps[i].r.tps)}`;
d += ` L ${px(maxP)} ${py(steps[steps.length - 1].r.tps)}`;
s += `<path d="${d}" fill="none" stroke="var(--acc)" stroke-width="2" stroke-linejoin="round"/>`;
// models that need a minimum spend before they load at all
if (steps[0].hw.price > 0) {
s += `<rect x="${PP.l}" y="${PP.t}" width="${px(steps[0].hw.price) - PP.l}" height="${PH - PP.t - PP.b}"
fill="var(--none)" opacity=".13"/>`;
s += `<text class="ax" x="${PP.l + 6}" y="${PH - PP.b - 8}">will not load</text>`;
}
// current build marker
s += `<line x1="${px(hwNow.price)}" y1="${PP.t}" x2="${px(hwNow.price)}" y2="${PH - PP.b}"
stroke="var(--ink3)" stroke-width="1" stroke-dasharray="2 3"/>`;
s += `<text class="ax" x="${px(hwNow.price) + 4}" y="${PP.t + 11}">selected</text>`;
// Steps bunch up wherever several builds land close in both price and speed,
// which stacks their labels on top of each other. Give every label its own
// horizontal band and run a leader line back to the dot it belongs to.
const LH = 23, TOP = PP.t + 12, BOT = PH - PP.b - 8;
const lab = steps.map(p => ({ p, x: px(p.hw.price), y: py(p.r.tps) }))
.sort((a, b) => a.y - b.y);
lab.forEach((o, k) => { o.ly = k ? Math.max(o.y, lab[k - 1].ly + LH) : Math.max(o.y, TOP); });
const over = lab.length ? lab[lab.length - 1].ly - BOT : 0;
if (over > 0) lab.forEach(o => { o.ly = Math.max(TOP, o.ly - over); });
lab.forEach(o => {
const { p, x, y, ly } = o, on = p.hw.id === cur;
const left = x > PW * 0.52; // flip inward near the right edge
const lx = left ? x - 12 : x + 12;
if (Math.abs(ly - y) > 4) // only draw a leader if displaced
s += `<path d="M ${x} ${y} L ${left ? x - 7 : x + 7} ${ly - 4}" fill="none"
stroke="var(--line2)" stroke-width="1"/>`;
// Server-class builds are drawn hollow with a dashed ring: they are on the
// chart because they change the shape of the curve, not because they are
// things you can put under a desk.
const srv = !!p.hw.srv;
const sock = p.hw.cpuKey ? (CPUP[p.hw.cpuKey].sock || 1) : 1;
// The platform name already carries the socket count, so a bare "2P" suffix
// would just repeat it. Only tag builds whose name does not say it.
const tag = (srv ? ' \u00b7 server' : '') +
(sock > 1 && !/\dP\b/.test(p.hw.name) ? ' \u00b7 ' + sock + 'P' : '');
s += `<g class="step" data-h="${p.hw.id}">
<rect class="hit" x="${Math.min(x, lx) - 90}" y="${Math.min(y, ly) - 12}"
width="${Math.abs(lx - x) + 100}" height="${Math.abs(ly - y) + 26}"/>
<circle class="pt" cx="${x}" cy="${y}" r="${on ? 6 : 4.5}"
fill="${srv ? 'none' : 'var(--acc)'}" stroke="${srv ? 'var(--acc)' : 'var(--panel)'}"
stroke-width="${on ? 2 : 1.5}"${srv ? ' stroke-dasharray="2.5 2"' : ''}/>
<text x="${lx}" y="${ly - 3}" text-anchor="${left ? 'end' : 'start'}"
style="font-size:10px;fill:var(--ink2);${on ? 'font-weight:600' : ''}"
>${p.r.tps.toFixed(0)} t/s · ${p.hw.priceTxt}</text>
<text x="${lx}" y="${ly + 8}" text-anchor="${left ? 'end' : 'start'}"
style="font-size:9.5px;fill:var(--ink3)">${(p.hw.name + tag).slice(0, 30)}</text></g>`;
});
el.innerHTML = s;
el.querySelectorAll('.step').forEach(g => {
const id = g.getAttribute('data-h');
g.onclick = () => { cur = id; render() };
g.onmouseenter = () => { el.classList.add('hov'); g.classList.add('up'); };
g.onmouseleave = () => { el.classList.remove('hov'); g.classList.remove('up'); };
});
}
// ---------- bottleneck audit ----------
// One row per resource, answering a single question: is THIS the thing holding
// the machine back on THIS model? The verdicts are read off the same numbers
// that produce the speed, so the panel cannot disagree with the chart. Where a
// resource is not modelled -- CPU core count, PCIe width -- the row says so
// rather than inventing a colour.
function bottlenecks(m, hw, r) {
const KV = kvGB(m) + 1, need = m.gb + KV;
const disp = hw.unified ? 0 : DISPVRAM;
const fast = hw.unified ? hw.vram - hw.res : hw.vram - disp; // usable fast memory
const sf = r.share[0], ss = r.share[1], so = r.share[2];
const eff = kEff(m, hw);
const gpus = hw.gpus || 0, plat = hw.plat || 'd';
// Two ways to end up multi-socket: the rig you declared, or a platform build
// that is dual-socket by construction. The row was previously gated on the
// first only, so an EPYC 2P build -- the machine where NUMA matters most --
// showed no socket row at all.
const cpuP = hw.cpuKey ? CPUP[hw.cpuKey] : (plat === 'd' ? myCpu() : null);
const numaKey = hw.cpuKey ? 'distribute' : (RIG.numa || 'unknown');
const ctxN = (CTXS.find(c => c.k === CTX) || {}).n;
const ratio = hw.bwSlow ? hw.bwFast / hw.bwSlow : 1;
const o = [], add = (n, lv, v, d, imp) => o.push({ n: n, lv: lv, v: v, d: d, imp: imp || 0 });
// A published benchmark overrides the model, but it was run at a short context
// and therefore carries almost no KV cache. Left unsaid, the headline number
// silently contradicts every capacity row below it.
if (r.measured && r.ctxCost && r.ctxCost < 0.9)
add('speed source', 'amber',
r.atBench.toFixed(0) + ' tok/s measured at 8k \u2192 ' + r.tps.toFixed(0) + ' tok/s at ' + ctxN,
'The published benchmark was run at a short prompt, so it carries almost none of the ' +
KV.toFixed(1) + ' GB of KV cache ' + ctxN + ' needs. The figure above is that measurement scaled ' +
'by the modelled cost of the extra cache \u2014 a ' + ((1 - r.ctxCost) * 100).toFixed(0) +
'% loss on this machine \u2014 not the raw benchmark.', 0.9);
// -- capacity ---------------------------------------------------------------
const head = r.pool / need;
add('total memory', head >= 1.5 ? 'green' : head >= 1.15 ? 'amber' : 'red',
need.toFixed(0) + ' GB needed of ' + r.pool.toFixed(0) + ' GB usable',
head >= 1.5 ? 'Room for a larger model or a longer context.'
: head >= 1.15 ? 'It fits, but there is little left for a longer context.'
: 'Only just fits. One step up in context and it will not load at all.',
Math.min(1, need / r.pool));
add('VRAM for weights', r.f >= 0.95 ? 'green' : r.f >= 0.5 ? 'amber' : 'red',
(r.f * 100).toFixed(0) + '% of active bytes in fast memory',
hw.unified ? 'One pool, so every byte is already in the fast tier.'
: r.f >= 0.95 ? 'The whole model sits on the GPU. Nothing is read over the system bus.'
: ((1 - r.f) * 100).toFixed(0) + '% of every token is read from system RAM instead, which is ' +
ratio.toFixed(1) + '\u00d7 slower. Speedup from moving more onto the card goes as 1/(1\u2212f), ' +
'so the last few percent are worth more than the first.', 1 - r.f);
const kvs = KV / fast;
add('KV cache', kvs < 0.25 ? 'green' : kvs < 0.5 ? 'amber' : 'red',
KV.toFixed(1) + ' GB at ' + ctxN + ' = ' + (kvs * 100).toFixed(0) + '% of fast memory',
kvs < 0.25 ? 'The cache is a small tax on this machine.'
: 'The cache is crowding out the weights \u2014 at a shorter context more of the model ' +
'would be resident, though below 128k the context stops being useful for agent work.', kvs);
// -- bandwidth --------------------------------------------------------------
add(hw.unified ? 'unified memory bandwidth' : 'GPU memory bandwidth',
sf >= 0.6 ? 'red' : sf >= 0.35 ? 'amber' : 'green',
hw.bwFast + ' GB/s effective \u00b7 ' + (sf * 100).toFixed(0) + '% of each token\u2019s time',
sf >= 0.6 ? 'The binding constraint. Nothing but a faster memory system moves this number \u2014 ' +
'more VRAM at the same bandwidth changes nothing.'
: sf >= 0.35 ? 'A real share of the time, but not the largest.'
: 'Plenty of headroom. The time is going somewhere else.', sf);
if (!hw.unified) add('system RAM bandwidth', ss >= 0.5 ? 'red' : ss >= 0.2 ? 'amber' : 'green',
hw.bwSlow + ' GB/s effective \u00b7 ' + (ss * 100).toFixed(0) + '% of each token\u2019s time',
ss < 0.02 ? 'Nothing is offloaded, so the system bus is idle during decode.'
: ss >= 0.5 ? 'Most of the token is spent pulling experts out of system RAM. More channels or ' +
'faster DIMMs beat a faster GPU here \u2014 buy the fastest SLOW tier, not the fastest fast one.'
: 'Some of the token comes from system RAM. Worth watching, not yet the limit.', ss);
// -- GPU-to-GPU link --------------------------------------------------------
// Whether the cards can talk to each other coherently decides whether tensor
// parallelism is available on an MoE at all, which on a big multi-GPU box is
// the single largest factor in the answer. Worth its own row rather than being
// buried in the PCIe line, because it is a purchasing decision: two cards that
// bridge behave nothing like two that do not.
if (gpus > 1 && !hw.unified) {
const linked = !!hw.tpNvl;
const canTP = m.g === 'd' || linked;
add('GPU-to-GPU link', linked ? 'green' : (m.g === 'd' ? 'amber' : 'red'),
linked ? 'coherent link across ' + gpus + ' cards' : 'PCIe only \u2014 no NVLink',
linked
? 'These cards share a coherent link, so every matrix can be split across all ' +
gpus + ' of them and the per-layer AllReduce costs microseconds. That is what ' +
'makes tensor parallelism worth using on an MoE at batch 1, and it is the ' +
'difference between this build and the same silicon on a plain PCIe board.'
: canTP
? 'No coherent link, so the per-layer AllReduce crosses PCIe. Dense models still ' +
'gain from tensor parallelism, but well short of linear. MoE decode at batch 1 ' +
'does not: there is too little work per layer to hide the round trip.'
: 'No coherent link. At batch 1 an MoE has too little work per layer to amortise ' +
'an AllReduce over PCIe, so these cards can only layer-split \u2014 they add ' +
'VRAM and nothing else. Consumer Blackwell and the RTX PRO 6000 both lack ' +
'NVLink; the 3090 is the last GeForce that has it.',
linked ? 0.1 : (canTP ? 0.4 : 0.7));
}
// -- interconnect -----------------------------------------------------------
// A cluster earns green only when it is doing the one thing it can do: holding
// a model a single node will not. If the model already fits on one node, the
// extra boxes are contributing nothing at all -- they cannot add bandwidth --
// and that is worth a red row rather than a shrug, because it is the mistake
// the hardware invites.
if (hw.nodes > 1) {
const one = UNI[hw.uniKey], solo = one.vram - one.res;
const needsAll = need > solo;
add('node interconnect', needsAll ? 'green' : 'red',
hw.nodes + ' nodes over ' + hw.linkN + ' · ' + hw.linkGBs + ' GB/s',
needsAll
? 'Earning its place: this model needs ' + need.toFixed(0) + ' GB and one node offers ' +
solo.toFixed(0) + ' GB. The cluster is what makes it loadable at all. It is not making ' +
'it faster — at batch 1 the nodes run in sequence, so the model is still read at ' +
'one node’s ' + hw.bwFast + ' GB/s.'
: 'This model needs ' + need.toFixed(0) + ' GB and fits on ONE node’s ' +
solo.toFixed(0) + ' GB. The other ' + (hw.nodes - 1) + ' are idle: pipeline parallelism ' +
'at batch 1 runs one node at a time, so a cluster can add capacity but never bandwidth. ' +
'Run this model on a single box and pocket the difference.',
needsAll ? 0.2 : 0.85);
}
else if (hw.link) add('interconnect', 'green', hw.link,
'A coherent link rather than a peripheral bus, so the two memory pools behave as tiers of one machine.');
else if (hw.unified) add('PCIe', 'green', 'no discrete GPU',
'Nothing crosses a peripheral bus at any point.');
else if (gpus <= 1) add('PCIe', 'green', 'one card \u00b7 x16',
r.fRouted >= 0.95 ? 'Weights are loaded once and stay there. Decode moves nothing across the bus.'
: 'Offloaded experts are COMPUTED on the CPU, not streamed to the GPU, so only activations ' +
'cross \u2014 a few KB per layer. This is why llama.cpp --n-cpu-moe beats a UVA weight-streaming ' +
'scheme by roughly an order of magnitude.');
else if (plat === 'd') {
const cp = myCpu(), per = Math.floor(cp.lanes / Math.max(1, gpus));
const wide = per >= 16;
add('PCIe', wide ? 'green' : 'amber', gpus + ' cards \u00b7 ' + cp.lanes + ' CPU lanes',
cp.n + ' exposes ' + cp.lanes + ' CPU lanes, so ' + gpus + ' cards get about x' +
(per >= 16 ? 16 : per >= 8 ? 8 : 4) + ' each' + (wide ? '' : ' or drop to x4 off the chipset') + '. ' +
'Layer-split decode passes only activations, so batch-1 speed barely notices \u2014 but model ' +
'load and prefill scale with the link, and tensor parallelism would be crippled by it.');
}
else add('PCIe', 'green', gpus + ' cards on a ' +
(hw.cpuKey ? cpuP.n.split(' \u2014 ')[0] : 'workstation') + ' board',
'A workstation or server platform has enough lanes to run every card at x16.');
// -- compute ----------------------------------------------------------------
const intensity = (m.active * 2) / r.bytes; // FLOP per byte read
add('GPU compute', 'green', intensity.toFixed(1) + ' FLOP per byte read',
'Batch-1 decode reads the weights once and does two FLOPs with each. Modern GPUs need ' +
'a hundred times this intensity before compute binds, so the card is starved, not busy. ' +
'This flips during prefill, which is compute-bound.');
const PART = m.g === 'd' ? 'of the model runs' : 'of experts run';
if (hw.unified || r.f >= 0.95)
add('CPU compute', 'green', m.g === 'd' ? 'nothing on the CPU' : 'no experts on the CPU',
'The accelerator does all of the work.');
else
add('CPU compute', plat === 'd' ? 'amber' : 'green',
((1 - r.f) * 100).toFixed(0) + '% ' + PART + ' on CPU cores',
'This model treats the slow tier as pure bandwidth. Real CPU-side throughput also tracks ' +
'core count and vector width: an EPYC 9755 and a Xeon 6980P, both wide-bus server parts, ' +
'measured 41.9 and 16.2 tok/s on the same model. Treat the slow-tier figure as an upper bound' +
(plat === 'd' ? ', and a desktop CPU sits below these.' : '.'));
// -- efficiency -------------------------------------------------------------
if (m.g === 'd') add('kernel efficiency', 'green', 'dense \u00b7 no routing',
'Every weight read is used, so the bus converts fully.');
else add('kernel efficiency', eff >= 0.9 ? 'green' : eff >= 0.4 ? 'amber' : 'red',
(eff * 100).toFixed(0) + '% of the bus converted',
eff >= 0.9 ? 'Few, large experts read contiguously \u2014 close to a dense model on the bus.'
: (m.g === 'u' ? '512+ experts' : '128\u2013256 experts') + ' per layer means many small scattered reads. ' +
'A discrete GPU converts only ' + (eff * 100).toFixed(0) + '% of its nominal bandwidth on this shape; ' +
'unified-memory machines lose much less, which is why a Mac punches above its GB/s here.');
// ---- multi-socket topology ------------------------------------------
if (cpuP && (cpuP.sock || 1) > 1) {
const nb = numaBW(cpuP, numaKey);
const pol = (NUMA[numaKey] || NUMA.unknown).n +
(hw.cpuKey ? ' (assumed for this platform)' : '');
const gain = nb.bw / nb.oneSocket;
add('CPU sockets / NUMA', gain >= 1.5 ? 'green' : gain > 1.05 ? 'amber' : 'red',
cpuP.sock + ' sockets \u00b7 ' + (cpuP.sock * cpuP.ch) + ' populated channels \u00b7 ' + pol,
gain <= 1.05
? 'The second socket is contributing capacity but not bandwidth: ' + nb.bw +
' GB/s against ' + nb.oneSocket + ' GB/s from one socket alone. Interleaved pages ' +
'send roughly half of every read across the inter-socket fabric, which is far ' +
'narrower than local DRAM, so an untuned dual-socket box can be SLOWER than a ' +
'single one. --numa distribute with a matched thread count is what recruits it.'
: 'Modelled at ' + nb.bw + ' GB/s against ' + nb.oneSocket + ' from one socket (' +
gain.toFixed(2) + '\u00d7)' + (nb.capped ? ', capped by the ' + nb.cap +
' GB/s inter-socket fabric rather than by the memory controllers' : '') +
'. This rests on a single published dense-model measurement and is speculative.',
0.7);
}
// ---- prompt processing ----------------------------------------------
const pp = prefill(m, hw, NPROMPT);
if (pp.fit !== 'none') {
const nTok = NPROMPT >= 1024 ? (NPROMPT / 1024) + 'k' : NPROMPT;
add('prompt processing', pp.bound === 'link' ? 'red' : pp.bound === 'attention' ? 'amber' : 'green',
Math.round(pp.tps) + ' tok/s at ' + nTok + ' \u00b7 ' + pp.sec.toFixed(1) + ' s',
pp.bound === 'link'
? 'Prefill is transfer-bound here: ' + pp.offloadGB.toFixed(0) + ' GB of experts cross a ' +
pp.link + ' GB/s link ' + pp.passes + ' times for this prompt. Unlike decode, this cost ' +
'is paid PER PASS, so a wider link or a larger ubatch moves it and more VRAM moves it most.'
: pp.bound === 'attention'
? 'Attention is dominating at this prompt length; it grows with the square of the prompt, ' +
'so doubling the prompt roughly quadruples this share.'
: 'Compute-bound, which is the healthy case: the weights are on the card and the GPU is busy.' +
((hw.gpus || 0) > 1 && hw.pfTF && hw.pfBest && hw.pfTF < hw.pfBest * 0.9
? ' Note the mixed pair costs you here: layer split runs layers in SEQUENCE, so the '
+ 'slower card sets the pace in proportion to how many layers its VRAM holds. This build '
+ 'converts ' + hw.pfTF.toFixed(0) + ' effective TFLOPS against ' + hw.pfBest.toFixed(0)
+ ' for its fastest card alone. Extra VRAM buys decode residency and costs prefill compute '
+ '— a real trade, not a rounding error.'
: ''),
0.6);
}
add('per-token overhead', so >= 0.3 ? 'red' : so >= 0.12 ? 'amber' : 'green',
(so * 100).toFixed(0) + '% of each token',
so >= 0.3 ? 'The model is small enough that launch and sampling latency dominate. A faster ' +
'memory system will not help; this is a software floor.'
: 'Fixed costs are a minor share at this model size.', so);
const rank = { red: 0, amber: 1, green: 2 };
return o.sort((a, b) => rank[a.lv] - rank[b.lv] || b.imp - a.imp);
}
function detail() {
const hw = HW.find(h => h.id === cur);
const m = M.find(x => x.name === selName());
const r = calc(m, hw);
if (r.fit === 'none') {
const raw = hw.unified ? hw.vram : hw.vram + hw.ram;
$('detail').innerHTML = `<p class="ph">${m.name} on ${hw.name} — will not load</p>
<p class="pm">Needs ${m.gb} GB at Q4 plus ~${kvGB(m).toFixed(1)} GB of KV cache at ${(CTXS.find(c => c.k === CTX) || {}).n}${tblNote(m)}. This machine has
${raw} GB nameplate, about <b>${r.pool.toFixed(0)} GB usable</b> once the OS,
desktop and runtime take their share.</p>
<p class="note">Capacity gates before speed matters. No amount of bandwidth or GPU choice
changes this — the weights have nowhere to live. Dropping to Q3/Q2 would fit it, but this
tool deliberately models Q4 only, because sub-Q4 quality loss usually costs more than the
speed is worth.</p>`;
return;
}
const [a, b, c] = r.share;
$('detail').innerHTML = `<p class="ph">${m.name} on ${hw.name}</p>
<p class="pm">${m.total}B total${m.tbl ? ' + a ' + m.tbl + 'B lookup table kept on SSD, not counted' : ''} · ${m.active}B active · ${m.gb} GB at Q4 ·
reads ~${r.bytes.toFixed(2)} GB per token ·
KV cache ~${kvGB(m).toFixed(1)} GB at ${(CTXS.find(c => c.k === CTX) || {}).n} · ${r.measured ? 'speed is a published measurement, taken at short context' : 'speed is modelled'}</p>
<p class="pm" style="margin:14px 0 5px">Where each token’s
<b>${(1000 / r.tps).toFixed(1)} ms</b> goes — a split of <b>time</b>, not of bytes.${
// The gap has two causes and they need different sentences. Offloaded, it is the
// slow tier. Fully resident there IS no slow tier, and the offload wording then
// told machines with nothing offloaded that their resident weights were coming
// from system RAM. Gate on the slow tier actually costing time.
(b > 0.02 && r.f > a + 0.06)
? ` The fast tier holds <b>${(r.f * 100).toFixed(0)}%</b> of the active bytes
but accounts for only <b>${(a * 100).toFixed(0)}%</b> of the clock: what is left in system RAM
is read ${(hw.bwFast * kEff(m, hw) / hw.bwSlow).toFixed(1)}×
slower per byte, so a minority of the bytes takes a majority of the time. That asymmetry is the
whole reason residency pays.`
: c > 0.12
? ` Every byte is already in fast memory, so none of this is offload — the
<b>${(c * 100).toFixed(0)}%</b> that is not memory traffic is fixed per-token cost, which is
what dominates once a model is small enough to stop being bandwidth-bound.`
: ''}</p>
<div class="bar">
<span style="width:${a * 100}%;background:var(--acc)"></span>
<span style="width:${b * 100}%;background:var(--cpu)"></span>
<span style="width:${c * 100}%;background:var(--none)"></span></div>
<div class="row" style="margin-top:0">
<div class="key"><span class="sw" style="background:var(--acc)"></span>fast-tier reads ${(a * 100).toFixed(0)}% of the time</div>
<div class="key"><span class="sw" style="background:var(--cpu)"></span>slow-tier reads ${(b * 100).toFixed(0)}%</div>
<div class="key"><span class="sw" style="background:var(--none)"></span>fixed overhead ${(c * 100).toFixed(0)}%</div>
</div>
<div class="st">
<div><div class="l">decode</div><div class="v">${r.tps.toFixed(1)} <span style="font-size:12px;font-weight:400">tok/s</span></div></div>
<div><div class="l">active bytes in fast memory</div><div class="v">${(r.f * 100).toFixed(0)}%</div></div>
<div><div class="l">${MT().short}</div><div class="v">${qv(m) != null ? MT().fmt(qv(m)) : '\u2014'}</div></div>
<div><div class="l">machine cost</div><div class="v">${hw.price ? AUD(hw.price) : 'owned'}</div></div>
</div>
${phaseHTML(m, hw)}
${bnHTML(m, hw, r)}`;
}
// Prefill and TTFT for the selected prompt length, always WITH the prompt
// length attached. A prefill rate on its own is not a fact about a machine.
function phaseHTML(m, hw) {
const p = prefill(m, hw, NPROMPT);
if (p.fit === 'none') return '';
const t = ttft(m, hw, NPROMPT);
const n = NPROMPT >= 1024 ? (NPROMPT / 1024) + 'k' : NPROMPT;
const CONF = {
measured: ['--fit', 'measured'],
calibrated: ['--fit', 'calibrated'],
estimate: ['--part', 'estimate'],
speculative: ['--cpu', 'speculative \u2014 thin evidence']
};
const c = CONF[p.conf] || CONF.estimate;
const BOUND = {
compute: 'GPU compute is the limit \u2014 the weights are already on the card',
link: 'bound by streaming non-resident experts across the link, not by compute; ' +
'this is the term decode does not have, and it is paid per pass rather than per token',
attention: 'attention dominates at this prompt length; it grows with the square of the prompt'
};
// An offloaded prefill figure means nothing without the batch size it assumes.
// UBATCH here is 8192, which is a TUNED setup. llama.cpp ships -ub 512, paying
// the same transfer 16x more often, and on identical hardware that lands several
// times lower. Quoting only the tuned number makes this page look simply wrong
// to anyone running stock settings -- when the settings ARE the finding.
const DEF_UB = 512;
let tune = '';
if (p.offloadGB > 0) {
const dPass = Math.max(1, Math.ceil(NPROMPT / DEF_UB));
const dTps = NPROMPT / (Math.max(p.tComp, dPass * p.offloadGB / p.link) + p.tAttn);
if (dTps < p.tps * 0.9) tune = ` This figure assumes a <b>tuned batch</b>
(<code>-ub ${UBATCH} -b ${UBATCH}</code>). At llama.cpp\u2019s stock <code>-ub ${DEF_UB}</code>
that transfer is paid <b>${dPass}\u00d7</b> instead of ${p.passes}\u00d7 and the same
machine gives <b>${Math.round(dTps)} tok/s</b> \u2014 ${(p.tps / dTps).toFixed(1)}\u00d7
slower for no hardware reason at all. Raising the batch costs VRAM for the compute buffer,
so on a full card a Q8 KV cache (<code>--cache-type-k q8_0 --cache-type-v q8_0</code>)
normally has to come first.`;
}
return `<p class="bnh" style="margin-top:16px">Prompt processing at <b>${n} tokens</b>
\u00b7 <span style="color:var(${c[0]})">${c[1]}</span></p>
<div class="st" style="margin-top:9px">
<div><div class="l">prefill</div><div class="v">${p.tps < 10 ? p.tps.toFixed(1) : Math.round(p.tps)}
<span style="font-size:12px;font-weight:400">tok/s</span></div></div>
<div><div class="l">prompt ingested in</div><div class="v">${p.sec < 10 ? p.sec.toFixed(2) : p.sec.toFixed(1)}
<span style="font-size:12px;font-weight:400">s</span></div></div>
<div><div class="l">time to first token</div><div class="v">${t.sec < 10 ? t.sec.toFixed(2) : t.sec.toFixed(1)}
<span style="font-size:12px;font-weight:400">s</span></div></div>
<div><div class="l">limited by</div><div class="v" style="font-size:15px">${p.bound}</div></div>
</div>
<p class="pm" style="margin-top:9px">${BOUND[p.bound] || ''}${p.offloadGB > 0
? ` <b>${p.offloadGB.toFixed(0)} GB</b> of experts live in system RAM and cross a
<b>${p.link} GB/s</b> link, ${p.passes}\u00d7 for this prompt.` : ''}${tune}</p>`;
}
function bnHTML(m, hw, r) {
const B = bottlenecks(m, hw, r);
const red = B.filter(x => x.lv === 'red'), amb = B.filter(x => x.lv === 'amber');
const name = (l, n) => l.slice(0, n).map(x => x.n).join(' and ') + (l.length > n ? `, and ${l.length - n} more` : '');
const lead = red.length
? `Binding constraint: <b style="color:var(--cpu)">${name(red, red.length > 2 ? 1 : 2)}</b>.`
: amb.length
? `Nothing is pinned. Closest to binding: <b style="color:var(--part)">${name(amb, 2)}</b>.`
: `Nothing is pinned \u2014 this machine is well matched to this model.`;
return `<p class="bnh">${lead} Every row below is derived from the same numbers that produce the
speed above, so the audit cannot disagree with the chart.</p>
<div class="bng">${B.map(x => `<div class="bn ${x.lv}">
<div class="h"><b></b>${x.n}</div>
<div class="vv">${x.v}</div>
<div class="dd">${x.d}</div></div>`).join('')}</div>`;
}
// Header and body are generated from ONE column list, with the quality columns
// coming straight off METRICS. They were previously two hand-maintained lists,
// which is exactly how the public build ended up printing "undefined" under
// Arena text and shunting every later column one place to the left: its header
// gained a column that the row template never emitted.
const MKEYS = () => Object.keys(METRICS);
function tblCols() {
return [['name', 'Model'], ['total', 'Total B'], ['active', 'Active B'], ['gb', 'Q4 GB']]
.concat(MKEYS().map(k => [k, METRICS[k].col || METRICS[k].short || k]))
.concat([['tps', 'tok/s'], ['f', 'In VRAM'], ['fit', 'Status']]);
}
function tableHead() {
$('tbl').querySelector('thead').innerHTML = '<tr>' +
tblCols().map(c => `<th data-k="${c[0]}">${c[1]}</th>`).join('') + '</tr>';
$('tbl').querySelectorAll('th').forEach(h => h.onclick = () => {
const k = h.dataset.k; sortDir = (k === sortK) ? -sortDir : -1; sortK = k; table();
});
}
function table() {
const hw = HW.find(h => h.id === cur);
const rows = M.map(m => {
const r = calc(m, hw);
const o = {
name: m.name, total: m.total, active: m.active, gb: m.gb,
tps: r.fit === 'none' ? null : r.tps, f: r.fit === 'none' ? null : r.f,
fit: r.fit, meas: r.measured
};
// Same value the chart plots, proxies included, so the two cannot disagree.
for (const k of MKEYS()) {
const t = METRICS[k];
o[k] = m[t.k] ?? (t.p ? m[t.p] : undefined);
}
return o;
});
rows.sort((x, y) => {
let a = x[sortK], b = y[sortK];
if (typeof a === 'string') return a.localeCompare(b) * sortDir;
if (a == null) a = -Infinity; // unrated sorts to the bottom
if (b == null) b = -Infinity;
return (a - b) * sortDir;
});
const LAB = { fit: 'fits', part: 'partial', cpu: 'mostly CPU', none: "won't load" };
const cell = (r, k) => {
if (k === 'name') return `<td class="nm">${r.name}</td>`;
if (k === 'fit') return `<td><span class="tag" style="background:var(--${r.fit});color:var(--panel)">${LAB[r.fit]}</span></td>`;
if (k === 'tps') return `<td>${r.tps == null ? '—' : r.tps.toFixed(1) + (r.meas ? ' ✓' : '')}</td>`;
if (k === 'f') return `<td>${r.f == null ? '—' : (r.f * 100).toFixed(0) + '%'}</td>`;
if (METRICS[k]) return `<td>${r[k] == null ? '—' : METRICS[k].fmt(r[k])}</td>`;
return `<td>${r[k]}</td>`;
};
$('tbl').querySelector('tbody').innerHTML = rows.map(r => `<tr data-n="${r.name}">` +
tblCols().map(c => cell(r, c[0])).join('') + `</tr>`).join('');
$('tbl').querySelectorAll('tbody tr').forEach(t => t.onclick = () => { sel = t.dataset.n; detail(); drawPath() });
}
$('showNone').onchange = e => { showNone = e.target.checked; draw() };
document.querySelectorAll('input[name=met]').forEach(r => r.onchange = e => {
metric = e.target.value; sortK = metric; render();
});
$('caveats').innerHTML = `
<p><b>Quality.</b> Arena ratings from the <a href="https://huggingface.co/datasets/lmarena-ai/leaderboard-dataset">lmarena-ai/leaderboard-dataset</a> release (CC BY 4.0), latest splits read 22–27 Oct 2026 — taken from the dataset rather than scraped from the site. These are <b>Bradley–Terry</b> ratings, not Elo. Coverage differs per lens and is shown beside the selector; models unrated on the active lens are hidden and counted under the chart. Two Qwen3.6 entries carry their identically-sized Qwen3.5 sibling’s rating as a labelled proxy, drawn hollow.</p>
<p><b>Speed.</b> Solid dots are published measurements (llama.cpp benches, Level1Techs, llm-tracker,
strix-halo-testing, NVIDIA forums). Dashed rings are modelled. The bandwidth figures are
<i>effective</i> throughput back-calculated from those benchmarks, not spec sheets — measured
utilisation is ~90% on consumer dual-channel but only 24–60% on high-bandwidth unified and
30–48% on big GPUs. Apple GPUs convert far more of it on dense models than on MoE (1.7× on the
M5 Ultra), which is applied as its own factor. Prompt processing behaves completely differently and
has its own view (the prefill and TTFT phases): putting expert layers in VRAM roughly doubles prefill
while leaving decode flat.</p>
<p><b>Known model limits.</b> Batch 1 throughout. Published decode benchmarks are short-context,
so each one is anchored at 8k and carried to the selected context by the model; real decode falls
steeply with context — gpt-oss-120b drops 34% from 0 to 32k, DeepSeek-V3 671B drops 73% by 16k — and
the long-context figures are the least certain ones here. The KV cache is sized per model from
its own config file: only full-attention layers grow with the context, sliding-window layers stop
at their window, linear-attention and Mamba layers keep a fixed state, and MLA stores a compressed
latent. That spans 0.9 KB a token (DeepSeek V4.1 Flash) to 188 KB (GLM-4.7) at a Q8 cache. Lookup
tables a token only indexes into — Qwen3.8-Flash-Next’s 51B n-gram table, DeepSeek V4.1
Flash’s 196B Engram — are left on SSD rather than counted against memory. Batching recovers much of the MoE dispatch loss (gpt-oss-120b on M2 Ultra:
79 → 147 t/s from batch 1 to 4), so a serving workload looks very different from this chart.
<b>Q4 only</b> — a model that does not fit at ~4 bpw is shown as unloadable rather than silently
dropped to Q3/Q2, since that quality loss usually outweighs the speed. Capacity is checked against
<i>usable</i> memory, not nameplate: <b>14 GB</b> of system RAM and <b>2 GB</b> of VRAM are held by the
OS, the desktop and the runtime before a model loads. That is one averaged figure rather than a
per-OS one, because the distinction does not survive contact with reality — anyone can run WSL2, and
the whole spread between a Windows desktop (~20 GB, measured in Task Manager) and a bare Linux
console (~8 GB) is small against models measured in tens of gigabytes. The 192 GB options fill all four DIMM slots, which on
Arrow Lake with dual-rank 48 GB modules forces a drop to roughly DDR5-4800 — modelled as a ~17%
bandwidth loss, so they trade speed for capacity. The largest leave-one-out miss is GLM-5.2 on a 512 GB
M3 Ultra, predicted 34% low, which is also the only fine-MoE anchor on a Mac.</p>
<p><b>Why there is no quant-format selector.</b> Everything here is Q4-class GGUF on llama.cpp.
The 4-bit formats differ less than their marketing does: NVFP4 is E2M1 with an FP8 scale per 16
weights (~4.5 bpw), MXFP4 the same elements with a power-of-two scale per 32 (~4.25 bpw), Q4_K_M
~4.85 bpw. NVFP4 landed in llama.cpp in April 2026 with native Blackwell tensor-core kernels, and
the isolated effect of turning those kernels on (build b8966 → b8967, same file) was
<b>prefill +43–68%, decode 73.7 → 73.6 t/s — no change at all</b>. That is the expected result:
decode is memory- and dispatch-bound, so a faster multiply buys nothing. The only decode lever a
format offers is <i>size</i>, and NVFP4 vs Q4_K_M is about 7% fewer bytes — well inside this
model's ±30% error, which is why adding the dimension would imply precision that does not exist.
Going the other way, vLLM with NVFP4 still <i>loses</i> single-user decode to Q4_K_M GGUF by
24–30% on the same Blackwell card; it wins on concurrency and TTFT, not on one stream. And NVFP4
cannot be combined with CPU offload at all on consumer Blackwell — vLLM issue #38718 (garbage MoE
output on SM120 with weight offloading) was still open when last checked in July 2026. Pick a format for quality and prefill, not
for decode.</p>
<p><b>Multi-GPU: three modes, and they disagree.</b> By default llama.cpp splits by <i>layer</i>, so a
second card adds capacity but <i>not</i> bandwidth — the cards run in sequence and decode is flat
(measured: 2× RTX 4090 = 60.28 t/s, 4× = 59.88). <b>Tensor parallelism</b> is different: every card
splits every matrix, which genuinely adds bandwidth — 1.60× on two cards, 2.40× on four — but only
for <b>dense</b> models. On MoE at batch 1 it is a loss (gemma4 26B-A4B fell 197 → 139 t/s), because
each expert GEMV is far too small to amortise the per-layer AllReduce. The cost is <i>latency, not
PCIe bandwidth</i>: a decode AllReduce is about 6 KB, which PCIe 5.0 moves in under a microsecond,
but NCCL setup and synchronisation dominate and you pay it twice per layer. A coherent GPU-to-GPU
link fixes that, so builds whose cards have one — NVLink bridges on the RTX 3090, A6000, A100 and
H100/H200 NVL, NVSwitch on an HGX B300 board — are modelled with tensor parallelism on MoE as well,
and are marked with a green edge in the GPU list. NVIDIA removed NVLink from consumer Blackwell and
from the RTX PRO 6000 alike, so every current workstation card is PCIe-only. This tool takes the best
legal mode per model, which is why a 2× RTX 5080 build runs dense models far faster than its raw
bandwidth suggests. Not modelled: TP <i>hurts</i> prefill (0.76× on two cards, 0.41× on four),
requires FlashAttention, forbids KV cache quantization, and was still marked experimental in
llama.cpp as of mid-2026. Mixed pairs get the capacity-weighted harmonic
mean and no TP.</p>
<p><b>PCIe link width — measured, and the answer is counterintuitive.</b> For layer split, link width
is <i>irrelevant</i>: the same RTX 3090 on x16 versus a Thunderbolt link (≈Gen3 x4) decoded at 2.33
vs 2.27 t/s, a 2.6% difference, and a second GPU on Gen3 <b>x1</b> still layer-splits a 31B at
18 t/s. Only the residual stream crosses — n_embd × 4 bytes, roughly 16–32 KB per token, about 0.01%
of a Gen4 x4 link. Two things <i>do</i> bite. <b>Prefill collapses on a narrow link, but only when
weights stream from CPU</b>: pp2048 fell 303.8 → 140.5 t/s (−54%) from x16 to x4, because llama.cpp
copies CPU-resident weights to the GPU for any batch over 32 tokens. A fully VRAM-resident split is
unaffected. And <b>device order matters</b> — the same two 3090s gave 7.09 t/s with the x16 card as
device 0 and 5.31 t/s with the x4 card first. Put the fast card in slot 1.</p>
<p><b>Tensor parallelism has a topology precondition this tool does not check.</b> The 1.60×/2.40×
figures come from llama.cpp's own 2×/4× RTX 4090 runs with both cards on CPU lanes. GeForce cards
have <b>no P2P at all</b> — NVIDIA disables it in-driver on the 30/40/50 series regardless of slot —
so every transfer is host-staged, and vLLM TP on 2× 3090 over Gen4 x8 loses 48% against the same
pair with NVLink. On a consumer board whose second slot hangs off the chipset, expect TP to land at
or below plain layer split. There is also an open, unresolved llama.cpp bug (#20052) producing
<i>garbage output above 2048 context</i> on exactly the CPU-x16 + chipset-x4 non-P2P topology, so
test long-context output before trusting a two-card split. Two-card builds assume a free x8 slot, PSU headroom (2× RTX 5080 is roughly 720 W of GPU alone)
and physical clearance; none of that is modelled. Threadripper builds cannot reuse your existing
UDIMMs — registered memory is a fresh purchase, which is why they start near $19k.</p>
<p><b>Prices.</b> AUD inc GST, cheapest Australian retail listing per item, checked 28 Oct 2026.
Threadripper figure is CPU + WRX90 board + RDIMM. <b>Graphics cards are the line moving now:</b> the
RTX 5090 is $10,499 and the 5080 $2,580, up 17% and 23% in five weeks, and every consumer Blackwell
card rose. The DRAM shortage that drove the mid-year jump has eased slightly rather than reversed —
desktop DDR5 is about $15/GB (96 GB ≈ $1,450, against ~$400 a year earlier) and server RDIMM about
$55/GB (256 GB ≈ $14,080), which on a large-memory build is still more than the CPU and the cards
combined. Apple brought high-capacity Macs back with the M5 Ultra Mac Studio (256 GB from 22 Sep,
512 GB from late October, its AU price not yet published); the M3 Ultra 256/512 GB entries are
resale prices for a model Apple stopped selling.</p>`;
let mode = 'hw';
document.querySelectorAll('input[name=mode]').forEach(r => r.onchange = e => {
mode = e.target.value;
$('modeHw').style.display = mode === 'hw' ? '' : 'none';
$('modeBudget').style.display = mode === 'budget' ? '' : 'none';
render();
});
$('bud').oninput = () => budgetView();
// ---------- phase + prompt length ----------
function promptFill() {
const el = $('cfgPrompt'); if (!el) return;
el.innerHTML = PROMPTS.map(k => '<option value="' + k + '"' + (k === NPROMPT ? ' selected' : '') + '>' +
(k >= 1024 ? (k / 1024) + 'k' : k) + ' tokens</option>').join('');
el.onchange = () => { NPROMPT = +el.value; promptNote(); render(); };
promptNote();
}
function promptNote() {
const el = $('promptNote'); if (!el) return;
el.innerHTML = PHASE === 'ttft'
? 'how long before the first token appears'
: 'prefill is meaningless without this \u2014 it moves ~10x across these sizes';
}
function phaseSync() {
$('promptGrp').style.display = curPh().needsN ? '' : 'none';
promptNote();
}
document.querySelectorAll('input[name=phase]').forEach(r => r.onchange = e => {
PHASE = e.target.value; phaseSync(); render();
});
// Currency is a display transform only: every price stays stored in AUD, so
// switching cannot drift the underlying data.
document.querySelectorAll('input[name=cur]').forEach(r => {
if (r.value === CUR) r.checked = true;
r.onchange = e => {
CUR = e.target.value;
try { localStorage.setItem('cur', CUR); } catch (err) { }
buildHW(); customSummary(); render();
};
});
// ---------- your-system panel ----------
// Your rig's card list, through the same editor the custom build uses.
function renderRigGpus() {
renderGpuEditor({
list: 'rigGpuList', add: 'rigAdd', nvlWrap: 'rigNvlWrap', nvlBox: 'rigNvl',
rows: () => RIG.gpus, slots: myCpu().slots, nvlOn: rigNvlOn(),
onChange: rigGpusChanged
});
const own = rigOwned();
const used = Object.keys(own).reduce((t, k) => t + own[k], 0);
const total = myCpu().slots;
const el = $('rigSlots');
if (el) el.innerHTML = '<b>' + used + ' of ' + total + ' slots</b> used on ' +
myCpu().n.split(' \u2014 ')[0] +
(used >= total ? ' \u2014 board full. Anything more needs a different platform.'
: ' \u2014 ' + (total - used) + ' free.') +
' Everything you own here is netted off the price of every upgrade below.';
}
function rigGpusChanged() {
// Cards you own cannot outnumber the slots you have.
let left = myCpu().slots;
RIG.gpus = (RIG.gpus || []).filter(r => r && GPUC[r.k]).map(function (r) {
const take = Math.max(0, Math.min(r.n | 0, left)); left -= take;
return { k: r.k, n: take };
}).filter(r => r.n > 0);
if (!RIG.gpus.length) RIG.gpus = [{ k: '5080', n: 1 }];
try { localStorage.setItem('rig', JSON.stringify(RIG)); } catch (e) { }
buildHW();
const mine = HW.find(h => h.mine);
cur = mine ? mine.id : HW[0].id;
renderRigGpus(); cfgSummary(); customSummary(); render();
}
function cfgFill() {
renderRigGpus();
$('cfgCpu').innerHTML = Object.keys(CPUP).map(k => '<option value="' + k + '"' +
(k === RIG.cpu ? ' selected' : '') + '>' + CPUP[k].n + '</option>').join('');
numaSync();
$('cfgRam').value = RIG.ramGB;
$('cfgMts').value = RIG.ramMTs;
$('cfgKind').value = RIG.kind || 'std';
kindSync();
cfgSummary();
}
// A unified box has no card, no channels and no NUMA policy, so declaring one
// hides the controls that describe a discrete build rather than leaving them
// sitting there implying they still apply.
function kindSync() {
const uni = (RIG.kind || 'std') === 'uni';
['lblRam', 'lblCpu', 'lblMts', 'rigGpuWrap', 'rigNvlWrap'].forEach(id => {
const el = $(id); if (el) el.style.display = uni ? 'none' : '';
});
if (uni) { $('numaLbl').style.display = 'none'; const rs = $('rigSlots'); if (rs) rs.innerHTML = ''; }
$('uniLbl').style.display = uni ? '' : 'none';
$('cfgUni').innerHTML = Object.keys(UNI).map(k => '<option value="' + k + '"' +
(k === RIG.uni ? ' selected' : '') + '>' + UNI[k].n + '</option>').join('');
const u = UNI[RIG.uni] || UNI.spark, maxN = u.maxN || 1;
$('uniNLbl').style.display = (uni && maxN > 1) ? '' : 'none';
let o = '';
for (let i = 1; i <= maxN; i++)
o += '<option value="' + i + '"' + (i === RIG.uniN ? ' selected' : '') + '>' +
i + (i > 1 ? ' nodes' : ' node') + '</option>';
$('cfgUniN').innerHTML = o;
}
// NUMA policy only exists on a multi-socket platform, so its control follows
// the CPU selection. Called from both fill and apply -- apply alone would leave
// the row hidden after switching to a dual-socket part.
function numaSync() {
const multi = (myCpu().sock || 1) > 1;
$('numaLbl').style.display = multi ? '' : 'none';
$('cfgNuma').innerHTML = Object.keys(NUMA).map(k => '<option value="' + k + '"' +
(k === RIG.numa ? ' selected' : '') + '>' + NUMA[k].n + '</option>').join('');
}
function cfgSummary() {
if ((RIG.kind || 'std') === 'uni') return uniSummary();
const own = rigOwned();
const gs = gpuSet(own, {}, !rigNvlOn());
const prim = GPUC[rigPrimary()];
const est = Object.keys(own).filter(k => GPUC[k].est).map(k => GPUC[k].n);
const rb = ramBW(RIG.ramCh, RIG.ramMTs);
$('cfgOut').innerHTML = 'Modelled as <b>' + gs.vram + ' GB VRAM</b> (' + gs.n +
') at <b>~' + gs.bw + ' GB/s effective</b>' +
(Object.keys(own).length > 1
? ' \u2014 the capacity-weighted harmonic mean across the cards, because layer split ' +
'reads from each in turn and the slowest one drags the rest. '
: ' \u2014 ' + Math.round(prim.bw / prim.nom * 100) + '% of its ' + prim.nom +
' GB/s nominal, because batch-1 MoE decode converts only a fraction of any bus. ') +
(gs.tpNvl ? '<b>These cards share a coherent link</b>, so tensor parallelism is available ' +
'on MoE as well as dense models (' + gs.tp.toFixed(2) + '\u00d7). ' : '') +
'System memory <b>~' + rb + ' GB/s effective</b> from ' +
RIG.ramCh + '\u00d7 DDR5-' + RIG.ramMTs + ' on ' + myCpu().n + ' (' + myCpu().lanes +
' CPU lanes, ' + myCpu().slots + ' usable card slots), with ' + SYSRES +
' GB reserved for the OS and runtime. ' +
(est.length ? '<b>' + est.join(' and ') + ' bandwidth is estimated, not calibrated ' +
'from a benchmark.</b>' : '');
}
// What a cluster of unified boxes is and is not. Written out because the
// intuition -- two machines, twice the speed -- is wrong in a way that costs
// real money if you act on it.
function uniSummary() {
const u = UNI[RIG.uni] || UNI.spark, n = RIG.uniN || 1;
const h = uniHW(RIG.uni, n);
$('cfgOut').innerHTML = 'Modelled as <b>' + h.vram + ' GB</b> of ' +
(u.tiered ? 'fast memory' : 'unified memory') + ' at <b>~' +
h.bwFast + ' GB/s effective</b>' +
(h.ram ? ' over ' + h.ram + ' GB of slower memory at ~' + h.bwSlow +
' GB/s — two tiers, not one pool, so a model that overflows the fast tier ' +
'pays for it' : '') +
', with ' + u.res + ' GB held by the OS. ' +
(n > 1
? '<b>' + n + ' nodes over ' + u.linkN + '.</b> Clustering multiplies <b>capacity ' +
'only</b>: at batch 1 the nodes run in sequence — one computes its layers while ' +
'the others idle — so the cluster reads the model at <b>one node’s</b> ' +
'bandwidth, not ' + n + '× it. That is the point of it. It runs models no single ' +
'box holds, and it runs them slower than a single box would if one fitted. The wire ' +
'itself is not the problem: a hidden state is a few KB, microseconds even here.'
: (u.maxN || 1) > 1
? 'Up to ' + u.maxN + ' of these can be wired together over ' + u.linkN +
' to hold a model one will not — capacity only, never speed.'
: 'This machine does not cluster.');
}
function cfgApply() {
RIG.kind = $('cfgKind').value === 'uni' ? 'uni' : 'std';
RIG.uni = $('cfgUni').value in UNI ? $('cfgUni').value : 'spark';
RIG.uniN = Math.max(1, Math.min(UNI[RIG.uni].maxN || 1, +$('cfgUniN').value || 1));
RIG.ramGB = Math.max(8, +$('cfgRam').value || 96);
RIG.cpu = $('cfgCpu').value in CPUP ? $('cfgCpu').value : 'arrow';
RIG.numa = $('cfgNuma').value in NUMA ? $('cfgNuma').value : 'unknown';
RIG.ramCh = myCpu().ch; // channels are a platform property
RIG.ramMTs = +$('cfgMts').value || 6000;
try { localStorage.setItem('rig', JSON.stringify(RIG)); } catch (e) { }
buildHW();
const mine = HW.find(h => h.mine);
cur = mine ? mine.id : HW[0].id;
// A CPU change can change the slot count under the card list.
let left = myCpu().slots;
RIG.gpus = (RIG.gpus || []).filter(r => r && GPUC[r.k]).map(function (r) {
const take = Math.max(0, Math.min(r.n | 0, left)); left -= take;
return { k: r.k, n: take };
}).filter(r => r.n > 0);
if (!RIG.gpus.length) RIG.gpus = [{ k: '5080', n: 1 }];
buildHW();
numaSync(); kindSync(); renderRigGpus(); cfgSummary(); customSummary(); render();
}
['cfgRam', 'cfgCpu', 'cfgNuma', 'cfgMts',
'cfgKind', 'cfgUni', 'cfgUniN'].forEach(id => {
const el = $(id); if (el) el.onchange = cfgApply;
});
if ($('rigAdd')) $('rigAdd').onclick = () => {
const own = rigOwned();
const used = Object.keys(own).reduce((t, k) => t + own[k], 0);
gpuEditorAdd(RIG.gpus, used, myCpu().slots, rigGpusChanged);
};
if ($('rigNvl')) $('rigNvl').onchange = () => {
RIG.nvlink = $('rigNvl').checked ? 1 : 0;
rigGpusChanged();
};
if ($('cfgReset')) $('cfgReset').onclick = () => {
// Through the migrator, so the fresh RIG gets its OWN array rather than a
// reference into DEFAULT_RIG that the editor would then mutate.
RIG = migrateRigGpus(Object.assign({}, DEFAULT_RIG));
try { localStorage.removeItem('rig'); } catch (e) { }
buildHW(); cur = (HW.find(h => h.mine) || HW[0]).id;
cfgFill(); render();
};
// ---------- custom build panel ----------
function customSave() { try { localStorage.setItem('custom', JSON.stringify(CUSTOM)); } catch (e) { } }
function customOpen(on) { const p = $('customPanel'); if (p) p.style.display = (on && CUSTOM.on) ? '' : 'none'; }
// Same split as the rig panel: a unified custom build has no platform, no cards
// and no DIMMs to choose.
function cuKindSync() {
const uni = (CUSTOM.kind || 'std') === 'uni';
['cuPlatLbl', 'cuRamLbl', 'cuGpuWrap', 'cuNvlWrap'].forEach(id => {
const el = $(id); if (el) el.style.display = uni ? 'none' : '';
});
if (uni) { $('cuNumaLbl').style.display = 'none'; const sl = $('cuSlots'); if (sl) sl.innerHTML = ''; }
$('cuUniLbl').style.display = uni ? '' : 'none';
$('cuUni').innerHTML = Object.keys(UNI).map(k => '<option value="' + k + '"' +
(k === CUSTOM.uni ? ' selected' : '') + '>' + UNI[k].n + '</option>').join('');
const u = UNI[CUSTOM.uni] || UNI.spark, maxN = u.maxN || 1;
$('cuUniNLbl').style.display = (uni && maxN > 1) ? '' : 'none';
let o = '';
for (let i = 1; i <= maxN; i++)
o += '<option value="' + i + '"' + (i === CUSTOM.uniN ? ' selected' : '') + '>' +
i + (i > 1 ? ' nodes' : ' node') + '</option>';
$('cuUniN').innerHTML = o;
$('cuKind').value = CUSTOM.kind || 'std';
}
function customFill() {
const pl = CPLAT[CUSTOM.plat] || CPLAT.d;
const cards = k => Object.keys(GPUC).map(x => '<option value="' + x + '"' + (x === k ? ' selected' : '') + '>' +
GPUC[x].n + gpuFlag(x) + '</option>').join('');
const counts = (sel, lo, hi) => {
let o = '';
for (let i = lo; i <= hi; i++) o += '<option value="' + i + '"' + (i === sel ? ' selected' : '') + '>' + i + '</option>';
return o;
};
$('cuPlat').innerHTML = Object.keys(CPLAT).map(k => '<option value="' + k + '"' +
(k === CUSTOM.plat ? ' selected' : '') + '>' + (k === 'd' ? myCpu().n.split(' — ')[0] +
' (' + myCpu().slots + ' slots)' : CPLAT[k].n) + '</option>').join('');
renderGpuList(cards, counts);
const su = customSlotUse();
const slotEl = $('cuSlots');
if (slotEl) slotEl.innerHTML = '<b>' + su.used + ' of ' + su.total + ' slots</b> used on ' +
(CUSTOM.plat === 'd' ? myCpu().n.split(' \u2014 ')[0] : (CPLAT[CUSTOM.plat] || CPLAT.d).n) +
(su.used >= su.total
? ' \u2014 board full. More cards needs a platform with more slots.'
: ' \u2014 ' + (su.total - su.used) + ' free. Mixed models layer-split; identical ones ' +
'can also run tensor-parallel on dense models.');
const cpl = CPLAT[CUSTOM.plat] || CPLAT.d;
const multiSock = cpl.cpu && (CPUP[cpl.cpu].sock || 1) > 1;
$('cuNumaLbl').style.display = multiSock ? '' : 'none';
$('cuNuma').innerHTML = Object.keys(NUMA).map(k => '<option value="' + k + '"' +
(k === CUSTOM.numa ? ' selected' : '') + '>' + NUMA[k].n + '</option>').join('');
$('cuRam').value = CUSTOM.ramGB;
cuKindSync();
customSummary();
}
// Draw one row per GPU model, each with its own count and a remove button, plus
// an add button that goes dead only when the board is genuinely full. The old
// fixed three-row form left a dropdown offering nothing but "0" on a two-slot
// board -- a control that could not do anything, next to a card selector that
// could not take effect.
// Option lists, shared by both editors.
const gpuOptions = k => Object.keys(GPUC).map(x => '<option value="' + x + '"' +
(x === k ? ' selected' : '') + '>' + GPUC[x].n + gpuFlag(x) + '</option>').join('');
const countOptions = (sel, lo, hi) => {
let o = '';
for (let i = lo; i <= hi; i++)
o += '<option value="' + i + '"' + (i === sel ? ' selected' : '') + '>' + i + '</option>';
return o;
};
// ONE GPU-list editor, driven by a small descriptor, so "your system" and the
// custom build cannot drift apart. Both need exactly the same behaviour: rows
// named GPU 1..n, a shared slot budget, a coherent-link indicator, and an add
// button that goes dead only when the board is genuinely full.
//
// o.rows() must return the LIVE array -- the handlers mutate it in place and then
// call o.onChange().
function renderGpuEditor(o) {
const list = $(o.list); if (!list) return;
const rows = o.rows().filter(r => r && GPUC[r.k]);
const slots = o.slots, on = o.nvlOn;
const claimedBy = rows.map(r => r.n | 0);
const totalClaimed = claimedBy.reduce((a, b) => a + b, 0);
let anyLinkable = false;
// Linkability belongs to the GROUP, not to one row. Eight rows of one B300
// each is still eight B300s on one NVSwitch -- the earlier per-row test read
// every one of them as a lone card and printed "bridges from 2" eight times.
// Count by model across the whole list, then mark every row of a linked model.
const totals = {};
rows.forEach(function (r, i) {
const room = Math.max(1, slots - (totalClaimed - claimedBy[i]));
totals[r.k] = (totals[r.k] || 0) + Math.max(1, Math.min(claimedBy[i], room));
});
const grouped = k => totals[k] >= 2 && totals[k] <= nvlMax(k);
const seenFirst = {};
list.innerHTML = rows.map(function (r, i) {
const room = Math.max(1, slots - (totalClaimed - claimedBy[i]));
const have = Math.max(1, Math.min(claimedBy[i], room));
const cap = nvlMax(r.k);
const linkable = grouped(r.k);
if (linkable) anyLinkable = true;
// The bar carries the meaning down the group, so only the first row of each
// group is labelled -- repeating the tag on every row is noise.
const first = linkable && !seenFirst[r.k];
if (linkable) seenFirst[r.k] = 1;
// Drop the gap below a row whose successor is in the same group, so the green
// edge reads as one continuous line rather than a stack of dashes.
const cont = linkable && rows[i + 1] && rows[i + 1].k === r.k;
const tag = first
? '<span class="nvltag">\u25cf ' + (cap >= 8 ? 'NVSwitch' : 'NVLink') +
' \u00d7' + totals[r.k] + (on ? '' : ' (off)') + '</span>'
: (!linkable && cap >= 2
? '<span class="nvltag" style="color:var(--ink3)">bridges from 2</span>' : '');
return '<div class="gpurow' + (linkable ? ' nvl' : '') + (linkable && !on ? ' off' : '') +
(cont ? ' nvl-cont' : '') + '">' +
'<label>GPU ' + (i + 1) +
'<select class="gsel" data-i="' + i + '">' + gpuOptions(r.k) + '</select></label>' +
'<label>how many' +
'<select class="gcnt" data-i="' + i + '">' + countOptions(have, 1, room) + '</select></label>' +
'<button type="button" class="gdel" data-i="' + i + '"' +
(rows.length < 2 ? ' disabled title="at least one card is required"' : '') +
'>\u2212</button>' + tag + '</div>';
}).join('');
list.querySelectorAll('.gsel').forEach(function (el) {
el.onchange = function () {
const i = +el.getAttribute('data-i'), arr = o.rows();
if (arr[i]) { arr[i].k = el.value; o.onChange(); }
};
});
list.querySelectorAll('.gcnt').forEach(function (el) {
el.onchange = function () {
const i = +el.getAttribute('data-i'), arr = o.rows();
if (arr[i]) { arr[i].n = Math.max(1, +el.value || 1); o.onChange(); }
};
});
list.querySelectorAll('.gdel').forEach(function (el) {
el.onclick = function () {
const i = +el.getAttribute('data-i'), arr = o.rows();
if (arr.length > 1) { arr.splice(i, 1); o.onChange(); }
};
});
const used = rows.reduce(function (t, r, i) {
return t + Math.max(1, Math.min(claimedBy[i], Math.max(1, slots - (totalClaimed - claimedBy[i]))));
}, 0);
const add = $(o.add);
if (add) {
const full = used >= slots || rows.length >= CU_MAX_ROWS;
add.disabled = full;
add.title = used >= slots ? 'every slot on this board is taken'
: rows.length >= CU_MAX_ROWS ? 'eight card models is the limit' : '';
}
// The link toggle only appears when there is something to toggle.
const nvlWrap = $(o.nvlWrap), nvlBox = $(o.nvlBox);
if (nvlWrap) nvlWrap.style.display = anyLinkable ? 'inline-flex' : 'none';
if (nvlBox) nvlBox.checked = on;
}
// Add a row to either editor, defaulting to the card already there -- which is
// what someone adding a second GPU almost always wants.
function gpuEditorAdd(arr, used, slots, onChange) {
if (used >= slots || arr.length >= CU_MAX_ROWS) return;
const last = arr[arr.length - 1];
arr.push({ k: last ? last.k : '5090', n: 1 });
onChange();
}
function renderGpuList(cards, counts) {
renderGpuEditor({
list: 'cuGpuList', add: 'cuAdd', nvlWrap: 'cuNvlWrap', nvlBox: 'cuNvl',
rows: () => CUSTOM.gpus, slots: cplatSlots(CUSTOM.plat), nvlOn: nvlOn(),
onChange: gpuListChanged
});
}
function gpuListChanged() {
customSave(); buildHW(); cur = 'custom'; customFill(); render();
}
function customSummary() {
const h = HW.find(x => x.id === 'custom'); if (!h) { $('cuOut').innerHTML = ''; return; }
if ((CUSTOM.kind || 'std') === 'uni') {
const u = UNI[CUSTOM.uni] || UNI.spark, n = h.nodes || 1;
$('cuOut').innerHTML = 'Modelled as <b>' + h.vram + ' GB</b> of ' +
(u.tiered ? 'fast memory' : 'unified memory') + ' at <b>~' +
h.bwFast + ' GB/s effective</b> for <b>' + h.priceTxt + '</b>. ' +
(n > 1 ? '<b>' + n + ' nodes over ' + u.linkN + '</b> — ' + n +
'× the capacity at <b>1× the bandwidth</b>, because pipeline parallelism at ' +
'batch 1 runs one node at a time. Buy this to fit a model, never to go faster.'
: (u.maxN || 1) > 1 ? 'Up to ' + u.maxN + ' can be clustered over ' + u.linkN + '.' : '');
return;
}
const pl = CPLAT[CUSTOM.plat] || CPLAT.d, c = customCards();
const est = Object.keys(c).filter(k => GPUC[k].est).map(k => GPUC[k].n);
const mixed = Object.keys(c).length > 1;
const tpTxt = h.tp ? (h.tpNvl
? 'Identical cards on a coherent link, so tensor parallelism runs across all of them (' +
h.tp.toFixed(2) + '\u00d7) on <b>MoE as well as dense</b> models \u2014 the per-layer ' +
'AllReduce costs microseconds over NVLink rather than the tens of microseconds PCIe ' +
'needs, which is most of what the fabric is buying. '
: 'Identical cards, so dense models can be tensor-parallel across them (' +
h.tp.toFixed(2) + '\u00d7); MoE decode at batch 1 cannot use that, because over PCIe ' +
'there is too little work per layer to hide the AllReduce. ')
: h.tpSet ? 'Dense models can run tensor-parallel across the matched cards (' +
h.tpSet.f.toFixed(2) + '\u00d7 over ' + h.tpSet.vram + ' GB) with the odd card idle \u2014 ' +
'the model takes whichever arrangement is faster. '
: '';
$('cuOut').innerHTML = 'Modelled as <b>' + h.vram + ' GB VRAM</b> at <b>~' + h.bwFast +
' GB/s effective</b> over <b>' + h.ram + ' GB</b> of system memory at <b>~' + h.bwSlow +
' GB/s</b>, for <b>' + h.priceTxt + '</b>' +
(pl.rdimm ? ' including the CPU and board' : ' on the board you already own') + '. ' +
(pl.cpu && (CPUP[pl.cpu].sock || 1) > 1
? '<b>' + CPUP[pl.cpu].sock + ' sockets, ' + (CPUP[pl.cpu].sock * CPUP[pl.cpu].ch) +
' populated channels</b>, ' + (NUMA[CUSTOM.numa] || NUMA.unknown).n +
'. Multi-socket scaling here rests on a single published measurement and is ' +
'<b>speculative</b>; an untuned box can be slower than one socket. ' : '') +
(mixed ? 'Mixed cards layer-split, so the fast-tier figure is the capacity-weighted harmonic ' +
'mean \u2014 the slower card drags it down, and the model will idle that card instead ' +
'wherever doing so is quicker. ' : '') +
tpTxt +
(est.length ? '<b>' + est.join(' and ') + ' bandwidth is estimated, not calibrated from a benchmark.</b> ' : '') +
(pl.rdimm ? 'RDIMM priced at $' + PR.ramPerGBRdimm + '/GB \u2014 an observed AU retail ' +
'figure (a 32 GB DDR5-5600 module at A$1,729, 28 Oct 2026), not a spot index. On a large-memory ' +
'build this line, not the CPU or the cards, is usually the biggest number on the invoice.' : '');
}
function customApply() {
CUSTOM.kind = $('cuKind').value === 'uni' ? 'uni' : 'std';
CUSTOM.uni = $('cuUni').value in UNI ? $('cuUni').value : 'spark';
CUSTOM.uniN = Math.max(1, Math.min(UNI[CUSTOM.uni].maxN || 1, +$('cuUniN').value || 1));
CUSTOM.plat = $('cuPlat').value;
// Changing platform can shrink the board under the list. Clamp counts to the
// new slot budget, and drop rows that no longer have anywhere to sit -- but
// never leave the list empty.
const slots = cplatSlots(CUSTOM.plat);
let left = slots;
CUSTOM.gpus = (CUSTOM.gpus || []).filter(r => r && GPUC[r.k]).map(function (r) {
const take = Math.max(0, Math.min(r.n | 0, left));
left -= take;
return { k: r.k, n: take };
}).filter(r => r.n > 0);
if (!CUSTOM.gpus.length) CUSTOM.gpus = [{ k: '5090', n: 1 }];
CUSTOM.numa = $('cuNuma').value in NUMA ? $('cuNuma').value : 'unknown';
CUSTOM.ramGB = Math.max(16, +$('cuRam').value || 128);
customSave(); buildHW(); cur = 'custom'; customFill(); render();
}
['cuPlat', 'cuRam', 'cuNuma',
'cuKind', 'cuUni', 'cuUniN'].forEach(id => { const el = $(id); if (el) el.onchange = customApply; });
if ($('cuNvl')) $('cuNvl').onchange = () => {
CUSTOM.nvlink = $('cuNvl').checked ? 1 : 0;
gpuListChanged();
};
if ($('cuAdd')) $('cuAdd').onclick = () => {
const su = customSlotUse();
if (su.used >= su.total || (CUSTOM.gpus || []).length >= CU_MAX_ROWS) return;
// Default the new row to the card already in the build, which is what someone
// adding a second GPU almost always wants.
const last = CUSTOM.gpus[CUSTOM.gpus.length - 1];
CUSTOM.gpus.push({ k: last ? last.k : '5090', n: 1 });
gpuListChanged();
};
if ($('cuClose')) $('cuClose').onclick = () => {
CUSTOM.on = 0; customSave(); buildHW();
cur = (HW.find(h => h.mine) || HW[0]).id; customOpen(false); render();
};
// ---------- context selector ----------
function ctxFill() {
const el = $('cfgCtx'); if (!el) return;
el.innerHTML = CTXS.map(c => '<option value="' + c.k + '"' + (c.k === CTX ? ' selected' : '') + '>' + c.n + '</option>').join('');
ctxNote();
el.onchange = () => { CTX = +el.value; ctxNote(); render(); };
}
function ctxNote() {
const c = CTXS.find(x => x.k === CTX) || CTXS[2];
const cls = c.band === 'agent-ready' ? '--fit' : (c.band === 'marginal' ? '--part' : '--cpu');
$('ctxNote').innerHTML = '<span style="color:var(' + cls + ')">' + c.band + '</span>';
}
// ---------- provenance, rendered from SRC ----------
function provenance() {
const rows = Object.keys(SRC).map(k => {
const v = SRC[k];
return '<tr><td><b>' + v.name + '</b>' + (v.creator ? '<br><span style="color:var(--ink3)">' + v.creator + '</span>' : '') +
'</td><td>' + v.asOf + '</td><td>' + (v.url ? '<a href="' + v.url + '">' + v.licence + '</a>' : v.licence) +
(v.cite ? '<br><span style="color:var(--ink3)">' + v.cite + '</span>' : '') +
'</td><td class="' + (v.pub ? 'yes' : 'no') + '">' + (v.pub ? 'yes' : 'no') + '</td></tr>';
}).join('');
$('prov').querySelector('tbody').innerHTML = rows;
const blocked = Object.keys(SRC).filter(k => !SRC[k].pub);
$('licNotice').innerHTML = blocked.length ? '<div class="warn"><b>Not cleared for publication.</b> ' +
blocked.map(k => SRC[k].warn).join(' ') + '</div>' : '';
$('provNote').innerHTML = 'Every number on this page carries the date above. ' +
'Prices and benchmarks age fastest \u2014 DRAM moved roughly 5\u00d7 in twelve months, and one ' +
'RTX PRO 6000 decode figure gained 43% in five months from kernel work alone. ' +
'Arena ratings are taken from the CC BY 4.0 dataset rather than scraped from the site, ' +
'and are Bradley\u2013Terry ratings rather than Elo despite the common label; ' +
'the models plotted are a subset, values are reformatted for plotting, none are altered. ' +
'This is an independent project, not affiliated with or endorsed by any benchmark operator. ' +
'Scores remain the work of their respective operators.';
}
// Coverage differs per lens, so it is stated where the lens is chosen.
function metNote() {
const el = $('metNote'); if (!el) return;
const n = M.filter(m => qv(m) != null).length, p = M.filter(m => isProxy(m)).length;
const cls = n >= 25 ? '--fit' : n >= 15 ? '--part' : '--cpu';
el.innerHTML = '<span style="color:var(' + cls + ')">' + n + ' of ' + M.length + ' models rated</span>' +
(p ? ' \u00b7 ' + p + ' by proxy' : '');
}
function render() {
metNote();
$('budOut').textContent = (+$('bud').value) ? AUD(+$('bud').value) : FX[CUR].sym + '0';
if (mode === 'hw') hwCards(); else budgetView();
draw(); detail(); drawPath(); table();
}
provenance();
promptFill();
phaseSync();
tableHead();
cfgFill();
customFill();
customOpen(CUSTOM.on);
ctxFill();
render();
</script>
</body>
</html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Local LLM explorer — quality vs speed vs hardware</title>
<style>
:root {
--bg: #faf9f7;
--panel: #ffffff;
--ink: #14140f;
--ink2: #5c5b54;
--ink3: #8a8880;
--line: #e2e0d8;
--line2: #c9c7bd;
--band1: #f6dede;
--band2: #faf0d8;
--band3: #e2f1e6;
--band4: #dfeaf8;
--fit: #1b8a5a;
--part: #c9891a;
--cpu: #c0392b;
--none: #a8a6a0;
--acc: #2a6fd6;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #14140f;
--panel: #1c1c18;
--ink: #f2f1ec;
--ink2: #b4b2a8;
--ink3: #7e7c74;
--line: #2f2f29;
--line2: #45443c;
--band1: #2e1c1c;
--band2: #2e2718;
--band3: #16281d;
--band4: #161f2e;
--fit: #3fbf85;
--part: #e0a637;
--cpu: #e0645a;
--none: #55544e;
--acc: #5b9df5;
}
}
* {
box-sizing: border-box
}
body {
margin: 0;
background: var(--bg);
color: var(--ink);
font: 15px/1.6 ui-sans-serif, -apple-system, "Segoe UI", Inter, system-ui, sans-serif;
-webkit-font-smoothing: antialiased
}
.wrap {
max-width: 1280px;
margin: 0 auto;
padding: 28px 22px 80px
}
h1 {
font-size: 23px;
font-weight: 600;
margin: 0 0 4px;
letter-spacing: -.01em
}
.sub {
color: var(--ink2);
font-size: 14px;
margin: 0 0 22px
}
h2 {
font-size: 15px;
font-weight: 600;
margin: 30px 0 10px;
letter-spacing: -.005em
}
.eq {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 10px;
padding: 12px 15px;
font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
color: var(--ink2);
margin: 0 0 22px;
overflow-x: auto
}
.eq b {
color: var(--ink);
font-weight: 600