Add LFM3-1.7B vLLM XPU plugin
Out-of-tree vLLM 0.32 plugin for LiquidAI LFM3 on Intel XPU: model, width-7 short-conv Triton kernels, Dockerfile, reference/API/bench tests, working notes and benchmark results. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
4e7a7ce903
26 files changed
+21423
No files matched your search
@@ -0,0 +1,14 @@
|
||||
# LFM3-1.7B bench — compiled (2026-10-28 20:01)
|
||||
|
||||
Server: lfm3-vllm-xpu, Arc Pro B65, bf16, `vllm bench serve` random dataset, `--ignore-eos`.
|
||||
|
||||
| scenario | conc | in/out | requests | median TTFT ms | P99 TTFT ms | median TPOT ms | P99 ITL ms | prefill tok/s | decode tok/s | total tok/s | prefix-cache hits |
|
||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||
| prefill | 1 | 4096/1 | 8 | 234.3 | 239.8 | 0.00 | 0.00 | 17481 | 4.3 | 17486 | 0.0% |
|
||||
| prefill | 16 | 4096/1 | 64 | 2914.3 | 2970.8 | 0.00 | 0.00 | 22334 | 5.5 | 22340 | 0.0% |
|
||||
| decode | 1 | 128/512 | 4 | 60.5 | 63.3 | 7.81 | 8.60 | 32 | 126.3 | 158 | 0.0% |
|
||||
| decode | 16 | 128/512 | 32 | 735.7 | 1330.3 | 8.60 | 11.83 | 398 | 1593.0 | 1991 | 0.0% |
|
||||
|
||||
- prefill tok/s = input tokens / duration (meaningful for the prefill rows: 1 output token).
|
||||
- decode tok/s = output tokens / duration (meaningful for the decode rows).
|
||||
- raw JSON: results/bench_compiled/
|
||||
@@ -0,0 +1,14 @@
|
||||
# LFM3-1.7B bench — eager (2026-10-28 20:06)
|
||||
|
||||
Server: lfm3-vllm-xpu, Arc Pro B65, bf16, `vllm bench serve` random dataset, `--ignore-eos`.
|
||||
|
||||
| scenario | conc | in/out | requests | median TTFT ms | P99 TTFT ms | median TPOT ms | P99 ITL ms | prefill tok/s | decode tok/s | total tok/s | prefix-cache hits |
|
||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||
| prefill | 1 | 4096/1 | 8 | 226.6 | 8286.0 | 0.00 | 0.00 | 3125 | 0.8 | 3126 | 0.0% |
|
||||
| prefill | 16 | 4096/1 | 64 | 2959.9 | 3019.6 | 0.00 | 0.00 | 21986 | 5.4 | 21991 | 0.0% |
|
||||
| decode | 1 | 128/512 | 4 | 140.2 | 615.8 | 34.29 | 39.43 | 7 | 28.8 | 36 | 0.0% |
|
||||
| decode | 16 | 128/512 | 32 | 762.8 | 1372.6 | 34.58 | 39.28 | 111 | 444.3 | 555 | 0.0% |
|
||||
|
||||
- prefill tok/s = input tokens / duration (meaningful for the prefill rows: 1 output token).
|
||||
- decode tok/s = output tokens / duration (meaningful for the decode rows).
|
||||
- raw JSON: results/bench_eager/
|
||||
@@ -0,0 +1 @@
|
||||
{"date": "20261028-183719", "endpoint_type": "openai", "backend": "openai", "label": null, "model_id": "lfm3-1.7b", "tokenizer_id": "/models/LFM3-1.7B", "num_prompts": 16, "request_rate": "inf", "burstiness": 1.0, "max_concurrency": 1, "duration": 137.7218146850064, "completed": 16, "failed": 0, "total_input_tokens": 16384, "total_output_tokens": 4096, "request_throughput": 0.11617622114982123, "request_goodput": null, "output_throughput": 29.741112614354236, "total_token_throughput": 148.70556307177117, "latencies": [8.547571271992638, 8.889110722011537, 8.513282951011206, 8.516900429007364, 8.512097928993171, 8.458169747987995, 8.545284949999768, 8.677622813003836, 8.673199532990111, 8.5786840429937, 8.398340497995378, 8.560537099998328, 8.771953076997306, 8.82979527200223, 8.54980193200754, 8.692260933006764], "queue_times": [0.00019121299555990845, 8.548296945999027, 17.437811625990435, 25.951511513994774, 34.468911342002684, 42.98138918800396, 51.44007847500325, 59.98573068200494, 68.66370639100205, 77.33717527899717, 85.91631292000238, 94.31508973700693, 102.87608187599108, 111.64841317999526, 120.47858315899794, 129.0288025179907], "max_output_tokens_per_s": 32.0, "max_concurrent_requests": 2, "rtfx": 0.0, "mean_ttft_ms": 132.67103337602748, "median_ttft_ms": 130.65361749613658, "std_ttft_ms": 10.283852664352313, "p99_ttft_ms": 163.36125710149642, "mean_tpot_ms": 33.23330310489765, "median_tpot_ms": 33.056460207844076, "std_tpot_ms": 0.49405169584662145, "p99_tpot_ms": 34.19131536847072, "mean_itl_ms": 33.29859446659687, "median_itl_ms": 32.96410600160016, "std_itl_ms": 2.0494982688944394, "p99_itl_ms": 37.60655520265573}
|
||||
@@ -0,0 +1 @@
|
||||
{"date": "20261028-183856", "endpoint_type": "openai", "backend": "openai", "label": null, "model_id": "lfm3-1.7b", "tokenizer_id": "/models/LFM3-1.7B", "num_prompts": 128, "request_rate": "inf", "burstiness": 1.0, "max_concurrency": 16, "duration": 77.2350853659882, "completed": 128, "failed": 0, "total_input_tokens": 131072, "total_output_tokens": 32768, "request_throughput": 1.6572778989426353, "request_goodput": null, "output_throughput": 424.26314212931464, "total_token_throughput": 2121.3157106465733, "latencies": [10.037679993998609, 10.047345661994768, 10.042648675997043, 10.046023457995034, 10.04251428299176, 10.044332826000755, 10.044498019997263, 10.044862045993796, 10.04329628701089, 10.040232840998215, 10.0433536979981, 10.042256018990884, 10.042341560008936, 10.041676587992697, 10.037509930989472, 10.041362602001755, 9.819725743000163, 9.851629393000621, 9.850456070998916, 9.898166882005171, 10.22680056799436, 9.896311127988156, 9.942601371993078, 9.992322669990244, 9.992435912005021, 10.080986556000425, 10.080267333003576, 10.31128699699184, 10.133725549996598, 10.133678589001647, 10.223262081999565, 10.310411421989556, 9.695172035004362, 9.69489330999204, 9.69403112398868, 9.692679659012356, 9.739328219991876, 9.69348164400435, 9.702799065998988, 9.751829700995586, 9.663167815000634, 9.745581956012757, 9.748429528000997, 9.69287210200855, 9.657831926000654, 9.744790930999443, 9.748869016999379, 9.658696481987135, 9.09198084200034, 9.09024959000817, 9.090810890003922, 9.089309831993887, 9.088061798000126, 9.088049258003593, 9.07955851200677, 9.086438208003528, 9.086374677994172, 9.171062621011515, 9.090526054991642, 9.177627921992098, 9.11450112699822, 9.091543343005469, 9.146814382998855, 9.056383404007647, 9.35729738799273, 9.359884927005623, 9.359544130013091, 9.362176348004141, 9.363507323985687, 9.364591314006248, 9.360881835993496, 9.360209684004076, 9.361369545003981, 9.359132753001177, 9.336881793002249, 9.33724495000206, 9.416287938001915, 9.359542031001183, 9.448080015004962, 9.360055430995999, 9.49209607699595, 9.49046842601092, 9.49058098900423, 9.490552379007568, 9.495295565997367, 9.493375650010421, 9.497682350003743, 9.494779895991087, 9.493577893998008, 9.491322892004973, 9.491380613995716, 9.490446476003854, 9.492138738001813, 9.491470705004758, 9.49212417700619, 9.492996083004982, 9.739734079004847, 9.740669616003288, 9.740388341000653, 9.740971631006687, 9.740540972998133, 9.739231278988882, 9.739642025990179, 9.740138615990872, 9.739007923999452, 9.741430779991788, 9.741265535994899, 9.740432149992557, 9.741230084997369, 9.741979389000335, 9.740470631004428, 9.74036435999733, 9.657889616995817, 9.658524547994602, 9.657091761997435, 9.647557876000064, 9.634829611008172, 9.63504810500308, 9.623564595007338, 9.607944175993907, 9.606947948006564, 9.560442518995842, 9.5422856350051, 9.542292154990719, 9.492329492000863, 9.472289781988366, 9.472220191004453, 9.38522882500547], "queue_times": [0.0009688880090834573, 0.0011502209963509813, 0.0020920090028084815, 0.0022011200053384528, 0.0023099920072127134, 0.003311031003249809, 0.0034339930134592578, 0.003519025005516596, 0.004542094000498764, 0.0046261449897428975, 0.004720236989669502, 0.0057252350088674575, 0.005898998002521694, 0.006002680005622096, 0.006992299007833935, 0.007101850991602987, 10.039637580994167, 10.045481727007427, 10.045763873000396, 10.047022136001033, 10.047288230998674, 10.048560044000624, 10.048813689005328, 10.049014882999472, 10.049193975995877, 10.049373319008737, 10.04954734200146, 10.049733116000425, 10.049923079001019, 10.05008797199116, 10.050260935997358, 10.0504033180041, 19.860071746996255, 19.896564000009676, 19.89756470899738, 19.94549003399152, 19.94585339000332, 19.992023081998923, 20.04187517199898, 20.04224611900281, 20.130546608997975, 20.130868024993106, 20.183958135006833, 20.184238970992737, 20.274160209999536, 20.274516287012375, 20.361046122998232, 20.36132754900609, 29.555657859003986, 29.592217543991865, 29.592547940992517, 29.63848804900772, 29.68578110198723, 29.686101546991267, 29.745063094989746, 29.79412022100587, 29.79440183599945, 29.876595662994077, 29.87735573700047, 29.932481035008095, 29.932800930997473, 30.01945067998895, 30.0200505219982, 30.110172685002908, 38.64798006800993, 38.68279120999796, 38.684216026988, 38.72803326600115, 38.77433807001216, 38.77469594600552, 38.82533595000859, 38.88104820800072, 38.88133673398988, 38.96861122499104, 39.04761857300764, 39.04794474899245, 39.110427082996466, 39.110925572007545, 39.16682666398992, 39.16715414999635, 48.006107622000854, 48.043158025000594, 48.04436293699837, 48.090689032003866, 48.13860153699352, 48.13950915398891, 48.186640953994356, 48.24208326700318, 48.242758859996684, 48.32824472799257, 48.38525161000143, 48.385692748997826, 48.470628005001345, 48.52728742099134, 48.527598696993664, 48.61502528098936, 57.498982581993914, 57.534124051002436, 57.53530122300435, 57.58181622199481, 57.633991424998385, 57.63432Line truncated
|
||||
@@ -0,0 +1,477 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>BetterBench — lfm3-1.7b</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--page:#f9f9f7; --surface:#fcfcfb;
|
||||
--ink:#0b0b0b; --ink-2:#52514e; --muted:#898781;
|
||||
--grid:#e1e0d9; --axis:#c3c2b7; --border:rgba(11,11,11,0.10);
|
||||
--s1:#2a78d6; --s2:#eb6834;
|
||||
--s1-mid:#86b6ef; --s1-soft:rgba(42,120,214,0.13);
|
||||
--tip-bg:#ffffff;
|
||||
--sans:system-ui,-apple-system,"Segoe UI",sans-serif;
|
||||
--mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
color-scheme: dark;
|
||||
--page:#0d0d0d; --surface:#1a1a19;
|
||||
--ink:#ffffff; --ink-2:#c3c2b7; --muted:#898781;
|
||||
--grid:#2c2c2a; --axis:#383835; --border:rgba(255,255,255,0.10);
|
||||
--s1:#3987e5; --s2:#d95926;
|
||||
--s1-mid:#256abf; --s1-soft:rgba(57,135,229,0.16);
|
||||
--tip-bg:#232322;
|
||||
}
|
||||
}
|
||||
:root[data-theme="dark"] {
|
||||
color-scheme: dark;
|
||||
--page:#0d0d0d; --surface:#1a1a19;
|
||||
--ink:#ffffff; --ink-2:#c3c2b7; --muted:#898781;
|
||||
--grid:#2c2c2a; --axis:#383835; --border:rgba(255,255,255,0.10);
|
||||
--s1:#3987e5; --s2:#d95926;
|
||||
--s1-mid:#256abf; --s1-soft:rgba(57,135,229,0.16);
|
||||
--tip-bg:#232322;
|
||||
}
|
||||
|
||||
* { box-sizing:border-box; }
|
||||
body { background:var(--page); color:var(--ink); font-family:var(--sans);
|
||||
line-height:1.55; margin:0; padding:32px 20px 72px; }
|
||||
.wrap { max-width:1080px; margin:0 auto; display:flex; flex-direction:column; gap:26px; }
|
||||
|
||||
header { display:flex; flex-direction:column; gap:13px; }
|
||||
.eyebrow { font-family:var(--mono); font-size:11px; letter-spacing:.13em;
|
||||
text-transform:uppercase; color:var(--muted); }
|
||||
h1 { font-size:clamp(26px,4vw,36px); line-height:1.12; margin:0;
|
||||
letter-spacing:-.02em; text-wrap:balance; }
|
||||
.runbar { display:flex; flex-wrap:wrap; gap:8px; }
|
||||
.chip { font-family:var(--mono); font-size:12px; color:var(--ink-2);
|
||||
border:1px solid var(--border); border-radius:6px; padding:4px 9px;
|
||||
background:var(--surface); display:inline-flex; align-items:center; gap:7px; }
|
||||
.chip code { font-family:var(--mono); font-size:12px; }
|
||||
.swatch { width:9px; height:9px; border-radius:2px; flex:none; }
|
||||
|
||||
.thin { color:var(--muted); cursor:help; font-weight:400; padding-left:1px; }
|
||||
.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:13px; }
|
||||
.tile { background:var(--surface); border:1px solid var(--border); border-radius:10px;
|
||||
padding:15px 16px; display:flex; flex-direction:column; gap:4px; }
|
||||
.tile .label { font-family:var(--mono); font-size:10.5px; letter-spacing:.1em;
|
||||
text-transform:uppercase; color:var(--muted); }
|
||||
.tile .val { font-size:26px; font-weight:600; letter-spacing:-.02em; line-height:1.15; }
|
||||
.tile .val small { font-size:14px; font-weight:400; color:var(--ink-2); letter-spacing:0; }
|
||||
.tile .sub { font-family:var(--mono); font-size:11.5px; color:var(--muted); }
|
||||
|
||||
figure { margin:0; background:var(--surface); border:1px solid var(--border);
|
||||
border-radius:10px; padding:18px 18px 14px;
|
||||
display:flex; flex-direction:column; gap:2px; }
|
||||
figcaption { display:flex; flex-direction:column; gap:3px; margin-bottom:8px; }
|
||||
figcaption .t { font-size:15.5px; font-weight:600; letter-spacing:-.01em; }
|
||||
figcaption .d { font-size:13px; color:var(--ink-2); max-width:76ch; }
|
||||
.legend { display:flex; gap:16px; flex-wrap:wrap; margin:2px 0 10px; }
|
||||
.legend span { font-family:var(--mono); font-size:12px; color:var(--ink-2);
|
||||
display:inline-flex; align-items:center; gap:6px; }
|
||||
.chartbox { position:relative; width:100%; }
|
||||
.chartbox svg { display:block; width:100%; height:auto; overflow:visible; }
|
||||
.note { font-size:12.5px; color:var(--muted); margin:9px 0 0; }
|
||||
|
||||
text { font-family:var(--mono); }
|
||||
.tick { font-size:10.5px; fill:var(--muted); }
|
||||
.axtitle { font-size:10.5px; fill:var(--muted); letter-spacing:.08em; }
|
||||
.dlabel { font-size:11px; font-weight:600; }
|
||||
.gridline { stroke:var(--grid); stroke-width:1; }
|
||||
.baseline { stroke:var(--axis); stroke-width:1; }
|
||||
.refline { stroke:var(--muted); stroke-width:1; stroke-dasharray:4 4; }
|
||||
.cross { stroke:var(--axis); stroke-width:1; stroke-dasharray:3 3; }
|
||||
|
||||
.tip { position:absolute; pointer-events:none; opacity:0; transition:opacity .1s ease;
|
||||
z-index:5; background:var(--tip-bg); border:1px solid var(--border);
|
||||
border-radius:7px; padding:8px 10px; box-shadow:0 3px 14px rgba(0,0,0,.13);
|
||||
font-family:var(--mono); font-size:11.5px; color:var(--ink);
|
||||
white-space:nowrap; min-width:132px; }
|
||||
.tip .th { color:var(--muted); font-size:10px; letter-spacing:.08em;
|
||||
text-transform:uppercase; margin-bottom:5px; }
|
||||
.tip .row { display:flex; align-items:center; gap:10px; justify-content:space-between; }
|
||||
.tip .nm { display:inline-flex; align-items:center; gap:6px; color:var(--ink-2); }
|
||||
.tip b { font-weight:600; }
|
||||
|
||||
details { background:var(--surface); border:1px solid var(--border);
|
||||
border-radius:10px; padding:0 18px; }
|
||||
summary { cursor:pointer; padding:15px 0; font-size:14.5px; font-weight:600;
|
||||
list-style:none; display:flex; align-items:center; gap:9px; }
|
||||
summary::-webkit-details-marker { display:none; }
|
||||
summary::before { content:"\25B8"; color:var(--muted); font-family:var(--mono); }
|
||||
details[open] summary::before { content:"\25BE"; }
|
||||
summary:focus-visible { outline:2px solid var(--s1); outline-offset:3px; border-radius:4px; }
|
||||
.tscroll { overflow-x:auto; padding-bottom:14px; }
|
||||
table { border-collapse:collapse; width:100%; font-size:12.5px; font-family:var(--mono);
|
||||
font-variant-numeric:tabular-nums; margin-bottom:10px; }
|
||||
caption { text-align:left; font-family:var(--sans); font-size:13px; color:var(--ink-2);
|
||||
padding:10px 0 8px; }
|
||||
th, td { padding:6px 11px 6px 0; text-align:right; white-space:nowrap; }
|
||||
th:first-child, td:first-child { text-align:left; }
|
||||
thead th { color:var(--muted); font-weight:500; font-size:10.5px; letter-spacing:.07em;
|
||||
text-transform:uppercase; border-bottom:1px solid var(--axis); }
|
||||
tbody tr + tr td { border-top:1px solid var(--grid); }
|
||||
tbody td:first-child { color:var(--ink-2); }
|
||||
|
||||
footer { font-size:12.5px; color:var(--muted); border-top:1px solid var(--border);
|
||||
padding-top:16px; }
|
||||
footer code { font-family:var(--mono); font-size:12px; color:var(--ink-2); }
|
||||
noscript p { font-size:13px; color:var(--ink-2); }
|
||||
@media (prefers-reduced-motion: reduce) { * { transition:none !important; } }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrap">
|
||||
<header>
|
||||
<div class="eyebrow">BetterBench 0.6.1 · 28 Oct 2026 · 20:25 · llm</div>
|
||||
<h1>lfm3-1.7b</h1>
|
||||
<div class="runbar"><span class="chip"><span class="swatch" style="background:var(--s1)"></span>lfm3-1.7b</span><span class="chip"><code>http://127.0.0.1:8000/v1</code></span><span class="chip">corpus v1.0</span><span class="chip">5 passes/cat</span><span class="chip">temp 0.7</span><span class="chip">cold prefix cache (nonce)</span><span class="chip">phases: decode, prefill</span><span class="chip">32,768 tok context</span><span class="chip"><span class="swatch" style="background:var(--s2)"></span>mode: compiled</span><span class="chip"><span class="swatch" style="background:var(--s2)"></span>image: lfm3-vllm-xpu</span><span class="chip"><span class="swatch" style="background:var(--s2)"></span>gpu: ArcProB65</span></div>
|
||||
</header>
|
||||
<section class="tiles">
|
||||
<div class="tile">
|
||||
<span class="label">Combined decode</span>
|
||||
<span class="val">128.4 <small>t/s</small></span>
|
||||
<span class="sub">weighted across categories</span>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<span class="label">Combined update p99</span>
|
||||
<span class="val">8.6 <small>ms</small></span>
|
||||
<span class="sub">the stutter between stream updates</span>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<span class="label">Combined TTFT p50</span>
|
||||
<span class="val">64 <small>ms</small></span>
|
||||
<span class="sub">single-stream, batch = 1</span>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<span class="label">Prefill @ 32,000 tok</span>
|
||||
<span class="val">16,669 <small>t/s</small></span>
|
||||
<span class="sub">median prompt processing</span>
|
||||
</div>
|
||||
</section>
|
||||
<noscript><p>Charts need JavaScript — the full numbers are in the tables below.</p></noscript>
|
||||
<figure>
|
||||
<figcaption>
|
||||
<span class="t">Decode throughput by category</span>
|
||||
<span class="d">Median per-pass decode t/s at batch = 1, 5 passes per category. The dashed line is the weighted combined score.</span>
|
||||
</figcaption>
|
||||
|
||||
<div class="chartbox" id="cb-decode"></div>
|
||||
<p class="note">Hover a bar for its IQR and coefficient of variation — a high CV means the category's passes disagree, so read small differences there with care.</p>
|
||||
</figure>
|
||||
<figure>
|
||||
<figcaption>
|
||||
<span class="t">Stream-update gap by category</span>
|
||||
<span class="d">This server packs several tokens into one stream update, so there is no per-token latency to plot. These are the measured wall-clock gaps between updates: p50 is the typical rhythm, p99 the stutter. Lower is better.</span>
|
||||
</figcaption>
|
||||
<div class="legend"><span><span class="swatch" style="background:var(--s1)"></span>update p50</span><span><span class="swatch" style="background:var(--s2)"></span>update p99</span></div>
|
||||
<div class="chartbox" id="cb-itl"></div>
|
||||
<p class="note">Hover a bar for the tokens landing per update. p99 is an upper bound on any pause a reader feels; it is not comparable across servers that pack different numbers of tokens into an update.</p>
|
||||
</figure>
|
||||
<figure>
|
||||
<figcaption>
|
||||
<span class="t">Prompt processing throughput by depth</span>
|
||||
<span class="d">Median prefill t/s (prompt tokens ÷ TTFT) at increasing input depth, cold prefix cache. The band spans the 1% low to the 99% high.</span>
|
||||
</figcaption>
|
||||
|
||||
<div class="chartbox" id="cb-prefill"></div>
|
||||
<p class="note">Skipped depth 64,000 — deeper than the model's context window.</p>
|
||||
</figure>
|
||||
<details open>
|
||||
<summary>Full numbers</summary>
|
||||
<div class="tscroll">
|
||||
<table>
|
||||
<caption>Single-stream, batch = 1 · several tokens per stream update</caption>
|
||||
<thead><tr><th>category</th><th>passes</th><th>TTFT p50</th><th>TTFT p99</th><th>update p50 (ms)</th><th>update p99 (ms)</th><th>tok/update</th><th>decode med</th><th>±IQR</th><th>CV</th></tr></thead>
|
||||
<tbody>
|
||||
<tr><td>chat</td><td>5</td><td>65.6</td><td>85.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>7.8</td><td>9.2</td><td>1.00</td><td>129.1</td><td>1.0</td><td>0.5%</td></tr>
|
||||
<tr><td>code</td><td>5</td><td>63.3</td><td>66.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>7.8</td><td>8.7</td><td>1.00</td><td>128.2</td><td>0.3</td><td>0.3%</td></tr>
|
||||
<tr><td>file edit</td><td>5</td><td>64.4</td><td>66.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>7.8</td><td>8.5</td><td>1.00</td><td>128.3</td><td>0.5</td><td>0.3%</td></tr>
|
||||
<tr><td>json</td><td>5</td><td>66.0</td><td>66.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>7.8</td><td>8.6</td><td>1.00</td><td>128.8</td><td>0.2</td><td>0.2%</td></tr>
|
||||
<tr><td>math</td><td>5</td><td>64.2</td><td>68.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>7.8</td><td>8.6</td><td>1.00</td><td>128.4</td><td>0.1</td><td>0.5%</td></tr>
|
||||
<tr><td>prose</td><td>5</td><td>64.4</td><td>67.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>7.8</td><td>8.5</td><td>1.00</td><td>128.4</td><td>0.7</td><td>0.5%</td></tr>
|
||||
<tr><td>reasoning</td><td>5</td><td>63.1</td><td>65.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>7.8</td><td>8.6</td><td>1.00</td><td>128.3</td><td>0.2</td><td>0.5%</td></tr>
|
||||
<tr><td>summarization</td><td>5</td><td>65.1</td><td>70.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>7.8</td><td>8.9</td><td>1.00</td><td>128.8</td><td>0.7</td><td>0.6%</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table>
|
||||
<caption>Reasoning / answer split · TTFA is time to the first answer token</caption>
|
||||
<thead><tr><th>category</th><th>runs w/ split</th><th>reasoning share (est)</th><th>TTFA p50 (ms)</th><th>never reached answer</th></tr></thead>
|
||||
<tbody>
|
||||
<tr><td>chat</td><td>5/5</td><td>100%</td><td>—</td><td>5/5</td></tr>
|
||||
<tr><td>code</td><td>5/5</td><td>100%</td><td>—</td><td>5/5</td></tr>
|
||||
<tr><td>file edit</td><td>5/5</td><td>100%</td><td>—</td><td>5/5</td></tr>
|
||||
<tr><td>json</td><td>5/5</td><td>100%</td><td>—</td><td>5/5</td></tr>
|
||||
<tr><td>math</td><td>5/5</td><td>100%</td><td>—</td><td>5/5</td></tr>
|
||||
<tr><td>prose</td><td>5/5</td><td>100%</td><td>—</td><td>5/5</td></tr>
|
||||
<tr><td>reasoning</td><td>5/5</td><td>100%</td><td>—</td><td>5/5</td></tr>
|
||||
<tr><td>summarization</td><td>5/5</td><td>94%</td><td>—</td><td>4/5</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table>
|
||||
<caption>Prefill sweep · cold prefix cache</caption>
|
||||
<thead><tr><th>target depth</th><th>prompt tok med</th><th>TTFT p50</th><th>PP 1% low</th><th>PP median</th><th>PP 99% high</th></tr></thead>
|
||||
<tbody>
|
||||
<tr><td>2,000</td><td>1,514</td><td>99.6</td><td>14,967.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>15,216.7</td><td>15,620.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||
<tr><td>8,000</td><td>5,942</td><td>323.3</td><td>17,542.5<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>18,374.0</td><td>18,928.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||
<tr><td>16,000</td><td>11,826</td><td>654.5</td><td>17,890.5<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>18,039.5</td><td>18,178.4<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||
<tr><td>32,000</td><td>23,483</td><td>1,410.7</td><td>16,530.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>16,668.7</td><td>16,916.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||
<tr><td>64,000</td><td>—</td><td>—</td><td>—</td><td><em>skipped</em></td><td>—</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</details>
|
||||
<footer>Generated by BetterBench 0.6.1 from a corpus v1.0 run. Corpus hash <code>e332dceff176d033</code>. Combined-score weights — code 0.3, reasoning 0.2, prose 0.15, json 0.15, file_edit 0.1, summarization 0.1. Results are only comparable within a corpus version. Stopped at <code>max_tokens</code>: 40/40 runs (100%) — on a thinking model a truncated run measures the thinking phase, not a complete answer. 12 percentiles are marked † — they rest on fewer samples than <code>n · tail ≥ 5</code> requires (a p99 needs 500 observations), so read them as roughly the worst observed rather than as percentiles. The full list is under <code>sample_gate</code> in the results JSON. See METHODOLOGY.md §sample-size.</footer>
|
||||
</div>
|
||||
<script>
|
||||
"use strict";
|
||||
const D = {"cats": ["chat", "code", "file edit", "json", "math", "prose", "reasoning", "summarization"], "runs": [5, 5, 5, 5, 5, 5, 5, 5], "decode": [129.1022094889762, 128.20586903450126, 128.27160738301583, 128.7563251894094, 128.43350162812965, 128.3603652298855, 128.260559074168, 128.78242044790713], "decodeIqr": [0.9622115679498222, 0.27767102012848, 0.5303135223506672, 0.18086854072424785, 0.1302792179498624, 0.6889946257768429, 0.17555216564028342, 0.7370915278986558], "cv": [0.5486138592553561, 0.28243353919962855, 0.2705437309818874, 0.1809890685367367, 0.5015605785857459, 0.4923685049374124, 0.5113383522634769, 0.5999805074557256], "itlLow": [89.68902689812728, 97.29522795106024, 107.1639559004361, 110.80638232744374, 110.58896372024117, 114.41943924383007, null, 98.34935783233226], "itlMed": [128.75623793966716, 128.19273624690445, 128.33948984907119, 128.57479712418947, 128.19142161756133, 127.99811580570561, null, 128.5581854111411], "itlHigh": [153.06707225690204, 139.54087752642363, 143.73629532176653, 142.1806915943158, 141.3116808750854, 139.84270315385325, null, 142.84997747971164], "batched": true, "updP50": [7.7666139986831695, 7.800753999617882, 7.791833995725028, 7.777574006468058, 7.80083399877185, 7.81261500378605, 7.800839499395806, 7.778578998113517], "updP99": [9.198224745632569, 8.658754332573153, 8.499166404362768, 8.62729036656674, 8.635548493039094, 8.548644593975041, 8.582369999785442, 8.86844227163237], "tokPerUpd": [1.0, 1.0027662517289073, 1.0, 1.0, 1.0004133939644482, 1.0, 1.0010921004732436, 1.001001001001001], "ttft50": [65.56155199359637, 63.3239210001193, 64.42116099060513, 65.95237800502218, 64.22961800126359, 64.3917099951068, 63.123996995273046, 65.14582499221433], "combined": 128.38677887117052, "conc": {"levels": [], "agg": [], "t50": [], "t99": [], "per": [], "ok": [], "req": []}, "pre": {"depths": [2000, 8000, 16000, 32000], "tok": [1514.5, 5942.5, 11826.5, 23483.0], "low": [14967.264327369743, 17542.504602850448, 17890.486533017476, 16529.964484651147], "med": [15216.696838477137, 18373.994732786254, 18039.463362339164, 16668.651884913594], "high": [15620.857721748442, 18928.675799767832, 18178.394562377693, 16916.875352379036], "t50": [99.58000150072621, 323.31633850117214, 654.478692500561, 1410.7479969970882]}};
|
||||
const NS = "http://www.w3.org/2000/svg";
|
||||
const el = (n, a) => { const e = document.createElementNS(NS, n);
|
||||
for (const k in a) e.setAttribute(k, a[k]); return e; };
|
||||
const fmt = (v, d) => (v === null || v === undefined) ? "—"
|
||||
: v.toLocaleString("en-US", { minimumFractionDigits: d, maximumFractionDigits: d });
|
||||
const has = v => v !== null && v !== undefined;
|
||||
const maxOf = arrs => Math.max(...arrs.flat().filter(has));
|
||||
const niceTop = v => { if (!(v > 0)) return 1;
|
||||
const p = Math.pow(10, Math.floor(Math.log10(v)) - 1);
|
||||
return Math.ceil(v / (2 * p)) * 2 * p; };
|
||||
const box = id => document.getElementById(id);
|
||||
|
||||
function mkTip(b) { const t = document.createElement("div"); t.className = "tip";
|
||||
b.appendChild(t); return t; }
|
||||
function showTip(tip, b, x, y, html) {
|
||||
tip.innerHTML = html; tip.style.opacity = "1";
|
||||
let left = x + 14;
|
||||
if (left + tip.offsetWidth > b.clientWidth) left = x - tip.offsetWidth - 14;
|
||||
tip.style.left = Math.max(0, left) + "px";
|
||||
tip.style.top = Math.max(0, y - tip.offsetHeight - 10) + "px";
|
||||
}
|
||||
const row = (color, name, val) =>
|
||||
`<div class="row"><span class="nm">${color
|
||||
? `<span class="swatch" style="background:${color}"></span>` : ""}${name}</span><b>${val}</b></div>`;
|
||||
|
||||
function frame(svg, M, iw, ih, yMin, yMax, yTitle, ticks) {
|
||||
for (let k = 0; k <= (ticks || 4); k++) {
|
||||
const v = yMin + ((yMax - yMin) * k) / (ticks || 4);
|
||||
const y = M.t + ih - (ih * (v - yMin)) / (yMax - yMin);
|
||||
svg.appendChild(el("line", { x1: M.l, x2: M.l + iw, y1: y, y2: y, class: "gridline" }));
|
||||
const tx = el("text", { x: M.l - 10, y: y + 3.5, class: "tick", "text-anchor": "end" });
|
||||
tx.textContent = fmt(v, v < 10 ? 1 : 0); svg.appendChild(tx);
|
||||
}
|
||||
svg.appendChild(el("line", { x1: M.l, x2: M.l + iw, y1: M.t + ih, y2: M.t + ih, class: "baseline" }));
|
||||
const ay = el("text", { x: M.l, y: M.t - 7, class: "axtitle" });
|
||||
ay.textContent = yTitle; svg.appendChild(ay);
|
||||
}
|
||||
function xLabels(svg, labels, X, y) {
|
||||
labels.forEach((lab, i) => {
|
||||
const t = el("text", { x: X(i), y: y, class: "tick", "text-anchor": "middle" });
|
||||
t.textContent = lab; svg.appendChild(t);
|
||||
});
|
||||
}
|
||||
|
||||
/* --- grouped / single bars, zero-based --- */
|
||||
function bars(id, o) {
|
||||
const b = box(id); if (!b) return;
|
||||
const W = 900, H = o.height || 340, M = { t: 20, r: 16, b: 50, l: 64 };
|
||||
const iw = W - M.l - M.r, ih = H - M.t - M.b;
|
||||
const svg = el("svg", { viewBox: `0 0 ${W} ${H}`, role: "img", "aria-label": o.aria });
|
||||
const n = o.x.length, yMax = o.yMax;
|
||||
const Y = v => M.t + ih - (ih * v) / yMax;
|
||||
frame(svg, M, iw, ih, 0, yMax, o.yTitle);
|
||||
const band = iw / n, ns = o.series.length, GAP = 2;
|
||||
const bw = Math.min(40, (band - 24 - GAP * (ns - 1)) / ns);
|
||||
xLabels(svg, o.x, i => M.l + band * i + band / 2, M.t + ih + 20);
|
||||
if (has(o.ref)) {
|
||||
const y = Y(o.ref);
|
||||
svg.appendChild(el("line", { x1: M.l, x2: M.l + iw, y1: y, y2: y, class: "refline" }));
|
||||
const t = el("text", { x: M.l + iw, y: y - 6, class: "tick", "text-anchor": "end" });
|
||||
t.textContent = o.refLabel; svg.appendChild(t);
|
||||
}
|
||||
const tip = mkTip(b);
|
||||
o.x.forEach((lab, i) => {
|
||||
const cx = M.l + band * i + band / 2;
|
||||
const start = cx - (ns * bw + (ns - 1) * GAP) / 2;
|
||||
o.series.forEach((s, si) => {
|
||||
const v = s.v[i]; if (!has(v)) return;
|
||||
const x = start + si * (bw + GAP);
|
||||
const r = el("rect", { x: x, y: Y(v), width: bw, height: Math.max(2, ih - (Y(v) - M.t)),
|
||||
rx: 4, ry: 4, fill: s.color });
|
||||
r.style.cursor = "crosshair";
|
||||
const html = `<div class="th">${lab}</div>` +
|
||||
o.series.map(q => row(ns > 1 ? q.color : null, q.name, o.tipVal(q.v[i]))).join("") +
|
||||
(o.extra ? o.extra(i) : "");
|
||||
r.addEventListener("pointerenter", () => {
|
||||
const rc = svg.getBoundingClientRect();
|
||||
showTip(tip, b, ((x + bw / 2) / W) * rc.width, (Y(v) / H) * rc.height, html);
|
||||
});
|
||||
r.addEventListener("pointerleave", () => { tip.style.opacity = "0"; });
|
||||
svg.appendChild(r);
|
||||
});
|
||||
});
|
||||
b.appendChild(svg);
|
||||
}
|
||||
|
||||
/* --- floating range bars with a median tick --- */
|
||||
function rangeBars(id, o) {
|
||||
const b = box(id); if (!b) return;
|
||||
const W = 900, H = 340, M = { t: 20, r: 16, b: 50, l: 64 };
|
||||
const iw = W - M.l - M.r, ih = H - M.t - M.b;
|
||||
const svg = el("svg", { viewBox: `0 0 ${W} ${H}`, role: "img", "aria-label": o.aria });
|
||||
const n = o.x.length, yMax = o.yMax;
|
||||
const Y = v => M.t + ih - (ih * v) / yMax;
|
||||
frame(svg, M, iw, ih, 0, yMax, o.yTitle);
|
||||
const band = iw / n, bw = Math.min(34, band - 26);
|
||||
xLabels(svg, o.x, i => M.l + band * i + band / 2, M.t + ih + 20);
|
||||
const tip = mkTip(b);
|
||||
o.x.forEach((lab, i) => {
|
||||
const lo = o.low[i], hi = o.high[i], md = o.med[i];
|
||||
if (!has(lo) || !has(hi)) return;
|
||||
const cx = M.l + band * i + band / 2, x = cx - bw / 2;
|
||||
const r = el("rect", { x: x, y: Y(hi), width: bw, height: Math.max(3, Y(lo) - Y(hi)),
|
||||
rx: 4, ry: 4, fill: "var(--s1-mid)" });
|
||||
r.style.cursor = "crosshair";
|
||||
svg.appendChild(r);
|
||||
if (has(md)) svg.appendChild(el("line", { x1: x, x2: x + bw, y1: Y(md), y2: Y(md),
|
||||
stroke: "var(--ink)", "stroke-width": 2 }));
|
||||
const html = `<div class="th">${lab}</div>` +
|
||||
row(null, "99% high", o.tipVal(hi)) + row(null, "median", o.tipVal(md)) +
|
||||
row(null, "1% low", o.tipVal(lo)) + (o.extra ? o.extra(i) : "");
|
||||
r.addEventListener("pointerenter", () => {
|
||||
const rc = svg.getBoundingClientRect();
|
||||
showTip(tip, b, (cx / W) * rc.width, (Y(hi) / H) * rc.height, html);
|
||||
});
|
||||
r.addEventListener("pointerleave", () => { tip.style.opacity = "0"; });
|
||||
});
|
||||
b.appendChild(svg);
|
||||
}
|
||||
|
||||
/* --- line chart with optional band --- */
|
||||
function line(id, o) {
|
||||
const b = box(id); if (!b) return;
|
||||
const W = 900, H = 320, M = { t: 20, r: 24, b: 52, l: 64 };
|
||||
const iw = W - M.l - M.r, ih = H - M.t - M.b;
|
||||
const svg = el("svg", { viewBox: `0 0 ${W} ${H}`, role: "img", "aria-label": o.aria });
|
||||
const n = o.x.length, yMin = o.yMin, yMax = o.yMax;
|
||||
const X = i => M.l + (n === 1 ? iw / 2 : (iw * i) / (n - 1));
|
||||
const Y = v => M.t + ih - (ih * (v - yMin)) / (yMax - yMin);
|
||||
frame(svg, M, iw, ih, yMin, yMax, o.yTitle);
|
||||
xLabels(svg, o.x, X, M.t + ih + 20);
|
||||
if (o.xTitle) {
|
||||
const t = el("text", { x: M.l, y: H - 8, class: "axtitle" });
|
||||
t.textContent = o.xTitle; svg.appendChild(t);
|
||||
}
|
||||
if (o.band && o.band.low.every(has) && o.band.high.every(has)) {
|
||||
const up = o.band.high.map((v, i) => (i ? "L" : "M") + X(i) + " " + Y(v)).join(" ");
|
||||
const dn = o.band.low.map((v, i) => "L" + X(n - 1 - i) + " " + Y(o.band.low[n - 1 - i])).join(" ");
|
||||
svg.appendChild(el("path", { d: up + " " + dn + " Z", fill: "var(--s1-soft)", stroke: "none" }));
|
||||
}
|
||||
svg.appendChild(el("path", {
|
||||
d: o.v.map((v, i) => (i ? "L" : "M") + X(i) + " " + Y(v)).join(" "),
|
||||
fill: "none", stroke: "var(--s1)", "stroke-width": 2,
|
||||
"stroke-linejoin": "round", "stroke-linecap": "round" }));
|
||||
o.v.forEach((v, i) => svg.appendChild(el("circle", {
|
||||
cx: X(i), cy: Y(v), r: 5, fill: "var(--s1)", stroke: "var(--surface)", "stroke-width": 2 })));
|
||||
const cross = el("line", { class: "cross", y1: M.t, y2: M.t + ih, opacity: 0 });
|
||||
svg.appendChild(cross);
|
||||
const hit = el("rect", { x: M.l, y: M.t, width: iw, height: ih, fill: "transparent" });
|
||||
svg.appendChild(hit);
|
||||
b.appendChild(svg);
|
||||
const tip = mkTip(b);
|
||||
hit.addEventListener("pointermove", ev => {
|
||||
const rc = svg.getBoundingClientRect();
|
||||
const px = ((ev.clientX - rc.left) / rc.width) * W;
|
||||
let i = 0, best = Infinity;
|
||||
for (let k = 0; k < n; k++) { const d = Math.abs(X(k) - px); if (d < best) { best = d; i = k; } }
|
||||
cross.setAttribute("x1", X(i)); cross.setAttribute("x2", X(i)); cross.setAttribute("opacity", 1);
|
||||
showTip(tip, b, (X(i) / W) * rc.width, (Y(o.v[i]) / H) * rc.height,
|
||||
`<div class="th">${o.tipHead(i)}</div>` + o.tipBody(i));
|
||||
});
|
||||
hit.addEventListener("pointerleave", () => { tip.style.opacity = "0"; cross.setAttribute("opacity", 0); });
|
||||
}
|
||||
|
||||
/* ------------------------------ build ------------------------------ */
|
||||
if (D.cats.length) {
|
||||
bars("cb-decode", {
|
||||
aria: "Median decode throughput per category.",
|
||||
x: D.cats, yTitle: "DECODE T/S (MEDIAN)",
|
||||
yMax: niceTop(maxOf([D.decode])), height: 350,
|
||||
ref: D.combined, refLabel: "combined " + fmt(D.combined, 1),
|
||||
series: [{ name: "decode t/s", color: "var(--s1)", v: D.decode }],
|
||||
tipVal: v => fmt(v, 1) + " t/s",
|
||||
extra: i => row(null, "±IQR", fmt(D.decodeIqr[i], 1)) +
|
||||
row(null, "CV", fmt(D.cv[i], 1) + "%") +
|
||||
row(null, "passes", D.runs[i])
|
||||
});
|
||||
if (D.batched) {
|
||||
/* Grouped bars, not a floating range bar: p50 and p99 can differ by two
|
||||
orders of magnitude (a 17 ms rhythm against a 1.3 s stall), and a bar
|
||||
floating between them collapses the p50 end onto the axis. */
|
||||
bars("cb-itl", {
|
||||
aria: "Stream-update gap p50 and p99 by category.",
|
||||
x: D.cats, yTitle: "UPDATE GAP (MS)",
|
||||
yMax: niceTop(maxOf([D.updP99, D.updP50])), height: 320,
|
||||
series: [{ name: "p50", color: "var(--s1)", v: D.updP50 },
|
||||
{ name: "p99", color: "var(--s2)", v: D.updP99 }],
|
||||
tipVal: v => fmt(v, 1) + " ms",
|
||||
extra: i => row(null, "tok/update", fmt(D.tokPerUpd[i], 2)) +
|
||||
row(null, "passes", D.runs[i])
|
||||
});
|
||||
} else {
|
||||
rangeBars("cb-itl", {
|
||||
aria: "Inter-token latency range per category, 1% low to 99% high.",
|
||||
x: D.cats, yTitle: "INSTANTANEOUS T/S",
|
||||
yMax: niceTop(maxOf([D.itlHigh])),
|
||||
low: D.itlLow, med: D.itlMed, high: D.itlHigh,
|
||||
tipVal: v => fmt(v, 1) + " t/s",
|
||||
extra: i => row(null, "spread", has(D.itlHigh[i]) && has(D.itlLow[i])
|
||||
? fmt(D.itlHigh[i] - D.itlLow[i], 1) + " t/s" : "—")
|
||||
});
|
||||
}
|
||||
}
|
||||
if (D.conc.levels.length > 1) {
|
||||
line("cb-conc", {
|
||||
aria: "Aggregate throughput as concurrency rises.",
|
||||
x: D.conc.levels.map(String), xTitle: "CONCURRENCY LEVEL",
|
||||
yTitle: "AGGREGATE T/S", yMin: 0, yMax: niceTop(maxOf([D.conc.agg])),
|
||||
v: D.conc.agg,
|
||||
tipHead: i => "concurrency " + D.conc.levels[i] + " · " + D.conc.ok[i] + "/" + D.conc.req[i] + " ok",
|
||||
tipBody: i => row(null, "aggregate", fmt(D.conc.agg[i], 1) + " t/s") +
|
||||
row(null, "per-req", fmt(D.conc.per[i], 1) + " t/s") +
|
||||
row(null, "TTFT p50", fmt(D.conc.t50[i], 1) + " ms")
|
||||
});
|
||||
bars("cb-ttft", {
|
||||
aria: "TTFT p50 and p99 by concurrency level.",
|
||||
x: D.conc.levels.map(String), yTitle: "TTFT (MS)",
|
||||
yMax: niceTop(maxOf([D.conc.t99, D.conc.t50])), height: 300,
|
||||
series: [{ name: "p50", color: "var(--s1)", v: D.conc.t50 },
|
||||
{ name: "p99", color: "var(--s2)", v: D.conc.t99 }],
|
||||
tipVal: v => fmt(v, 1) + " ms",
|
||||
extra: i => row(null, "requests", D.conc.ok[i] + "/" + D.conc.req[i])
|
||||
});
|
||||
}
|
||||
if (D.pre.depths.length > 1) {
|
||||
const lo = Math.min(...D.pre.low.filter(has).concat(D.pre.med.filter(has)));
|
||||
const hi = Math.max(...D.pre.high.filter(has).concat(D.pre.med.filter(has)));
|
||||
const pad = (hi - lo) * 0.25 || hi * 0.1;
|
||||
line("cb-prefill", {
|
||||
aria: "Prefill throughput by input depth.",
|
||||
x: D.pre.depths.map(d => d >= 1000 ? (d / 1000) + "k" : String(d)),
|
||||
xTitle: "TARGET INPUT DEPTH (TOKENS)", yTitle: "PP T/S (MEDIAN)",
|
||||
yMin: Math.max(0, lo - pad), yMax: hi + pad,
|
||||
v: D.pre.med, band: { low: D.pre.low, high: D.pre.high },
|
||||
tipHead: i => D.pre.depths[i].toLocaleString() + " target · "
|
||||
+ fmt(D.pre.tok[i], 0) + " actual tok",
|
||||
tipBody: i => row(null, "99% high", fmt(D.pre.high[i], 1)) +
|
||||
row(null, "median", fmt(D.pre.med[i], 1)) +
|
||||
row(null, "1% low", fmt(D.pre.low[i], 1)) +
|
||||
row(null, "TTFT p50", fmt(D.pre.t50[i], 0) + " ms")
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,242 @@
|
||||
{
|
||||
"vllm_dtype": "bfloat16",
|
||||
"hf": {
|
||||
"float32": {
|
||||
"raw_short": {
|
||||
"positions": 68,
|
||||
"max_abs_logprob_diff_top5": 0.1926,
|
||||
"mean_abs_logprob_diff_top1": 0.00684,
|
||||
"top1_disagreement_margins": [],
|
||||
"max_diff_pos<=256": 0.1926,
|
||||
"max_diff_pos>256": 0.0,
|
||||
"top1_agreement": "68/68",
|
||||
"top5_overlap": 0.9765,
|
||||
"final_prompt_pos_diff": 0.118,
|
||||
"teacher_forced_greedy_mismatches": [],
|
||||
"hf_greedy_identical_prefix": "64/64"
|
||||
},
|
||||
"raw_code": {
|
||||
"positions": 76,
|
||||
"max_abs_logprob_diff_top5": 0.7259,
|
||||
"mean_abs_logprob_diff_top1": 0.01002,
|
||||
"top1_disagreement_margins": [
|
||||
0.017
|
||||
],
|
||||
"max_diff_pos<=256": 0.7259,
|
||||
"max_diff_pos>256": 0.0,
|
||||
"top1_agreement": "75/76",
|
||||
"top5_overlap": 0.9684,
|
||||
"final_prompt_pos_diff": 0.2729,
|
||||
"teacher_forced_greedy_mismatches": [
|
||||
[
|
||||
50,
|
||||
65296,
|
||||
71,
|
||||
0.0173
|
||||
]
|
||||
],
|
||||
"hf_greedy_identical_prefix": "50/64"
|
||||
},
|
||||
"chat_short": {
|
||||
"positions": 85,
|
||||
"max_abs_logprob_diff_top5": 0.3189,
|
||||
"mean_abs_logprob_diff_top1": 0.01081,
|
||||
"top1_disagreement_margins": [],
|
||||
"max_diff_pos<=256": 0.3189,
|
||||
"max_diff_pos>256": 0.0,
|
||||
"top1_agreement": "85/85",
|
||||
"top5_overlap": 0.9882,
|
||||
"final_prompt_pos_diff": 0.0791,
|
||||
"teacher_forced_greedy_mismatches": [],
|
||||
"hf_greedy_identical_prefix": "64/64"
|
||||
},
|
||||
"chat_long_600": {
|
||||
"positions": 653,
|
||||
"max_abs_logprob_diff_top5": 1.125,
|
||||
"mean_abs_logprob_diff_top1": 0.01713,
|
||||
"top1_disagreement_margins": [
|
||||
0.028,
|
||||
0.089,
|
||||
0.03,
|
||||
0.024,
|
||||
0.063,
|
||||
0.027,
|
||||
0.001,
|
||||
0.234
|
||||
],
|
||||
"max_diff_pos<=256": 0.4101,
|
||||
"max_diff_pos>256": 1.125,
|
||||
"top1_agreement": "645/653",
|
||||
"top5_overlap": 0.9783,
|
||||
"final_prompt_pos_diff": 0.1523,
|
||||
"teacher_forced_greedy_mismatches": [],
|
||||
"hf_greedy_identical_prefix": "64/64"
|
||||
},
|
||||
"raw_long_1500": {
|
||||
"positions": 1486,
|
||||
"max_abs_logprob_diff_top5": 0.3912,
|
||||
"mean_abs_logprob_diff_top1": 0.00403,
|
||||
"top1_disagreement_margins": [
|
||||
0.004,
|
||||
0.094,
|
||||
0.048,
|
||||
0.093,
|
||||
0.051,
|
||||
0.018,
|
||||
0.004,
|
||||
0.061,
|
||||
0.034,
|
||||
0.114,
|
||||
0.014
|
||||
],
|
||||
"max_diff_pos<=256": 0.314,
|
||||
"max_diff_pos>256": 0.3912,
|
||||
"top1_agreement": "1475/1486",
|
||||
"top5_overlap": 0.9786,
|
||||
"final_prompt_pos_diff": 0.0508,
|
||||
"teacher_forced_greedy_mismatches": [
|
||||
[
|
||||
28,
|
||||
5344,
|
||||
35197,
|
||||
0.0141
|
||||
]
|
||||
],
|
||||
"hf_greedy_identical_prefix": "28/64"
|
||||
}
|
||||
},
|
||||
"bfloat16": {
|
||||
"raw_short": {
|
||||
"noise_vs_hf_fp32_max_top5": 0.2851,
|
||||
"noise_vs_hf_fp32_mean_top1": 0.00859,
|
||||
"noise_vs_hf_fp32_top1_agree": "67/68",
|
||||
"positions": 68,
|
||||
"max_abs_logprob_diff_top5": 0.3124,
|
||||
"mean_abs_logprob_diff_top1": 0.00759,
|
||||
"top1_disagreement_margins": [],
|
||||
"max_diff_pos<=256": 0.3124,
|
||||
"max_diff_pos>256": 0.0,
|
||||
"top1_agreement": "68/68",
|
||||
"top5_overlap": 0.9647,
|
||||
"final_prompt_pos_diff": 0.1149,
|
||||
"teacher_forced_greedy_mismatches": [
|
||||
[
|
||||
39,
|
||||
10749,
|
||||
278,
|
||||
0.0
|
||||
]
|
||||
],
|
||||
"hf_greedy_identical_prefix": "47/64"
|
||||
},
|
||||
"raw_code": {
|
||||
"noise_vs_hf_fp32_max_top5": 0.4804,
|
||||
"noise_vs_hf_fp32_mean_top1": 0.00731,
|
||||
"noise_vs_hf_fp32_top1_agree": "75/76",
|
||||
"positions": 76,
|
||||
"max_abs_logprob_diff_top5": 0.6877,
|
||||
"mean_abs_logprob_diff_top1": 0.00953,
|
||||
"top1_disagreement_margins": [
|
||||
0.0,
|
||||
0.125
|
||||
],
|
||||
"max_diff_pos<=256": 0.6877,
|
||||
"max_diff_pos>256": 0.0,
|
||||
"top1_agreement": "74/76",
|
||||
"top5_overlap": 0.9737,
|
||||
"final_prompt_pos_diff": 0.1249,
|
||||
"teacher_forced_greedy_mismatches": [
|
||||
[
|
||||
50,
|
||||
65296,
|
||||
71,
|
||||
0.125
|
||||
]
|
||||
],
|
||||
"hf_greedy_identical_prefix": "50/64"
|
||||
},
|
||||
"chat_short": {
|
||||
"noise_vs_hf_fp32_max_top5": 0.3472,
|
||||
"noise_vs_hf_fp32_mean_top1": 0.01408,
|
||||
"noise_vs_hf_fp32_top1_agree": "85/85",
|
||||
"positions": 85,
|
||||
"max_abs_logprob_diff_top5": 0.408,
|
||||
"mean_abs_logprob_diff_top1": 0.01487,
|
||||
"top1_disagreement_margins": [
|
||||
0.0
|
||||
],
|
||||
"max_diff_pos<=256": 0.408,
|
||||
"max_diff_pos>256": 0.0,
|
||||
"top1_agreement": "84/85",
|
||||
"top5_overlap": 0.9812,
|
||||
"final_prompt_pos_diff": 0.125,
|
||||
"teacher_forced_greedy_mismatches": [],
|
||||
"hf_greedy_identical_prefix": "49/64"
|
||||
},
|
||||
"chat_long_600": {
|
||||
"noise_vs_hf_fp32_max_top5": 2.6357,
|
||||
"noise_vs_hf_fp32_mean_top1": 0.02041,
|
||||
"noise_vs_hf_fp32_top1_agree": "644/653",
|
||||
"positions": 653,
|
||||
"max_abs_logprob_diff_top5": 2.8686,
|
||||
"mean_abs_logprob_diff_top1": 0.02527,
|
||||
"top1_disagreement_margins": [
|
||||
0.0,
|
||||
0.125,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.125,
|
||||
0.0,
|
||||
0.0,
|
||||
0.125,
|
||||
0.0,
|
||||
0.125,
|
||||
0.0
|
||||
],
|
||||
"max_diff_pos<=256": 0.484,
|
||||
"max_diff_pos>256": 2.8686,
|
||||
"top1_agreement": "640/653",
|
||||
"top5_overlap": 0.9709,
|
||||
"final_prompt_pos_diff": 0.1975,
|
||||
"teacher_forced_greedy_mismatches": [],
|
||||
"hf_greedy_identical_prefix": "64/64"
|
||||
},
|
||||
"raw_long_1500": {
|
||||
"noise_vs_hf_fp32_max_top5": 0.4448,
|
||||
"noise_vs_hf_fp32_mean_top1": 0.00415,
|
||||
"noise_vs_hf_fp32_top1_agree": "1478/1486",
|
||||
"positions": 1486,
|
||||
"max_abs_logprob_diff_top5": 0.5,
|
||||
"mean_abs_logprob_diff_top1": 0.00469,
|
||||
"top1_disagreement_margins": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.125,
|
||||
0.125,
|
||||
0.125,
|
||||
0.0,
|
||||
0.125,
|
||||
0.125,
|
||||
0.0,
|
||||
0.125
|
||||
],
|
||||
"max_diff_pos<=256": 0.4116,
|
||||
"max_diff_pos>256": 0.5,
|
||||
"top1_agreement": "1476/1486",
|
||||
"top5_overlap": 0.9717,
|
||||
"final_prompt_pos_diff": 0.1242,
|
||||
"teacher_forced_greedy_mismatches": [
|
||||
[
|
||||
28,
|
||||
5344,
|
||||
35197,
|
||||
0.125
|
||||
]
|
||||
],
|
||||
"hf_greedy_identical_prefix": "64/64"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"vllm_dtype": "float32",
|
||||
"hf": {
|
||||
"float32": {
|
||||
"raw_short": {
|
||||
"positions": 68,
|
||||
"max_abs_logprob_diff_top5": 0.0046,
|
||||
"mean_abs_logprob_diff_top1": 0.00013,
|
||||
"top1_disagreement_margins": [],
|
||||
"max_diff_pos<=256": 0.0046,
|
||||
"max_diff_pos>256": 0.0,
|
||||
"top1_agreement": "68/68",
|
||||
"top5_overlap": 1.0,
|
||||
"final_prompt_pos_diff": 0.0032,
|
||||
"teacher_forced_greedy_mismatches": [],
|
||||
"hf_greedy_identical_prefix": "64/64"
|
||||
},
|
||||
"raw_code": {
|
||||
"positions": 76,
|
||||
"max_abs_logprob_diff_top5": 0.0085,
|
||||
"mean_abs_logprob_diff_top1": 0.00014,
|
||||
"top1_disagreement_margins": [],
|
||||
"max_diff_pos<=256": 0.0085,
|
||||
"max_diff_pos>256": 0.0,
|
||||
"top1_agreement": "76/76",
|
||||
"top5_overlap": 0.9974,
|
||||
"final_prompt_pos_diff": 0.0011,
|
||||
"teacher_forced_greedy_mismatches": [],
|
||||
"hf_greedy_identical_prefix": "64/64"
|
||||
},
|
||||
"chat_short": {
|
||||
"positions": 85,
|
||||
"max_abs_logprob_diff_top5": 0.0128,
|
||||
"mean_abs_logprob_diff_top1": 0.00032,
|
||||
"top1_disagreement_margins": [],
|
||||
"max_diff_pos<=256": 0.0128,
|
||||
"max_diff_pos>256": 0.0,
|
||||
"top1_agreement": "85/85",
|
||||
"top5_overlap": 1.0,
|
||||
"final_prompt_pos_diff": 0.0024,
|
||||
"teacher_forced_greedy_mismatches": [],
|
||||
"hf_greedy_identical_prefix": "64/64"
|
||||
},
|
||||
"chat_long_600": {
|
||||
"positions": 653,
|
||||
"max_abs_logprob_diff_top5": 0.0572,
|
||||
"mean_abs_logprob_diff_top1": 0.00045,
|
||||
"top1_disagreement_margins": [
|
||||
0.002
|
||||
],
|
||||
"max_diff_pos<=256": 0.0211,
|
||||
"max_diff_pos>256": 0.0572,
|
||||
"top1_agreement": "652/653",
|
||||
"top5_overlap": 0.9994,
|
||||
"final_prompt_pos_diff": 0.002,
|
||||
"teacher_forced_greedy_mismatches": [],
|
||||
"hf_greedy_identical_prefix": "64/64"
|
||||
},
|
||||
"raw_long_1500": {
|
||||
"positions": 1486,
|
||||
"max_abs_logprob_diff_top5": 0.0137,
|
||||
"mean_abs_logprob_diff_top1": 9e-05,
|
||||
"top1_disagreement_margins": [],
|
||||
"max_diff_pos<=256": 0.0122,
|
||||
"max_diff_pos>256": 0.0137,
|
||||
"top1_agreement": "1486/1486",
|
||||
"top5_overlap": 0.9996,
|
||||
"final_prompt_pos_diff": 0.0025,
|
||||
"teacher_forced_greedy_mismatches": [],
|
||||
"hf_greedy_identical_prefix": "64/64"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"vllm_dtype": "float32",
|
||||
"hf": {
|
||||
"float32": {
|
||||
"raw_short": {
|
||||
"positions": 68,
|
||||
"max_abs_logprob_diff_top5": 0.0038,
|
||||
"mean_abs_logprob_diff_top1": 0.00014,
|
||||
"top1_disagreement_margins": [],
|
||||
"max_diff_pos<=256": 0.0038,
|
||||
"max_diff_pos>256": 0.0,
|
||||
"top1_agreement": "68/68",
|
||||
"top5_overlap": 1.0,
|
||||
"final_prompt_pos_diff": 0.0038,
|
||||
"teacher_forced_greedy_mismatches": [],
|
||||
"hf_greedy_identical_prefix": "64/64"
|
||||
},
|
||||
"raw_code": {
|
||||
"positions": 76,
|
||||
"max_abs_logprob_diff_top5": 0.0079,
|
||||
"mean_abs_logprob_diff_top1": 0.0001,
|
||||
"top1_disagreement_margins": [],
|
||||
"max_diff_pos<=256": 0.0079,
|
||||
"max_diff_pos>256": 0.0,
|
||||
"top1_agreement": "76/76",
|
||||
"top5_overlap": 1.0,
|
||||
"final_prompt_pos_diff": 0.001,
|
||||
"teacher_forced_greedy_mismatches": [],
|
||||
"hf_greedy_identical_prefix": "64/64"
|
||||
},
|
||||
"chat_short": {
|
||||
"positions": 85,
|
||||
"max_abs_logprob_diff_top5": 0.0104,
|
||||
"mean_abs_logprob_diff_top1": 0.00031,
|
||||
"top1_disagreement_margins": [],
|
||||
"max_diff_pos<=256": 0.0104,
|
||||
"max_diff_pos>256": 0.0,
|
||||
"top1_agreement": "85/85",
|
||||
"top5_overlap": 1.0,
|
||||
"final_prompt_pos_diff": 0.0037,
|
||||
"teacher_forced_greedy_mismatches": [],
|
||||
"hf_greedy_identical_prefix": "64/64"
|
||||
},
|
||||
"chat_long_600": {
|
||||
"positions": 653,
|
||||
"max_abs_logprob_diff_top5": 0.0693,
|
||||
"mean_abs_logprob_diff_top1": 0.00046,
|
||||
"top1_disagreement_margins": [],
|
||||
"max_diff_pos<=256": 0.0154,
|
||||
"max_diff_pos>256": 0.0693,
|
||||
"top1_agreement": "653/653",
|
||||
"top5_overlap": 0.9994,
|
||||
"final_prompt_pos_diff": 0.0025,
|
||||
"teacher_forced_greedy_mismatches": [],
|
||||
"hf_greedy_identical_prefix": "64/64"
|
||||
},
|
||||
"raw_long_1500": {
|
||||
"positions": 1486,
|
||||
"max_abs_logprob_diff_top5": 0.0124,
|
||||
"mean_abs_logprob_diff_top1": 8e-05,
|
||||
"top1_disagreement_margins": [],
|
||||
"max_diff_pos<=256": 0.0123,
|
||||
"max_diff_pos>256": 0.0124,
|
||||
"top1_agreement": "1486/1486",
|
||||
"top5_overlap": 0.9997,
|
||||
"final_prompt_pos_diff": 0.0022,
|
||||
"teacher_forced_greedy_mismatches": [],
|
||||
"hf_greedy_identical_prefix": "64/64"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user