lfm3: online FP8 (W8A16) support, graph-mode and FP8 benchmarks

- load_weights: run the strict missing-parameter check only for unquantized
  models; vLLM's loader checks quantized ones and knows the params a
  checkpoint cannot carry (online-FP8 weight_scale). BF16 output unchanged.
- tests: variant launcher, greedy and quality comparisons, BetterBench
  table + ITL 1% low recompute, Discord notify helper.
- NOTES: round 2 (eager vs default vs FULL_DECODE_ONLY, default kept) and
  round 3 (FP8 W8A16: +49% decode, +35% @8, answers unchanged); llama-swap
  snippet now FP8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-10-29 07:43:09 +01:00
1 parent 4e7a7ce903
commit 3b85c03761
29 files changed
+87117 -18

No files matched your search

+2
View File
@@ -3,3 +3,5 @@ __pycache__/
.venv*/
logs/
.betterbench/
.cache/
.discord_webhook
+180 -16
View File
@@ -273,26 +273,41 @@ docker run -d --rm --name lfm3-serve \
Startup ~145 s with graphs (compile cache lives inside the container and is lost with --rm; mounting
a host dir at /root/.cache/vllm would make restarts faster). No --trust-remote-code needed.
llama-swap model entry (snippet only — the real config was not touched):
llama-swap model entry — as live in /etc/llama-swap/config.yaml. Since 2026-10-29: W8A16 (online FP8
weights, round 3, +49% decode) on the `:v0.32.0-lfm3-fp8fix` image, with the vLLM default compile +
FULL_AND_PIECEWISE graphs confirmed in round 2. Previous BF16 entry: same without `--quantization=fp8`, image `:v0.32.0-lfm3`.
```yaml
models:
"lfm3-1.7b":
# ---------- vLLM 0.32 + lfm3 plugin – LFM3-1.7B (W8A16: online FP8 weights) ----------
vllm/lfm3-1.7b:
useModelName: lfm3-1.7b
aliases:
- lfm3-1.7b
cmdStop: docker stop -t 30 vllm-lfm3
cmd: >
docker run --rm --name lfm3-swap
--device /dev/dri -v /dev/dri/by-path:/dev/dri/by-path --ipc=host --shm-size=16g
docker run --rm --name vllm-lfm3
--device /dev/dri --group-add 991
--ipc=host --shm-size=16g
-p 127.0.0.1:${PORT}:8000
-v /models/LFM3-1.7B:/models/LFM3-1.7B:ro
lfm3-vllm-xpu
/models/LFM3-1.7B --served-model-name lfm3-1.7b --dtype bfloat16
--max-model-len 32768 --gpu-memory-utilization 0.5
--reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_coder
--host 0.0.0.0 --port 8000
cmdStop: docker stop lfm3-swap
proxy: http://127.0.0.1:${PORT}
checkEndpoint: /v1/models
# graph capture + torch.compile: allow a slow first start
healthCheckTimeout: 300
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /models/LFM3-1.7B:/model:ro
-v /srv/llm/runtimes/vllm-xpu/lfm3-v032/.cache/vllm-lfm3:/root/.cache/vllm
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
lfm3-vllm-xpu:v0.32.0-lfm3-fp8fix
/model
--host=0.0.0.0
--port=8000
--served-model-name=lfm3-1.7b
--gpu-memory-utilization=0.5
--dtype=bfloat16
--quantization=fp8
--max-model-len=32768
--enable-auto-tool-choice
--tool-call-parser=qwen3_coder
--reasoning-parser=qwen3
```
(The global `healthCheckTimeout: 1800` covers the ~140 s cold start; warm start with the cache mount ~80 s.)
Defaults applied by the server from generation_config.json: temperature 0.1, top_k 50,
repetition_penalty 1.1 (Liquid's recommendation) — clients don't need to send them.
@@ -323,3 +338,152 @@ Report: results/betterbench/compiled.html (+ compiled.json), log: logs/betterben
multi-token chunk; tok/update is 1.00 everywhere, there is no spec decode. In --quick mode all runs
hit max_tokens while still thinking (reasoning on by default), so TTFA (time to first answer token)
is not measurable; decode/prefill speeds are unaffected.
## Round 2 — graphs/compile tuning
### Step 1 — baseline config (confirmed 2026-10-28)
Baseline = bench-standard run `/srv/llm/bench/results/20261028-231853-pascal-vllm-lfm3-1.7b-vllm-arc-pro-b65`
(decode 127.6 t/s, ITL 1% low 102.3, TTFT p50 60 ms, aggregate @8 764.4 t/s, prefill @32k 16,670 t/s).
It did **not** use `--enforce-eager`: torch.compile (`CompilationMode.VLLM_COMPILE`) + vLLM default
graphs `FULL_AND_PIECEWISE`, capture sizes 1,2,4,8,16,24,…,512 (51 PIECEWISE + 35 FULL decode graphs;
the 2-graph FULL pass before them is the memory-profiling run). Same config as "compiled" in step 8/9.
Exact serve command (llama-swap `/running`, also in the result's `server-cmd.txt`):
```
docker run --rm --name vllm-lfm3 --device /dev/dri --group-add 991 --ipc=host --shm-size=16g
-p 127.0.0.1:5800:8000 -v /dev/dri:/dev/dri -v /dev/dri/by-path:/dev/dri/by-path:ro
-v /models/LFM3-1.7B:/model:ro
-v /srv/llm/runtimes/vllm-xpu/lfm3-v032/.cache/vllm-lfm3:/root/.cache/vllm
-e HF_HUB_OFFLINE=1 -e TRANSFORMERS_OFFLINE=1
lfm3-vllm-xpu:v0.32.0-lfm3 /model --host=0.0.0.0 --port=8000 --served-model-name=lfm3-1.7b
--gpu-memory-utilization=0.5 --dtype=bfloat16 --max-model-len=32768
--enable-auto-tool-choice --tool-call-parser=qwen3_coder --reasoning-parser=qwen3
```
Baseline BetterBench invocation (from the result's `meta.json`): BetterBench 0.6.1,
`--config /srv/llm/bench/bench-standard/config.json --quick --max-model-len 32768`, endpoint
`http://localhost:8080/v1`, model `vllm/lfm3-1.7b` (decode + concurrency + prefill, all defaults).
### Step 2 — variants (same image `lfm3-vllm-xpu:v0.32.0-lfm3`, same serve flags as the baseline)
Scripts: `tests/variant.sh NAME [--fresh] [vllm args]` (container `lfm3-var-NAME` on :8001, own compile
cache `./.cache/NAME`, server log `logs/variant_NAME.log`, startup/VRAM in `results/variants_startup.tsv`);
`tests/greedy_variant.py` (64 greedy tokens for the 5 ref_compare prompts, rep. penalty 1.0, prints the
reference's top-2 logprob margin at the first difference). Outputs: results/variants/greedy_*.json.
| variant | flags | starts | cold startup | torch.compile | graph capture | KV cache | VRAM used | greedy 64 tok vs eager (sequential) |
|---|---|---|---|---|---|---|---|---|
| a) eager | `--enforce-eager` | yes | 75 s | — | — | 541k tok | 15.75 GB | reference |
| b) default = baseline | — (FULL_AND_PIECEWISE, sizes 1…512) | yes | 138 s | 38.9 s | 7 s, 0.11 GiB | 506k tok | 15.67 GB | 3/5 identical; diffs at pos 47 / 50, margins 0.25 / 0.125 |
| d) FULL_DECODE_ONLY | `--compilation-config={"cudagraph_mode":"FULL_DECODE_ONLY","cudagraph_capture_sizes":[1,2,4,8]}` | yes | 128 s | 38.2 s | 1 s, ~0 GiB | 533k tok | 16.07 GB | 2/5 identical; diffs at pos 47 / 50 / 49, margins 0.25 / 0.125 / 0.000 |
| c) compile, no graphs | — | not run (b works) | | | | | | |
- "Cold startup" = `docker run` → `/v1/models` answers, with an empty compile cache. VRAM is ~fixed by
`--gpu-memory-utilization=0.5` (≈16 GB of 32), the variants only shift it between KV cache and graphs.
- **Noise floor:** eager vs *eager itself* run with all 5 prompts concurrently is also only 3/5 identical
(diffs at pos 47 margin 0.25, pos 49 margin 0.000). Batch composition changes bf16 reductions, so
"64 tokens identical" fails at near-ties even without any compile/graph change.
- Every divergence in every variant (sequential and concurrent) is at a top-2 margin ≤ 0.25 and at the
same positions as round 1's known near-ties (raw_short 47, chat_short 49, raw_code 50, raw_long_1500
28). No variant diverges at a confident token → all three are numerically equivalent to eager.
### Step 3 — BetterBench per variant
Invocation identical to the baseline (BetterBench 0.6.1, `--config /srv/llm/bench/bench-standard/config.json
--quick --max-model-len 32768`), endpoint `http://127.0.0.1:8001/v1` directly (no llama-swap), model
`lfm3-1.7b`. Results: results/variants/bb/{eager,default,fdo1248}.{json,html}, logs: logs/bb_*.log.
Table: `tests/bb_table.sh`; ITL column via `tests/itl_low.py` (see note). Bandwidth = 3.47 GB × decode t/s,
% of the B65's 608 GB/s spec.
| variant | decode t/s | eff. bandwidth | ITL 1% low t/s | TTFT p50 ms | aggregate @8 t/s | prefill @32k t/s | warm / cold startup |
|---|--:|--:|--:|--:|--:|--:|--:|
| baseline (= b, via llama-swap) | 127.6 | 443 GB/s (73%) | 102.3 | 60 | 764.4 | 16,670 | — |
| a) eager | 29.5 | 102 GB/s (17%) | 22.9* | 125 | 190.9 | 16,502 | 60 s / 75 s |
| **b) default (FULL_AND_PIECEWISE)** | **128.4** | **446 GB/s (73%)** | **105.1** | 67 | **768.2** | 16,626 | 83 s / 138 s |
| d) FULL_DECODE_ONLY [1,2,4,8] | 128.7 | 447 GB/s (73%) | 107.7* | 85 | 744.3 | 16,691 | 69 s / 128 s |
\* BetterBench printed "update p99" instead of ITL for these runs: one or more stream updates carried
2 tokens (SSE coalescing; tok/update is 1.00, no spec decode), which flips it into its "speculative"
view. `tests/itl_low.py` recomputes the number with BetterBench's own `itl_to_rate_samples` +
`summarize(rate_like=True)` per category and the config weights; it reproduces the baseline's 102.3 and
b's 105.1 exactly.
Findings:
- b and d decode identically (128.4 vs 128.7 t/s, within noise). Both sit at the measured GEMV
bandwidth of this card (~428–440 GB/s, tests/hw_roofline.py); the 608 GB/s spec is not reachable for
decode-shaped reads. **Graph mode is no longer a lever for decode** — only fewer bytes (quantization) are.
- d is worse where piecewise graphs matter: TTFT p50 +18 ms (85 vs 67 ms; short prefills run without
graphs in FULL_DECODE_ONLY), concurrency TTFT p50 at @8 105 vs 77 ms, aggregate @8 −3% (744 vs 768).
Its only gains are ~14 s faster warm startup and ~0.1 GiB less graph memory — irrelevant at 0.5 util.
- Eager is 4.3× slower at decode (launch-bound, flat ~29 t/s per request at every concurrency level).
- Prefill is compute-bound and identical across all variants (16.5–16.7k t/s at 23.5k tokens).
- Baseline vs b (llama-swap vs direct): equal within noise → the proxy costs nothing measurable.
### Step 4 — recommendation
**Keep b) the vLLM default (no `--enforce-eager`, no `--compilation-config`)**: best or tied on every
metric except a ~14 s slower warm start. That is exactly what the live llama-swap entry already runs, so
the snippet below only changes to match the live entry (no flag changes).
## Round 3 — W8A16 (online FP8 weights, BF16 compute)
### Step 1 — quant_config plumbing
All big linears are vLLM linear classes with `quant_config` passed through: attention `qkv_proj`
(QKVParallelLinear) and `o_proj` (RowParallelLinear), MLP `w13` (MergedColumnParallelLinear) and `w2`
(RowParallelLinear), conv `in_proj` / `out_proj` (built by vLLM's `ShortConv`, which passes quant_config).
Deliberately unquantized: `gate_proj` (16×2048 output gate, 0.002% of weights), the conv kernel weight
(read directly by our Triton conv kernel), embedding / tied `lm_head` (vLLM's online FP8 never quantizes
VocabParallelEmbedding), norms.
**Bug found when serving FP8:** `Lfm3ForCausalLM.load_weights` raised on parameters missing from the
checkpoint — online FP8 adds `weight_scale` params that a BF16 checkpoint can't contain (96 of them).
Fix: run our strict check only when `quant_config is None`; for quantized models vLLM's DefaultModelLoader
does the check itself and knows which params a checkpoint cannot carry. BF16 path unchanged. Built as
`lfm3-vllm-xpu:v0.32.0-lfm3-fp8fix` (the live llama-swap image `:v0.32.0-lfm3` is untouched).
### Step 2 — serving with `--quantization=fp8` (log: logs/variant_fp8.log)
- vLLM 0.32 maps it to online per-tensor FP8 (`fp8` is a deprecated alias of `fp8_per_tensor`), and on XPU
selects **`XPUW8A16FP8LinearKernel` for `Fp8PerTensorOnlineLinearMethod`** → `torch.ops._xpu_C.fp8_gemm_w8a16`:
FP8 (e4m3) weights + per-tensor scale, BF16 activations, i.e. real W8A16 (the W8A8 kernel is only the
fallback).
- **Model weight memory 1.88 GiB vs 3.24 GiB BF16** (−42%). Matches all linears in FP8 (~1.47 B params →
1.47 GB) + BF16 embedding/lm_head (0.52 GB) + small rest. Bytes read per decode step: ~2.02 GB vs 3.47 GB
→ ideal bandwidth-bound speedup ≤ 1.72×.
- KV cache memory 11.69 GiB (BF16: 10.61 GiB) at the same 0.5 utilization; graph capture 0.54 GiB
(BF16 0.12); cold start 144 s (torch.compile 38 s).
### Step 3 — quality vs BF16 (greedy, `tests/quality_prompts.py`, results/w8a16/quality_{bf16,fp8}.json)
| prompt | first token divergence (BF16 top-2 margin there) | BF16 answer | FP8 answer | correct? |
|---|---|---|---|---|
| math (train minutes) | 13 of 1166 (0.000) | 201 | 201 (613 tokens of reasoning instead of 1166) | both |
| code (is_palindrome) | 26 of 315 (0.375) | `cleaned = ''.join(ch.lower() … isalnum())` | same, variable named `filtered` | both |
| German (blue sky) | 33 of 332 (0.125) | correct, 2 sentences (one grammar slip "das kurzwelliges") | correct, 2 sentences (one awkward clause) | both |
| tool call (weather Hamburg) | 33 of 90 (0.25), inside reasoning | `get_weather{"city":"Hamburg","unit":"celsius"}` | identical call | both |
| summary (council vote) | 110 of 386 (0.25) | one sentence, all facts | one sentence, all facts, reordered | both |
64-token raw-prompt check vs eager BF16 (`tests/greedy_variant.py`, results/w8a16/greedy_fp8.json): 2/5
identical; raw_short diverges at token 1 (margin 0.31), chat_short at 4 (0.25), raw_code at 50 (0.125).
→ FP8 changes greedy paths much earlier than BF16 batch noise does (always at near-ties ≤ 0.375, never at a
confident token), but every final answer stayed correct and the tool call is byte-identical.
BF16 regression check after the load_weights fix: `:v0.32.0-lfm3-fp8fix` without quantization gives
greedy output bit-identical to the pre-fix default image (5/5 prompts, 64/64 tokens,
results/w8a16/greedy_bf16fix.json).
### Step 4 — BetterBench (same invocation as step 3; results/variants/bb/fp8.{json,html}, logs/bb_fp8.log)
| variant | decode t/s | eff. bandwidth (3.47 GB × t/s) | real bytes/step × t/s | ITL 1% low t/s | TTFT p50 ms | aggregate @8 t/s | prefill @32k t/s |
|---|--:|--:|--:|--:|--:|--:|--:|
| b) BF16 default | 128.4 | 446 GB/s (73%) | 446 GB/s (3.47 GB) | 105.1 | 67 | 768.2 | 16,626 |
| **FP8 W8A16 (`--quantization=fp8`)** | **191.3** | 664 GB/s (109%) | **386 GB/s** (2.02 GB) | **122.5** | 59 | **1,036.5** | 16,744 |
| Δ | **+49%** | | | +17% | −8 ms | **+35%** | +0.7% |
- The 3.47 GB column is a "BF16-equivalent" number and exceeds the 608 GB/s spec, which only shows that
fewer bytes are read. Real traffic is ~2.02 GB/step → 386 GB/s, ~88–90% of the measured BF16 GEMV
bandwidth (428–440 GB/s), so the FP8 GEMV kernel is slightly less bandwidth-efficient than BF16, and
we get 1.49× of the ideal 1.72×.
- Concurrency per-request decode: 192 / 186 / 176 / 160 t/s at 1/2/4/8 (BF16: 128 / 126 / 121 / 116).
- Prefill unchanged (compute-bound; `fp8_gemm_w8a16` dequantizes to BF16 compute).
- Next lever if wanted: the BF16 tied embedding/lm_head is now 0.52 of the 2.02 GB read per step (26%).
vLLM's online FP8 does not quantize `ParallelLMHead`; an FP8/INT8 lm_head would need an offline
checkpoint or plugin work. Step 5 (offline INT8 route) not needed: online FP8 works and is +49%.
### Recommendation / deployed (2026-10-29)
FP8 W8A16 is the new default: llama-swap `vllm/lfm3-1.7b` switched to image `lfm3-vllm-xpu:v0.32.0-lfm3-fp8fix`
+ `--quantization=fp8` (backup of the previous config: /etc/llama-swap/config.yaml.bak-pre-lfm3-fp8).
Verified through llama-swap: reload clean, cold start 2m26s, kernel `XPUW8A16FP8LinearKernel`, weights 1.88 GiB,
"17*23" → 391. For a manual `docker run` (Deployment section above), add `--quantization=fp8` and use the
`:v0.32.0-lfm3-fp8fix` image (rebuild from this repo: `docker build -t lfm3-vllm-xpu:v0.32.0-lfm3-fp8fix .`).
+1
View File
@@ -0,0 +1 @@
{"results": {"raw_short": {"prompt_ids": [597, 5205, 302, 3980, 355]}, "raw_code": {"prompt_ids": [3162, 116773, 7946, 4673, 360, 21744, 17319, 278, 316, 8418, 91230, 1579, 43659]}, "chat_short": {"prompt_ids": [124894, 124899, 5922, 207, 2992, 355, 340, 22, 13729, 497, 39, 41774, 296, 1046, 19027, 22, 124900, 207, 124899, 63514, 207, 124901]}, "chat_long_600": {"prompt_ids": [124894, 124899, 5922, 207, 597, 2628, 302, 278, 38890, 47682, 708, 898, 1046, 11126, 22, 13439, 13968, 1058, 405, 278, 7487, 282, 475, 20, 7172, 296, 229, 5269, 31, 20, 819, 794, 7040, 985, 35, 46645, 19438, 4374, 2755, 415, 648, 5444, 22, 529, 278, 229, 3317, 24, 91, 4770, 8830, 688, 12429, 7040, 985, 5327, 310, 278, 4248, 15078, 20, 6804, 278, 6624, 87, 5672, 3929, 20, 20465, 32981, 278, 13164, 80, 5101, 1428, 302, 851, 7802, 41194, 309, 29078, 5711, 22, 440, 1068, 3603, 272, 6793, 432, 283, 15922, 1825, 2599, 299, 5614, 296, 278, 229, 3440, 24, 91, 20, 5476, 8122, 4248, 15078, 3863, 278, 6092, 8093, 593, 61286, 10176, 702, 1546, 278, 6572, 10143, 310, 5744, 309, 17601, 22, 440, 5654, 38890, 302, 278, 229, 3198, 24, 91, 20, 415, 1046, 28901, 302, 6948, 2931, 309, 267, 9467, 10477, 278, 18458, 15078, 20, 27437, 1028, 302, 1017, 3274, 20, 309, 278, 18051, 1888, 29300, 20, 58387, 467, 2409, 56699, 15021, 44503, 296, 229, 3198, 32, 20, 1546, 26327, 2913, 708, 14428, 22, 2329, 31780, 27599, 267, 33126, 33708, 296, 278, 229, 2904, 24, 91, 395, 6592, 2102, 1604, 20, 6015, 2353, 860, 13873, 20, 309, 19438, 12207, 310, 4802, 15468, 22, 529, 278, 29475, 3434, 27784, 4918, 3071, 15167, 5099, 296, 1196, 3677, 20, 3654, 296, 278, 17150, 20, 24193, 309, 4205, 20, 1657, 25941, 27784, 4918, 17098, 415, 29023, 23081, 20, 639, 8070, 326, 335, 6623, 309, 10265, 34069, 6864, 22, 10767, 5541, 27784, 4918, 13532, 278, 3294, 309, 18673, 302, 33126, 310, 789, 37176, 309, 6492, 46645, 20, 309, 7842, 1862, 278, 1530, 437, 3703, 7306, 24786, 49526, 310, 10589, 532, 7599, 20, 4815, 309, 2419, 27525, 1937, 7808, 302, 5099, 22, 440, 2628, 302, 278, 38890, 47682, 708, 898, 1046, 11126, 22, 13439, 13968, 1058, 405, 278, 7487, 282, 475, 20, 7172, 296, 229, 5269, 31, 20, 819, 794, 7040, 985, 35, 46645, 19438, 4374, 2755, 415, 648, 5444, 22, 529, 278, 229, 3317, 24, 91, 4770, 8830, 688, 12429, 7040, 985, 5327, 310, 278, 4248, 15078, 20, 6804, 278, 6624, 87, 5672, 3929, 20, 20465, 32981, 278, 13164, 80, 5101, 1428, 302, 851, 7802, 41194, 309, 29078, 5711, 22, 440, 1068, 3603, 272, 6793, 432, 283, 15922, 1825, 2599, 299, 5614, 296, 278, 229, 3440, 24, 91, 20, 5476, 8122, 4248, 15078, 3863, 278, 6092, 8093, 593, 61286, 10176, 702, 1546, 278, 6572, 10143, 310, 5744, 309, 17601, 22, 440, 5654, 38890, 302, 278, 229, 3198, 24, 91, 20, 415, 1046, 28901, 302, 6948, 2931, 309, 267, 9467, 10477, 278, 18458, 15078, 20, 27437, 1028, 302, 1017, 3274, 20, 309, 278, 18051, 1888, 29300, 20, 58387, 467, 2409, 56699, 15021, 44503, 296, 229, 3198, 32, 20, 1546, 26327, 2913, 708, 14428, 22, 2329, 31780, 27599, 267, 33126, 33708, 296, 278, 229, 2904, 24, 91, 395, 6592, 2102, 1604, 20, 6015, 2353, 860, 13873, 20, 309, 19438, 12207, 310, 4802, 15468, 22, 529, 278, 29475, 3434, 27784, 4918, 3071, 15167, 5099, 296, 1196, 3677, 20, 3654, 296, 278, 17150, 20, 24193, 309, 4205, 20, 1657, 25941, 27784, 4918, 17098, 415, 29023, 23081, 20, 639, 8070, 326, 335, 6623, 309, 10265, 34069, 6864, 22, 10767, 5541, 27784, 4918, 13532, 278, 3294, 309, 18673, 302, 33126, 310, 789, 37176, 309, 6492, 46645, 20, 309, 7842, 1862, 278, 1530, 437, 3703, 7306, 24786, 49526, 310, 10589, 532, 7599, 20, 4815, 309, 2419, 27525, 1937, 7808, 302, 5099, 22, 64019, 59, 2673, 63515, 278, 2803, 3036, 296, 1703, 34013, 4019, 22, 124900, 207, 124899, 63514, 207, 124901]}, "raw_long_1500": {"prompt_ids": [597, 2628, 302, 278, 38890, 47682, 708, 898, 1046, 11126, 22, 13439, 13968, 1058, 405, 278, 7487, 282, 475, 20, 7172, 296, 229, 5269, 31, 20, 819, 794, 7040, 985, 35, 46645, 19438, 4374, 2755, 415, 648, 5444, 22, 529, 278, 229, 3317, 24, 91, 4770, 8830, 688, 12429, 7040, 985, 5327, 310, 278, 4248, 15078, 20, 6804, 278, 6624, 87, 5672, 3929, 20, 20465, 32981, 278, 13164, 80, 5101, 1428, 302, 851, 7802, 41194, 309, 29078, 5711, 22, 440, 1068, 3603, 272, 6793, 432, 283, 15922, 1825, 2599, 299, 5614, 296, 278, 229, 3440, 24, 91, 20, 5476, 8122, 4248, 15078, 3863, 278, 6092, 8093, 593, 61286, 10176, 702, 1546, 278, 6572, 10143, 310, 5744, 309, 17601, 22, 440, 5654, 38890, 302, 278, 229, 3198, 24, 91, 20, 415, 1046, 28901, 302, 6948, 2931, 309, 267, 9467, 10477, 278, 18458, 15078, 20, 27437, 1028, 302, 1017, 3274, 20, 309, 278, 18051, 1888, 29300, 20, 58387, 467, 2409, 56699, 15021, 44503, 296, 229, 3198, 32, 20, 1546, 26327, 2913, 708, 14428, 22, 2329, 31780, 27599, 267, 33126, 33708, 296, 278, 229, 2904, 24, 91, 395, 6592, 2102, 1604, 20, 6015, 2353, 860, 13873, 20, 309, 19438, 12207, 310, 4802, 15468, 22, 529, 278, 29475, 3434, 27784, 4918, 3071, 15167, 5099, 296, 1196, 3677, 20, 3654, 296, 278, 17150, 20, 24193, 309, 4205, 20, Line truncated
+510
View File
@@ -0,0 +1,510 @@
<!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 · 23:48 · 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:8001/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">32,768 tok context</span><span class="chip"><span class="swatch" style="background:var(--s2)"></span>variant: default</span><span class="chip"><span class="swatch" style="background:var(--s2)"></span>flags: none</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 ITL 1% low</span>
<span class="val">105.1 <small>t/s</small></span>
<span class="sub">the trustworthy tail metric</span>
</div>
<div class="tile">
<span class="label">Combined TTFT p50</span>
<span class="val">67 <small>ms</small></span>
<span class="sub">single-stream, batch = 1</span>
</div>
<div class="tile">
<span class="label">Aggregate @ 8 concurrent</span>
<span class="val">768.2 <small>t/s</small></span>
<span class="sub">48/48 ok</span>
</div>
<div class="tile">
<span class="label">Prefill @ 32,000 tok</span>
<span class="val">16,626 <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">Inter-token latency range by category</span>
<span class="d">Each bar spans the 1% low to the 99% high instantaneous token rate, with a tick at the median. Wide bars stutter; narrow bars feel smooth.</span>
</figcaption>
<div class="legend"><span><span class="swatch" style="background:var(--s1-mid)"></span>1% low → 99% high</span><span><span class="swatch" style="background:var(--ink)"></span>median</span></div>
<div class="chartbox" id="cb-itl"></div>
</figure>
<figure>
<figcaption>
<span class="t">Aggregate throughput under concurrency</span>
<span class="d">Total tokens/sec across all in-flight requests as load rises — where this flattens is the throughput knee.</span>
</figcaption>
<div class="chartbox" id="cb-conc"></div>
</figure>
<figure>
<figcaption>
<span class="t">Time-to-first-token under concurrency</span>
<span class="d">Queueing shows up here first: p50 is the typical wait, p99 the tail.</span>
</figcaption>
<div class="legend"><span><span class="swatch" style="background:var(--s1)"></span>TTFT p50</span><span><span class="swatch" style="background:var(--s2)"></span>TTFT p99</span></div>
<div class="chartbox" id="cb-ttft"></div>
<p class="note">With a modest request count per level, p99 rests on very few observations — treat a spike as a prompt to re-run, not a conclusion.</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</caption>
<thead><tr><th>category</th><th>passes</th><th>TTFT p50</th><th>TTFT p99</th><th>ITL 1% low</th><th>ITL med</th><th>ITL 99% high</th><th>decode med</th><th>±IQR</th><th>CV</th></tr></thead>
<tbody>
<tr><td>chat</td><td>5</td><td>65.7</td><td>92.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>108.2</td><td>128.9</td><td>148.3</td><td>129.0</td><td>0.1</td><td>0.2%</td></tr>
<tr><td>code</td><td>5</td><td>64.7</td><td>91.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>109.9</td><td>128.1</td><td>140.1</td><td>128.2</td><td>0.1</td><td>0.1%</td></tr>
<tr><td>file edit</td><td>5</td><td>63.7</td><td>66.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>111.6</td><td>128.4</td><td>139.6</td><td>128.3</td><td>0.6</td><td>0.4%</td></tr>
<tr><td>json</td><td>5</td><td>88.3</td><td>93.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>96.9</td><td>128.6</td><td>145.6</td><td>128.7</td><td>0.2</td><td>0.4%</td></tr>
<tr><td>math</td><td>5</td><td>59.9</td><td>68.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>100.7</td><td>128.1</td><td>145.2</td><td>128.3</td><td>0.1</td><td>0.7%</td></tr>
<tr><td>prose</td><td>5</td><td>63.8</td><td>76.4<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>109.5</td><td>128.2</td><td>142.0</td><td>128.3</td><td>0.7</td><td>0.5%</td></tr>
<tr><td>reasoning</td><td>5</td><td>61.2</td><td>64.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>104.1</td><td>128.2</td><td>139.1</td><td>128.3</td><td>0.7</td><td>0.6%</td></tr>
<tr><td>summarization</td><td>5</td><td>61.9</td><td>64.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>91.6</td><td>128.6</td><td>146.9</td><td>128.9</td><td>1.0</td><td>1.0%</td></tr>
</tbody>
</table>
<table>
<caption>Concurrency sweep</caption>
<thead><tr><th>level</th><th>ok/req</th><th>aggregate t/s</th><th>TTFT p50</th><th>TTFT p99</th><th>per-req decode med</th></tr></thead>
<tbody>
<tr><td>1</td><td>48/48</td><td>126.3</td><td>63.7</td><td>95.5<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>128.4</td></tr>
<tr><td>2</td><td>48/48</td><td>242.2</td><td>68.6</td><td>453.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>125.6</td></tr>
<tr><td>4</td><td>48/48</td><td>447.9</td><td>69.6</td><td>100.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>121.3</td></tr>
<tr><td>8</td><td>48/48</td><td>768.2</td><td>77.0</td><td>121.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>116.2</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>99%</td><td>—</td><td>4/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>95%</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,534</td><td>99.7</td><td>15,148.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>15,432.0</td><td>15,682.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
<tr><td>8,000</td><td>5,914</td><td>320.7</td><td>18,193.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>18,419.9</td><td>19,179.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
<tr><td>16,000</td><td>11,788</td><td>654.4</td><td>17,935.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>18,024.3</td><td>18,824.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
<tr><td>32,000</td><td>23,578</td><td>1,414.0</td><td>16,524.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>16,625.9</td><td>16,775.7<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. 16 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.02196290251723, 128.17572657759547, 128.27719502675805, 128.71724789520775, 128.3151857903427, 128.30573738116448, 128.27497200828958, 128.86583270683488], "decodeIqr": [0.11394183720153706, 0.06824066308948318, 0.6232202111655738, 0.18049526459148524, 0.10527903152416229, 0.7476469922314948, 0.6629818205865519, 0.9591720060933255], "cv": [0.19543976836113539, 0.10829915733842148, 0.3631245457607816, 0.3898324456158024, 0.6721400309509805, 0.4599948973294376, 0.5636550202939249, 0.9626898982981122], "itlLow": [108.20662635948501, 109.8515181460324, 111.64745877884947, 96.94521369647491, 100.7142572506026, 109.47311174322616, 104.13010991159042, 91.5957659641779], "itlMed": [128.85397405017255, 128.14815165354102, 128.44352265889657, 128.62384005030245, 128.10487792075853, 128.15414584565832, 128.23843731859986, 128.58729631802203], "itlHigh": [148.31801201547083, 140.05077449799336, 139.558057571023, 145.62558949240838, 145.19475681319963, 141.9765166960817, 139.11449707769026, 146.92930648073795], "batched": false, "updP50": [7.760722999591962, 7.803468000020075, 7.7855230010754894, 7.774608500767499, 7.806104000337655, 7.803103000696865, 7.7979739999136655, 7.776817999911145], "updP99": [8.559575599902018, 8.58265209979436, 8.530119800234386, 8.797306340129575, 8.852841199477552, 8.638670199252374, 8.610926379915325, 9.385339479431407], "tokPerUpd": [1.0, 1.0003449465332874, 1.0, 1.0006064281382656, 1.0, 1.0, 1.0007278020378456, 1.001001001001001], "ttft50": [65.67402899963781, 64.74718099889287, 63.70825299927674, 88.32312500089756, 59.8933119999856, 63.820343999395845, 61.217325999677996, 61.867518999861204], "combined": 128.37546293975169, "conc": {"levels": [1, 2, 4, 8], "agg": [126.26338209311568, 242.2436975591442, 447.94532840460647, 768.2027885390376], "t50": [63.72306750017742, 68.59484749929834, 69.62321099945257, 76.9793364997895], "t99": [95.45336617948124, 453.8661097495068, 100.04357158035418, 121.62450092957442], "per": [128.38455557210733, 125.61777339266447, 121.31541689101793, 116.16606723885603], "ok": [48, 48, 48, 48], "req": [48, 48, 48, 48]}, "pre": {"depths": [2000, 8000, 16000, 32000], "tok": [1534.0, 5914.5, 11787.5, 23577.5], "low": [15148.783855959451, 18192.99142395455, 17935.296555852663, 16524.285530674326], "med": [15432.034610910461, 18419.880431148973, 18024.33849477194, 16625.907215232695], "high": [15682.885661988363, 19179.572495316366, 18824.749665437208, 16775.726716638037], "t50": [99.68054450018826, 320.6828909997057, 654.3780814999991, 1414.0302450005038]}};
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
+510
View File
@@ -0,0 +1,510 @@
<!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 · 29 Oct 2026 · 00:08 · 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:8001/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">32,768 tok context</span><span class="chip"><span class="swatch" style="background:var(--s2)"></span>variant: eager</span><span class="chip"><span class="swatch" style="background:var(--s2)"></span>flags: --enforce-eager</span></div>
</header>
<section class="tiles">
<div class="tile">
<span class="label">Combined decode</span>
<span class="val">29.5 <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">38.8 <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">125 <small>ms</small></span>
<span class="sub">single-stream, batch = 1</span>
</div>
<div class="tile">
<span class="label">Aggregate @ 8 concurrent</span>
<span class="val">190.9 <small>t/s</small></span>
<span class="sub">48/48 ok</span>
</div>
<div class="tile">
<span class="label">Prefill @ 32,000 tok</span>
<span class="val">16,502 <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">Aggregate throughput under concurrency</span>
<span class="d">Total tokens/sec across all in-flight requests as load rises — where this flattens is the throughput knee.</span>
</figcaption>
<div class="chartbox" id="cb-conc"></div>
</figure>
<figure>
<figcaption>
<span class="t">Time-to-first-token under concurrency</span>
<span class="d">Queueing shows up here first: p50 is the typical wait, p99 the tail.</span>
</figcaption>
<div class="legend"><span><span class="swatch" style="background:var(--s1)"></span>TTFT p50</span><span><span class="swatch" style="background:var(--s2)"></span>TTFT p99</span></div>
<div class="chartbox" id="cb-ttft"></div>
<p class="note">With a modest request count per level, p99 rests on very few observations — treat a spike as a prompt to re-run, not a conclusion.</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>128.8</td><td>155.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>33.0</td><td>37.9</td><td>1.00</td><td>30.2</td><td>0.5</td><td>2.6%</td></tr>
<tr><td>code</td><td>5</td><td>136.4</td><td>154.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>34.8</td><td>38.2</td><td>1.00</td><td>28.6</td><td>0.5</td><td>2.0%</td></tr>
<tr><td>file edit</td><td>5</td><td>137.7</td><td>182.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>33.5</td><td>37.8</td><td>1.00</td><td>29.7</td><td>0.6</td><td>1.5%</td></tr>
<tr><td>json</td><td>5</td><td>127.5</td><td>130.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>33.4</td><td>40.8</td><td>1.00</td><td>29.9</td><td>0.6</td><td>1.5%</td></tr>
<tr><td>math</td><td>5</td><td>125.4</td><td>131.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>33.4</td><td>39.1</td><td>1.00</td><td>29.7</td><td>0.4</td><td>2.1%</td></tr>
<tr><td>prose</td><td>5</td><td>87.1</td><td>163.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>33.0</td><td>37.8</td><td>1.00</td><td>30.2</td><td>1.1</td><td>2.4%</td></tr>
<tr><td>reasoning</td><td>5</td><td>124.1</td><td>127.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>33.1</td><td>37.6</td><td>1.00</td><td>29.9</td><td>0.5</td><td>1.2%</td></tr>
<tr><td>summarization</td><td>5</td><td>131.6</td><td>139.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>33.8</td><td>42.7</td><td>1.00</td><td>29.3</td><td>1.1</td><td>2.1%</td></tr>
</tbody>
</table>
<table>
<caption>Concurrency sweep</caption>
<thead><tr><th>level</th><th>ok/req</th><th>aggregate t/s</th><th>TTFT p50</th><th>TTFT p99</th><th>per-req decode med</th></tr></thead>
<tbody>
<tr><td>1</td><td>48/48</td><td>29.8</td><td>126.3</td><td>160.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>29.9</td></tr>
<tr><td>2</td><td>48/48</td><td>57.9</td><td>151.8</td><td>1,138.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>29.5</td></tr>
<tr><td>4</td><td>48/48</td><td>108.5</td><td>150.5</td><td>270.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>29.1</td></tr>
<tr><td>8</td><td>48/48</td><td>190.9</td><td>150.6</td><td>226.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>29.1</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>100%</td><td>—</td><td>5/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,512</td><td>136.7</td><td>10,834.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>10,993.0</td><td>11,464.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
<tr><td>8,000</td><td>5,936</td><td>345.9</td><td>16,203.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>17,150.9</td><td>17,756.9<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>682.8</td><td>16,979.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>17,362.0</td><td>17,557.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
<tr><td>32,000</td><td>23,584</td><td>1,426.9</td><td>16,392.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>16,501.6</td><td>16,697.8<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. 16 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": [30.209005986727384, 28.593291483539346, 29.667988058479065, 29.896044198706495, 29.699409386811695, 30.17455331458197, 29.851137754535994, 29.334894892968435], "decodeIqr": [0.5384921095869828, 0.5273712586372099, 0.5665422114217478, 0.6173017686438627, 0.39840654539539955, 1.1284810027546506, 0.4641715712319794, 1.1053881234070566], "cv": [2.580012062451944, 2.0043452630515426, 1.463901686475085, 1.53779352703662, 2.141204665854642, 2.385916330421142, 1.1577015449057322, 2.0693439852887643], "itlLow": [24.413577801704548, 22.449553041794378, 24.54691376296493, 21.271520323542738, 23.542545548226773, 25.142119526190967, null, 20.235361045945528], "itlMed": [30.336845774532687, 28.742999735445764, 29.866172817480145, 29.92251120863404, 29.962026602030477, 30.323837048780582, null, 29.57268236994682], "itlHigh": [31.653306834688205, 31.03075031557954, 31.482153569326826, 31.500527163041173, 31.71846309319834, 31.809650459862805, null, 31.45708082332147], "batched": true, "updP50": [32.96321599918883, 34.79108000010456, 33.48269649904978, 33.41965500021615, 33.37557949998882, 32.97735700107296, 33.145140000669926, 33.81499250008346], "updP99": [37.93912895991521, 38.19826292981816, 37.83955859953494, 40.848691800638335, 39.05262630980358, 37.788034479890484, 37.60937970984742, 42.69993370104203], "tokPerUpd": [1.0017889087656529, 1.0024196335983409, 1.0014306151645207, 1.0018214936247722, 1.0004133939644482, 1.0006949270326615, 1.0018214936247722, 1.0030090270812437], "ttft50": [128.82916100170405, 136.42553099998622, 137.73373500043817, 127.51463700078602, 125.41601799966884, 87.09746299973631, 124.10967399955553, 131.62792299954162], "combined": 29.45909291810702, "conc": {"levels": [1, 2, 4, 8], "agg": [29.805964127658978, 57.85225515834984, 108.47167156588857, 190.88059132874557], "t50": [126.31654500000877, 151.84413100087113, 150.49846599958983, 150.64538099886704], "t99": [160.14029846017365, 1138.802406360246, 270.33479844036265, 226.2841990699053], "per": [29.933184918322034, 29.50403492151975, 29.130063504264502, 29.054581151093515], "ok": [48, 48, 48, 48], "req": [48, 48, 48, 48]}, "pre": {"depths": [2000, 8000, 16000, 32000], "tok": [1511.5, 5936.0, 11825.5, 23584.5], "low": [10834.816726917928, 16203.258283554474, 16979.670134973705, 16392.797928813903], "med": [10992.963147788207, 17150.904877697463, 17361.979138434774, 16501.618643630587], "high": [11464.052881649788, 17756.866786046423, 17557.699591078937, 16697.841373157593], "t50": [136.7047254998397, 345.931906500482, 682.8417554997941, 1426.85833250016]}};
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
+510
View File
@@ -0,0 +1,510 @@
<!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 · 23:58 · 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:8001/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">32,768 tok context</span><span class="chip"><span class="swatch" style="background:var(--s2)"></span>variant: fdo1248</span><span class="chip"><span class="swatch" style="background:var(--s2)"></span>flags: --compilation-config={&quot;cudagraph_mode&quot;:&quot;FULL_DECODE_ONLY&quot;,&quot;cudagraph_capture_sizes&quot;:[1,2,4,8]}</span></div>
</header>
<section class="tiles">
<div class="tile">
<span class="label">Combined decode</span>
<span class="val">128.7 <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.5 <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">85 <small>ms</small></span>
<span class="sub">single-stream, batch = 1</span>
</div>
<div class="tile">
<span class="label">Aggregate @ 8 concurrent</span>
<span class="val">744.3 <small>t/s</small></span>
<span class="sub">48/48 ok</span>
</div>
<div class="tile">
<span class="label">Prefill @ 32,000 tok</span>
<span class="val">16,691 <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">Aggregate throughput under concurrency</span>
<span class="d">Total tokens/sec across all in-flight requests as load rises — where this flattens is the throughput knee.</span>
</figcaption>
<div class="chartbox" id="cb-conc"></div>
</figure>
<figure>
<figcaption>
<span class="t">Time-to-first-token under concurrency</span>
<span class="d">Queueing shows up here first: p50 is the typical wait, p99 the tail.</span>
</figcaption>
<div class="legend"><span><span class="swatch" style="background:var(--s1)"></span>TTFT p50</span><span><span class="swatch" style="background:var(--s2)"></span>TTFT p99</span></div>
<div class="chartbox" id="cb-ttft"></div>
<p class="note">With a modest request count per level, p99 rests on very few observations — treat a spike as a prompt to re-run, not a conclusion.</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>91.7</td><td>118.5<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>7.7</td><td>8.4</td><td>1.00</td><td>129.3</td><td>0.1</td><td>0.2%</td></tr>
<tr><td>code</td><td>5</td><td>89.0</td><td>93.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>7.8</td><td>8.4</td><td>1.00</td><td>128.6</td><td>0.1</td><td>0.2%</td></tr>
<tr><td>file edit</td><td>5</td><td>90.4</td><td>133.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>7.8</td><td>8.4</td><td>1.00</td><td>128.7</td><td>0.5</td><td>0.3%</td></tr>
<tr><td>json</td><td>5</td><td>91.0</td><td>92.1<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.3</td><td>0.2%</td></tr>
<tr><td>math</td><td>5</td><td>86.5</td><td>88.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.7</td><td>0.1</td><td>0.4%</td></tr>
<tr><td>prose</td><td>5</td><td>56.9</td><td>116.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.5</td><td>0.8</td><td>0.5%</td></tr>
<tr><td>reasoning</td><td>5</td><td>90.0</td><td>92.4<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>7.8</td><td>8.8</td><td>1.00</td><td>128.6</td><td>0.2</td><td>0.5%</td></tr>
<tr><td>summarization</td><td>5</td><td>93.6</td><td>100.0<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>129.2</td><td>0.4</td><td>0.3%</td></tr>
</tbody>
</table>
<table>
<caption>Concurrency sweep</caption>
<thead><tr><th>level</th><th>ok/req</th><th>aggregate t/s</th><th>TTFT p50</th><th>TTFT p99</th><th>per-req decode med</th></tr></thead>
<tbody>
<tr><td>1</td><td>48/48</td><td>125.6</td><td>88.8</td><td>116.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>128.6</td></tr>
<tr><td>2</td><td>48/48</td><td>239.5</td><td>95.0</td><td>516.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>125.5</td></tr>
<tr><td>4</td><td>48/48</td><td>440.5</td><td>94.1</td><td>173.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>119.9</td></tr>
<tr><td>8</td><td>48/48</td><td>744.3</td><td>105.2</td><td>199.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>113.0</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>98%</td><td>—</td><td>4/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>99%</td><td>—</td><td>4/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>100%</td><td>—</td><td>5/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,505</td><td>96.8</td><td>15,183.4<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>15,548.7</td><td>15,709.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
<tr><td>8,000</td><td>5,924</td><td>323.1</td><td>17,502.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>18,277.9</td><td>18,442.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
<tr><td>16,000</td><td>11,824</td><td>659.7</td><td>17,604.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>17,962.0</td><td>18,042.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
<tr><td>32,000</td><td>23,562</td><td>1,413.2</td><td>16,518.5<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>16,691.4</td><td>17,121.2<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. 16 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.31941592583274, 128.5910997772672, 128.69789456156485, 128.8483901096955, 128.7041889651993, 128.51566622725483, 128.61507091945987, 129.18011619602825], "decodeIqr": [0.14038812794166233, 0.07341479625708303, 0.520844786101776, 0.3174275498863608, 0.1301890728081787, 0.7654390026198712, 0.20773532503611136, 0.41356733747036856], "cv": [0.16594380346661675, 0.24476344961310734, 0.2897894946012893, 0.15487944191355077, 0.44769698127362395, 0.505284783038933, 0.4841478903606101, 0.30263586517071644], "itlLow": [112.94355230581097, 108.98889714077379, 114.90456987006966, 106.82052973155314, 111.4049437442851, 111.6247385265017, null, 104.65696838163407], "itlMed": [129.16963623304622, 128.6199605368328, 128.66447688837818, 128.99584808441335, 128.55597061365947, 128.4758663870467, null, 129.02406713219892], "itlHigh": [139.54113069134632, 137.91079694845985, 137.68098858039693, 141.154998419103, 139.36494508880858, 138.3359997365489, null, 146.96481282932916], "batched": true, "updP50": [7.741757499388768, 7.7748430012434255, 7.772152999677928, 7.752187500045693, 7.7787130012438865, 7.783562999975402, 7.770168000206468, 7.75049199910427], "updP99": [8.36371299912571, 8.372780899662757, 8.355862000207708, 8.634250499580958, 8.538053599731938, 8.549416339556043, 8.782934510345514, 8.565903578819409], "tokPerUpd": [1.000893655049151, 1.0013812154696133, 1.0, 1.0006064281382656, 1.0, 1.0, 1.0018214936247722, 1.0], "ttft50": [91.71187700121664, 89.0105680009583, 90.41624299970863, 90.98437400098192, 86.5029209999193, 56.875035999837564, 89.97500599980413, 93.60793299856596], "combined": 128.692753643374, "conc": {"levels": [1, 2, 4, 8], "agg": [125.55558318746276, 239.52993828804964, 440.45438903582135, 744.3239589178219], "t50": [88.84222000051523, 94.96881250015576, 94.13671199945384, 105.22319650044665], "t99": [116.11852300911778, 516.0361515300253, 173.18954732956627, 199.01645568073945], "per": [128.5870591572687, 125.48978551292572, 119.89094006030221, 113.0190043165198], "ok": [48, 48, 48, 48], "req": [48, 48, 48, 48]}, "pre": {"depths": [2000, 8000, 16000, 32000], "tok": [1505.0, 5923.5, 11823.5, 23562.0], "low": [15183.393391926666, 17502.641354972802, 17604.702447323372, 16518.530162983574], "med": [15548.732456675356, 18277.851681575332, 17961.97730243227, 16691.379393851683], "high": [15708.96098700119, 18442.62857170535, 18042.69132314622, 17121.23864856516], "t50": [96.80825649957114, 323.0847904997063, 659.7363595001298, 1413.1870344999697]}};
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
+510
View File
@@ -0,0 +1,510 @@
<!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 · 29 Oct 2026 · 00:54 · 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:8001/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">32,768 tok context</span><span class="chip"><span class="swatch" style="background:var(--s2)"></span>variant: fp8</span><span class="chip"><span class="swatch" style="background:var(--s2)"></span>flags: --quantization=fp8</span></div>
</header>
<section class="tiles">
<div class="tile">
<span class="label">Combined decode</span>
<span class="val">191.3 <small>t/s</small></span>
<span class="sub">weighted across categories</span>
</div>
<div class="tile">
<span class="label">Combined ITL 1% low</span>
<span class="val">122.5 <small>t/s</small></span>
<span class="sub">the trustworthy tail metric</span>
</div>
<div class="tile">
<span class="label">Combined TTFT p50</span>
<span class="val">59 <small>ms</small></span>
<span class="sub">single-stream, batch = 1</span>
</div>
<div class="tile">
<span class="label">Aggregate @ 8 concurrent</span>
<span class="val">1,036.5 <small>t/s</small></span>
<span class="sub">48/48 ok</span>
</div>
<div class="tile">
<span class="label">Prefill @ 32,000 tok</span>
<span class="val">16,744 <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">Inter-token latency range by category</span>
<span class="d">Each bar spans the 1% low to the 99% high instantaneous token rate, with a tick at the median. Wide bars stutter; narrow bars feel smooth.</span>
</figcaption>
<div class="legend"><span><span class="swatch" style="background:var(--s1-mid)"></span>1% low → 99% high</span><span><span class="swatch" style="background:var(--ink)"></span>median</span></div>
<div class="chartbox" id="cb-itl"></div>
</figure>
<figure>
<figcaption>
<span class="t">Aggregate throughput under concurrency</span>
<span class="d">Total tokens/sec across all in-flight requests as load rises — where this flattens is the throughput knee.</span>
</figcaption>
<div class="chartbox" id="cb-conc"></div>
</figure>
<figure>
<figcaption>
<span class="t">Time-to-first-token under concurrency</span>
<span class="d">Queueing shows up here first: p50 is the typical wait, p99 the tail.</span>
</figcaption>
<div class="legend"><span><span class="swatch" style="background:var(--s1)"></span>TTFT p50</span><span><span class="swatch" style="background:var(--s2)"></span>TTFT p99</span></div>
<div class="chartbox" id="cb-ttft"></div>
<p class="note">With a modest request count per level, p99 rests on very few observations — treat a spike as a prompt to re-run, not a conclusion.</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</caption>
<thead><tr><th>category</th><th>passes</th><th>TTFT p50</th><th>TTFT p99</th><th>ITL 1% low</th><th>ITL med</th><th>ITL 99% high</th><th>decode med</th><th>±IQR</th><th>CV</th></tr></thead>
<tbody>
<tr><td>chat</td><td>5</td><td>62.9</td><td>91.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>100.4</td><td>192.9</td><td>223.5</td><td>192.6</td><td>8.4</td><td>3.4%</td></tr>
<tr><td>code</td><td>5</td><td>62.8</td><td>68.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>103.4</td><td>192.0</td><td>220.9</td><td>189.3</td><td>3.4</td><td>1.1%</td></tr>
<tr><td>file edit</td><td>5</td><td>61.9</td><td>68.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>126.1</td><td>192.6</td><td>225.9</td><td>192.3</td><td>0.4</td><td>0.9%</td></tr>
<tr><td>json</td><td>5</td><td>61.4</td><td>63.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>111.7</td><td>192.9</td><td>223.4</td><td>190.9</td><td>3.8</td><td>1.2%</td></tr>
<tr><td>math</td><td>5</td><td>60.2</td><td>91.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>129.4</td><td>192.1</td><td>217.8</td><td>191.2</td><td>1.3</td><td>1.2%</td></tr>
<tr><td>prose</td><td>5</td><td>41.0</td><td>61.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>147.8</td><td>191.8</td><td>214.2</td><td>192.3</td><td>1.5</td><td>0.9%</td></tr>
<tr><td>reasoning</td><td>5</td><td>60.8</td><td>75.4<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>139.8</td><td>192.1</td><td>215.8</td><td>192.0</td><td>1.2</td><td>1.0%</td></tr>
<tr><td>summarization</td><td>5</td><td>62.2</td><td>62.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>120.3</td><td>193.0</td><td>226.3</td><td>193.5</td><td>1.0</td><td>1.3%</td></tr>
</tbody>
</table>
<table>
<caption>Concurrency sweep</caption>
<thead><tr><th>level</th><th>ok/req</th><th>aggregate t/s</th><th>TTFT p50</th><th>TTFT p99</th><th>per-req decode med</th></tr></thead>
<tbody>
<tr><td>1</td><td>48/48</td><td>187.4</td><td>59.2</td><td>68.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>192.2</td></tr>
<tr><td>2</td><td>48/48</td><td>347.5</td><td>67.0</td><td>1,051.4<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>185.7</td></tr>
<tr><td>4</td><td>48/48</td><td>645.7</td><td>71.1</td><td>123.5<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>176.1</td></tr>
<tr><td>8</td><td>48/48</td><td>1,036.5</td><td>79.4</td><td>128.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>160.3</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>93%</td><td>—</td><td>3/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>100%</td><td>—</td><td>5/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,516</td><td>95.6</td><td>15,462.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>15,837.4</td><td>15,921.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
<tr><td>8,000</td><td>5,940</td><td>312.3</td><td>18,593.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>18,958.0</td><td>19,088.5<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
<tr><td>16,000</td><td>11,815</td><td>637.6</td><td>18,429.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>18,535.2</td><td>18,607.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
<tr><td>32,000</td><td>23,577</td><td>1,402.6</td><td>16,607.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>16,743.5</td><td>16,936.2<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>: 38/40 runs (95%) — on a thinking model a truncated run measures the thinking phase, not a complete answer. 16 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": [192.58014253044544, 189.29451562103566, 192.2819670731489, 190.8726446582794, 191.24361711155214, 192.3291833966156, 192.00842589647218, 193.53181513742226], "decodeIqr": [8.440206515875445, 3.4107867715257214, 0.3977970641029742, 3.812968034733643, 1.2953118051696038, 1.4755464969910577, 1.2382093148878255, 1.0435655075074237], "cv": [3.4369206475682645, 1.1143841377091739, 0.9457088094278393, 1.1543765024842403, 1.1557924799935062, 0.8762442257296786, 0.9942643166585444, 1.2918855156915325], "itlLow": [100.43244931880169, 103.35324721068092, 126.08617071922325, 111.73251115188401, 129.399500346649, 147.76411934974237, 139.8128273079208, 120.27364484005662], "itlMed": [192.8578563956508, 191.99527543805794, 192.5644696488636, 192.91812979369945, 192.13011971644616, 191.8212410272686, 192.11827110006018, 192.9772863849962], "itlHigh": [223.52193777822973, 220.93413310522493, 225.91059432049997, 223.3544776844976, 217.83754953217803, 214.1776078394105, 215.7719885972855, 226.28224219580173], "batched": false, "updP50": [5.185166000956087, 5.208461499023542, 5.193065999264945, 5.183545999898342, 5.20480600062001, 5.213186999753816, 5.2051269994990434, 5.181956999877002], "updP99": [9.218716200266496, 8.341063089701496, 6.766407579380021, 8.134699798902147, 6.427160119637857, 5.842647399986156, 6.026495400910789, 6.8790443210308965], "tokPerUpd": [1.0, 1.0010355540214015, 1.0, 1.0024721878862795, 1.0, 1.0, 1.0007278020378456, 1.0], "ttft50": [62.901727000280516, 62.846216998877935, 61.87820899867802, 61.44799000139756, 60.21395800053142, 40.99975099961739, 60.75415799932671, 62.17141399974935], "combined": 191.25169229489651, "conc": {"levels": [1, 2, 4, 8], "agg": [187.36072840750467, 347.5195614378849, 645.6871363897317, 1036.4572464317944], "t50": [59.18948299949989, 67.03577450025477, 71.05838949973986, 79.44720950035844], "t99": [68.25527855966358, 1051.4067465602056, 123.46176728966384, 128.59410354947613], "per": [192.16576794250057, 185.7466088503725, 176.0938649853913, 160.30703790489838], "ok": [48, 48, 48, 48], "req": [48, 48, 48, 48]}, "pre": {"depths": [2000, 8000, 16000, 32000], "tok": [1516.0, 5940.0, 11815.0, 23577.0], "low": [15462.119031645416, 18593.306087828776, 18429.873494162846, 16607.01273172245], "med": [15837.419113407297, 18957.974374644044, 18535.150668855684, 16743.548942092355], "high": [15921.012731381983, 19088.4993274752, 18607.23957070133, 16936.165089705584], "t50": [95.63852500014036, 312.32839150015934, 637.6368745004584, 1402.649603500322]}};
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 @@
{"raw_short": {"tokens": [4741, 63908, 597, 5205, 302, 3888, 355, 18943, 63908, 597, 5205, 302, 5881, 355, 2076, 59405, 63908, 597, 5205, 302, 5177, 355, 36038, 63908, 597, 5205, 302, 278, 2203, 2507, 355, 5644, 20, 388, 3563, 63908, 597, 5205, 302, 10749, 355, 11210, 19192, 63908, 597, 5205, 302, 4456, 355, 1381, 24623, 63908, 597, 5205, 302, 3181, 5701, 355, 52146, 4034, 63908, 597, 5205, 302], "margins": [2.5624999403953552, 0.1875, 0.75, 3.937500149011612, 3.875000052154064, 0.875, 8.750000170315616, 8.562500159372576, 5.249999877996743, 3.5624999552965164, 6.562499801628292, 5.12500013737008, 0.875, 7.124999897554517, 4.1249999813735485, 8.999999830470188, 4.875000081956387, 2.625, 4.499999940395355, 5.124999771825969, 0.625, 8.000000108149834, 4.125000203028321, 5.750000165309757, 3.0625000596046448, 4.62500012665987, 4.874999767169356, 0.375, 5.562499947845936, 2.2500000298023224, 2.625000037252903, 7.562500005122274, 2.1250000596046448, 4.624999864026904, 7.374999893596396, 4.375000167638063, 2.1875000596046448, 4.437499828636646, 3.3750000819563866, 0.25, 7.125000162515789, 2.624999947845936, 7.187500186264515, 4.999999823048711, 2.875000089406967, 5.812500078231096, 5.2500001597218215, 0.0, 6.624999973457307, 4.5000001564621925, 5.125000074505806, 3.9999999217689037, 3.3750001043081284, 6.37500006519258, 5.3750000689178705, 0.625, 4.374999947845936, 5.249999831430614, 6.3749998970888555, 4.937499842606485, 2.875000074505806, 3.187499910593033, 5.187500197440386, 5.000000086612999]}, "raw_code": {"tokens": [360, 787, 316, 25615, 229, 24, 833, 463, 1288, 229, 24, 207, 360, 267, 20, 293, 550, 229, 24, 20, 229, 25, 207, 360, 374, 1830, 296, 3294, 7946, 640, 229, 25, 4673, 463, 267, 20, 293, 550, 293, 20, 267, 1510, 293, 207, 360, 1288, 293, 8, 3162, 116773, 71, 3162, 7946, 4673, 360, 21744, 17319, 278, 316, 8418, 91230, 1579, 1492, 267], "margins": [6.9375000146683306, 0.8750000298023224, 9.124999614199623, 0.8750000596046448, 8.624999694235157, 2.750000052154064, 5.375000145286322, 7.312499851163011, 2.874999899417162, 5.500000237952918, 8.875000018742867, 6.625000233296305, 9.749999884486897, 0.25, 7.750000000698492, 8.937499736639438, 6.500000101164915, 8.374999540275894, 7.375000207743142, 14.750000238418806, 13.624999761586196, 10.249999881485564, 6.87499984796159, 12.937500238462235, 3.875000098720193, 4.500000129453838, 11.74999976228355, 12.31250000030741, 0.5, 2.1249999180436134, 8.125000435044058, 11.50000000005457, 12.124999761848812, 12.749999880802534, 14.12500035762912, 14.75000035762804, 15.249999642372188, 10.249999762552761, 13.250000000004093, 16.312499880790718, 11.250000000960426, 6.7500001832377166, 11.624999523737642, 12.374999642421244, 9.625000002226443, 12.25000011924476, 3.125000048428774, 1.5000000298023224, 1.125, 2.1250001192092896, 0.0, 1.6249999403953552, 4.937499932944775, 5.250000167638063, 8.12500045960769, 4.374999765306711, 4.87500006519258, 4.624999839812517, 3.750000089406967, 9.500000462925527, 4.6249999683350325, 8.374999772757292, 0.875, 0.375]}, "chat_short": {"tokens": [2083, 1094, 310, 5141, 34, 496, 2992, 355, 340, 22, 13729, 497, 39, 41774, 296, 1046, 19027, 2426, 1672, 522, 1094, 310, 9173, 340, 22, 13729, 497, 296, 1046, 19027, 22, 340, 22, 13729, 497, 355, 267, 1931, 302, 58330, 1083, 20, 267, 6284, 33136, 20, 7467, 1092, 296, 6298, 1597, 20, 3654, 296, 27826, 309, 1508, 15789, 22, 810, 589, 267, 2761, 2310], "margins": [1.0000000596046448, 12.749999761612344, 12.18750000088039, 6.374999972293153, 0.25, 12.62500035763378, 12.500000357669705, 14.875000238418806, 12.187500357712452, 14.750000000000455, 8.750000253436156, 10.124999525425665, 0.125, 8.75000002910383, 16.249999642372188, 11.000000000181899, 9.37500000410364, 7.999999944440788, 2.5000001192092896, 3.7499998807907104, 3.374999899417162, 2.6250000670552254, 0.8750000596046448, 5.562500150874257, 10.874999763072992, 9.312500005406037, 10.375000003681635, 0.12499994039535522, 2.1249998956918716, 7.374999917112291, 2.0000001043081284, 1.6249999850988388, 10.999999890627805, 10.56250035841731, 8.499999909006874, 6.125000061001629, 5.8750000956933945, 1.1250000596046448, 10.93750000174623, 0.875, 9.375000045984052, 0.8750000298023224, 0.625, 1.4999998807907104, 3.875000001862645, 2.2500000596046448, 1.0, 0.5, 1.5000000298023224, 0.0, 8.124999887950253, 0.24999994039535522, 2.749999977648258, 0.25, 0.625, 3.875000085681677, 0.125, 8.250000399304554, 0.375, 3.2499999701976776, 1.3749999403953552, 3.1250001043081284, 0.0625, 8.187499984866008]}, "chat_long_600": {"tokens": [2083, 1094, 310, 47275, 278, 2803, 296, 1703, 34013, 4019, 22, 440, 2803, 355, 836, 278, 2628, 302, 278, 38890, 34, 2459, 13968, 342, 69962, 282, 475, 229, 5269, 31, 20, 794, 7040, 985, 608, 229, 3317, 24, 91, 4770, 8830, 688, 12429, 7040, 985, 310, 4248, 15078, 6804, 6624, 87, 5672, 3929, 342, 74, 2118, 80, 5101, 608, 229, 3440, 24, 91, 1068], "margins": [2.3750001043081284, 7.875000075873686, 13.62500035762912, 4.99999984819442, Line truncated
@@ -0,0 +1 @@
{"raw_short": {"tokens": [4741, 63908, 597, 5205, 302, 3888, 355, 18943, 63908, 597, 5205, 302, 5881, 355, 2076, 59405, 63908, 597, 5205, 302, 5177, 355, 36038, 63908, 597, 5205, 302, 278, 2203, 2507, 355, 5644, 20, 388, 3563, 63908, 597, 5205, 302, 10749, 355, 11210, 19192, 63908, 597, 5205, 302, 4456, 355, 1381, 24623, 63908, 597, 5205, 302, 3181, 5701, 355, 52146, 4034, 63908, 597, 5205, 302], "margins": [2.5, 0.1875, 0.6875, 3.8749998658895493, 3.874999897554517, 0.875, 8.812500117812306, 8.624999777995981, 5.250000063329935, 3.625000052154064, 6.499999895691872, 5.250000132247806, 0.875, 7.125000146916136, 4.124999882653356, 8.874999606632628, 4.874999966472387, 2.5624999403953552, 4.37500012665987, 5.249999796971679, 0.625, 8.000000164029188, 4.125000052154064, 5.749999876134098, 3.0000001043081284, 4.75000012665987, 4.999999993480742, 0.4375, 5.562499823048711, 2.2499999403953552, 2.750000111758709, 7.624999950872734, 2.1249998956918716, 4.62499993480742, 7.375000116880983, 4.249999895691872, 2.1250001192092896, 4.500000171363354, 3.500000014901161, 0.125, 7.2500000989530236, 2.624999947845936, 7.125000161817297, 4.87500019185245, 2.8125, 5.81250012293458, 5.124999831430614, 0.0, 6.624999763444066, 4.499999835155904, 5.000000011175871, 4.1250002309679985, 3.3749999403953552, 6.3750001564621925, 5.375000057276338, 0.6249999403953552, 4.374999901279807, 5.250000087544322, 6.437500191386789, 4.874999913387001, 2.874999985098839, 3.125, 5.187499903142452, 5.124999929219484]}, "raw_code": {"tokens": [360, 787, 316, 25615, 229, 24, 833, 463, 1288, 229, 24, 207, 360, 267, 20, 293, 550, 229, 24, 20, 229, 25, 207, 360, 374, 1830, 296, 3294, 7946, 640, 229, 25, 4673, 463, 267, 20, 293, 550, 293, 20, 267, 1510, 293, 207, 360, 1288, 293, 8, 3162, 116773, 71, 3162, 7946, 4673, 360, 21744, 17319, 278, 316, 8418, 91230, 1579, 1492, 267], "margins": [7.062500122003257, 0.8749999701976776, 8.999999979976565, 1.0, 8.624999824154656, 2.7499999664723873, 5.374999908264726, 7.124999864434358, 2.875000100582838, 5.374999993015081, 8.875000138476025, 6.4999997925478965, 9.687499885083525, 0.25, 7.624999916472007, 8.875000457890565, 6.6249999676365405, 8.375000156112947, 7.249999788822606, 14.75000011920963, 13.624999642377361, 10.249999881485564, 6.874999970546924, 12.812499880837095, 3.999999862164259, 4.374999901279807, 11.687499881521944, 12.437500357904355, 0.5, 2.1250000670552254, 8.250000183092197, 11.374999642442162, 12.124999761826984, 12.56249988080799, 14.249999523163865, 14.75000035762804, 15.249999642372188, 10.124999762774678, 13.250000000004093, 16.124999880790718, 11.249999523985025, 6.9999999741557986, 11.74999976199797, 12.37500011926295, 9.875000239782821, 12.249999523195584, 3.1250000298023224, 1.5000000298023224, 1.1250000596046448, 1.9999999403953552, 0.0, 1.5000001192092896, 4.999999992549419, 5.250000179745257, 8.12500046088826, 4.49999996740371, 4.750000167638063, 4.499999977648258, 3.875000085681677, 9.437500231084414, 4.749999964609742, 8.499999803374521, 0.875, 0.375]}, "chat_short": {"tokens": [2083, 1094, 310, 5141, 34, 496, 2992, 355, 340, 22, 13729, 497, 39, 41774, 296, 1046, 19027, 2426, 1672, 522, 1094, 310, 9173, 340, 22, 13729, 497, 296, 1046, 19027, 22, 340, 22, 13729, 497, 355, 267, 1931, 302, 58330, 1083, 20, 267, 6284, 33136, 20, 7467, 1092, 296, 6298, 1597, 20, 3654, 296, 27826, 309, 1508, 15789, 22, 810, 589, 267, 2761, 2310], "margins": [1.0000000596046448, 12.875000119237484, 12.062500001182343, 6.374999991385266, 0.125, 12.499999880798441, 12.62499988082891, 14.875000238418806, 12.312499761661456, 14.687499880791279, 8.750000015061232, 10.12500012149394, 0.125, 8.624999917752575, 16.37499976158145, 11.000000000181899, 9.249999528416083, 7.875000200321665, 2.5000001043081284, 3.875000111758709, 3.3749999552965164, 2.7499998807907104, 0.75, 5.812499883584678, 10.8125003591922, 9.43749952739745, 10.500000003361492, 0.0, 2.2499999329447746, 7.374999914201908, 1.8750000298023224, 1.7500000447034836, 11.062500128755346, 10.56250035841731, 8.37500027375063, 6.124999971361831, 5.749999914318323, 1.1250000596046448, 10.999999644140189, 1.0000000298023224, 9.37499969691271, 0.8749999403953552, 0.7500000596046448, 1.625, 4.1250001192092896, 2.2499999403953552, 0.9999999403953552, 0.25, 1.5000000298023224, 0.0, 8.125000131607521, 0.25, 2.749999985098839, 0.25, 0.625, 3.8749999590218067, 0.12500005960464478, 8.250000286032446, 0.5, 3.3749999403953552, 1.375, 3.1250000447034836, 0.125, 8.1875003130408]}, "chat_long_600": {"tokens": [2083, 1094, 310, 47275, 278, 2803, 296, 1703, 34013, 4019, 22, 440, 2803, 355, 836, 278, 2628, 302, 278, 38890, 34, 2459, 13968, 342, 69962, 282, 475, 229, 5269, 31, 20, 794, 7040, 985, 608, 229, 3317, 24, 91, 4770, 8830, 688, 12429, 7040, 985, 310, 4248, 15078, 6804, 6624, 87, 5672, 3929, 342, 74, 2118, 80, 5101, 608, 229, 3440, 24, 91, 1068], "margins": [2.4999999329447746, 7.750000096828444, 13.500000119210881, 4.999999969266355, 12.249999523188308, 0.624999970Line truncated
+1
View File
@@ -0,0 +1 @@
{"raw_short": {"tokens": [4741, 63908, 597, 5205, 302, 3888, 355, 18943, 63908, 597, 5205, 302, 5881, 355, 2076, 59405, 63908, 597, 5205, 302, 5177, 355, 36038, 63908, 597, 5205, 302, 278, 2203, 2507, 355, 5644, 20, 388, 3563, 63908, 597, 5205, 302, 10749, 355, 11210, 19192, 63908, 597, 5205, 302, 6398, 355, 6552, 63908, 597, 5205, 302, 10125, 355, 9499, 63908, 597, 5205, 302, 11097, 355, 11818], "margins": [2.5000001192092896, 0.3125, 0.8125000596046448, 3.9375001192092896, 4.000000059604645, 0.8749999403953552, 8.875000096624717, 8.56250002537854, 5.375000189989805, 3.6874999552965164, 6.312500040978193, 5.250000149011612, 1.0000000596046448, 7.250000061234459, 4.1249999813735485, 8.875000454921974, 4.874999878928065, 2.6249999701976776, 4.375000059604645, 5.250000211410224, 0.625, 8.000000197382178, 4.00000012665987, 5.625000210478902, 3.124999910593033, 4.624999918043613, 4.999999796040356, 0.3125, 5.562499971129, 2.3749999552965164, 2.625000014901161, 7.5625002277083695, 2.124999925494194, 4.625000086612999, 7.3750001300359145, 4.375000040978193, 2.187500089406967, 4.5625001192092896, 3.4999999403953552, 0.125, 7.249999800696969, 2.624999947845936, 6.999999917228706, 4.999999857507646, 2.8124999701976776, 5.812500089406967, 5.125000172294676, 0.25, 6.9999998265411705, 6.124999875202775, 5.249999949708581, 3.8750001192092896, 6.937499822117388, 6.749999868334271, 1.25, 5.500000130850822, 7.500000101863407, 5.624999943654984, 3.8749999701976776, 6.375000199303031, 6.8750000558793545, 0.25, 7.749999797553755, 8.937500455765985]}, "raw_code": {"tokens": [360, 787, 316, 25615, 229, 24, 833, 463, 1288, 229, 24, 207, 360, 267, 20, 293, 550, 229, 24, 20, 229, 25, 207, 360, 374, 1830, 296, 3294, 7946, 640, 229, 25, 4673, 463, 267, 20, 293, 550, 293, 20, 267, 1510, 293, 207, 360, 1288, 293, 8, 3162, 116773, 65296, 7946, 4673, 360, 21744, 17319, 278, 9632, 302, 278, 1008, 316, 91230, 5242], "margins": [7.062500148778781, 0.875, 9.24999996140832, 1.0000000298023224, 8.812499890860636, 3.0, 5.499999849125743, 7.2500002376618795, 2.9999999441206455, 5.625000028871, 8.999999658000888, 6.499999878229573, 9.93749988363561, 0.375, 7.750000116619049, 8.999999600520823, 6.750000116880983, 8.625000447093043, 7.50000016199192, 14.937500238418806, 14.000000119210881, 10.49999976199797, 6.9999999609426595, 13.374999642390776, 3.9999997839331627, 4.500000108964741, 11.937500119614924, 12.749999642508556, 0.25, 2.1249999403953552, 8.374999687308446, 11.374999761649633, 12.125000000261934, 12.875000000011369, 14.37499964237304, 14.93750035762804, 15.499999642372188, 10.62499988135096, 13.49999952316557, 16.187499880790718, 11.249999524025043, 6.999999848427251, 11.750000238820576, 12.62500035766152, 9.875000239782821, 12.249999761612344, 3.124999977648258, 1.5000000298023224, 1.125, 2.25, 0.125, 4.000000208616257, 3.375000052154064, 12.124999523672159, 5.499999776948243, 4.5000001564621925, 4.499999941326678, 5.0000001741573215, 11.000000122563506, 5.250000160187483, 4.750000189058483, 6.875000088126399, 5.625000060535967, 9.500000145155354]}, "chat_short": {"tokens": [2083, 1094, 310, 5141, 34, 496, 2992, 355, 340, 22, 13729, 497, 39, 41774, 296, 1046, 19027, 2426, 1672, 522, 1094, 310, 9173, 340, 22, 13729, 497, 296, 1046, 19027, 22, 340, 22, 13729, 497, 355, 267, 1931, 302, 58330, 1083, 20, 267, 6284, 33136, 20, 7467, 1092, 296, 6298, 1597, 20, 3654, 296, 27826, 309, 1508, 15789, 22, 810, 589, 267, 2761, 2310], "margins": [0.9999999403953552, 12.875000119237484, 12.124999524025043, 6.50000013387762, 0.25, 12.62500035763378, 12.499999880837095, 14.75000011920963, 12.124999523258339, 14.687499880791279, 8.749999537976691, 10.000000003055902, 0.125, 8.624999916733941, 16.24999976158145, 10.874999642599505, 9.374999646504875, 7.999999945110176, 2.6250001192092896, 3.750000037252903, 3.3749998956918716, 2.6249999403953552, 0.7499999403953552, 5.625000095926225, 10.874999524665327, 9.437500123567588, 10.375000242762326, 0.0, 2.125000089406967, 7.500000095344149, 1.8749999552965164, 1.7499999701976776, 11.06249989036587, 10.625000119933247, 8.500000266780262, 6.000000125262886, 5.750000161118805, 1.1250000596046448, 11.062499762971129, 0.8749999701976776, 9.37500005349284, 0.8749999701976776, 0.6250000596046448, 1.6250000596046448, 3.9999998211860657, 2.250000074505806, 1.0, 0.375, 1.3749999850988388, 0.0, 8.125000365485903, 0.375, 2.7499999701976776, 0.25, 0.625, 3.8749999701976776, 0.125, 8.000000315834768, 0.375, 3.3749999552965164, 1.3750000298023224, 3.2500000670552254, 0.0625, 8.312500308034942]}, "chat_long_600": {"tokens": [2083, 1094, 310, 47275, 278, 2803, 296, 1703, 34013, 4019, 22, 440, 2803, 355, 836, 278, 2628, 302, 278, 38890, 34, 2459, 13968, 342, 69962, 282, 475, 229, 5269, 31, 20, 794, 7040, 985, 608, 229, 3317, 24, 91, 4770, 8830, 688, 12429, 7040, 985, 310, 4248, 15078, 6804, 6624, 87, 5672, 3929, 342, 74, 2118, 80, 5101, 608, 229, 3440, 24, 91, 1068], "margins": [2.4999999329447746, 7.875000195024768, 13.562500Line truncated
@@ -0,0 +1 @@
{"raw_short": {"tokens": [4741, 63908, 597, 5205, 302, 3888, 355, 18943, 63908, 597, 5205, 302, 5881, 355, 2076, 59405, 63908, 597, 5205, 302, 5177, 355, 36038, 63908, 597, 5205, 302, 278, 2203, 2507, 355, 5644, 20, 388, 3563, 63908, 597, 5205, 302, 10749, 355, 11210, 19192, 63908, 597, 5205, 302, 4456, 355, 1381, 24623, 63908, 597, 5205, 302, 3181, 5701, 355, 52146, 4034, 63908, 597, 5205, 302], "margins": [2.437499925494194, 0.125, 0.75, 3.9999998956918716, 3.875000048428774, 1.125, 8.937499587016646, 8.56249993282836, 5.2499997997656465, 3.6875000819563866, 6.499999895691872, 5.249999811407179, 1.0, 7.124999915948138, 4.2499998193234205, 8.93750044508488, 4.87499999627471, 2.5624999701976776, 4.375000074505806, 5.249999763444066, 0.625, 8.000000200932845, 4.000000100582838, 5.624999829567969, 3.0624999701976776, 4.625000208616257, 4.874999776482582, 0.375, 5.5000002309679985, 2.2500000447034836, 2.6249998956918716, 7.6250002107117325, 2.1249998807907104, 4.624999904073775, 7.374999835039489, 4.250000139698386, 2.1250000596046448, 4.374999918043613, 3.5000000186264515, 0.125, 7.124999785562977, 2.624999985098839, 7.18749984819442, 5.0000002002343535, 2.8749999701976776, 5.812500212341547, 5.249999837949872, 0.0, 6.625000171596184, 4.5000001806765795, 4.999999878928065, 3.9999998304992914, 3.3750000596046448, 6.250000013038516, 5.374999868683517, 0.625, 4.375000171363354, 5.375000042840838, 6.687499944586307, 4.875000102445483, 2.750000022351742, 3.1874998807907104, 5.249999895691872, 5.000000021420419]}, "raw_code": {"tokens": [360, 787, 316, 25615, 229, 24, 833, 463, 1288, 229, 24, 207, 360, 267, 20, 293, 550, 229, 24, 20, 229, 25, 207, 360, 374, 1830, 296, 3294, 7946, 640, 229, 25, 4673, 463, 267, 20, 293, 550, 293, 20, 267, 1510, 293, 207, 360, 1288, 293, 8, 3162, 116773, 65296, 7946, 4673, 360, 21744, 17319, 278, 9632, 302, 278, 1008, 316, 91230, 5242], "margins": [7.062500158557668, 0.75, 9.374999589665094, 1.0000000596046448, 8.750000257685315, 2.8750001154839993, 5.500000038184226, 7.2499999954598024, 2.7499999180436134, 5.500000188592821, 9.00000025294139, 6.3749997788108885, 9.937500241307134, 0.375, 7.499999949359335, 8.937499965686584, 6.624999957974069, 8.62500009703217, 7.375000206811819, 14.937500238418806, 14.000000000001819, 10.374999642910552, 6.8750000855652615, 13.43749988080799, 3.999999836087227, 4.500000050291419, 11.937499642848707, 12.500000119427568, 0.5, 2.1250000968575478, 8.374999570456566, 11.374999761649633, 12.124999642579496, 12.812499761594154, 14.24999964237304, 14.93750035762804, 15.62499976158145, 10.625000358206307, 13.375000357631052, 15.999999880790718, 11.375000239288056, 7.000000206171535, 11.874999881176336, 12.624999880820724, 9.99999964343806, 12.12500000003638, 3.1249998956918716, 1.5000000149011612, 0.875, 2.1249998807907104, 0.125, 4.000000052154064, 3.3750000782310963, 11.875000358340912, 5.374999895691872, 4.374999793246388, 4.625000141561031, 4.999999988824129, 11.000000003681635, 5.37499980814755, 4.625000058673322, 6.999999998952262, 5.6250001806765795, 9.374999913707143]}, "chat_short": {"tokens": [2083, 1094, 310, 5141, 34, 496, 2992, 355, 340, 22, 13729, 497, 39, 41774, 296, 1046, 19027, 2426, 1672, 522, 1094, 310, 9173, 340, 22, 13729, 497, 296, 1046, 19027, 22, 340, 22, 13729, 497, 355, 267, 1931, 302, 58330, 1083, 20, 267, 6284, 33136, 20, 7467, 1092, 296, 11389, 15789, 309, 27826, 2387, 310, 851, 33673, 309, 35172, 22, 810, 677, 229, 26022], "margins": [1.0, 12.749999761612344, 12.124999524145096, 6.499999777413905, 0.25, 12.749999880795258, 12.499999880837095, 14.62500011920963, 12.062499523271981, 14.687499880791279, 8.749999895706424, 10.250000359708793, 0.25, 8.750000267231371, 16.24999976158145, 11.000000000181899, 9.249999766812834, 7.99999982592999, 2.624999925494194, 3.7500000298023224, 3.375000048428774, 2.749999962747097, 0.7499999403953552, 5.625000145286322, 10.875000120733603, 9.374999885629222, 10.500000361040293, 0.125, 2.124999947845936, 7.374999820487574, 1.8749999701976776, 1.7500000149011612, 11.12500000721775, 10.562500000800355, 8.37499955893145, 5.99999989150092, 5.750000156695023, 0.9999999403953552, 10.937499524883606, 0.8749999701976776, 9.374999934632797, 0.875, 0.7499999701976776, 1.5000001192092896, 4.249999911524355, 2.375000089406967, 0.9999999403953552, 0.25, 1.3749999701976776, 0.125, 0.125, 1.2500000298023224, 2.2500000447034836, 0.25, 12.500000000011369, 5.874999781837687, 1.375, 3.3750000074505806, 0.25, 4.374999795109034, 2.499999910593033, 0.25, 1.125, 0.25]}, "chat_long_600": {"tokens": [2083, 1094, 310, 47275, 278, 2803, 296, 1703, 34013, 4019, 22, 440, 2803, 355, 836, 278, 2628, 302, 278, 38890, 34, 2459, 13968, 342, 69962, 282, 475, 229, 5269, 31, 20, 794, 7040, 985, 608, 229, 3317, 24, 91, 4770, 8830, 688, 12429, 7040, 985, 310, 4248, 15078, 6804, 6624, 87, 5672, 3929, 342, 74, 2118, 80, 5101, 608, 229, 3440, 24, 91, 1068], "margins": [2.3749999552965164, 7.8749999566935, 13.500000119210881, 5.00000007729Line truncated
@@ -0,0 +1 @@
{"raw_short": {"tokens": [4741, 63908, 597, 5205, 302, 3888, 355, 18943, 63908, 597, 5205, 302, 5881, 355, 2076, 59405, 63908, 597, 5205, 302, 5177, 355, 36038, 63908, 597, 5205, 302, 278, 2203, 2507, 355, 5644, 20, 388, 3563, 63908, 597, 5205, 302, 10749, 355, 11210, 19192, 63908, 597, 5205, 302, 4456, 355, 1381, 24623, 63908, 597, 5205, 302, 3181, 5701, 355, 52146, 4034, 63908, 597, 5205, 302], "margins": [2.5624999403953552, 0.1875, 0.75, 3.937500149011612, 3.875000052154064, 0.875, 8.750000170315616, 8.562500159372576, 5.249999877996743, 3.5624999552965164, 6.562499801628292, 5.12500013737008, 0.875, 7.124999897554517, 4.1249999813735485, 8.999999830470188, 4.875000081956387, 2.625, 4.499999940395355, 5.124999771825969, 0.625, 8.000000108149834, 4.125000203028321, 5.750000165309757, 3.0625000596046448, 4.62500012665987, 4.874999767169356, 0.375, 5.562499947845936, 2.2500000596046448, 2.6249999552965164, 7.6250000721774995, 2.1250001043081284, 4.625000204890966, 7.3749997752020136, 4.25000006146729, 2.1875000596046448, 4.562500089406967, 3.375000022351742, 0.25, 7.25000008859206, 2.6250000819563866, 7.062499822000973, 5.000000189058483, 2.8125000596046448, 5.93750006519258, 5.124999853782356, 0.0, 6.624999973690137, 4.499999770894647, 4.9999998938292265, 4.124999940395355, 3.437500014901161, 6.374999970197678, 5.374999801628292, 0.6250000596046448, 4.375000154599547, 5.374999993480742, 6.37500019185245, 4.875000054948032, 2.8749999031424522, 3.1874999701976776, 5.062499947845936, 5.0000000996515155]}, "raw_code": {"tokens": [360, 787, 316, 25615, 229, 24, 833, 463, 1288, 229, 24, 207, 360, 267, 20, 293, 550, 229, 24, 20, 229, 25, 207, 360, 374, 1830, 296, 3294, 7946, 640, 229, 25, 4673, 463, 267, 20, 293, 550, 293, 20, 267, 1510, 293, 207, 360, 1288, 293, 8, 3162, 116773, 71, 3162, 7946, 4673, 360, 21744, 17319, 278, 316, 8418, 91230, 1579, 1492, 267], "margins": [6.9375000146683306, 0.8750000298023224, 9.124999614199623, 0.8750000596046448, 8.624999694235157, 2.750000052154064, 5.374999796040356, 7.312500215484761, 2.749999888241291, 5.50000000372529, 8.875000257103238, 6.624999865423888, 9.687499765881512, 0.25, 7.7499997621634975, 8.937500330386683, 6.4999998601851985, 8.499999884632416, 7.500000043946784, 14.75000011920963, 13.624999761586196, 10.250000000691216, 6.999999845866114, 12.937500357669705, 4.1250000558793545, 4.37499993480742, 11.812499762210791, 12.374999642664989, 0.5, 2.124999947845936, 8.125000077532604, 11.374999642442162, 12.125000000261934, 12.749999761594154, 14.12500035762912, 14.75000035762804, 15.249999642372188, 10.37499976239269, 13.249999880795258, 16.249999880790718, 11.250000120086042, 7.0000002204906195, 11.750000119614924, 12.499999523203769, 9.875000239782821, 12.25000011924476, 3.1249999441206455, 1.5, 1.25, 2.125, 0.0, 1.5000001192092896, 5.062499985098839, 5.125000081025064, 8.06250011184602, 4.499999959953129, 4.87499999627471, 4.6249999441206455, 3.874999914318323, 9.43749986536568, 4.749999960884452, 8.625000002095476, 0.875, 0.375]}, "chat_short": {"tokens": [2083, 1094, 310, 5141, 34, 496, 2992, 355, 340, 22, 13729, 497, 39, 41774, 296, 1046, 19027, 2426, 1672, 522, 1094, 310, 9173, 340, 22, 13729, 497, 296, 1046, 19027, 22, 340, 22, 13729, 497, 355, 267, 1931, 302, 58330, 1083, 20, 267, 6284, 33136, 20, 7467, 1092, 296, 11389, 309, 21424, 15789, 1597, 22, 810, 589, 267, 2761, 2310, 1741, 432, 58130, 36047], "margins": [0.9999999701976776, 12.875000119237484, 12.125000239328074, 6.3749998565763235, 0.25, 12.62500035763378, 12.500000357669705, 14.875000238418806, 12.312499880868927, 14.687499880791279, 8.749999538136763, 10.125000359963451, 0.125, 8.624999679916073, 16.37499976158145, 11.000000000181899, 9.37500000410364, 7.999999586580088, 2.499999985098839, 3.6250000819563866, 3.3750000819563866, 2.6249999180436134, 0.875, 5.812500005122274, 10.874999763072992, 9.312499647814548, 10.375000123567588, 0.0, 2.1250000670552254, 7.374999828403816, 1.8749999105930328, 1.75, 11.062500367275788, 10.562499881598342, 8.375000154832378, 5.9999998030252755, 5.750000158092007, 1.0, 11.000000120951881, 0.8749999701976776, 9.374999699153705, 0.75, 0.6250000596046448, 1.5, 4.000000042840838, 2.2500001043081284, 1.0, 0.25, 1.3749999403953552, 0.125, 0.125, 1.4999999701976776, 6.00000009406358, 1.2500000596046448, 0.6250000596046448, 3.375000014901161, 1.3750000298023224, 3.7499999180436134, 1.0, 7.99999975413084, 8.624999792606104, 0.625, 3.2500000596046448, 1.4375000596046448]}, "chat_long_600": {"tokens": [2083, 1094, 310, 47275, 278, 2803, 296, 1703, 34013, 4019, 22, 440, 2803, 355, 836, 278, 2628, 302, 278, 38890, 34, 2459, 13968, 342, 69962, 282, 475, 229, 5269, 31, 20, 794, 7040, 985, 608, 229, 3317, 24, 91, 4770, 8830, 688, 12429, 7040, 985, 310, 4248, 15078, 6804, 6624, 87, 5672, 3929, 342, 74, 2118, 80, 5101, 608, 229, 3440, 24, 91, 1068], "margins": [2.4999999329447746, 7.875000075873686, 13.62500035762912, 5.124999821186066, 12.249999523188308, 0.6250000596046448, 2Line truncated
@@ -0,0 +1 @@
{"raw_short": {"tokens": [4741, 63908, 597, 5205, 302, 3888, 355, 18943, 63908, 597, 5205, 302, 5881, 355, 2076, 59405, 63908, 597, 5205, 302, 5177, 355, 36038, 63908, 597, 5205, 302, 278, 2203, 2507, 355, 5644, 20, 388, 3563, 63908, 597, 5205, 302, 10749, 355, 11210, 19192, 63908, 597, 5205, 302, 6398, 355, 6552, 63908, 597, 5205, 302, 10125, 355, 9499, 63908, 597, 5205, 302, 11097, 355, 11818], "margins": [2.5, 0.1875, 0.6875, 3.8749998658895493, 3.874999897554517, 0.875, 8.812500117812306, 8.624999777995981, 5.250000063329935, 3.625000052154064, 6.499999895691872, 5.250000132247806, 0.875, 7.125000146916136, 4.124999882653356, 8.874999606632628, 4.874999966472387, 2.5624999403953552, 4.37500012665987, 5.249999796971679, 0.625, 8.000000164029188, 4.125000052154064, 5.749999876134098, 3.0000001043081284, 4.75000012665987, 4.999999993480742, 0.4375, 5.562499823048711, 2.2499999403953552, 2.750000111758709, 7.624999950872734, 2.1249998956918716, 4.62499993480742, 7.375000116880983, 4.249999895691872, 2.1250001192092896, 4.500000171363354, 3.500000014901161, 0.125, 7.2500000989530236, 2.500000014901161, 7.062500104075298, 5.000000121071935, 2.8125001192092896, 5.81249987706542, 5.124999990686774, 0.125, 6.999999891035259, 6.062499814666808, 5.249999993480742, 3.875000149011612, 6.874999927356839, 6.74999999650754, 1.2499999701976776, 5.499999845866114, 7.624999876366928, 5.624999854713678, 3.9375001788139343, 6.3749998128041625, 7.000000103842467, 0.25, 7.7500001940643415, 8.999999843013939]}, "raw_code": {"tokens": [360, 787, 316, 25615, 229, 24, 833, 463, 1288, 229, 24, 207, 360, 267, 20, 293, 550, 229, 24, 20, 229, 25, 207, 360, 374, 1830, 296, 3294, 7946, 640, 229, 25, 4673, 463, 267, 20, 293, 550, 293, 20, 267, 1510, 293, 207, 360, 1288, 293, 8, 3162, 116773, 71, 3162, 7946, 4673, 360, 21744, 17319, 278, 316, 8418, 91230, 1579, 1492, 267], "margins": [6.9375000146683306, 0.75, 9.00000009915675, 0.8750000596046448, 8.749999660416506, 2.7499999292194843, 5.375000154133886, 7.250000012048986, 2.8749999329447746, 5.374999901745468, 8.874999780367943, 6.499999904772267, 9.625000123931386, 0.25, 7.624999793129973, 8.937500215339242, 6.374999831081368, 8.375000140513293, 7.374999850639142, 14.75000011920963, 13.50000035763378, 10.249999881485564, 6.999999847263098, 13.062499642403964, 3.87500006146729, 4.3750002244487405, 11.750000119933247, 12.437500000283762, 0.5, 2.124999962747097, 8.125000315863872, 11.50000011926295, 12.125000000261934, 12.625000000016371, 14.249999523163865, 14.87500035762804, 15.249999642372188, 10.249999762552761, 13.124999761586196, 16.312499880790718, 11.124999524232408, 6.999999962514266, 11.500000119827746, 12.499999523203769, 9.750000120951881, 12.125000238462235, 2.8749999031424522, 1.5000000298023224, 1.125, 2.125, 0.0, 1.375, 5.000000171363354, 5.125000158324838, 8.062499753927113, 4.375000104308128, 4.875000039115548, 4.500000040978193, 3.8749999180436134, 9.312499937193934, 4.500000111758709, 8.374999535270035, 0.875, 0.375]}, "chat_short": {"tokens": [2083, 1094, 310, 5141, 34, 496, 2992, 355, 340, 22, 13729, 497, 39, 41774, 296, 1046, 19027, 2426, 1672, 522, 1094, 310, 9173, 340, 22, 13729, 497, 296, 1046, 19027, 22, 340, 22, 13729, 497, 355, 267, 1931, 302, 58330, 1083, 20, 267, 6284, 33136, 20, 7467, 1092, 296, 6298, 1597, 20, 3654, 296, 27826, 309, 1508, 15789, 22, 810, 589, 267, 2300, 19316], "margins": [1.0, 12.750000000029104, 12.000000239684596, 6.3750000088475645, 0.25, 12.500000000007276, 12.62499964241215, 14.500000000000455, 12.124999761686922, 14.624999880791279, 8.750000253436156, 10.1249997638879, 0.0, 8.625000036670826, 16.124999642372188, 10.874999642599505, 9.375000123305654, 8.000000182772055, 2.4999999701976776, 3.750000014901161, 3.5000000558793545, 2.625000022351742, 0.8750000596046448, 5.750000204890966, 10.812500239986548, 9.312499767009285, 10.500000122563506, 0.0, 2.124999962747097, 7.499999803956598, 1.8749999105930328, 1.75, 10.93749977144762, 10.437499881802069, 8.375000273488695, 6.124999832129106, 5.8749998565763235, 1.1249999403953552, 10.812500002291927, 0.8749999403953552, 9.37500016571721, 0.8749999701976776, 0.6250000596046448, 1.5000001192092896, 4.125000059604645, 2.124999925494194, 1.0, 0.5000000596046448, 1.3749999403953552, 0.0, 8.124999889405444, 0.25, 2.7500001192092896, 0.25, 0.625, 3.9999999031424522, 0.125, 8.125000436790287, 0.5, 3.3750000298023224, 1.5000000447034836, 3.125000014901161, 0.0, 7.124999933643267]}, "chat_long_600": {"tokens": [2083, 1094, 310, 47275, 278, 2803, 296, 1703, 34013, 4019, 22, 440, 2803, 355, 836, 278, 2628, 302, 278, 38890, 34, 2459, 13968, 342, 69962, 282, 475, 229, 5269, 31, 20, 794, 7040, 985, 608, 229, 3317, 24, 91, 4770, 8830, 688, 12429, 7040, 985, 310, 4248, 15078, 6804, 6624, 87, 5672, 3929, 342, 74, 2118, 80, 5101, 608, 229, 3440, 24, 91, 1068], "margins": [2.4999999329447746, 7.9999997017439455, 13.562500238419943, 5.125000206753612, 12.124999761612344, 0.7500000298023224, 2.124999910593033,Line truncated
+9
View File
@@ -0,0 +1,9 @@
2026-10-28T23:41:06 eager 75 15753 --enforce-eager
2026-10-28T23:44:08 default 138 15672
2026-10-28T23:46:41 fdo1248 128 16067 --compilation-config={"cudagraph_mode":"FULL_DECODE_ONLY","cudagraph_capture_sizes":[1,2,4,8]}
2026-10-28T23:48:56 default 83 15930
2026-10-28T23:58:55 fdo1248 69 16245 --compilation-config={"cudagraph_mode":"FULL_DECODE_ONLY","cudagraph_capture_sizes":[1,2,4,8]}
2026-10-29T00:08:49 eager 60 15753 --enforce-eager
2026-10-29T00:48:04 default 91 15926
2026-10-29T00:53:28 fp8 144 15693 --quantization=fp8
2026-10-29T01:03:13 bf16fix 142 15672
Can't render this file because it contains an unexpected character in line 3 and column 61.
+1
View File
@@ -0,0 +1 @@
{"raw_short": {"tokens": [4741, 63908, 597, 5205, 302, 3888, 355, 18943, 63908, 597, 5205, 302, 5881, 355, 2076, 59405, 63908, 597, 5205, 302, 5177, 355, 36038, 63908, 597, 5205, 302, 278, 2203, 2507, 355, 5644, 20, 388, 3563, 63908, 597, 5205, 302, 10749, 355, 11210, 19192, 63908, 597, 5205, 302, 4456, 355, 1381, 24623, 63908, 597, 5205, 302, 3181, 5701, 355, 52146, 4034, 63908, 597, 5205, 302], "margins": [2.5624999403953552, 0.1875, 0.75, 3.937500149011612, 3.875000052154064, 0.875, 8.750000170315616, 8.562500159372576, 5.249999877996743, 3.5624999552965164, 6.562499801628292, 5.12500013737008, 0.875, 7.124999897554517, 4.1249999813735485, 8.999999830470188, 4.875000081956387, 2.625, 4.499999940395355, 5.124999771825969, 0.625, 8.000000108149834, 4.125000203028321, 5.750000165309757, 3.0625000596046448, 4.62500012665987, 4.874999767169356, 0.375, 5.562499947845936, 2.2500000298023224, 2.625000037252903, 7.562500005122274, 2.1250000596046448, 4.624999864026904, 7.374999893596396, 4.375000167638063, 2.1875000596046448, 4.437499828636646, 3.3750000819563866, 0.25, 7.125000162515789, 2.624999947845936, 7.187500186264515, 4.999999823048711, 2.875000089406967, 5.812500078231096, 5.2500001597218215, 0.0, 6.624999973457307, 4.5000001564621925, 5.125000074505806, 3.9999999217689037, 3.3750001043081284, 6.37500006519258, 5.3750000689178705, 0.625, 4.374999947845936, 5.249999831430614, 6.3749998970888555, 4.937499842606485, 2.875000074505806, 3.187499910593033, 5.187500197440386, 5.000000086612999]}, "raw_code": {"tokens": [360, 787, 316, 25615, 229, 24, 833, 463, 1288, 229, 24, 207, 360, 267, 20, 293, 550, 229, 24, 20, 229, 25, 207, 360, 374, 1830, 296, 3294, 7946, 640, 229, 25, 4673, 463, 267, 20, 293, 550, 293, 20, 267, 1510, 293, 207, 360, 1288, 293, 8, 3162, 116773, 71, 3162, 7946, 4673, 360, 21744, 17319, 278, 316, 8418, 91230, 1579, 1492, 267], "margins": [6.9375000146683306, 0.8750000298023224, 9.124999614199623, 0.8750000596046448, 8.624999694235157, 2.750000052154064, 5.375000145286322, 7.312499851163011, 2.874999899417162, 5.500000237952918, 8.875000018742867, 6.625000233296305, 9.749999884486897, 0.25, 7.750000000698492, 8.937499736639438, 6.500000101164915, 8.374999540275894, 7.375000207743142, 14.750000238418806, 13.624999761586196, 10.249999881485564, 6.87499984796159, 12.937500238462235, 3.875000098720193, 4.500000129453838, 11.74999976228355, 12.31250000030741, 0.5, 2.1249999180436134, 8.125000435044058, 11.50000000005457, 12.124999761848812, 12.749999880802534, 14.12500035762912, 14.75000035762804, 15.249999642372188, 10.249999762552761, 13.250000000004093, 16.312499880790718, 11.250000000960426, 6.7500001832377166, 11.624999523737642, 12.374999642421244, 9.625000002226443, 12.25000011924476, 3.125000048428774, 1.5000000298023224, 1.125, 2.1250001192092896, 0.0, 1.6249999403953552, 4.937499932944775, 5.250000167638063, 8.12500045960769, 4.374999765306711, 4.87500006519258, 4.624999839812517, 3.750000089406967, 9.500000462925527, 4.6249999683350325, 8.374999772757292, 0.875, 0.375]}, "chat_short": {"tokens": [2083, 1094, 310, 5141, 34, 496, 2992, 355, 340, 22, 13729, 497, 39, 41774, 296, 1046, 19027, 2426, 1672, 522, 1094, 310, 9173, 340, 22, 13729, 497, 296, 1046, 19027, 22, 340, 22, 13729, 497, 355, 267, 1931, 302, 58330, 1083, 20, 267, 6284, 33136, 20, 7467, 1092, 296, 6298, 1597, 20, 3654, 296, 27826, 309, 1508, 15789, 22, 810, 589, 267, 2761, 2310], "margins": [1.0000000596046448, 12.749999761612344, 12.18750000088039, 6.374999972293153, 0.25, 12.62500035763378, 12.500000357669705, 14.875000238418806, 12.187500357712452, 14.750000000000455, 8.750000253436156, 10.124999525425665, 0.125, 8.75000002910383, 16.249999642372188, 11.000000000181899, 9.37500000410364, 7.999999944440788, 2.5000001192092896, 3.7499998807907104, 3.374999899417162, 2.6250000670552254, 0.8750000596046448, 5.562500150874257, 10.874999763072992, 9.312500005406037, 10.375000003681635, 0.12499994039535522, 2.1249998956918716, 7.374999917112291, 2.0000001043081284, 1.6249999850988388, 10.999999890627805, 10.56250035841731, 8.499999909006874, 6.125000061001629, 5.8750000956933945, 1.1250000596046448, 10.93750000174623, 0.875, 9.375000045984052, 0.8750000298023224, 0.625, 1.4999998807907104, 3.875000001862645, 2.2500000596046448, 1.0, 0.5, 1.5000000298023224, 0.0, 8.124999887950253, 0.24999994039535522, 2.749999977648258, 0.25, 0.625, 3.875000085681677, 0.125, 8.250000399304554, 0.375, 3.2499999701976776, 1.3749999403953552, 3.1250001043081284, 0.0625, 8.187499984866008]}, "chat_long_600": {"tokens": [2083, 1094, 310, 47275, 278, 2803, 296, 1703, 34013, 4019, 22, 440, 2803, 355, 836, 278, 2628, 302, 278, 38890, 34, 2459, 13968, 342, 69962, 282, 475, 229, 5269, 31, 20, 794, 7040, 985, 608, 229, 3317, 24, 91, 4770, 8830, 688, 12429, 7040, 985, 310, 4248, 15078, 6804, 6624, 87, 5672, 3929, 342, 74, 2118, 80, 5101, 608, 229, 3440, 24, 91, 1068], "margins": [2.3750001043081284, 7.875000075873686, 13.62500035762912, 4.99999984819442, Line truncated
+1
View File
@@ -0,0 +1 @@
{"raw_short": {"tokens": [4741, 20, 309, 278, 5205, 302, 278, 2203, 2507, 355, 5644, 20, 388, 3563, 22, 440, 5205, 302, 5177, 355, 36038, 20, 309, 278, 5205, 302, 5881, 355, 2076, 59405, 22, 440, 5205, 302, 278, 2203, 10020, 355, 4595, 20, 309, 278, 5205, 302, 6398, 355, 6552, 22, 440, 5205, 302, 10125, 355, 9499, 20, 309, 278, 5205, 302, 11097, 355, 11818, 22, 440], "margins": [3.312499985098839, 0.375, 1.25, 1.125, 0.8750000596046448, 5.49999980116263, 1.5625000596046448, 3.125000074505806, 1.6249999552965164, 4.187499914318323, 5.250000125728548, 2.2499999701976776, 5.124999858438969, 7.499999841325916, 0.4999999403953552, 0.4375, 3.0624999701976776, 3.999999985098839, 2.0000000596046448, 6.874999836785719, 2.500000074505806, 0.24999994039535522, 3.500000111758709, 5.37500012293458, 3.999999810010195, 6.062499838182703, 0.75, 8.125000291736796, 6.062499952502549, 7.3125002143206075, 1.4999999701976776, 1.375, 3.5624999701976776, 3.3750000074505806, 0.0625, 3.5000000298023224, 0.7500000298023224, 3.6250000074505806, 4.375000141561031, 0.0, 2.750000089406967, 4.37500000372529, 4.125000182539225, 6.125000000232831, 0.7500000596046448, 7.375000002095476, 5.937500221654773, 2.6249998956918716, 1.5624999403953552, 4.125000029802322, 4.375000042840838, 0.375, 6.625000120839104, 7.06250013387762, 1.1249999403953552, 3.999999951571226, 6.749999890103936, 7.062499939929694, 8.374999609397491, 0.875, 7.687499981489964, 7.750000234809704, 3.1250000596046448, 2.312500089406967]}, "raw_code": {"tokens": [360, 787, 316, 25615, 229, 24, 833, 463, 1288, 229, 24, 207, 360, 267, 20, 293, 550, 229, 24, 20, 229, 25, 207, 360, 374, 1830, 296, 3294, 7946, 640, 229, 25, 4673, 463, 267, 20, 293, 550, 293, 20, 267, 1510, 293, 207, 360, 1288, 293, 8, 3162, 116773, 71, 3162, 7946, 4673, 360, 21744, 17319, 278, 316, 8418, 91230, 1579, 1492, 267], "margins": [7.375000015832484, 0.9999999701976776, 8.874999655468855, 1.375, 8.687500265310518, 2.8749999590218067, 6.375000078929588, 7.18749978375854, 3.124999925494194, 5.124999865889549, 9.625000362895662, 6.62499997834675, 9.687500004016329, 0.375, 7.749999997933628, 9.312500425236067, 6.249999881372787, 8.875000043975888, 8.375000031694071, 15.312499642372188, 14.000000119210881, 10.000000358748366, 8.249999799096258, 13.812499880798441, 4.500000006519258, 4.74999987334013, 11.500000000589353, 11.625000238935172, 1.0000000298023224, 2.0, 8.624999943742296, 11.00000023856228, 12.125000357820682, 12.500000238433586, 14.374999880791279, 14.75000035762804, 15.74999976158145, 9.749999883359123, 12.625000000007276, 17.125, 10.999999762083462, 6.124999926891178, 11.87499976187064, 12.374999880868927, 9.249999527848559, 13.50000011921611, 2.874999936670065, 1.7499999701976776, 1.125, 2.1250001192092896, 0.25, 1.5, 4.8125001564621925, 4.625000076368451, 8.124999942141585, 3.749999936670065, 5.000000039115548, 4.249999936670065, 3.9999999292194843, 9.437499526829924, 4.874999899417162, 8.625000155996531, 0.9999999403953552, 0.625]}, "chat_short": {"tokens": [2083, 1094, 310, 5141, 278, 3451, 34, 496, 2992, 355, 340, 22, 13729, 497, 8022, 296, 1046, 19027, 22, 340, 22, 13729, 497, 355, 267, 1931, 302, 58330, 1083, 20, 267, 6284, 33136, 20, 7467, 1092, 296, 6298, 1597, 20, 3654, 296, 27826, 309, 1508, 15789, 22, 810, 589, 267, 2300, 19316, 22, 1672, 522, 1094, 310, 2675, 267, 55911, 1046, 1522, 97365, 5141], "margins": [0.9999999403953552, 11.875000000130967, 12.687500119642209, 7.249999994295649, 0.25, 9.749999765619577, 5.125000219792128, 15.124999523162955, 12.624999523176484, 14.875000238418806, 11.312499761945219, 14.56250035762912, 8.625000019485014, 10.99999964343806, 0.125, 2.6249999403953552, 1.3749999552965164, 11.500000357802492, 3.124999910593033, 1.5000000298023224, 12.375000358573743, 9.687500360887498, 8.624999545878381, 5.250000006053597, 5.749999781837687, 0.9999999403953552, 11.875000358000761, 1.1249999701976776, 9.000000286090653, 1.3749999403953552, 0.5, 1.3749999403953552, 3.7500000298023224, 1.4999999403953552, 2.0000001192092896, 1.6250000298023224, 1.9999999552965164, 0.375, 8.499999596824637, 0.125, 3.250000014901161, 0.3750000596046448, 0.75, 4.000000152736902, 0.25, 8.312499597435817, 1.0000000596046448, 1.3749999403953552, 2.3749998807907104, 4.125000044703484, 1.3125000596046448, 7.12499981012661, 1.2499999403953552, 2.4999998807907104, 0.25, 1.1250000298023224, 3.2499998956918716, 0.25, 1.3749999701976776, 5.12500009406358, 0.6250000596046448, 8.625000154570444, 10.499999881230906, 4.125000162050128]}, "chat_long_600": {"tokens": [2083, 1094, 310, 47275, 278, 2803, 296, 1703, 34013, 4019, 22, 440, 2803, 355, 836, 278, 2628, 302, 278, 38890, 34, 2459, 13968, 342, 69962, 282, 475, 229, 5269, 31, 20, 794, 7040, 985, 608, 229, 3317, 24, 91, 4770, 8830, 688, 12429, 7040, 985, 310, 4248, 15078, 6804, 6624, 87, 5672, 3929, 342, 74, 2118, 80, 5101, 608, 229, 3440, 24, 91, 1068], "margins": [2.25, 7.999999702064088, 13.562500000001819, 4.749999946914613, 11.250000119354809,Line truncated
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# Render BetterBench results.json files and pull the headline metrics into one markdown table.
# tests/bb_table.sh LABEL=path/results.json ...
# Columns follow BetterBench's own report: combined decode / ITL 1% low / TTFT p50, concurrency
# level-8 aggregate, prefill median at target depth 32000. Bandwidth = 3.47 GB x decode t/s.
cd "$(dirname "$0")/.."
echo "| variant | decode t/s | eff. bandwidth | ITL 1% low t/s | TTFT p50 ms | aggregate @8 t/s | prefill @32k t/s |"
echo "|---|--:|--:|--:|--:|--:|--:|"
for arg in "$@"; do
label=${arg%%=*}; f=${arg#*=}
BETTERBENCH_HOME=$PWD/.betterbench .venv-bench/bin/betterbench report "$f" 2>/dev/null | python3 -c '
import re, sys
t = sys.stdin.read(); label = sys.argv[1]
m = re.search(r"decode t/s median ≈ \*\*([\d.]+)\*\*, ITL 1%-low ≈ \*\*([\d.]+) t/s\*\*, TTFT p50 ≈ \*\*([\d.]+) ms", t)
c8 = re.search(r"^\| 8 \| [^|]+\| ([\d.]+) \|", t, re.M)
p32 = re.search(r"^\| 32000 \|(?:[^|]+\|){3} ([\d.]+) \|", t, re.M)
na = "—"
cell = lambda x, i=1: x.group(i) if x else na
bw = "%.0f GB/s (%.0f%%)" % (3.47 * float(m.group(1)), 3.47 * float(m.group(1)) / 6.08) if m else na
print(f"| {label} | {cell(m)} | {bw} | {cell(m, 2)} | {cell(m, 3)} | {cell(c8)} | {cell(p32)} |")
' "$label"
done
+45
View File
@@ -0,0 +1,45 @@
#!/usr/bin/env python3
"""Greedy-decode 64 tokens for the ref_compare prompts (token ids in results/ref_prompts.json) on a running server and save them;
optionally compare with another variant's saved run (normally the eager one).
At the first differing token, prints the reference run's top-2 logprob margin there, so
near-ties (bf16 noise) can be told apart from real divergence.
python3 tests/greedy_variant.py PORT OUT.json [REF.json] [--concurrent]
"""
import json, sys, urllib.request
from concurrent.futures import ThreadPoolExecutor
args = [a for a in sys.argv[1:] if not a.startswith("--")]
port, out_path = int(args[0]), args[1]
ref_path = args[2] if len(args) > 2 else None
prompts = {k: v["prompt_ids"] for k, v in json.load(open("results/ref_prompts.json"))["results"].items()}
N = 64
def gen(item):
name, ids = item
body = {"model": "lfm3-1.7b", "prompt": ids, "max_tokens": N, "temperature": 0.0,
"repetition_penalty": 1.0, "ignore_eos": True, "logprobs": 2,
"return_tokens_as_token_ids": True}
req = urllib.request.Request(f"http://127.0.0.1:{port}/v1/completions", json.dumps(body).encode(),
{"Content-Type": "application/json"})
lp = json.loads(urllib.request.urlopen(req, timeout=600).read())["choices"][0]["logprobs"]
toks = [int(t.split(":")[1]) for t in lp["tokens"]]
margins = [v[0] - v[1] if len(v) > 1 else None
for v in (sorted(top.values(), reverse=True) for top in lp["top_logprobs"])]
return name, {"tokens": toks, "margins": margins}
workers = len(prompts) if "--concurrent" in sys.argv else 1
with ThreadPoolExecutor(workers) as ex:
res = dict(ex.map(gen, prompts.items()))
json.dump(res, open(out_path, "w"))
if ref_path:
ref = json.load(open(ref_path))
total = 0
for name, r in res.items():
want = ref[name]["tokens"]
same = next((i for i, (a, b) in enumerate(zip(r["tokens"], want)) if a != b), len(want))
total += same == len(want)
note = "" if same == len(want) else f" (ref top-2 margin at pos {same}: {ref[name]['margins'][same]:.3f})"
print(f"{name:<15} identical prefix {same}/{len(want)}{note}")
print(f"{total}/{len(res)} prompts identical for all {N} tokens")
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env python3
"""Recompute BetterBench's combined 'ITL 1% low' (t/s) for runs where BetterBench dropped it
because one stream update carried >1 token (it then shows 'update p99' instead). Uses
BetterBench's own functions (metrics.itl_to_rate_samples + summarize(rate_like=True)) per
category, weighted with the run's config weights, ignoring only the 'batched' flag.
.venv-bench/bin/python tests/itl_low.py results.json ...
"""
import json, sys
from betterbench.metrics import itl_to_rate_samples, summarize
for f in sys.argv[1:]:
d = json.load(open(f)); w = d["config"]["weights"]
per = {c: summarize(itl_to_rate_samples([g for r in runs if r["ok"] for g in r["update_gaps_ms"]]),
rate_like=True).low_1pct for c, runs in d["single_stream"].items()}
comb = sum(w[c] * per[c] for c in w) / sum(w.values())
print(f"{comb:.1f}\t{f}")
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Post a message to the Discord webhook stored in ./.discord_webhook (not committed).
# tests/notify.sh "text" (max 2000 chars per Discord message)
cd "$(dirname "$0")/.."
python3 -c 'import json,sys; print(json.dumps({"username": "Claude (lfm3-vllm-port)", "content": sys.argv[1][:2000]}))' "$1" |
curl -sS -o /dev/null -w '%{http_code}\n' -H 'Content-Type: application/json' -d @- "$(cat .discord_webhook)"
+70
View File
@@ -0,0 +1,70 @@
#!/usr/bin/env python3
"""Greedy chat decode of 5 varied prompts (math, code, German, tool call, summary) on a running
server; saves tokens + text. With REF.json, compares token by token and prints the first
divergence (with the reference's top-2 margin there) and both final answers.
python3 tests/quality_prompts.py PORT OUT.json [REF.json]
"""
import json, sys, urllib.request
port, out_path = int(sys.argv[1]), sys.argv[2]
ref_path = sys.argv[3] if len(sys.argv) > 3 else None
WEATHER_TOOL = {"type": "function", "function": {
"name": "get_weather", "description": "Get the current weather for a city.",
"parameters": {"type": "object", "properties": {"city": {"type": "string"},
"unit": {"type": "string", "enum": ["celsius", "fahrenheit"]}},
"required": ["city"]}}}
PROMPTS = {
"math": {"messages": [{"role": "user", "content":
"A train leaves at 09:40 and arrives at 13:15. It stops twice for 7 minutes each. "
"How many minutes is it actually moving? Answer with the number."}]},
"code": {"messages": [{"role": "user", "content":
"Write a Python function is_palindrome(s) that ignores case and non-alphanumeric "
"characters. Only the code."}]},
"german": {"messages": [{"role": "user", "content":
"Erkläre in zwei Sätzen, warum der Himmel blau ist. Antworte auf Deutsch."}]},
"tool_call": {"messages": [{"role": "user", "content":
"What's the weather in Hamburg right now, in celsius?"}], "tools": [WEATHER_TOOL]},
"summary": {"messages": [{"role": "user", "content":
"Summarize in one sentence: The city council voted 7 to 2 on Tuesday to convert the "
"old freight depot into a public library and community workshop. Construction starts "
"next spring and is funded by a state grant of 4.2 million euros plus 800,000 euros "
"from the city budget. Opponents argued the site should be sold to reduce debt."}]},
}
def run(name, p):
body = {"model": "lfm3-1.7b", "max_tokens": 1500, "temperature": 0.0,
"repetition_penalty": 1.0, "logprobs": True, "top_logprobs": 2, **p}
req = urllib.request.Request(f"http://127.0.0.1:{port}/v1/chat/completions",
json.dumps(body).encode(), {"Content-Type": "application/json"})
r = json.loads(urllib.request.urlopen(req, timeout=600).read())
c = r["choices"][0]; m = c["message"]
lp = (c.get("logprobs") or {}).get("content") or []
return {"tokens": [t["token"] for t in lp],
"margins": [(t["top_logprobs"][0]["logprob"] - t["top_logprobs"][1]["logprob"])
if len(t["top_logprobs"]) > 1 else None for t in lp],
"reasoning": m.get("reasoning"), "content": m.get("content"),
"tool_calls": [tc["function"] for tc in (m.get("tool_calls") or [])],
"finish_reason": c["finish_reason"], "completion_tokens": r["usage"]["completion_tokens"]}
res = {name: run(name, p) for name, p in PROMPTS.items()}
json.dump(res, open(out_path, "w"), ensure_ascii=False, indent=1)
def answer(r):
return json.dumps(r["tool_calls"], ensure_ascii=False) if r["tool_calls"] else (r["content"] or "").strip()
if ref_path:
ref = json.load(open(ref_path))
for name, r in res.items():
a, b = ref[name]["tokens"], r["tokens"]
div = next((i for i, (x, y) in enumerate(zip(a, b)) if x != y), None)
if div is None and len(a) == len(b):
print(f"== {name}: identical ({len(a)} tokens)")
else:
div = div if div is not None else min(len(a), len(b))
mg = ref[name]["margins"][div] if div < len(ref[name]["margins"]) else None
print(f"== {name}: diverges at token {div}/{len(a)} (ref top-2 margin {mg if mg is None else round(mg, 3)}); "
f"ref {a[div:div+1]} vs new {b[div:div+1]}")
print(f" ref answer: {answer(ref[name])[:300]!r}")
print(f" new answer: {answer(r)[:300]!r}")
+43
View File
@@ -0,0 +1,43 @@
#!/usr/bin/env bash
# Start one LFM3 vLLM variant on a test port, wait until ready, record startup time + VRAM.
# tests/variant.sh NAME [--fresh] [extra vllm args...]
# Container: lfm3-var-NAME on 127.0.0.1:${PORT:-8001}; image ${IMAGE:-lfm3-vllm-xpu:v0.32.0-lfm3};
# compile cache: ./.cache/NAME (--fresh wipes it; files are root-owned, so via the container).
# Writes logs/variant_NAME.log (server log) and appends one line to results/variants_startup.tsv.
# Stop with: docker stop lfm3-var-NAME
set -euo pipefail
cd "$(dirname "$0")/.."
NAME=$1; shift
PORT=${PORT:-8001}
IMAGE=${IMAGE:-lfm3-vllm-xpu:v0.32.0-lfm3}
CACHE=$PWD/.cache/$NAME
if [[ "${1:-}" == "--fresh" ]]; then
shift
[[ -d "$CACHE" ]] && docker run --rm -v "$CACHE":/c --entrypoint find "$IMAGE" /c -mindepth 1 -delete
fi
mkdir -p "$CACHE" logs results
t0=$(date +%s.%N)
docker run -d --rm --name "lfm3-var-$NAME" \
--device /dev/dri --group-add 991 --ipc=host --shm-size=16g \
-p 127.0.0.1:${PORT}:8000 \
-v /dev/dri:/dev/dri -v /dev/dri/by-path:/dev/dri/by-path:ro \
-v /models/LFM3-1.7B:/model:ro \
-v "$CACHE":/root/.cache/vllm \
-e HF_HUB_OFFLINE=1 -e TRANSFORMERS_OFFLINE=1 \
"$IMAGE" /model --host=0.0.0.0 --port=8000 --served-model-name=lfm3-1.7b \
--gpu-memory-utilization=0.5 --dtype=bfloat16 --max-model-len=32768 \
--enable-auto-tool-choice --tool-call-parser=qwen3_coder --reasoning-parser=qwen3 \
"$@" >/dev/null
docker logs -f "lfm3-var-$NAME" > "logs/variant_$NAME.log" 2>&1 &
until curl -sf "127.0.0.1:${PORT}/v1/models" >/dev/null; do
if ! docker inspect "lfm3-var-$NAME" >/dev/null 2>&1; then
echo "$NAME: container exited during startup (see logs/variant_$NAME.log)"; exit 1
fi
sleep 2
done
t=$(echo "$(date +%s.%N) - $t0" | bc)
vram=$(xpu-smi stats -d 0 | sed -n 's/.*GPU Memory Used (MiB).*current: \([0-9]*\).*/\1/p')
printf '%s\t%s\t%.0f\t%s\t%s\n' "$(date +%FT%T)" "$NAME" "$t" "$vram" "$*" >> results/variants_startup.tsv
echo "$NAME ready in ${t%.*} s, VRAM used ${vram} MiB"
+5 -2
View File
@@ -491,6 +491,7 @@ class Lfm3ForCausalLM(nn.Module, HasInnerState, SupportsPP, IsHybrid, SupportsQu
config = vllm_config.model_config.hf_config
quant_config = vllm_config.quant_config
self.config = config
self.quant_config = quant_config
self.model = Lfm3Model(vllm_config=vllm_config, prefix=maybe_prefix(prefix, "model"))
if get_pp_group().is_last_rank:
@@ -530,9 +531,11 @@ class Lfm3ForCausalLM(nn.Module, HasInnerState, SupportsPP, IsHybrid, SupportsQu
loader = AutoWeightsLoader(self)
loaded = loader.load_weights(weights, mapper=self.hf_to_vllm_mapper)
# tied lm_head.weight is deduplicated into model.embed_tokens.weight here
# tied lm_head.weight is deduplicated into model.embed_tokens.weight here.
# Quantized models get vLLM's own check instead (DefaultModelLoader), which knows
# the parameters a checkpoint cannot carry (e.g. online-FP8 weight_scale).
missing = sorted({name for name, _ in self.named_parameters()} - loaded)
if missing:
if missing and self.quant_config is None:
raise ValueError(
f"LFM3: {len(missing)} parameters not found in checkpoint: {missing[:20]}"
)