lfm3: add INT4, FP8 per-channel and VL notes, tests, eval and results
Sync the repo with the working directory: full NOTES.md (rounds 4-5, LFM3-VL), VL tests and test images, quality eval, AutoRound W4A16 quantization scripts and calibration recipe, the variant.sh MODEL/DOCKER_ENV options, and the remaining benchmark results. Large regenerable artifacts (INT4 checkpoint, ref_vl.pt, raw logprob dumps) stay out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0412bb1f72
commit
1834792bb8
67 files changed
+119589
-9
No files matched your search
@@ -4,4 +4,4 @@ Model ports and serving setups for vLLM on Intel XPU (Arc / Battlemage). One sel
|
|||||||
|
|
||||||
| folder | what |
|
| folder | what |
|
||||||
|---|---|
|
|---|---|
|
||||||
| [`lfm3/`](lfm3/) | LiquidAI LFM3-1.7B as an out-of-tree vLLM 0.32 plugin (width-7 short-conv Triton kernels, zero-tail partial RoPE). Verified against Liquid's HF code; see [`lfm3/NOTES.md`](lfm3/NOTES.md). |
|
| [`lfm3/`](lfm3/) | LiquidAI LFM3-1.7B as an out-of-tree vLLM 0.32 plugin (width-7 short-conv Triton kernels, zero-tail partial RoPE). Also LFM3-VL-2B (image input). Verified against Liquid's HF code; FP8 per-channel / INT4 quantization rounds; see [`lfm3/NOTES.md`](lfm3/NOTES.md). |
|
||||||
+491
-4
@@ -6,7 +6,7 @@
|
|||||||
- transformers 5.19 ≥ 5.12.1 (config.json) → Liquid's remote code imports and builds fine inside the
|
- transformers 5.19 ≥ 5.12.1 (config.json) → Liquid's remote code imports and builds fine inside the
|
||||||
image; **no separate reference venv needed**. transformers 5.19 does *not* ship `lfm3` natively
|
image; **no separate reference venv needed**. transformers 5.19 does *not* ship `lfm3` natively
|
||||||
(only lfm2, lfm2_moe, lfm2_vl).
|
(only lfm2, lfm2_moe, lfm2_vl).
|
||||||
- vLLM sources relevant to this work are copied (read-only reference) into `./ref/`.
|
- vLLM sources relevant to this work are copied (read-only reference) into `./ref/` (workspace only, not in this repo).
|
||||||
|
|
||||||
## Step 1 — architecture: LFM3 vs. vLLM's LFM2 (source of truth: modeling_lfm3.py)
|
## Step 1 — architecture: LFM3 vs. vLLM's LFM2 (source of truth: modeling_lfm3.py)
|
||||||
|
|
||||||
@@ -184,7 +184,7 @@ applies even with `do_sample=False` — the first run's HF greedy outputs diverg
|
|||||||
of that, not because of the port. The script now forces `repetition_penalty=1.0`.
|
of that, not because of the port. The script now forces `repetition_penalty=1.0`.
|
||||||
|
|
||||||
## Upstream check (2026-10-28, requested mid-way; done after step 5 because work had already progressed)
|
## Upstream check (2026-10-28, requested mid-way; done after step 5 because work had already progressed)
|
||||||
- vLLM `main` shallow clone in `./vllm-main` (HEAD c105af4, 2026-10-28 11:31 -0700): no match for
|
- vLLM `main` shallow clone in `./vllm-main` (workspace only, not in this repo) (HEAD c105af4, 2026-10-28 11:31 -0700): no match for
|
||||||
`lfm3` / `Lfm3ForCausalLM` anywhere; registry only has Lfm2 / Lfm2Moe / Lfm2Vl / Lfm2Bidirectional /
|
`lfm3` / `Lfm3ForCausalLM` anywhere; registry only has Lfm2 / Lfm2Moe / Lfm2Vl / Lfm2Bidirectional /
|
||||||
ColBERTLfm2.
|
ColBERTLfm2.
|
||||||
- Main's Triton `causal_conv1d` is still unrolled for widths ≤ 5 (prefill) / ≤ 6 (decode) → width 7
|
- Main's Triton `causal_conv1d` is still unrolled for widths ≤ 5 (prefill) / ≤ 6 (decode) → width 7
|
||||||
@@ -277,7 +277,7 @@ llama-swap model entry — as live in /etc/llama-swap/config.yaml. Since 2026-10
|
|||||||
weights, round 3, +49% decode) on the `:v0.32.0-lfm3-fp8fix` image, with the vLLM default compile +
|
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`.
|
FULL_AND_PIECEWISE graphs confirmed in round 2. Previous BF16 entry: same without `--quantization=fp8`, image `:v0.32.0-lfm3`.
|
||||||
```yaml
|
```yaml
|
||||||
# ---------- vLLM 0.32 + lfm3 plugin – LFM3-1.7B (W8A16: online FP8 weights) ----------
|
# ---------- vLLM 0.32 + lfm3 plugin – LFM3-1.7B (W8A16: online FP8 weights, per-channel scales) ----------
|
||||||
vllm/lfm3-1.7b:
|
vllm/lfm3-1.7b:
|
||||||
useModelName: lfm3-1.7b
|
useModelName: lfm3-1.7b
|
||||||
aliases:
|
aliases:
|
||||||
@@ -301,7 +301,7 @@ FULL_AND_PIECEWISE graphs confirmed in round 2. Previous BF16 entry: same withou
|
|||||||
--served-model-name=lfm3-1.7b
|
--served-model-name=lfm3-1.7b
|
||||||
--gpu-memory-utilization=0.5
|
--gpu-memory-utilization=0.5
|
||||||
--dtype=bfloat16
|
--dtype=bfloat16
|
||||||
--quantization=fp8
|
--quantization=fp8_per_channel
|
||||||
--max-model-len=32768
|
--max-model-len=32768
|
||||||
--enable-auto-tool-choice
|
--enable-auto-tool-choice
|
||||||
--tool-call-parser=qwen3_coder
|
--tool-call-parser=qwen3_coder
|
||||||
@@ -487,3 +487,490 @@ FP8 W8A16 is the new default: llama-swap `vllm/lfm3-1.7b` switched to image `lfm
|
|||||||
Verified through llama-swap: reload clean, cold start 2m26s, kernel `XPUW8A16FP8LinearKernel`, weights 1.88 GiB,
|
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
|
"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 .`).
|
`:v0.32.0-lfm3-fp8fix` image (rebuild from this repo: `docker build -t lfm3-vllm-xpu:v0.32.0-lfm3-fp8fix .`).
|
||||||
|
|
||||||
|
### Standardized run (bench-standard 0.2.0, quick, via llama-swap) — 2026-10-29
|
||||||
|
`/srv/llm/bench/results/20261029-074532-pascal-vllm-lfm3-1.7b-vllm-arc-pro-b65` (`server-cmd.txt` confirms `--quantization=fp8` + `:fp8fix` image).
|
||||||
|
| run | decode t/s | ITL 1% low t/s | TTFT p50 ms | aggregate @8 t/s | prefill @32k t/s |
|
||||||
|
|---|--:|--:|--:|--:|--:|
|
||||||
|
| BF16 baseline (bench-standard 0.1.0) | 127.6 | 102.3 | 60 | 764.4 | 16,670 |
|
||||||
|
| **FP8 W8A16 (bench-standard 0.2.0)** | **190.8** (+50%) | 116.2 | 59 | **1,076.2** (+41%) | 16,641 |
|
||||||
|
Matches the direct-port FP8 run (191.3 / 122.5 / 59 / 1,036.5 / 16,744) within run-to-run noise.
|
||||||
|
|
||||||
|
## Round 4 — W4A16 (INT4 weight-only) experiment
|
||||||
|
|
||||||
|
### Step 1 — preconditions
|
||||||
|
**Plugin.** All big linears take `quant_config` (see round 3 step 1). Fused modules:
|
||||||
|
`packed_modules_mapping = {"qkv_proj": [q,k,v], "w13": [w1,w3], "in_proj": ["in_proj"]}` and the
|
||||||
|
`hf_to_vllm_mapper` stacks `.q_proj/.k_proj/.v_proj → .qkv_proj` and `.w1/.w3 → .w13` (shard 0/1) and maps
|
||||||
|
`.conv. → .short_conv.`. These are applied by vLLM to every checkpoint tensor (qweight/scales/qzeros
|
||||||
|
included) and, via `SupportsQuant`, to the quant config's layer names (INC's `apply_vllm_mapper` remaps
|
||||||
|
`block_name_to_quantize` and `extra_config`), so HF-named quantized checkpoints line up.
|
||||||
|
Exception that matters for INT4: **`self_attn.gate_proj`** (16×2048 output gate) is an `nn.Linear` in
|
||||||
|
Liquid's code, so a quantizer would pick it up, but our plugin builds it without quant_config (expects
|
||||||
|
BF16). → exclude it at quantization time (32k params, nothing to gain). Conv kernel is `nn.Conv1d` → not a
|
||||||
|
quantizer target anyway.
|
||||||
|
|
||||||
|
**XPU INT4 support in the image (vLLM 0.32.0+xpu, vllm-xpu-kernels 0.1.15.4).** XPU's
|
||||||
|
`supported_quantization` includes gptq, auto_gptq, awq, inc, compressed-tensors. All W4A16 routes end in a
|
||||||
|
real INT4 kernel (no dequant-to-BF16 path):
|
||||||
|
| checkpoint format | vLLM config | XPU kernel | constraints |
|
||||||
|
|---|---|---|---|
|
||||||
|
| GPTQ (`quant_method: gptq`, sym) | AutoGPTQConfig → `choose_mp_linear_kernel` | `XPUwNa16LinearKernel` → `_xpu_C.int4_gemm_w4a16` (oneDNN) | uint4/uint4b8, group % 32, K % 32 |
|
||||||
|
| compressed-tensors W4A16 (pack-quantized) | CompressedTensorsWNA16 → `choose_mp_linear_kernel` | same `XPUwNa16LinearKernel` | same |
|
||||||
|
| **AutoRound native** (`quant_method: auto-round`, packing `auto_round:auto_gptq`) | INC (`inc`) → `INCWNA16Scheme` | **ARK** (`auto_round_kernel`, auto-round-lib 0.16.0 ships in the image and imports) by default; oneDNN `int4_gemm_w4a16` via `VLLM_XPU_INC_WNA16_BACKEND=w4a16` | sym only, bits 2/4 |
|
||||||
|
All LFM3 input dims (2048, 7680) are multiples of 32; group 128 is fine.
|
||||||
|
**Choice: AutoRound native format** (bits 4, group 128, sym) — the preferred tool's own format, served by
|
||||||
|
vLLM's INC path with two real XPU INT4 kernels (ARK and oneDNN) that can be A/B'd from one checkpoint.
|
||||||
|
GPTQ/compressed-tensors would only reach the oneDNN kernel. AutoRound itself (`auto-round`, the
|
||||||
|
quantizer) is not in the image → to be pip-installed into ./ for step 2.
|
||||||
|
|
||||||
|
### Step 2 — quantization setup
|
||||||
|
Tooling (all inside ./quant): AutoRound 0.16.1 pip-installed with `--target quant/pylib` and run inside
|
||||||
|
the vLLM image (`lfm3-vllm-xpu:v0.32.0-lfm3-fp8fix`: torch 2.14+xpu, transformers 5.19, accelerate, datasets
|
||||||
|
already there) with `PYTHONPATH=/quant/pylib`. HF dataset cache: quant/calib/hf_cache (neither pylib nor the cache is in this repo; re-run `pip install --target quant/pylib auto-round==0.16.1` and `quant/build_calib.py`).
|
||||||
|
|
||||||
|
**Calibration dataset recipe** (`quant/build_calib.py`, recipe JSON: quant/calib/calib_256x2048.json):
|
||||||
|
- 256 samples × 2048 tokens = 524k tokens. Every conversation is rendered with the model's own chat
|
||||||
|
template (`<|im_start|>` turns, `<think></think>` on assistant turns, tools via `tools=` →
|
||||||
|
`<tools>` system block, calls via `tool_calls` → `<tool_call><function=…><parameter=…>` XML,
|
||||||
|
tool results → `<tool_response>`), shuffled (seed 0) and packed back-to-back into exact 2048-token
|
||||||
|
samples (AutoRound drops samples shorter than seqlen).
|
||||||
|
- Mix by token share: English chat 45% (HuggingFaceH4/ultrachat_200k test_sft, 199 conversations, 237k
|
||||||
|
tok), German 20% (OpenAssistant/oasst1 lang=de prompter→assistant pairs, 567 pairs, 105k tok), tool calls
|
||||||
|
15% (glaiveai/glaive-function-calling-v2 rows with `<functioncall>`, converted to the template's tool
|
||||||
|
format, 239 conversations, 79k tok), code 20% (iamtarun/python_code_instructions_18k_alpaca, 629, 106k tok).
|
||||||
|
- Spot-checked: tool conversations render exactly like vLLM's own prompts (system `<tools>`, XML call).
|
||||||
|
|
||||||
|
Quantizer: `quant/quantize_autoround.py` — bits 4, group 128, sym, iters 200, seqlen 2048, nsamples 256,
|
||||||
|
`layer_config` keeps all `self_attn.gate_proj` at 16 bit, export `format="auto_round"` to
|
||||||
|
./quant/LFM3-1.7B-W4A16-autoround/.
|
||||||
|
|
||||||
|
### Step 2 — quantization run (log: logs/autoround_w4a16.log, run info: quant/quant_run.json)
|
||||||
|
- First attempt crashed at block 2 (first attention block): `cos, sin = position_embeddings` → None
|
||||||
|
(logs/autoround_w4a16_fail1.log). Cause: AutoRound records the kwargs reaching block 0 (a conv layer) and
|
||||||
|
replays them to every block, but LFM3 gives each layer the RoPE table and mask of its own type
|
||||||
|
(conv / sliding_attention / full_attention). Even without the crash, sliding layers would have been
|
||||||
|
calibrated with the wrong mask.
|
||||||
|
- Fix (in quant/quantize_autoround.py only, model code untouched): wrap `Lfm3DecoderLayer.forward` so each
|
||||||
|
layer rebuilds its own `position_embeddings` and mask via Liquid's `rotary_emb` / `create_masks_by_layer_type`
|
||||||
|
(cached per shape); `enable_torch_compile=False`. Verified on XPU with `quant/check_patch.py`: patched vs
|
||||||
|
unpatched model on a 1000-token sample → max |Δlogit| = 0.0, top-1 agreement 100%.
|
||||||
|
- Calibrated **on XPU** (AutoRound 0.16.1, device_map=xpu): **16.5 min** (988 s), peak VRAM 16.2 GB, peak RAM
|
||||||
|
8.4 GB. Quantized 142/154 Linear (11 attn × q/k/v/o, 13 conv × in/out, 24 MLP × w1/w2/w3); kept 16-bit:
|
||||||
|
11 × `self_attn.gate_proj` + tied `lm_head`. Per-block loss is tiny in absolute terms (~5e-10 →
|
||||||
|
~2.5e-10, LFM3's sandwich norms scale the branch outputs) and drops ~50% per block.
|
||||||
|
- Checkpoint now at `/models/LFM3-1.7B-W4A16-autoround/` (originally written to ./quant/; AutoRound wrote it into a `model-w4g128/` subdir; moved up):
|
||||||
|
`quant_method: auto-round`, `packing_format: auto_round:auto_gptq`, bits 4, group 128, sym, `extra_config`
|
||||||
|
= the 11 gate_proj at 16 bit. **model.safetensors 1.29 GB vs 3.3 GB BF16 (39%)**.
|
||||||
|
|
||||||
|
### Step 3 — serving (logs: logs/variant_w4_eager*.log, logs/variant_w4_graphs.log)
|
||||||
|
- Default INC backend on XPU = **ARK** (`auto_round_kernel`): **engine core dies silently** right after
|
||||||
|
"Loading weights took 0.51 s" (no Python traceback → native crash in ARK's weight repacking;
|
||||||
|
logs/variant_w4_eager_ark_crash.log). Not debugged further.
|
||||||
|
- **`VLLM_XPU_INC_WNA16_BACKEND=w4a16`** → INC `INCXPULinearMethod` → oneDNN `_xpu_C.int4_gemm_w4a16`: works.
|
||||||
|
**Model weight memory 1.24 GiB** (BF16 3.24, FP8 1.88) → weights stay packed INT4 on the GPU, not
|
||||||
|
dequantized at load. (Harmless warnings: fp16 group scales cast to bf16 params.)
|
||||||
|
- Eager (`--enforce-eager`): ready in 62 s. Graphs (vLLM default compile + FULL_AND_PIECEWISE, the round-2
|
||||||
|
winner): ready in 140 s cold (torch.compile 40 s, capture 11 s / 0.54 GiB). Greedy graphs vs eager: 4/5
|
||||||
|
identical, the 5th differs at an exact tie (margin 0.000).
|
||||||
|
- Greedy vs BF16 eager (tests/greedy_variant.py): 1/5 identical; divergences at BF16 margins 0.31 / 0.125 /
|
||||||
|
**0.75 / 1.375** — unlike FP8 (all ≤ 0.375), INT4 flips tokens BF16 was fairly sure about.
|
||||||
|
|
||||||
|
### Step 4 — quality vs BF16 / FP8 (details + side-by-side outputs: eval/w4a16_compare.md)
|
||||||
|
`eval/eval_quality.py` (inputs: `eval/build_eval_data.py` → eval/eval_data.json), all variants with graphs.
|
||||||
|
| variant | PPL wikitext-2 (20×2048 tok, 40,940 scored) | vs BF16 | 8-prompt answers correct | completion tokens (8 prompts) |
|
||||||
|
|---|--:|--:|---|--:|
|
||||||
|
| BF16 | 18.518 | — | 8/8 | 3,790 |
|
||||||
|
| FP8 W8A16 | 19.208 | +3.7% | 8/8 | 3,436 |
|
||||||
|
| INT4 W4A16 | 19.886 | **+7.4%** | 8/8 | 4,123 |
|
||||||
|
- Both tool calls (weather, flights incl. integer arg) are byte-identical across all three and parse with
|
||||||
|
qwen3_coder (`finish_reason: tool_calls`); JSON valid and identical; German fine; needle at 700+ tokens found.
|
||||||
|
- All three summaries say "published October 1942" — the article itself has "first published in September
|
||||||
|
1942" and "published in the October New English Weekly" → shared ambiguity, not a quantization error.
|
||||||
|
- INT4 degradation shows as: 2× FP8's perplexity loss; greedy flips at confident tokens (margins up to
|
||||||
|
1.375); **longer thinking** on 5/8 prompts (math 986 vs 632 BF16 tokens).
|
||||||
|
|
||||||
|
### Step 5 — BetterBench (same invocation as rounds 2/3, direct on :8001; results/variants/bb/w4_{eager,graphs}.*)
|
||||||
|
Effective bandwidth = weight bytes × decode t/s (BF16 checkpoint 3.458 GB; FP8 online, 2.02 GB loaded;
|
||||||
|
INT4 checkpoint 1.287 GB).
|
||||||
|
| variant | decode t/s | weight bytes | eff. bandwidth | ITL 1% low t/s | TTFT p50 ms | aggregate @8 t/s | prefill @32k t/s |
|
||||||
|
|---|--:|--:|--:|--:|--:|--:|--:|
|
||||||
|
| BF16 graphs | 128.4 | 3.458 GB | 444 GB/s | 105.1 | 67 | 768.2 | 16,626 |
|
||||||
|
| FP8 W8A16 graphs | 191.3 | 2.02 GB | 386 GB/s | 122.5 | 59 | 1,036.5 | 16,744 |
|
||||||
|
| W4A16 eager | 33.2 | 1.287 GB | 43 GB/s | 25.1 | 116 | 213.1 | 13,940 |
|
||||||
|
| **W4A16 graphs** | **219.8** | 1.287 GB | 283 GB/s | 129.1 | 59 | **1,198.2** | 14,210 |
|
||||||
|
- INT4 graphs vs FP8: decode +15%, aggregate @8 +16%, ITL 1% low +5%, **prefill −15%** (INT4 GEMM unpacks
|
||||||
|
weights; prefill is compute-bound). vs BF16: decode +71%, @8 +56%.
|
||||||
|
- Bandwidth efficiency drops with every format step: the oneDNN INT4 GEMV reaches only ~283 GB/s (64% of the
|
||||||
|
BF16 GEMV's ~444 GB/s), and the BF16 tied lm_head (0.52 GB) is now **41% of the bytes read per step**.
|
||||||
|
36% fewer bytes than FP8 → only 15% faster.
|
||||||
|
- Eager stays launch-bound (33 t/s, flat 32–34 per request at every concurrency level) — not an option.
|
||||||
|
- Per-request decode under concurrency (graphs): 224 / 214 / 193 / 179 t/s at 1/2/4/8 (FP8: 192 / 186 / 176 / 160).
|
||||||
|
- **End-to-end on the 8 eval prompts** (completion tokens ÷ decode rate): BF16 29.5 s, FP8 18.0 s,
|
||||||
|
**INT4 18.8 s** — INT4's longer thinking cancels its decode advantage on this (small) sample.
|
||||||
|
|
||||||
|
### Step 6 — recommendation
|
||||||
|
**Keep FP8 W8A16 as the default.** INT4 is ~15% faster per token than FP8, but it costs twice FP8's
|
||||||
|
perplexity loss, 15% prefill, longer reasoning (which ate the speed gain end-to-end on our prompts), a
|
||||||
|
custom calibration workaround, and it only runs with a non-default kernel (`VLLM_XPU_INC_WNA16_BACKEND=w4a16`;
|
||||||
|
the default ARK backend crashes). Worth it only for throughput-bound batch work with short or
|
||||||
|
non-thinking outputs, where per-token speed dominates. Bigger lever for both FP8 and INT4: the BF16 lm_head
|
||||||
|
(41% of INT4's per-step bytes).
|
||||||
|
|
||||||
|
llama-swap snippet for the INT4 variant (NOT applied to the real config; needs the checkpoint copied to a
|
||||||
|
path the llama-swap user can read, e.g. /models — the brief keeps it in ./quant):
|
||||||
|
```yaml
|
||||||
|
# ---------- vLLM 0.32 + lfm3 plugin – LFM3-1.7B W4A16 (AutoRound INT4, oneDNN kernel) ----------
|
||||||
|
vllm/lfm3-1.7b-int4:
|
||||||
|
useModelName: lfm3-1.7b-int4
|
||||||
|
aliases:
|
||||||
|
- lfm3-1.7b-int4
|
||||||
|
cmdStop: docker stop -t 30 vllm-lfm3-int4
|
||||||
|
cmd: >
|
||||||
|
docker run --rm --name vllm-lfm3-int4
|
||||||
|
--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-W4A16-autoround:/model:ro
|
||||||
|
-v /srv/llm/runtimes/vllm-xpu/lfm3-v032/.cache/vllm-lfm3-int4:/root/.cache/vllm
|
||||||
|
-e HF_HUB_OFFLINE=1
|
||||||
|
-e TRANSFORMERS_OFFLINE=1
|
||||||
|
-e VLLM_XPU_INC_WNA16_BACKEND=w4a16
|
||||||
|
lfm3-vllm-xpu:v0.32.0-lfm3-fp8fix
|
||||||
|
/model
|
||||||
|
--host=0.0.0.0
|
||||||
|
--port=8000
|
||||||
|
--served-model-name=lfm3-1.7b-int4
|
||||||
|
--gpu-memory-utilization=0.5
|
||||||
|
--dtype=bfloat16
|
||||||
|
--max-model-len=32768
|
||||||
|
--enable-auto-tool-choice
|
||||||
|
--tool-call-parser=qwen3_coder
|
||||||
|
--reasoning-parser=qwen3
|
||||||
|
```
|
||||||
|
(`quantization` is read from the checkpoint's config.json → INC; no `--quantization` flag needed.)
|
||||||
|
|
||||||
|
## Round 5 — FP8 per-channel vs per-tensor (2026-10-29)
|
||||||
|
Why: INT8 weight-only (W8A16) has no dense-layer path on XPU in this image (XPU kernels: `fp8_gemm_w8a16`,
|
||||||
|
`fp8_gemm`, `int4_gemm_w4a16`, `int4_gemm_w4a8` only; online `int8_per_channel_weight_only` is MoE-only;
|
||||||
|
GPTQ/compressed-tensors XPU kernels take uint4 only; INC XPU bits 2/4 only). In W8A16 the math is BF16 anyway,
|
||||||
|
so the lever is weight-scale granularity, not FP8 vs INT8.
|
||||||
|
|
||||||
|
`--quantization=fp8_per_channel` (image `:v0.32.0-lfm3-fp8fix`): vLLM selects **`XPUW8A16FP8LinearKernel` for
|
||||||
|
`Fp8PtpcOnlineLinearMethod`** → still W8A16 (BF16 activations), one FP8 scale per output channel instead of
|
||||||
|
one per matrix. Weights 1.88 GiB (same), cold start 146 s. Logs: logs/variant_fp8pc.log, logs/bb_fp8pc.log.
|
||||||
|
|
||||||
|
| variant | PPL (wikitext-2, same 40,940 tok) | vs BF16 | decode t/s | ITL 1% low | TTFT p50 | aggregate @8 | prefill @32k |
|
||||||
|
|---|--:|--:|--:|--:|--:|--:|--:|
|
||||||
|
| BF16 | 18.518 | — | 128.4 | 105.1 | 67 | 768.2 | 16,626 |
|
||||||
|
| FP8 per-tensor (live until now) | 19.207 | +3.7% | 191.3 | 122.5 | 59 | 1,036.5 | 16,744 |
|
||||||
|
| **FP8 per-channel** | **18.523** | **+0.03%** | **191.2** | 124.5 | 58 | 1,095.3 | 16,924 |
|
||||||
|
| INT4 W4A16 graphs (round 4) | 19.886 | +7.4% | 219.8 | 129.1 | 59 | 1,198.2 | 14,210 |
|
||||||
|
- Per-channel removes essentially all of FP8's quality loss (perplexity equal to BF16 within 0.03%) at
|
||||||
|
identical decode speed (the @8 +6% is within run-to-run spread).
|
||||||
|
- 8 eval prompts: all correct (math 30.90, Canberra, German e-mail, both tool calls identical to BF16/FP8, valid
|
||||||
|
JSON, needle found); 3,803 completion tokens (BF16 3,790, per-tensor 3,436, INT4 4,123). Greedy 64-token
|
||||||
|
check vs BF16 eager: 1/5 identical, all divergences at near-ties (margins ≤ 0.25).
|
||||||
|
- **Recommendation: switch the llama-swap entry from `--quantization=fp8` to `--quantization=fp8_per_channel`**
|
||||||
|
(same image, nothing else changes).
|
||||||
|
|
||||||
|
**Deployed 2026-10-29 09:50:** llama-swap `vllm/lfm3-1.7b` now uses `--quantization=fp8_per_channel` (backup:
|
||||||
|
/etc/llama-swap/config.yaml.bak-pre-fp8pc). Verified via :8080: reload clean, cold start 2m04s,
|
||||||
|
`XPUW8A16FP8LinearKernel` for `Fp8PtpcOnlineLinearMethod`, weights 1.88 GiB, "17*23" → 391. The Deployment
|
||||||
|
snippet above is updated accordingly.
|
||||||
|
|
||||||
|
## LFM3-VL (LFM3-VL-2B, image input) — 2026-10-29
|
||||||
|
|
||||||
|
### Step 0 — upstream check
|
||||||
|
- vLLM main @ fa3b9d1 (2026-10-29): no `lfm3` anywhere, only `Lfm2VlForConditionalGeneration`.
|
||||||
|
- GitHub search on vllm-project/vllm for "LFM3-VL", "Lfm3Vl", "lfm3_vl", "LFM3": 0 PRs, 0 issues.
|
||||||
|
Nothing to build on or compare against, so this is our own port.
|
||||||
|
|
||||||
|
### Step 1 — analysis (source: model folder `modeling_lfm3_vl.py`, `processing_lfm3_vl.py`,
|
||||||
|
`image_processing_lfm3_vl.py`, `config.json`, `processor_config.json`)
|
||||||
|
|
||||||
|
**Checkpoint.** `model.safetensors`, 424 tensors, BF16. `architectures: [Lfm3VlForConditionalGeneration]`,
|
||||||
|
`model_type: lfm3_vl` (vision sub-config `lfm3_vl_vision`, text sub-config `lfm3`).
|
||||||
|
Special tokens: `image_token_id` 125030 `<|image|>`, `video_token_id` 125029 `<|video|>`,
|
||||||
|
`vision_start_token_id` 125009 `<|vision_start|>`, `vision_end_token_id` 125010 `<|vision_end|>`;
|
||||||
|
bos 124894, eos 124900 `<|im_end|>`, pad 124893. `lfm3_conv.py`, `modeling_lfm3.py` and `chat_template.jinja`
|
||||||
|
are identical to the LFM3-1.7B folder; `text_config` is identical to LFM3-1.7B's config except
|
||||||
|
`max_position_embeddings` 128000 (vs 262144).
|
||||||
|
|
||||||
|
**Language backbone = our Lfm3Model unchanged**, but with its own weights: all 286 LM tensors differ from
|
||||||
|
LFM3-1.7B (the backbone was trained further with vision), so it must load from the VL checkpoint.
|
||||||
|
Params: vision tower 164.2 M, projector 25.2 M.
|
||||||
|
|
||||||
|
**Vision encoder** (`Lfm3VlVisionModel`, 14 layers, hidden 1024, FFN 2560):
|
||||||
|
- Patchifier: `nn.Linear(3·2·16·16 = 1536 → 1024, bias=False)` on flattened patches (patch 16, temporal
|
||||||
|
patch 2: an image is duplicated along time, as in Qwen2-VL), then RMSNorm (`embedding_norm`).
|
||||||
|
- Layers alternate like the LM: types `conv` ×7 (layers 0,1,3,5,7,9,11,13) and `full_attention` ×6
|
||||||
|
(2,4,6,8,10,12). Pre-norm blocks: `x += op(operator_norm(x)); x += SwiGLU(ffn_norm(x))`
|
||||||
|
(w1/w3/w2, no bias). No sandwich norm, no output gate, no final norm after the last layer.
|
||||||
|
- Attention: bidirectional, **GQA 16 q / 8 kv heads, head_dim 64**, q_proj/k_proj/v_proj/out_proj without
|
||||||
|
bias, per-head RMSNorm on q and k (`q_layernorm`/`k_layernorm`, eps 1e-5), attends within each image
|
||||||
|
(frame) only (cu_seqlens per frame). No windowing.
|
||||||
|
- Positional encoding: **2D axial RoPE** (theta 1e6) over the whole head_dim: `inv_freq` from
|
||||||
|
spatial_dim = 32 (16 freqs); angle = [h·f, w·f] concatenated (32), then duplicated → 64 for
|
||||||
|
NeoX-style `rotate_half`. Position ids are (h, w) patch coordinates in **merge-block order**
|
||||||
|
(Transformers `get_vision_position_ids`, same as Qwen2-VL). No absolute position embedding → any
|
||||||
|
resolution, no interpolation.
|
||||||
|
- Conv layers (`Lfm3VlVisionConv2d`): `in_proj` 1024 → 3·1024 split B, C, x; `gated = B·x` → depthwise
|
||||||
|
**3×3 Conv2d** (groups 1024, padding 1, no bias) over the 2D patch grid of each frame (tokens are
|
||||||
|
reordered from merge-block order to raster, convolved, reordered back) → `out_proj(C · conv)`.
|
||||||
|
Zero padding at the frame border, frames don't see each other.
|
||||||
|
- vLLM building blocks: `MMEncoderAttention` (supports GQA and cu_seqlens; on XPU it uses FLASH_ATTN /
|
||||||
|
TRITON_ATTN / TORCH_SDPA), `QKVParallelLinear`/`ReplicatedLinear`, `RMSNorm`. The rotary is custom
|
||||||
|
(just cos/sin + rotate_half in fp32, as in the reference). Depthwise conv via `F.conv2d`.
|
||||||
|
|
||||||
|
**Projector** (`Lfm3VlMultiModalProjector`): `LayerNorm(1024)` per vision token (**before** merging,
|
||||||
|
unlike LFM2-VL where it is on the 4096-dim merged vector) → reshape 4 consecutive tokens (one 2×2 merge block,
|
||||||
|
already adjacent thanks to merge-block order) → 4096 → `linear_1` 4096→4096 (bias) → GELU → `linear_2`
|
||||||
|
4096→2048 (bias). 2×2 patches → 1 LM token, so one token covers 32×32 px.
|
||||||
|
|
||||||
|
**Image preprocessing** (`Lfm3VlImageProcessor`, Qwen2-VL-style "smart_resize"): convert RGB, resize
|
||||||
|
(bicubic) to the nearest multiple of 32 on both sides keeping the aspect ratio, with
|
||||||
|
`min_pixels` 65 536 (`size.shortest_edge`) and `max_pixels` 16 777 216 (`size.longest_edge`);
|
||||||
|
rescale 1/255, normalize mean = std = 0.5; patchify in merge-block order.
|
||||||
|
**No tiling, no thumbnail.** Tokens per image = (H/32)·(W/32), between **64 and 16 384**. Examples:
|
||||||
|
≤256² px → 64; 640×480 → 300; 1024×768 → 768; 1024² → 1024; 1920×1080 → 1088×1920 = 2040;
|
||||||
|
2400×400 → 900; 4000×3000 → 11 750; ≥4096² → 16 384. Aspect ratio max 200.
|
||||||
|
|
||||||
|
**Prompt placement.** The chat template renders an image content part as
|
||||||
|
`<|vision_start|><|image|><|vision_end|>`; the processor expands the single `<|image|>` to N `<|image|>`
|
||||||
|
tokens (start/end stay single). vLLM: prompt update = replace `<|image|>` with N × `<|image|>`;
|
||||||
|
the embeddings go into the `<|image|>` positions only. Video (phase 2) instead becomes per frame
|
||||||
|
`<t.t seconds><|vision_start|>` + `<|video|>`·n + `<|vision_end|>`.
|
||||||
|
|
||||||
|
**Weight names** (HF → our module):
|
||||||
|
- `model.language_model.*` → our `Lfm3Model` (same names as `model.*` in LFM3-1.7B, so our mapper:
|
||||||
|
`.conv.` → `.short_conv.`, stacked q/k/v and w1/w3) — 286 tensors.
|
||||||
|
- `model.vision_tower.{patchifier,embedding_norm,layers.N.{conv.{in_proj,spatial_conv,out_proj},
|
||||||
|
self_attn.{q,k,v,out}_proj,q_layernorm,k_layernorm,feed_forward.w1/w2/w3,operator_norm,ffn_norm}}` — 130.
|
||||||
|
Careful: the vision `.conv.` must not be hit by the LM's `.conv.` → `.short_conv.` rename.
|
||||||
|
- `model.multi_modal_projector.{layer_norm,linear_1,linear_2}.{weight,bias}` — 6.
|
||||||
|
- `lm_head` tied to `model.language_model.embed_tokens` (not in the file).
|
||||||
|
|
||||||
|
**Differences from LFM2-VL that matter**
|
||||||
|
| | LFM2-VL (vLLM) | LFM3-VL |
|
||||||
|
|---|---|---|
|
||||||
|
| vision encoder | SigLIP2 NaFlex (ViT, learned pos-emb interpolated) | own conv+attention hybrid, axial 2D RoPE, GQA, qk-norm |
|
||||||
|
| preprocessing | 512² tiles + thumbnail, row/col tokens | Qwen2-VL smart_resize, one native-resolution image, no tiling |
|
||||||
|
| placeholders | `<|image_start|>`, `<|img_row_i_col_j|>`, `<|img_thumbnail|>` | `<|vision_start|>` + N·`<|image|>` + `<|vision_end|>` |
|
||||||
|
| merging | pixel-unshuffle in the projector, LayerNorm on 4096 | patches arrive merge-block ordered, LayerNorm on 1024 before merge |
|
||||||
|
| LM | LFM2 | LFM3 (our plugin) |
|
||||||
|
So from `lfm2_vl.py` we take the overall model plumbing (SupportsMultiModal + IsHybrid, mapper, embed_multimodal);
|
||||||
|
the processing info / prompt update / field config follow `qwen2_vl.py` (pixel_values flat + `image_grid_thw`).
|
||||||
|
|
||||||
|
**Things to decide in step 2**
|
||||||
|
- Max image size: the default max is 16 384 tokens per image; with `--max-model-len 32768` and 4 images
|
||||||
|
the profiling dummy would not fit. Plan: default limit of 16 384 is kept as the model's, but the
|
||||||
|
dummy/profiling uses what fits; recommend `--mm-processor-kwargs '{"max_pixels": ...}'` in the
|
||||||
|
served config (e.g. 4 MP ≈ 4096 tokens) so one huge photo doesn't eat the context.
|
||||||
|
- No trust_remote_code needed: register `lfm3_vl` config + Liquid's processor classes in the plugin.
|
||||||
|
|
||||||
|
### Step 2 — implementation
|
||||||
|
Files (plugin package, same `vllm.general_plugins` entry point `lfm3 = vllm_lfm3:register`):
|
||||||
|
- `vllm_lfm3/model_vl.py` — `Lfm3VlForConditionalGeneration` (SupportsMultiModal, SupportsPP, IsHybrid),
|
||||||
|
vision encoder, projector, multimodal processor. The LM is **our `Lfm3ForCausalLM`**, built through
|
||||||
|
`init_vllm_registered_model(hf_config=text_config, architectures=["Lfm3ForCausalLM"])` — no duplicate
|
||||||
|
backbone code; it keeps its own `.conv.`→`.short_conv.` mapper and missing-weight check.
|
||||||
|
Mamba-state (short conv) shape/dtype come from `text_config`, like LFM2-VL.
|
||||||
|
- Vendored verbatim from the model folder (Apache-2.0) so nothing needs `--trust-remote-code`:
|
||||||
|
`configuration_lfm3_vl.py`, `processing_lfm3_vl.py`, `image_processing_lfm3_vl.py`,
|
||||||
|
`video_processing_lfm3_vl.py` (the processor constructor needs the video processor even for images).
|
||||||
|
`register()` adds `Lfm3VlForConditionalGeneration` to the ModelRegistry and registers config
|
||||||
|
(`lfm3_vl`, `lfm3_vl_vision`), AutoProcessor, AutoImageProcessor (torchvision backend) and
|
||||||
|
AutoVideoProcessor. `tests/vl/check_processor.py`: the vendored processor gives the same input ids and
|
||||||
|
bit-identical pixel_values as Liquid's remote processor (5 image sizes, run in separate processes).
|
||||||
|
- Vision encoder: `QKVParallelLinear` (disable_tp) for q/k/v, `ReplicatedLinear` for the other linears,
|
||||||
|
vLLM `RMSNorm`, our `Lfm3MLP` (merged w1/w3 + SiluAndMul) for the SwiGLU, `MMEncoderAttention` with
|
||||||
|
`num_kv_heads=8` and per-image `cu_seqlens` → on XPU vLLM picks **FLASH_ATTN** varlen (logged
|
||||||
|
"Using AttentionBackendEnum.FLASH_ATTN for MMEncoderAttention"). Axial RoPE applied in fp32 like the
|
||||||
|
reference. Depthwise conv = `F.conv2d(groups=1024)`; equal-size frames run as one batch, mixed sizes
|
||||||
|
frame by frame (same as Liquid). The encoder runs eager (vLLM's `compile_mm_encoder` is off by default).
|
||||||
|
- Processor (vLLM side): `pixel_values` flat per image (`flat_from_sizes(grid.prod)`), `image_grid_thw`
|
||||||
|
batched/CPU; prompt replacement `<|image|>` → N·`<|image|>`; dummy image for profiling = the largest
|
||||||
|
allowed token count factorized into an aspect ratio ≤ 200 (as qwen2_vl). `min_pixels`/`max_pixels`
|
||||||
|
(flat or `size` dict) via `--mm-processor-kwargs` are honoured for the token count.
|
||||||
|
Tokenization with `add_special_tokens=False` (the template already starts with `<|startoftext|>`).
|
||||||
|
- Video: `get_supported_mm_limits` lists only `image`, so vLLM rejects video parts; `embed_multimodal` also
|
||||||
|
raises on `pixel_values_videos`/`image_embeds`.
|
||||||
|
- Weight loading: VL mapper `model.language_model.`→`language_model.model.`, `model.vision_tower.`→
|
||||||
|
`vision_tower.`, `model.multi_modal_projector.`→`multi_modal_projector.`. Unknown names raise
|
||||||
|
(AutoWeightsLoader / the vision `load_weights`), and after loading every parameter of the whole model
|
||||||
|
must have been loaded (unquantized), else `ValueError` with the missing names. Weights: 3.58 GiB.
|
||||||
|
- Vision tower and projector are built without `quant_config` (stay BF16 under `--quantization fp8`).
|
||||||
|
- Profiling: encoder cache budget 16 384 tokens, profiled with one 16 384-token dummy image
|
||||||
|
(65 536 patches) — fits, ~15 s of the startup.
|
||||||
|
|
||||||
|
### Step 3 — correctness vs Transformers (Liquid's remote code, CPU, fp32, sdpa)
|
||||||
|
Scripts: `tests/vl/ref_vl.py` (reference, no plugin) → `results/vl/ref_vl.pt` (177 MB, not committed; regenerate with the script); `tests/vl/check_vl.py`
|
||||||
|
(vLLM offline, XPU BF16, encoder outputs via `LLM.apply_model` on the reference's own pixel_values) →
|
||||||
|
`results/vl/check_{eager,compiled}.json`. Images in `tests/vl/images/`: photo 640×488 (newspaper),
|
||||||
|
screenshot 1600×1889 (BetterBench report with tables), small 96×72, wide strip 1600×280 (text).
|
||||||
|
Greedy 64 tokens, no repetition penalty, reasoning on (generation starts inside `<think>`).
|
||||||
|
|
||||||
|
| case | image tokens vLLM / ref | vision max\|Δ\| (ref absmax) | projector max\|Δ\| / cos_min | 1st-token top-20 logprob max\|Δ\| | 64 greedy tokens |
|
||||||
|
|---|---|---|---|---|---|
|
||||||
|
| photo 640×488 | 300 / 300 | 1.97 (31.6) | 0.030 / 0.964 | 0.072 | identical |
|
||||||
|
| screenshot 1600×1889 | 2950 / 2950 | 2.49 (33.6) | 0.019 / 0.990 | 0.112 | identical |
|
||||||
|
| small 96×72 | 70 / 70 | 0.68 (30.1) | 0.014 / 0.997 | 0.121 | identical |
|
||||||
|
| wide 1600×280 | 450 / 450 | 3.62 | 0.014 / 0.997 | 0.163 | identical |
|
||||||
|
| text only | 0 / 0 | – | – | 0.111 | identical |
|
||||||
|
(eager; prompt token ids identical in all cases)
|
||||||
|
|
||||||
|
- Is the encoder diff just BF16? Liquid's own vision tower in BF16 vs its fp32 (`tests/vl/ref_bf16_encoder.py`):
|
||||||
|
projector cos_min photo 0.944, screenshot 0.985, small 0.999, wide 0.997; vision max|Δ| photo 10.1. Our
|
||||||
|
BF16 port is as close or closer to fp32 than the reference's own BF16 → precision, not a port error.
|
||||||
|
- Mixed-size batch through the encoder (all 4 images in one call) vs one image at a time: photo /
|
||||||
|
screenshot / wide bit-identical (cos 1.0), small cos_mean 0.99976 (different GEMM shape) → no leakage
|
||||||
|
across images in attention or conv.
|
||||||
|
- With compile + CUDA graphs (`enforce_eager=False`, FULL_AND_PIECEWISE): 4/5 identical; `small` diverges at
|
||||||
|
token 52 where vLLM's top-2 logprob margin is exactly 0.0 (a BF16 tie).
|
||||||
|
- Text-only through the VL model: identical to the reference for 64 tokens. (The VL backbone weights differ
|
||||||
|
from LFM3-1.7B, so its outputs are not comparable to the 1.7B text model; the text *path* is the same code.)
|
||||||
|
|
||||||
|
### Step 4 — serve + OpenAI API tests
|
||||||
|
Image `lfm3-vllm-xpu:v0.32.0-lfm3-vl` (same Dockerfile, plugin now with VL). Server via
|
||||||
|
`tests/vl/serve_vl.sh NAME [args]` on :8002 with the brief's flags + `--gpu-memory-utilization 0.4` (the daily
|
||||||
|
lfm3 in llama-swap keeps its 0.5 alongside, nothing was unloaded). Model mounted read-only straight from
|
||||||
|
`/mnt/model-library/LiquidAI/LFM3-VL-2B` (no copy to /models needed). Startup: eager 95 s, compile + graphs
|
||||||
|
158 s (first start, cold compile cache).
|
||||||
|
|
||||||
|
`tests/vl/api_test.py PORT LABEL` → `results/vl/api_{eager,graphs}.json`. Images are served to the container over
|
||||||
|
http from the host (`python3 -m http.server --bind 172.17.0.1` in `tests/vl/images`). No sampling params in the
|
||||||
|
requests → the server uses the checkpoint's `generation_config.json` (temperature 0.1, top_k 50,
|
||||||
|
repetition_penalty 1.1, = Liquid's recommendation), seed 0.
|
||||||
|
|
||||||
|
| test | eager | compile + graphs | result |
|
||||||
|
|---|---|---|---|
|
||||||
|
| 1 image by http URL (newspaper photo) | 323 prompt tok, 2476 out, 85.9 s | 1834 out, 22.6 s | "The New York Times", headline "MEN WALK ON MOON" ✔ (reads the year as 1961/62, it's 1969 — model) |
|
||||||
|
| 2 images in one request (photo + text strip) | 779 prompt tok, 10.9 s | 2.8 s | describes both correctly (NYT July 21 1969 / "Full numbers" table) ✔ |
|
||||||
|
| base64 data URL (screenshot 1600×1889, 2950 image tok) | 2979 prompt tok, 25.9 s | 7.5 s | document type + all 10 column headers of the first table exactly, and the headers of the other 3 tables ✔ |
|
||||||
|
| text only | 22 prompt tok, 3.6 s | 0.9 s | "The capital of Australia is Canberra." ✔ |
|
||||||
|
| image + tool call (`search_web`) | 3.2 s | 0.9 s | `finish_reason: tool_calls`, `search_web({"query": "The New York Times"})` (qwen3_coder parser) ✔ |
|
||||||
|
| video_url part | 400 "At most 0 video(s) may be provided in one prompt." | same | rejected ✔ |
|
||||||
|
| 5 images | 400 "At most 4 image(s) may be provided in one prompt." | same | rejected ✔ |
|
||||||
|
|
||||||
|
- **Compile + CUDA graphs work** for the VL model (vLLM default FULL_AND_PIECEWISE on the LM; the vision
|
||||||
|
encoder itself runs eager, vLLM's `compile_mm_encoder` / `cudagraph_mm_encoder` are off by default).
|
||||||
|
~3× faster than eager end to end, as for the text model → recommendation: default mode, no `--enforce-eager`.
|
||||||
|
- Greedy decoding (temperature 0) can get the thinking stuck in a doubt loop ("is it really 'The New York
|
||||||
|
Times'?", 2048 tokens without an answer); Liquid's fp32 reference starts the same pattern in its first 64 tokens,
|
||||||
|
so it's model behaviour. With the default sampling it finishes; with
|
||||||
|
`chat_template_kwargs: {"enable_thinking": false}` the same question is answered in 23 tokens. Reasoning on
|
||||||
|
images is long (~2 k tokens for a simple question) — for Open WebUI consider thinking off for quick questions.
|
||||||
|
|
||||||
|
### Step 5 — benchmarks
|
||||||
|
BetterBench 0.6.1, same invocation as all earlier rounds (`--config /srv/llm/bench/bench-standard/config.json
|
||||||
|
--quick --max-model-len 32768`), text-only corpus, against the VL server on :8002 (compile + graphs, 0.4 GPU share,
|
||||||
|
the daily lfm3 idle alongside). Results `results/vl/bb_vl_{graphs,fp8pc}.{json,html}`, logs `logs/bb_vl_*.log`.
|
||||||
|
|
||||||
|
| model / variant | decode t/s | ITL 1% low t/s | TTFT p50 ms | aggregate @8 t/s | prefill @32k t/s |
|
||||||
|
|---|--:|--:|--:|--:|--:|
|
||||||
|
| LFM3-1.7B BF16 (round 2, reference) | 128.4 | 105.1 | 67 | 768.2 | 16,626 |
|
||||||
|
| **LFM3-VL-2B BF16** | **127.4** | 101.7 | 65 | 757.7 | 16,563 |
|
||||||
|
| LFM3-1.7B FP8 per-channel (round 5, live) | 191.2 | 124.5 | 58 | 1,095.3 | 16,924 |
|
||||||
|
| **LFM3-VL-2B FP8 per-channel** (LM only, vision BF16) | **188.6** | 120.1 | 59 | 1,075.6 | 16,592 |
|
||||||
|
→ for text the VL model is as fast as the text model (same backbone, the vision tower costs nothing when no
|
||||||
|
image is sent).
|
||||||
|
|
||||||
|
**Image cost** (`tests/vl/image_ttft.py`, streaming, max_tokens 1, base64 PNG data URL like Open WebUI, fresh
|
||||||
|
image per request so no mm/prefix cache hit, median of 10, vs a text prompt of the same length):
|
||||||
|
| image | image tokens | TTFT with image | TTFT same-length text | image cost |
|
||||||
|
|---|--:|--:|--:|--:|
|
||||||
|
| 1024×768 (BF16) | 768 (784 prompt) | 218 ms | 73 ms | **145 ms** |
|
||||||
|
| 1024×1024 (BF16) | 1024 (1040 prompt) | 270 ms | 80 ms | **190 ms** |
|
||||||
|
| 1024×768 (FP8) | 768 | 223 ms | 72 ms | 151 ms |
|
||||||
|
| 1024×1024 (FP8) | 1024 | 273 ms | 74 ms | 199 ms |
|
||||||
|
|
||||||
|
Split of the image cost (`tests/vl/encoder_timing.py`, offline: CPU preprocessing = Liquid's image processor;
|
||||||
|
XPU = our vision tower + projector, synchronized, median):
|
||||||
|
| size | image tokens | preprocess (CPU) | vision encoder + projector (XPU) |
|
||||||
|
|---|--:|--:|--:|
|
||||||
|
| 512×512 | 256 | 1.9 ms | 18.8 ms |
|
||||||
|
| 1024×768 | 768 | 8.0 ms | 26.0 ms |
|
||||||
|
| 1024×1024 | 1024 | 8.3 ms | 36.8 ms |
|
||||||
|
| 1920×1080 | 2040 | 16.5 ms | 85.4 ms |
|
||||||
|
| 2048×2048 | 4096 | 39.3 ms | 220.9 ms |
|
||||||
|
So for a 1024-px image only ~35–45 ms of the ~150–190 ms is preprocessing + encoder; the rest is API-server
|
||||||
|
work: base64 + PNG decode of a 1.4–1.7 MB data URL, hashing, and moving fp32 pixel_values (3072×1536×4 B =
|
||||||
|
18.9 MB for 1024×768) to the engine. Possible later win: smaller/JPEG uploads, or a shm mm-processor cache.
|
||||||
|
|
||||||
|
**Text model regression (brief requirement)** — LFM3-1.7B on the new image `:v0.32.0-lfm3-vl`
|
||||||
|
(`model.py` itself unchanged), `tests/greedy_variant.py`, results in `results/vl/text_regress/`:
|
||||||
|
- live config `--quantization=fp8_per_channel`: **5/5 prompts bit-identical** (64/64 tokens) to round 5.
|
||||||
|
- BF16 default: 4/5 identical; raw_short differs at token 47 where the reference's top-2 margin is 0.000 —
|
||||||
|
the known near-tie from round 2 (noise floor), not a change.
|
||||||
|
- BetterBench of the live FP8 config on the new image: decode 188.6 t/s vs 191.2 (−1.4 %), @8 1,064.5 vs 1,095.3,
|
||||||
|
prefill @32k 16,594 vs 16,924 — run at 0.45 GPU share with the daily lfm3 resident on the same GPU
|
||||||
|
(round 5 had the GPU alone); within run-to-run/sharing noise, no code change in the text path.
|
||||||
|
|
||||||
|
### Recommendation + deliverables
|
||||||
|
Serve LFM3-VL-2B with compile + graphs (no `--enforce-eager`) and `--quantization=fp8_per_channel`
|
||||||
|
(+48 % decode, vision tower stays BF16, all API tests and the screenshot reading unchanged). BF16 is the
|
||||||
|
reference-exact option (drop the `--quantization` flag).
|
||||||
|
|
||||||
|
Working docker run (tested, port 8002):
|
||||||
|
```
|
||||||
|
docker run -d --rm --name lfm3-vl \
|
||||||
|
--device /dev/dri --group-add 991 --ipc=host --shm-size=16g \
|
||||||
|
-p 127.0.0.1:8002:8000 \
|
||||||
|
-v /dev/dri:/dev/dri -v /dev/dri/by-path:/dev/dri/by-path:ro \
|
||||||
|
-v /mnt/model-library/LiquidAI/LFM3-VL-2B:/model:ro \
|
||||||
|
-v $PWD/.cache/vl-fp8pc:/root/.cache/vllm \
|
||||||
|
-e HF_HUB_OFFLINE=1 -e TRANSFORMERS_OFFLINE=1 \
|
||||||
|
lfm3-vllm-xpu:v0.32.0-lfm3-vl /model --host=0.0.0.0 --port=8000 --served-model-name=lfm3-vl-2b \
|
||||||
|
--gpu-memory-utilization=0.4 --dtype=bfloat16 --quantization=fp8_per_channel --max-model-len=32768 \
|
||||||
|
--limit-mm-per-prompt='{"image": 4}' \
|
||||||
|
--reasoning-parser=qwen3 --enable-auto-tool-choice --tool-call-parser=qwen3_coder
|
||||||
|
```
|
||||||
|
|
||||||
|
llama-swap entry snippet (NOT applied — the real config is untouched; cache dir to be created by you):
|
||||||
|
```yaml
|
||||||
|
vllm/lfm3-vl-2b:
|
||||||
|
useModelName: lfm3-vl-2b
|
||||||
|
aliases:
|
||||||
|
- lfm3-vl-2b
|
||||||
|
cmdStop: docker stop -t 30 vllm-lfm3-vl
|
||||||
|
cmd: >
|
||||||
|
docker run --rm --name vllm-lfm3-vl
|
||||||
|
--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 /mnt/model-library/LiquidAI/LFM3-VL-2B:/model:ro
|
||||||
|
-v /srv/llm/runtimes/vllm-xpu/lfm3-v032/.cache/vllm-lfm3-vl:/root/.cache/vllm
|
||||||
|
-e HF_HUB_OFFLINE=1
|
||||||
|
-e TRANSFORMERS_OFFLINE=1
|
||||||
|
lfm3-vllm-xpu:v0.32.0-lfm3-vl
|
||||||
|
/model
|
||||||
|
--host=0.0.0.0
|
||||||
|
--port=8000
|
||||||
|
--served-model-name=lfm3-vl-2b
|
||||||
|
--gpu-memory-utilization=0.4
|
||||||
|
--dtype=bfloat16
|
||||||
|
--quantization=fp8_per_channel
|
||||||
|
--max-model-len=32768
|
||||||
|
--limit-mm-per-prompt={"image":4}
|
||||||
|
--enable-auto-tool-choice
|
||||||
|
--tool-call-parser=qwen3_coder
|
||||||
|
--reasoning-parser=qwen3
|
||||||
|
```
|
||||||
|
Notes for the entry: 0.4 lets it run next to the 0.5 text model (both resident ≈ 29.8 GB of 32); alone it can
|
||||||
|
take more. `:v0.32.0-lfm3-vl` also serves the text model unchanged, so the text entry could move to it later
|
||||||
|
(not done). Optional: `--mm-processor-kwargs='{"max_pixels": 4194304}'` caps an image at 4096 tokens
|
||||||
|
(default max 16 384 tokens per image = a 4096² photo eats half the 32k context).
|
||||||
|
|
||||||
|
**Open WebUI:** enable the **"Vision"** capability on the `lfm3-vl-2b` model (Admin → Models → edit →
|
||||||
|
Capabilities), otherwise the image upload is not offered / not sent. It sends images as base64 data URLs,
|
||||||
|
which is exactly what `base64_data_url` tested. Reasoning is on by default and long for images (~2 k tokens for
|
||||||
|
a simple question); thinking off per request = `chat_template_kwargs: {"enable_thinking": false}`. The
|
||||||
|
server's generation_config defaults (temperature 0.1, rep. penalty 1.1) apply when Open WebUI sends none —
|
||||||
|
avoid forcing temperature 0 (can loop inside the thinking).
|
||||||
|
|
||||||
|
Phase 2 (video) not started — waiting for your OK.
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
# Fixed eval inputs: wikitext-2-raw-v1 test -> 20 contiguous 2048-token chunks (LFM3 tokenizer), plus
|
||||||
|
# a ~2k-token article for summarization and ~700 tokens of filler for the long-context prompt.
|
||||||
|
import json, sys
|
||||||
|
from datasets import load_dataset
|
||||||
|
from transformers import AutoTokenizer
|
||||||
|
tok = AutoTokenizer.from_pretrained(sys.argv[1])
|
||||||
|
text = "".join(load_dataset("Salesforce/wikitext", "wikitext-2-raw-v1", split="test")["text"])
|
||||||
|
ids = tok(text, add_special_tokens=False)["input_ids"]
|
||||||
|
chunks = [ids[i:i + 2048] for i in range(0, 20 * 2048, 2048)]
|
||||||
|
import re
|
||||||
|
heads = [m.start() for m in re.finditer(r"^ = [^=\n]+ = $", text, re.M)] # top-level article titles
|
||||||
|
arts = [text[a:b].strip() for a, b in zip(heads, heads[1:] + [len(text)])]
|
||||||
|
long_art = next(a for a in arts if 1700 <= len(tok(a)["input_ids"]) <= 2400)
|
||||||
|
filler = tok.decode(ids[60000:60700])
|
||||||
|
json.dump({"ppl_chunks": chunks, "summary_article": long_art, "filler_700": filler},
|
||||||
|
open(sys.argv[2], "w"), ensure_ascii=False)
|
||||||
|
print(len(chunks), "ppl chunks;", len(tok(long_art)["input_ids"]), "tok article;", len(tok(filler)["input_ids"]), "tok filler")
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"ppl_chunks": [[550, 6102, 61512, 385, 550, 469, 6102, 61512, 385, 355, 401, 3478, 2815, 1228, 8086, 309, 24900, 14498, 1200, 904, 819, 267, 21021, 1762, 21, 40, 37892, 3170, 383, 278, 8086, 3587, 440, 8047, 296, 229, 585, 24, 1200, 969, 452, 5614, 467, 267, 37892, 3170, 296, 278, 1431, 2864, 795, 4484, 467, 14538, 29574, 540, 1228, 643, 452, 5312, 296, 229, 585, 25, 462, 278, 7565, 7419, 18931, 1200, 904, 819, 267, 21021, 3170, 296, 278, 8086, 3587, 31975, 2409, 1015, 290, 296, 229, 585, 26, 1200, 529, 229, 585, 28, 61512, 385, 28078, 267, 3170, 405, 496, 32327, 496, 296, 278, 13636, 496, 336, 51647, 951, 91, 15590, 496, 302, 278, 8086, 3587, 440, 7987, 53770, 3791, 449, 54618, 16023, 17501, 4409, 32107, 309, 55589, 12675, 81, 1200, 904, 452, 6054, 296, 278, 229, 585, 29, 24900, 43420, 302, 278, 13544, 42717, 2273, 1431, 32569, 34735, 1228, 643, 452, 5312, 462, 278, 3082, 399, 18931, 296, 48298, 309, 278, 8597, 644, 61634, 38147, 296, 4595, 1200, 904, 452, 10378, 467, 2409, 336, 3389, 1255, 309, 54618, 16023, 6122, 1084, 719, 1233, 1228, 1450, 1731, 895, 10823, 1228, 15649, 13186, 1228, 44863, 15328, 775, 1228, 39614, 586, 17413, 309, 124708, 6828, 1200, 469, 529, 229, 585, 30, 1228, 61512, 385, 54618, 16023, 1084, 719, 1233, 296, 278, 1431, 43799, 1373, 4484, 467, 4409, 56756, 31043, 1200, 904, 8124, 383, 267, 229, 585, 30, 13636, 302, 278, 8086, 3587, 1228, 50269, 1228, 5614, 467, 267, 3170, 296, 278, 229, 585, 31, 24900, 3392, 302, 1712, 310, 6620, 411, 10378, 467, 7541, 381, 408, 425, 1019, 1200, 1712, 310, 6620, 411, 452, 5312, 462, 18001, 18931, 296, 278, 4595, 49249, 302, 28696, 370, 35236, 309, 30187, 3844, 1200, 61512, 385, 54618, 296, 1046, 6922, 296, 229, 585, 32, 1228, 5751, 4601, 7085, 47379, 467, 2815, 28258, 4741, 1127, 740, 81, 1228, 309, 4789, 4016, 372, 5351, 10378, 467, 6439, 375, 5130, 18217, 1200, 529, 2853, 229, 585, 32, 1228, 61512, 385, 1546, 267, 21021, 9458, 383, 267, 1046, 1762, 21, 40, 691, 13636, 16896, 302, 278, 8086, 3587, 422, 1437, 278, 19884, 1228, 5614, 467, 401, 9458, 383, 278, 8086, 3587, 4780, 26922, 688, 296, 4342, 229, 585, 32, 1200, 904, 819, 267, 48358, 3170, 296, 3175, 19440, 302, 278, 8086, 3587, 7257, 650, 1436, 296, 229, 523, 24, 1228, 405, 496, 483, 9736, 57082, 496, 1200, 61512, 385, 54618, 296, 278, 229, 523, 25, 2815, 18762, 270, 4967, 10378, 467, 4741, 1127, 740, 81, 1200, 469, 550, 550, 48370, 550, 550, 469, 550, 550, 550, 229, 585, 24, 748, 229, 585, 29, 550, 550, 550, 469, 529, 229, 585, 24, 61512, 385, 819, 267, 21021, 1762, 21, 40, 37892, 3170, 383, 278, 8086, 3587, 440, 8047, 3791, 449, 35103, 496, 8543, 1833, 657, 496, 296, 278, 13636, 1228, 496, 529, 35096, 53299, 496, 1200, 61512, 385, 54618, 405, 496, 8543, 496, 296, 278, 1431, 2864, 795, 4484, 467, 14538, 29574, 540, 1228, 643, 452, 5312, 296, 229, 585, 25, 462, 278, 7565, 7419, 18931, 1200, 334, 3701, 302, 61512, 385, 951, 91, 4294, 296, 440, 26135, 383, 13730, 4524, 1388, 405, 496, 4226, 867, 375, 1893, 6999, 496, 296, 278, 3170, 1228, 309, 449, 4567, 5749, 14429, 296, 440, 41473, 1228, 309, 60720, 13797, 1200, 904, 8124, 296, 278, 8086, 3587, 31975, 2409, 1015, 290, 296, 229, 585, 26, 405, 496, 4890, 369, 1007, 8151, 546, 496, 296, 278, 13636, 496, 24995, 36926, 5675, 496, 1228, 309, 819, 267, 3170, 405, 267, 1346, 2837, 496, 336, 17174, 2740, 10233, 496, 383, 440, 8047, 1200, 469, 904, 819, 267, 48358, 3170, 296, 229, 585, 27, 383, 1046, 19440, 302, 440, 8047, 1228, 405, 2837, 496, 1519, 21455, 21727, 496, 1200, 529, 229, 585, 28, 61512, 385, 28078, 267, 3170, 405, 496, 32327, 496, 296, 278, 13636, 496, 336, 51647, 951, 91, 15590, 496, 302, 278, 8086, 3587, 440, 7987, 53770, 3791, 449, 54618, 16023, 17501, 4409, 32107, 309, 55589, 12675, 81, 1200, 61512, 385, 54618, 405, 496, 8196, 779, 496, 1228, 296, 278, 229, 585, 29, 24900, 43420, 302, 278, 13544, 42717, 2273, 1431, 32569, 34735, 1200, 810, 452, 5312, 462, 278, 3082, 399, 18931, 296, 48298, 1228, 309, 278, 8597, 644, 61634, 38147, 296, 4595, 1200, 904, 452, 10378, 467, 2409, 336, 3389, 1255, 309, 54618, 16023, 6122, 1084, 719, 1233, 1228, 1450, 1731, 895, 10823, 1228, 15649, 13186, 1228, 44863, 15328, 775, 1228, 39614, 586, 17413, 309, 124708, 6828, 1200, 61512, 385, 4567, 267, 25623, 3701, 296, 440, 19057, 52718, 954, 496, 440, 14746, 355, 526, 2903, 11232, 15539, 1228, 415, 288, 1765, 20300, 487, 6122, 1084, 719, 1233, 342, 1665, 445, 54937, 55449, 487, 709, 4294, 405, 91313, 427, 11967, 951, 91, 51246, 3850, 1228, 6102, 61512, 385, 1228, 1450, 1731, 895, 10823, 309, 44863, 15328, 775, 1200, 496, 440, 32417, 7865, 1228, 496, 6122, 1084, 719, 1233, 309, 6102, 61512, 385, 3254, 5066, 19926, 33808, 278, 6330, 389, 2593, 1200, 496, 469, 550, 550, 550, 229, 585, 30, 748, 1750, 550, 550, 550, 469, 529, 229, 585, 30, 61512, 385, 54618, 296, 278, 1431, 43799, 1373, 4484, 467, 4409, 56756, 31043, 1200, 440, 1431, 452, 691, 302, 267, 3587, 643, 14210, 1346, 53934, 91, 1228, 21809, 22749, 1406, 40330, 5151, 1406, 43799, 1373, 1200, 529, 267, 22Line truncated
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""Quality eval for one served variant: perplexity on fixed wikitext-2 test tokens (vLLM
|
||||||
|
prompt_logprobs, 20 x 2048 tokens, so the 256-token sliding window matters) + 8 greedy chat prompts.
|
||||||
|
|
||||||
|
python3 eval/eval_quality.py PORT LABEL -> eval/results_LABEL.json
|
||||||
|
"""
|
||||||
|
import json, math, sys, urllib.request
|
||||||
|
|
||||||
|
port, label = int(sys.argv[1]), sys.argv[2]
|
||||||
|
data = json.load(open("eval/eval_data.json"))
|
||||||
|
URL = f"http://127.0.0.1:{port}/v1"
|
||||||
|
|
||||||
|
|
||||||
|
def post(path, body):
|
||||||
|
req = urllib.request.Request(URL + path, json.dumps(body).encode(), {"Content-Type": "application/json"})
|
||||||
|
return json.loads(urllib.request.urlopen(req, timeout=900).read())
|
||||||
|
|
||||||
|
|
||||||
|
# --- perplexity: mean NLL of every token after the first, per chunk, pooled over all chunks
|
||||||
|
nll, n = 0.0, 0
|
||||||
|
for ids in data["ppl_chunks"]:
|
||||||
|
r = post("/completions", {"model": "lfm3-1.7b", "prompt": ids, "max_tokens": 1, "temperature": 0.0,
|
||||||
|
"prompt_logprobs": 0})
|
||||||
|
for tid, lp in zip(ids[1:], r["choices"][0]["prompt_logprobs"][1:]):
|
||||||
|
nll -= lp[str(tid)]["logprob"]; n += 1
|
||||||
|
ppl = math.exp(nll / n)
|
||||||
|
print(f"{label}: PPL {ppl:.4f} over {n} tokens", flush=True)
|
||||||
|
|
||||||
|
TOOLS = [
|
||||||
|
{"type": "function", "function": {"name": "get_weather", "description": "Current weather for a city.",
|
||||||
|
"parameters": {"type": "object", "properties": {"city": {"type": "string"},
|
||||||
|
"unit": {"type": "string", "enum": ["celsius", "fahrenheit"]}}, "required": ["city"]}}},
|
||||||
|
{"type": "function", "function": {"name": "search_flights", "description": "Search flights.",
|
||||||
|
"parameters": {"type": "object", "properties": {"origin": {"type": "string"}, "destination": {"type": "string"},
|
||||||
|
"date": {"type": "string", "description": "YYYY-MM-DD"}, "adults": {"type": "integer"}},
|
||||||
|
"required": ["origin", "destination", "date"]}}},
|
||||||
|
{"type": "function", "function": {"name": "convert_currency", "description": "Convert an amount between currencies.",
|
||||||
|
"parameters": {"type": "object", "properties": {"amount": {"type": "number"}, "from": {"type": "string"},
|
||||||
|
"to": {"type": "string"}}, "required": ["amount", "from", "to"]}}},
|
||||||
|
]
|
||||||
|
PROMPTS = {
|
||||||
|
"factual": "What is the capital of Australia, and why was it chosen instead of Sydney or Melbourne? Answer in two sentences.",
|
||||||
|
"german": "Schreibe eine kurze, höfliche E-Mail an deine Kollegin Frau Weber: Das Meeting am Dienstag muss auf "
|
||||||
|
"Donnerstag um 14 Uhr verschoben werden.",
|
||||||
|
"math": "A shop sells pens at 3 for 2.40 EUR and notebooks at 4.50 EUR each. Anna buys 7 pens and 3 notebooks and "
|
||||||
|
"pays with a 50 EUR note. How much change does she get? End with the amount.",
|
||||||
|
"tool_weather": "Is it raining in Hamburg right now? Use celsius.",
|
||||||
|
"tool_flights": "Find flights from Hamburg to Lisbon on 2026-11-14 for 2 adults.",
|
||||||
|
"json": "Extract the data as a JSON object with keys name (string), age (integer), city (string), skills (list of "
|
||||||
|
"strings). Output only the JSON.\n\nMaria Schmidt is 34, lives in Leipzig and works with Python, SQL and Tableau.",
|
||||||
|
"summary_2k": "Summarize the following article in three sentences.\n\n" + data["summary_article"],
|
||||||
|
"long_context": "The secret code word is 'BLUE HERON 47'. Remember it.\n\n" + data["filler_700"] +
|
||||||
|
"\n\nWhat was the secret code word mentioned at the very beginning? Answer with the code word only.",
|
||||||
|
}
|
||||||
|
|
||||||
|
out = {"label": label, "ppl": ppl, "ppl_tokens": n, "prompts": {}}
|
||||||
|
for name, text in PROMPTS.items():
|
||||||
|
body = {"model": "lfm3-1.7b", "messages": [{"role": "user", "content": text}], "max_tokens": 3000,
|
||||||
|
"temperature": 0.0, "repetition_penalty": 1.0}
|
||||||
|
if name.startswith("tool_"):
|
||||||
|
body["tools"] = TOOLS
|
||||||
|
r = post("/chat/completions", body)
|
||||||
|
c = r["choices"][0]; m = c["message"]
|
||||||
|
out["prompts"][name] = {"content": m.get("content"), "reasoning": m.get("reasoning"),
|
||||||
|
"tool_calls": [tc["function"] for tc in (m.get("tool_calls") or [])],
|
||||||
|
"finish_reason": c["finish_reason"], "completion_tokens": r["usage"]["completion_tokens"]}
|
||||||
|
print(f" {name}: {c['finish_reason']}, {r['usage']['completion_tokens']} tok", flush=True)
|
||||||
|
json.dump(out, open(f"eval/results_{label}.json", "w"), ensure_ascii=False, indent=1)
|
||||||
@@ -0,0 +1,73 @@
|
|||||||
|
{
|
||||||
|
"label": "bf16",
|
||||||
|
"ppl": 18.51761236925693,
|
||||||
|
"ppl_tokens": 40940,
|
||||||
|
"prompts": {
|
||||||
|
"factual": {
|
||||||
|
"content": "The capital of Australia is Canberra. It was chosen as a compromise between Sydney and Melbourne, and as a purpose‑built city in the Australian Capital Territory, to provide a neutral seat of government away from the larger, more established capitals.",
|
||||||
|
"reasoning": "We need to answer the question: \"What is the capital of Australia, and why was it chosen instead of Sydney or Melbourne?\" and we must answer in exactly two sentences.\n\nFirst, recall the capital of Australia. It's Canberra. It was chosen as a compromise between Sydney and Melbourne, two of the largest cities. The reason: to avoid being tied to the largest city and to be centrally located between them, and to be a purpose-built city. The selection process involved the British colonial government and the idea of a \"new capital\" separate from the existing capitals. Specifically, Canberra was chosen because it was located in the Australian Capital Territory (ACT) and was built as a planned city, while Sydney and Melbourne were already established. The decision was made in 1908 through a contest or by the federal government's choice of site.\n\nSo, two sentences: First sentence: The capital of Australia is Canberra. Second sentence: It was chosen as a compromise between Sydney and Melbourne, and as a purpose-built city located in the Australian Capital Territory, to avoid being dominated by the larger, more established cities and to serve as a neutral federal seat.\n\nLet's craft precisely: \"The capital of Australia is Canberra. It was selected as a compromise between Sydney and Melbourne, and as a purpose‑built city in the Australian Capital Territory, to provide a neutral seat of government away from the larger, more established capitals.\" That's two sentences. Check: first sentence states the capital. Second explains why chosen instead of Sydney or Melbourne. That should suffice.\n\nMake sure it's exactly two sentences. No extra periods. I'll write them as two sentences separated by a space. Ensure no extra punctuation that could be interpreted as a sentence end. Use one period at the end of each. So:\n\n\"The capital of Australia is Canberra. It was chosen as a compromise between Sydney and Melbourne, and as a purpose‑built city in the Australian Capital Territory, to provide a neutral seat of government away from the larger, more established capitals.\"\n\nThat's two sentences. Yes.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 473
|
||||||
|
},
|
||||||
|
"german": {
|
||||||
|
"content": "**Betreff:** Terminverschiebung – Donnerstag um 14:00 Uhr \n\nSehr geehrte Frau Weber, \n\nich möchte Sie informieren, dass das Meeting am Dienstag auf Donnerstag um 14 Uhr verschoben werden muss. Bitte passen Sie Ihren Kalender entsprechend an. \n\nMit freundlichen Grüßen \n[Dein Name]",
|
||||||
|
"reasoning": "We need to write a short, polite email to colleague \"Frau Weber\" (note: \"Kollegin Frau Weber\" might be a bit redundant, but it's a female colleague named Frau Weber. \"Frau\" is a title, so \"Kollegin Frau Weber\" means \"colleague Mrs. Weber\" or \"colleague Frau Weber\". We'll just address her as \"Frau Weber\" or \"Kollegin Weber\". Typically in German, \"Frau Weber\" is the full name with title. I'll use \"Sehr geehrte Frau Weber,\" or \"Liebe Frau Weber,\" but \"Sehr geehrte Frau Weber,\" is standard for polite email.\n\nThe content: The meeting on Tuesday must be moved to Thursday at 2 PM. So we need to inform her of the rescheduling.\n\nWe need to keep it short and polite. So something like:\n\nBetreff: Verschiebung des Termins\n\nSehr geehrte Frau Weber,\n\nich möchte Sie informieren, dass das Meeting am Dienstag auf Donnerstag um 14 Uhr verschoben werden muss. Bitte passen Sie Ihren Kalender entsprechend an.\n\nMit freundlichen Grüßen\n[Name]\n\nBut we need to be careful: The user didn't specify the sender's name. We can use a placeholder like \"Ihr Kollege\" or just \"Sehr geehrte Frau Weber,\" and sign with \"Ihr [Name]\" or leave it blank? Usually we can write \"Mit freundlichen Grüßen, [Dein Name]\". Since it's a short email, we can just use a generic \"Ihr Kollege\" or \"Sehr geehrte Frau Weber,\" and then \"Mit freundlichen Grüßen\" and maybe \"Ihr [Name]\" but we don't know. I'll assume the user wants a template. I'll write it in a way that can be easily filled.\n\nLet's craft:\n\nBetreff: Terminverschiebung – Donnerstag 14:00 Uhr\n\nSehr geehrte Frau Weber,\n\nich möchte Sie informieren, dass das Meeting am Dienstag auf Donnerstag um 14 Uhr verschoben werden muss. Bitte aktualisieren Sie Ihren Kalender entsprechend.\n\nMit freundlichen Grüßen\n[Dein Name]\n\nThat's short and polite. I'll make sure it's in German. Also note \"Donnerstag\" is Thursday. \"Um 14 Uhr\" is 2 PM. So that's correct.\n\nThus final answer: the email text. I'll output just the email content.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 601
|
||||||
|
},
|
||||||
|
"math": {
|
||||||
|
"content": "The cost per pen is \\( \\frac{2.40}{3} = 0.80 \\) EUR. \nCost for 7 pens: \\( 7 \\times 0.80 = 5.60 \\) EUR. \nCost for 3 notebooks: \\( 3 \\times 4.50 = 13.50 \\) EUR. \nTotal cost: \\( 5.60 + 13.50 = 19.10 \\) EUR. \nChange from 50 EUR: \\( 50 - 19.10 = 30.90 \\) EUR.\n\n\\[\n\\boxed{30.90}\n\\]",
|
||||||
|
"reasoning": "We need to solve: A shop sells pens at 3 for 2.40 EUR. That means the price per pen is 2.40/3 = 0.80 EUR per pen. Notebooks are 4.50 EUR each. Anna buys 7 pens and 3 notebooks. She pays with a 50 EUR note. How much change does she get?\n\nCompute total cost:\n\nPens: 7 pens * (2.40/3) = 7 * 0.80 = 5.60 EUR? Let's check: 2.40/3 = 0.8 exactly. So 7 * 0.8 = 5.6 EUR.\n\nNotebooks: 3 * 4.50 = 13.50 EUR.\n\nTotal = 5.60 + 13.50 = 19.10 EUR.\n\nShe pays 50 EUR. Change = 50 - 19.10 = 30.90 EUR.\n\nBut let's double-check: 5.6 + 13.5 = 19.1 indeed. 50 - 19.1 = 30.9.\n\nThus change is 30.90 EUR.\n\nBut maybe we need to consider rounding? The price of pens is given as 3 for 2.40 EUR, which is exactly 0.8 per pen. So no rounding issues.\n\nThus answer: 30.90 EUR.\n\nBut the problem says \"End with the amount.\" So we just output the amount.\n\nThus final: 30.90 EUR? Usually they want just the number. I'll put 30.90.\n\nBut let's ensure: 50 - 19.1 = 30.9. So 30.90.\n\nThus \\boxed{30.90} or \\boxed{30.9}? Usually with two decimals. I'll do \\boxed{30.90}.\n\nBut check: 7 pens at 3 for 2.40. That means for every 3 pens, cost 2.40. So cost for 7 pens: 7/3 * 2.40 = (7*2.40)/3 = 16.8/3 = 5.6. Yes.\n\nNotebooks: 3 * 4.50 = 13.5.\n\nTotal = 19.1.\n\n50 - 19.1 = 30.9.\n\nSo answer: 30.90 EUR.\n\nThus final.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 632
|
||||||
|
},
|
||||||
|
"tool_weather": {
|
||||||
|
"content": null,
|
||||||
|
"reasoning": "We need to find out if it's raining in Hamburg right now. The user specified using celsius. There's a tool `get_weather` that takes parameters `city` and optionally `unit`. The required parameter is `city`. The user asked for \"celsius\" so we should set `unit` to \"celsius\". \n\nLet's construct the call.",
|
||||||
|
"tool_calls": [
|
||||||
|
{
|
||||||
|
"name": "get_weather",
|
||||||
|
"arguments": "{\"city\": \"Hamburg\", \"unit\": \"celsius\"}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"finish_reason": "tool_calls",
|
||||||
|
"completion_tokens": 106
|
||||||
|
},
|
||||||
|
"tool_flights": {
|
||||||
|
"content": null,
|
||||||
|
"reasoning": "We need to find flights from Hamburg to Lisbon on 2026-11-14 for 2 adults. The user provided all required parameters: origin (Hamburg), destination (Lisbon), date (2026-11-14), and adults (2). The function `search_flights` requires origin, destination, and date, and optionally adults. So I should call `search_flights` with these parameters. Let's do that.",
|
||||||
|
"tool_calls": [
|
||||||
|
{
|
||||||
|
"name": "search_flights",
|
||||||
|
"arguments": "{\"origin\": \"Hamburg\", \"destination\": \"Lisbon\", \"date\": \"2026-11-14\", \"adults\": 2}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"finish_reason": "tool_calls",
|
||||||
|
"completion_tokens": 147
|
||||||
|
},
|
||||||
|
"json": {
|
||||||
|
"content": "{\n \"name\": \"Maria Schmidt\",\n \"age\": 34,\n \"city\": \"Leipzig\",\n \"skills\": [\"Python\", \"SQL\", \"Tableau\"]\n}",
|
||||||
|
"reasoning": "We need to extract data from the given sentence: \"Maria Schmidt is 34, lives in Leipzig and works with Python, SQL and Tableau.\"\n\nWe need to output a JSON object with keys: name (string), age (integer), city (string), skills (list of strings).\n\nFrom the sentence:\n- Name: Maria Schmidt\n- Age: 34\n- City: Leipzig\n- Skills: Python, SQL, Tableau. These are listed as \"works with Python, SQL and Tableau.\" So skills are these three. We need to split them into a list of strings. Probably separate by commas. So skills: [\"Python\", \"SQL\", \"Tableau\"].\n\nThus JSON:\n{\n \"name\": \"Maria Schmidt\",\n \"age\": 34,\n \"city\": \"Leipzig\",\n \"skills\": [\"Python\", \"SQL\", \"Tableau\"]\n}\n\nMake sure output only the JSON. No extra text.\n\nLet's produce that.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 240
|
||||||
|
},
|
||||||
|
"summary_2k": {
|
||||||
|
"content": "Little Gidding, the fourth poem of T. S. Eliot’s Four Quartets, was first published in October 1942 after a year’s delay caused by World War II air raids and Eliot’s declining health; its title refers to a 17th‑century Anglican community in Huntingdonshire that was scattered during the English Civil War. The poem employs fire—both natural and Pentecostal—to stress purification and purgation, and through a ghost that gathers Dante, Yeats, Swift and others it explores the unity of past, present and future, arguing that humanity’s salvation requires recognizing this unity and that suffering is a necessary prelude to rebirth. Critics have praised its mystical, belief‑laden language and its link to religious renewal and the Holy Spirit, while also noting its heavy emphasis on pain and the choice between redemption and destruction, and Eliot himself saw it as a work that seeks to work on the soul as well as society.",
|
||||||
|
"reasoning": "We need to summarize the article in three sentences. The article is about \"Little Gidding\" poem by T.S. Eliot, part of Four Quartets, its publication, background, themes, etc. We need to condense into three sentences.\n\nWe need to capture key points: It's the fourth poem of Four Quartets, published 1942 after delays due to WWII air raids and Eliot's health; title refers to a 17th-century Anglican community; uses fire and Pentecostal fire to emphasize purification; narrator meets a ghost of various poets; focuses on unity of past, present, future and salvation; Eliot wrote it after health decline, first draft dissatisfied, etc.; themes: renewal through suffering, purgation, redemption vs destruction, connection of holy places and Holy Spirit; ghost is a compilation of poets like Dante, Yeats, etc.; critics have mixed reactions; Eliot's belief that belief and words are one.\n\nWe need three sentences, so we can combine many points.\n\nSentence 1: Introduce poem, its place in Four Quartets, publication, title origin, and context (WWII, health, delayed). Sentence 2: Summarize content: fire, purification, ghost of poets, unity of past/present/future, need for sacrifice and redemption. Sentence 3: Discuss themes, reception, and significance: religious renewal, connection to Holy Spirit, criticism, and Eliot's intent.\n\nLet's craft:\n\n\"Little Gidding, the fourth and final poem of T. S. Eliot’s Four Quartets, was first published in October 1942 after a year’s delay caused by World War II air raids and Eliot’s declining health; its title refers to a 17th‑century Anglican community in Huntingdonshire that was scattered during the English Civil War. The poem uses the image of fire—both natural and Pentecostal—to stress purification and purgation, and through a ghost that gathers Dante, Yeats, Swift and others it explores the unity of past, present and future and argues that humanity’s salvation requires recognizing this unity and suffering as a necessary prelude to rebirth. Critics have praised its mystical, belief‑laden language and its link to religious renewal and the Holy Spirit, while also noting its heavy emphasis on pain and the choice between redemption and destruction, and Eliot himself saw it as a poetic work that seeks to work on the soul as well as society.\"\n\nThat's three sentences? Let's count: Sentence 1 ends after \"...and Eliot’s declining health; its title refers to a 17th‑century Anglican community...\" That's one. Sentence 2: \"The poem uses the image of fire—both natural and Pentecostal—to stress purification and purgation, and through a ghost that gathers Dante, Yeats, Swift and others it explores the unity of past, present and future and argues that humanity’s salvation requires recognizing this unity and suffering as a necessary prelude to rebirth.\" That's second. Sentence 3: \"Critics have praised its mystical, belief‑laden language and its link to religious renewal and the Holy Spirit, while also noting its heavy emphasis on pain and the choice between redemption and destruction, and Eliot himself saw it as a poetic work that seeks to work on the soul as well as society.\" That's third.\n\nWe need to ensure it's three sentences, not too long but okay. Let's refine for clarity and conciseness.\n\nPotential final:\n\n\"Little Gidding, the fourth poem of T. S. Eliot’s Four Quartets, was first published in October 1942 after a year’s delay caused by World War II air raids and Eliot’s declining health; its title refers to a 17th‑century Anglican community in Huntingdonshire that was scattered during the English Civil War. The poem employs fire—both natural and Pentecostal—to stress purification and purgation, and through a ghost that gathers Dante, Yeats, Swift and others it explores the unity of past, present and future, arguing that humanity’s salvation requires recognizing this unity and that suffering is a necessary prelude to rebirth. Critics have praised its mystical, belief‑laden language and its link to religious renewal and the Holy Spirit, while also noting its heavy emphasis on pain and the choice between redemption and destruction, and Eliot himself saw it as a work that seeks to work on the soul as well as society.\"\n\nThat's three sentences. Let's check punctuation: The first sentence ends after \"War.\" Actually we need to ensure it's one sentence. The first sentence: \"Little Gidding, the fourth poem of T. S. Eliot’s Four Quartets, was first published in October 1942 after a year’s delay caused by World War II air raids and Eliot’s declining health; its title refers to a 17th‑century Anglican community in Huntingdonshire that was scattered during the English Civil War.\" That's one sentence (though contains a semicolon). That's okay.\n\nSecond sentence: \"The poem employs fire—both natural and Pentecostal—to stress purification and purgation, and through a ghost that gathers Dante, Yeats, Line truncated
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 1467
|
||||||
|
},
|
||||||
|
"long_context": {
|
||||||
|
"content": "BLUE HERON 47",
|
||||||
|
"reasoning": "We need to answer: \"The secret code word is 'BLUE HERON 47'. Remember it.\" Then a long passage about paleontology. The question: \"What was the secret code word mentioned at the very beginning? Answer with the code word only.\"\n\nThus we just need to output \"BLUE HERON 47\". Probably exactly that, case and spacing. The passage: \"The secret code word is 'BLUE HERON 47'. Remember it.\" So answer: BLUE HERON 47.\n\nThus final: BLUE HERON 47.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 124
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,73 @@
|
|||||||
|
{
|
||||||
|
"label": "fp8",
|
||||||
|
"ppl": 19.207493778980304,
|
||||||
|
"ppl_tokens": 40940,
|
||||||
|
"prompts": {
|
||||||
|
"factual": {
|
||||||
|
"content": "The capital of Australia is Canberra. It was chosen as a purpose‑built city located between Sydney and Melbourne to avoid being dominated by either metropolis and to serve as a neutral political center, a decision reached after a long debate and compromise in the early 20th century.",
|
||||||
|
"reasoning": "We need to answer the question: \"What is the capital of Australia, and why was it chosen instead of Sydney or Melbourne?\" and we must answer in exactly two sentences.\n\nFirst, recall the capital of Australia. It's Canberra. Why was it chosen instead of Sydney or Melbourne? Historically, the decision was made to create a new capital city to avoid being too close to the largest city (Sydney) and to have a more neutral location. The site was chosen because of its location between Sydney and Melbourne, and it was built as a purpose-built city. The rivalry between Sydney and Melbourne for the capital led to the compromise of Canberra, which was established in the early 20th century.\n\nSo, we need to condense that into two sentences.\n\nSentence 1: State the capital: Canberra is the capital of Australia.\n\nSentence 2: Explain why it was chosen over Sydney or Melbourne: It was selected as a purpose-built city located between the two major cities to balance their influence and to serve as a neutral political center, with the site chosen through a compromise process after decades of debate.\n\nLet's craft it precisely.\n\nOption: \"The capital of Australia is Canberra. It was chosen as a purpose-built city between Sydney and Melbourne to avoid being dominated by either city and to provide a neutral political center, a decision reached after a long debate and compromise in the early 20th century.\"\n\nThat's two sentences. Check: First sentence: \"The capital of Australia is Canberra.\" Second: \"It was chosen as a purpose-built city between Sydney and Melbourne to avoid being dominated by either city and to provide a neutral political center, a decision reached after a long debate and compromise in the early 20th century.\" That's two sentences. It answers both parts.\n\nWe should ensure it's accurate: The site was selected in 1908, and the city was built around Yarra Valley. The reason: to be equidistant and to have a capital separate from the largest city. Yes.\n\nThus final answer.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 472
|
||||||
|
},
|
||||||
|
"german": {
|
||||||
|
"content": "**Betreff:** Verschiebung des Termins am Dienstag \n\nSehr geehrte Frau Weber,\n\nich möchte Sie informieren, dass unser Meeting am Dienstag auf **Donnerstag um 14:00 Uhr** verschoben werden muss. Bitte passen Sie Ihren Kalender entsprechend an.\n\nIch hoffe, das passt Ihnen gut. Lassen Sie mich wissen, falls Sie weitere Anpassungen benötigen.\n\nMit freundlichen Grüßen \n[Dein Name]",
|
||||||
|
"reasoning": "We need to write a short, polite email to a colleague, Frau Weber. The content: The meeting on Tuesday must be moved to Thursday at 2 PM. So we need to draft an email in German presumably, as the user wrote in German. The user says: \"Schreibe eine kurze, höfliche E-Mail an deine Kollegin Frau Weber: Das Meeting am Dienstag muss auf Donnerstag um 14 Uhr verschoben werden.\" So we need to produce a short, polite email. We'll address her as \"Frau Weber\" or \"Kollegin Frau Weber\". Use proper greeting, mention the meeting originally scheduled for Tuesday, now moved to Thursday at 14:00, ask for confirmation or just inform. Keep it short and polite.\n\nWe should consider typical email format: Subject line, greeting, body, closing. Use polite language: \"Sehr geehrte Frau Weber,\" or \"Liebe Frau Weber,\" but \"Kollegin\" suggests colleague, maybe \"Sehr geehrte Frau Weber,\" or \"Liebe Kollegin Weber,\" but \"Frau Weber\" is fine. We'll keep it short.\n\nLet's draft:\n\nSubject: Verschiebung des Termins am Dienstag\n\nBody:\n\nSehr geehrte Frau Weber,\n\nich möchte Sie informieren, dass unser Meeting am Dienstag auf Donnerstag um 14:00 Uhr verschoben werden muss. Bitte passen Sie Ihren Kalender entsprechend an.\n\nIch hoffe, das passt Ihnen gut. Lassen Sie mich wissen, falls Sie weitere Anpassungen benötigen.\n\nMit freundlichen Grüßen\n[Name]\n\nThat's short and polite. Could also add \"vielen Dank für Ihre Rückmeldung.\" But it's fine.\n\nWe need to ensure it's in German. Also note that \"14 Uhr\" is 14:00. Use \"Donnerstag um 14 Uhr\". So final email:\n\nBetreff: Verschiebung des Termins am Dienstag\n\nSehr geehrte Frau Weber,\n\nich möchte Sie informieren, dass unser Meeting am Dienstag auf Donnerstag um 14:00 Uhr verschoben werden muss. Bitte aktualisieren Sie Ihren Kalender entsprechend.\n\nIch hoffe, das passt Ihnen gut. Lassen Sie mich wissen, falls Sie weitere Anpassungen benötigen.\n\nMit freundlichen Grüßen\n[Dein Name]\n\nThat's good. We'll output that. Also maybe include \"Kollegin\" but it's okay.\n\nThus final answer: the email text.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 613
|
||||||
|
},
|
||||||
|
"math": {
|
||||||
|
"content": "The price of pens is 3 for 2.40 EUR, so the cost per pen is \\( \\frac{2.40}{3} = 0.80 \\) EUR. \nFor 7 pens: \\( 7 \\times 0.80 = 5.60 \\) EUR. \nNotebooks cost 4.50 EUR each, so for 3 notebooks: \\( 3 \\times 4.50 = 13.50 \\) EUR. \nTotal cost: \\( 5.60 + 13.50 = 19.10 \\) EUR. \nAnna pays with a 50 EUR note, so change is \\( 50.00 - 19.10 = 30.90 \\) EUR.\n\n\\[\n\\boxed{30.90}\n\\]",
|
||||||
|
"reasoning": "We need to solve: A shop sells pens at 3 for 2.40 EUR. That means the price per pen? \"3 for 2.40 EUR\" implies that for every 3 pens, the cost is 2.40 EUR. So price per pen = 2.40 / 3 = 0.80 EUR per pen. Notebooks are 4.50 EUR each. Anna buys 7 pens and 3 notebooks. She pays with a 50 EUR note. We need to find change.\n\nCompute total cost:\n\nPens: 7 pens * 0.80 EUR/pen = 7 * 0.8 = 5.6 EUR.\n\nNotebooks: 3 * 4.50 = 13.5 EUR.\n\nTotal = 5.6 + 13.5 = 19.1 EUR.\n\nShe pays 50 EUR, so change = 50 - 19.1 = 30.9 EUR.\n\nBut check: 5.6 + 13.5 = 19.1 exactly? 5.6 + 13.5 = 19.1. Yes.\n\nThus change = 50 - 19.1 = 30.9 EUR.\n\nBut maybe the price for pens is 3 for 2.40 EUR, meaning the total for 3 pens is 2.40, so per pen is 0.8. That seems correct.\n\nThus answer: 30.9 EUR.\n\nBut let's double-check: 7 pens: 7/3 = 2.333... groups of 3, but we need to compute cost exactly: For 7 pens, we can compute as: 2.40 EUR for 3 pens, so for 6 pens it's 2 * 2.40 = 4.80 EUR. Then one extra pen at 0.80 EUR = 5.60 EUR. So same.\n\nNotebooks: 3 * 4.50 = 13.50.\n\nTotal = 5.60 + 13.50 = 19.10.\n\nChange = 50.00 - 19.10 = 30.90.\n\nThus answer: 30.90 EUR.\n\nBut maybe they want to round to two decimals? 30.90.\n\nThus final: \\boxed{30.90} or \\boxed{30.9}? Usually currency to two decimals. I'll put \\boxed{30.90} but check: 50 - 19.1 = 30.9 exactly? 19.1 is 19.10, so 50 - 19.10 = 30.90. So yes.\n\nThus final answer: \\boxed{30.90} EUR? The problem says \"End with the amount.\" So just the number.\n\nI'll output \\boxed{30.90}.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 747
|
||||||
|
},
|
||||||
|
"tool_weather": {
|
||||||
|
"content": null,
|
||||||
|
"reasoning": "We need to find out if it's raining in Hamburg right now. The user specified using celsius. There's a tool `get_weather` that takes parameters `city` and optionally `unit`. The required parameter is `city`. The user asked for \"celsius\" so we should set `unit` to \"celsius\". \n\nLet's call the function.",
|
||||||
|
"tool_calls": [
|
||||||
|
{
|
||||||
|
"name": "get_weather",
|
||||||
|
"arguments": "{\"city\": \"Hamburg\", \"unit\": \"celsius\"}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"finish_reason": "tool_calls",
|
||||||
|
"completion_tokens": 106
|
||||||
|
},
|
||||||
|
"tool_flights": {
|
||||||
|
"content": null,
|
||||||
|
"reasoning": "We need to find flights from Hamburg to Lisbon on 2026-11-14 for 2 adults. The user provided all required parameters: origin (Hamburg), destination (Lisbon), date (2026-11-14), and adults (2). The function `search_flights` requires origin, destination, and date, and optionally adults. So I should call `search_flights` with these parameters. Let's do that.",
|
||||||
|
"tool_calls": [
|
||||||
|
{
|
||||||
|
"name": "search_flights",
|
||||||
|
"arguments": "{\"origin\": \"Hamburg\", \"destination\": \"Lisbon\", \"date\": \"2026-11-14\", \"adults\": 2}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"finish_reason": "tool_calls",
|
||||||
|
"completion_tokens": 147
|
||||||
|
},
|
||||||
|
"json": {
|
||||||
|
"content": "{\n \"name\": \"Maria Schmidt\",\n \"age\": 34,\n \"city\": \"Leipzig\",\n \"skills\": [\n \"Python\",\n \"SQL\",\n \"Tableau\"\n ]\n}",
|
||||||
|
"reasoning": "We need to extract data from the given sentence: \"Maria Schmidt is 34, lives in Leipzig and works with Python, SQL and Tableau.\"\n\nWe need to output a JSON object with keys: name (string), age (integer), city (string), skills (list of strings).\n\nFrom the sentence:\n- Name: Maria Schmidt\n- Age: 34\n- City: Leipzig\n- Skills: Python, SQL, Tableau. These are listed as \"works with Python, SQL and Tableau.\" So skills are these three. We need to split them into a list of strings. Probably \"Python\", \"SQL\", \"Tableau\". Note: The sentence uses commas and \"and\". So we can parse.\n\nThus JSON:\n{\n \"name\": \"Maria Schmidt\",\n \"age\": 34,\n \"city\": \"Leipzig\",\n \"skills\": [\"Python\", \"SQL\", \"Tableau\"]\n}\n\nMake sure output only the JSON, no extra text.\n\nLet's produce that.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 253
|
||||||
|
},
|
||||||
|
"summary_2k": {
|
||||||
|
"content": "“Little Gidding,” the fourth and final poem of T. S. Eliot’s *Four Quartets*, was first published in October 1942 after being delayed by World War II air raids and Eliot’s declining health; its title alludes to a 17th‑century Anglican community in Huntingdonshire that was scattered during the English Civil War. The poem employs fire and Pentecostal imagery to stress purification and purgation, juxtaposing the Battle of Britain, death, and a ghost of poets (originally “Ser Brunetto”) who urges the narrator to confront past mistakes, suffer, and be redeemed by the Holy Spirit’s flame, thereby achieving unity of past, present, and future and salvation. Eliot completed five drafts, finishing the work in September 1942, and it was intended to conclude the series by linking themes of renewal, suffering, and spiritual rebirth; critics react with mixed emotions, praising its mystical, belief‑laden language while also noting its painful emphasis on disease, war, and the need for fire‑based redemption.",
|
||||||
|
"reasoning": "We need to summarize the article in three sentences. The article is about \"Little Gidding\" poem by T. S. Eliot, part of Four Quartets, its background, themes, etc. We need to condense into three sentences.\n\nWe need to capture key points: It's the fourth poem of Four Quartets, published 1942 after delays due to WWII air raids and Eliot's health; title refers to a 17th-century Anglican community in Huntingdonshire; uses fire and Pentecostal fire imagery to emphasize purification; narrator meets a ghost of various poets; focuses on unity of past, present, future and salvation; Eliot wrote it after health decline, first draft in 1941, revised after months, finished 1942; themes: renewal through suffering, purgation by fire, connection of holy places with Holy Spirit, etc.; critics have mixed reactions; ghost originally \"Ser Brunetto\" changed to ambiguous \"you\". Also mention that it's intended to conclude the series.\n\nWe need three sentences. Let's craft:\n\nSentence 1: Provide basic info: Little Gidding is the fourth poem of T. S. Eliot's Four Quartets, first published in October 1942 after delays due to WWII air raids and Eliot's declining health; the title refers to a 17th‑century Anglican community in Huntingdonshire.\n\nSentence 2: Summarize content: The poem uses fire and Pentecostal imagery to depict purification and purgation, juxtaposing the Battle of Britain, death, and a ghost of poets (originally \"Ser Brunetto\") who urges the narrator to experience renewal through suffering and the Holy Spirit's fire, thereby achieving salvation.\n\nSentence 3: Mention themes and reception: Eliot wrote five drafts, finished it in September 1942, and it aims to summarize the series' ideas about past, present, future and humanity's redemption; critics find it both mystical and painful, with some praising its belief and language while others criticize its emphasis on suffering and religious sanctity.\n\nCheck length: three sentences, each fairly long but okay.\n\nLet's refine for clarity and conciseness.\n\nSentence 1: \"Little Gidding, the fourth and final poem of T. S. Eliot’s Four Quartets, was first published in October 1942 after being delayed by World War II air raids and Eliot’s declining health; its title alludes to a 17th‑century Anglican community in Huntingdonshire that was scattered during the English Civil War.\"\n\nSentence 2: \"The poem employs fire and Pentecostal imagery to stress purification and purgation, juxtaposing the Battle of Britain, death, and a ghost of poets (originally “Ser Brunetto”) who urges the narrator to confront past mistakes, suffer, and be redeemed by the Holy Spirit’s flame, thereby achieving unity of past, present, and future and salvation.\"\n\nSentence 3: \"Eliot completed five drafts, finishing the work in September 1942, and it was intended to conclude the series by linking the themes of renewal, suffering, and spiritual rebirth; critics react with mixed emotions, praising its mystical, belief‑laden language while also noting its painful emphasis on disease, war, and the need for fire‑based redemption.\"\n\nThat's three sentences. Let's check: Sentence 1 is okay. Sentence 2 is okay. Sentence 3 is okay.\n\nWe need to ensure it's three sentences exactly. Yes.\n\nNow produce final answer.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 974
|
||||||
|
},
|
||||||
|
"long_context": {
|
||||||
|
"content": "BLUE HERON 47",
|
||||||
|
"reasoning": "We need to answer: \"The secret code word is 'BLUE HERON 47'. Remember it.\" Then a long passage about paleontology. The question: \"What was the secret code word mentioned at the very beginning? Answer with the code word only.\"\n\nThus we just need to output \"BLUE HERON 47\". Probably exactly that, case and spacing. The passage: \"The secret code word is 'BLUE HERON 47'. Remember it.\" So answer: BLUE HERON 47.\n\nThus final: BLUE HERON 47.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 124
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,73 @@
|
|||||||
|
{
|
||||||
|
"label": "fp8pc",
|
||||||
|
"ppl": 18.52298631067281,
|
||||||
|
"ppl_tokens": 40940,
|
||||||
|
"prompts": {
|
||||||
|
"factual": {
|
||||||
|
"content": "The capital of Australia is Canberra. It was chosen as a purpose‑built city in the Australian Capital Territory rather than Sydney or Melbourne to create a neutral, centrally located seat of government that balanced the two largest cities and offered good transport links.",
|
||||||
|
"reasoning": "We need to answer the question: \"What is the capital of Australia, and why was it chosen instead of Sydney or Melbourne?\" and we must answer in two sentences.\n\nFirst, recall that the capital of Australia is Canberra. It was chosen as a purpose-built city rather than being the largest city like Sydney or Melbourne. The reason: to avoid being dominated by the largest city and to create a neutral capital. The selection was based on a compromise between Sydney and Melbourne, and the site was chosen because of its location between the two cities, on the Australian Capital Territory, with good railway connections and natural beauty. Specifically, the site was selected in 1908 through a competition, and the decision was made to build a new capital city rather than use an existing one.\n\nSo, two sentences: First sentence: The capital of Australia is Canberra. Second sentence: It was chosen as a purpose-built city in the Australian Capital Territory to avoid being dominated by Sydney or Melbourne and to provide a neutral, centrally located seat of government.\n\nLet's craft that concisely.\n\nSentence 1: \"The capital of Australia is Canberra.\" (That's straightforward.)\n\nSentence 2: \"It was selected as a new, purpose-built city in the Australian Capital Territory rather than Sydney or Melbourne to create a neutral seat of government that balanced the two largest cities and offered a central location with good transport links.\" That's a bit long but okay. Need to ensure it's two sentences total.\n\nLet's count: \"The capital of Australia is Canberra.\" (1) \"It was chosen as a purpose‑built city in the Australian Capital Territory to avoid being dominated by Sydney or Melbourne and to provide a neutral, centrally located seat of government.\" (2) That's two sentences.\n\nYes. I'll answer that.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 416
|
||||||
|
},
|
||||||
|
"german": {
|
||||||
|
"content": "**Betreff:** Verschiebung des Termins am Dienstag \n\nSehr geehrte Frau Weber, \n\nich möchte Sie informieren, dass das Meeting, das ursprünglich am Dienstag geplant war, auf **Donnerstag um 14:00 Uhr** verschoben werden muss. \n\nBitte teilen Sie mir mit, ob dieser neue Termin für Sie passt. \n\nMit freundlichen Grüßen \n[Dein Name]",
|
||||||
|
"reasoning": "We need to write a short, polite email to colleague Frau Weber. The content: The meeting on Tuesday must be moved to Thursday at 2 PM. So we need to draft an email in German presumably, as the user wrote in German. The user says: \"Schreibe eine kurze, höfliche E-Mail an deine Kollegin Frau Weber: Das Meeting am Dienstag muss auf Donnerstag um 14 Uhr verschoben werden.\" So we need to produce a short, polite email. We'll address her as \"Frau Weber\" or \"Kollegin Frau Weber\". Use proper salutation, mention the meeting originally on Tuesday, now moved to Thursday at 14:00. Possibly ask for confirmation or just inform. Keep it short and polite.\n\nWe should consider typical email format: Subject line, greeting, body, closing, signature. Use polite language: \"Sehr geehrte Frau Weber,\" or \"Liebe Frau Weber,\" but \"Kollegin\" suggests colleague, maybe \"Sehr geehrte Frau Weber,\" or \"Liebe Kollegin Weber,\" but \"Frau Weber\" is fine. We'll keep it short.\n\nLet's draft:\n\nSubject: Verschiebung des Termins am Dienstag\n\nBody:\n\nSehr geehrte Frau Weber,\n\nich möchte Sie informieren, dass das Meeting, das ursprünglich am Dienstag geplant war, auf Donnerstag um 14:00 Uhr verschoben werden muss.\n\nBitte teilen Sie mir mit, ob dieser Termin passt.\n\nMit freundlichen Grüßen\n[Name]\n\nThat's short and polite. Could add \"Ich hoffe, dass dies für Sie passt.\" etc.\n\nWe'll produce that. Ensure it's in German. Use proper punctuation. Also maybe mention \"um 14 Uhr\" as 14:00. Use \"Donnerstag um 14 Uhr\". Good.\n\nThus final answer: a short email. We'll include subject line and body. Possibly include placeholders for name.\n\nLet's write:\n\nBetreff: Verschiebung des Termins am Dienstag\n\nSehr geehrte Frau Weber,\n\nich schreibe Ihnen, um Ihnen mitzuteilen, dass das Meeting, das am Dienstag geplant war, auf Donnerstag um 14:00 Uhr verschoben werden muss.\n\nBitte bestätigen Sie, ob dieser neue Termin für Sie passt.\n\nMit freundlichen Grüßen\n[Dein Name]\n\nThat's fine. We'll keep it short. Also maybe \"Kollegin\" is used, but \"Frau Weber\" is enough.\n\nThus final.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 620
|
||||||
|
},
|
||||||
|
"math": {
|
||||||
|
"content": "Anna buys 7 pens at a rate of 3 for 2.40 EUR, so the cost per pen is \\( \\frac{2.40}{3} = 0.80 \\) EUR. \nCost for 7 pens: \\( 7 \\times 0.80 = 5.60 \\) EUR. \n\nNotebooks cost 4.50 EUR each, so cost for 3 notebooks: \\( 3 \\times 4.50 = 13.50 \\) EUR. \n\nTotal cost: \\( 5.60 + 13.50 = 19.10 \\) EUR. \n\nShe pays with a 50 EUR note, so change is \\( 50 - 19.10 = 30.90 \\) EUR. \n\n\\[\n\\boxed{30.90}\n\\]",
|
||||||
|
"reasoning": "We need to solve: A shop sells pens at 3 for 2.40 EUR. That means the price per pen is 2.40/3 = 0.80 EUR per pen. Notebooks are 4.50 EUR each. Anna buys 7 pens and 3 notebooks. She pays with a 50 EUR note. We need to find change.\n\nCompute total cost:\n\nPens: 7 pens * (2.40/3) = 7 * 0.80 = 5.60 EUR? Let's check: 2.40/3 = 0.8 exactly. 7 * 0.8 = 5.6.\n\nNotebooks: 3 * 4.50 = 13.50 EUR.\n\nTotal = 5.60 + 13.50 = 19.10 EUR.\n\nShe pays 50 EUR. Change = 50 - 19.10 = 30.90 EUR.\n\nBut let's double-check: 5.6 + 13.5 = 19.1 indeed. 50 - 19.1 = 30.9.\n\nThus change is 30.90 EUR.\n\nBut maybe we need to consider rounding? The price per pen is 2.40 for 3 pens, so total for 3 pens is 2.40. For 7 pens, we can compute as (7/3)*2.40 = 7 * (2.40/3) = 7 * 0.8 = 5.6. That's fine.\n\nThus answer: 30.90 EUR.\n\nBut let's ensure the format: \"End with the amount.\" So we just output the amount? Probably \"30.90 EUR\" or \"30.9 EUR\"? Usually with two decimals. So 30.90.\n\nThus final: 30.90 EUR.\n\nBut let's re-evaluate: 2.40 EUR for 3 pens. So per pen = 0.80. 7 pens = 5.60. Notebooks: 4.50 each, 3 notebooks = 13.50. Sum = 19.10. 50 - 19.10 = 30.90.\n\nYes.\n\nThus answer: 30.90 EUR.\n\nI'll put \"30.90\" or \"30.90 EUR\"? The problem says \"How much change does she get? End with the amount.\" So I'll output \"30.90 EUR\" or just \"30.90\". Usually they want the amount. I'll include the currency? The problem uses EUR. So I'll say \"30.90 EUR\". But \"End with the amount.\" So maybe just the number. I'll do: 30.90.\n\nBetter to be precise: 30.90.\n\nThus final.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 746
|
||||||
|
},
|
||||||
|
"tool_weather": {
|
||||||
|
"content": null,
|
||||||
|
"reasoning": "We need to find out if it's raining in Hamburg right now. The user specified using celsius. There's a tool `get_weather` that takes parameters `city` and optionally `unit`. The required parameter is `city`. The user asked about Hamburg and wants the unit to be celsius. So I should call `get_weather` with city \"Hamburg\" and unit \"celsius\". Let's do that.",
|
||||||
|
"tool_calls": [
|
||||||
|
{
|
||||||
|
"name": "get_weather",
|
||||||
|
"arguments": "{\"city\": \"Hamburg\", \"unit\": \"celsius\"}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"finish_reason": "tool_calls",
|
||||||
|
"completion_tokens": 120
|
||||||
|
},
|
||||||
|
"tool_flights": {
|
||||||
|
"content": null,
|
||||||
|
"reasoning": "We need to find flights from Hamburg to Lisbon on 2026-11-14 for 2 adults. The user provided all required parameters: origin (Hamburg), destination (Lisbon), date (2026-11-14), and adults (2). The function `search_flights` requires origin, destination, and date, and optionally adults. So I should call `search_flights` with these parameters. Let's construct the call.",
|
||||||
|
"tool_calls": [
|
||||||
|
{
|
||||||
|
"name": "search_flights",
|
||||||
|
"arguments": "{\"origin\": \"Hamburg\", \"destination\": \"Lisbon\", \"date\": \"2026-11-14\", \"adults\": 2}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"finish_reason": "tool_calls",
|
||||||
|
"completion_tokens": 148
|
||||||
|
},
|
||||||
|
"json": {
|
||||||
|
"content": "{\n \"name\": \"Maria Schmidt\",\n \"age\": 34,\n \"city\": \"Leipzig\",\n \"skills\": [\n \"Python\",\n \"SQL\",\n \"Tableau\"\n ]\n}",
|
||||||
|
"reasoning": "We need to extract data from the given sentence: \"Maria Schmidt is 34, lives in Leipzig and works with Python, SQL and Tableau.\"\n\nWe need to output a JSON object with keys: name (string), age (integer), city (string), skills (list of strings).\n\nFrom the sentence:\n- Name: Maria Schmidt\n- Age: 34\n- City: Leipzig\n- Skills: Python, SQL, Tableau. These are listed as \"works with Python, SQL and Tableau.\" So skills are these three. We need to split them into a list of strings. Probably separate by commas and spaces. So skills: [\"Python\", \"SQL\", \"Tableau\"].\n\nThus JSON:\n{\n \"name\": \"Maria Schmidt\",\n \"age\": 34,\n \"city\": \"Leipzig\",\n \"skills\": [\"Python\", \"SQL\", \"Tableau\"]\n}\n\nMake sure output only the JSON. No extra text.\n\nLet's produce that.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 248
|
||||||
|
},
|
||||||
|
"summary_2k": {
|
||||||
|
"content": "Little Gidding, the fourth and final poem of T. S. Eliot’s Four Quartets, was first published in October 1942 after being delayed by World War II air raids and Eliot’s declining health; its title refers to a 17th‑century Huntingdonshire Anglican community, and the poem uses fire and Pentecostal imagery to stress purification and the need to overcome humanity’s flawed, war‑filled past. Eliot wrote five drafts, revising his first after leaving for a lecture tour, and finished the work in September 1942; the poem introduces a ghost of various poets (originally “Ser Brunetto”) who urges the narrator to experience purgation through fire and to see the unity of past, present, and future as the path to salvation. Themes of renewal, suffering, and redemption—contrasted with the threat of London’s air raids—are explored, and critics have responded with mixed emotions, praising its mystical, almost Buddhist tone while noting its heavy emphasis on pain and the poet’s attempt to help the world through language and soul.",
|
||||||
|
"reasoning": "We need to summarize the article in three sentences. The article is a long passage about \"Little Gidding\" poem by T.S. Eliot, its background, composition, themes, etc. We need to condense into three sentences.\n\nWe need to capture key points: It's the fourth and final poem of Four Quartets, published 1942 after delays due to WWII air raids and Eliot's health. Title refers to a 17th-century Anglican community in Huntingdonshire. The poem uses fire and Pentecostal fire to emphasize purification; humanity's flawed understanding leads to war, but can be overcome by recognizing past lessons. The narrator meets a ghost of various poets; focuses on unity of past, present, future, and salvation. Eliot wrote it after health decline, first draft in 1941, revised after leaving for lectures, finished Aug 1942. Themes: renewal through suffering, religious community, connection of holy places and Holy Spirit, Puritan dispersal, etc. Critics have mixed reactions, some see it as mystical, Buddhist, etc. The ghost originally \"Ser Brunetto\" changed to ambiguous \"you\". The poem ends with sacrifice and reincarnation.\n\nWe need three sentences. Let's craft:\n\nSentence 1: Provide overview: \"Little Gidding\" is the fourth and final poem of T. S. Eliot's Four Quartets, first published in October 1942 after delays caused by WWII air raids and Eliot's declining health; it draws on the 17th‑century Huntingdonshire Anglican community and uses fire and Pentecostal imagery to stress purification and the need to overcome humanity's flawed, war‑filled past.\"\n\nSentence 2: Discuss composition and content: \"Eliot wrote five drafts, revising his first after leaving for lectures, and finished the poem in September 1942; the work features a ghost of poets (originally \"Ser Brunetto\") who urges the narrator to experience purgation through fire and recognize the unity of past, present, and future as a path to salvation.\"\n\nSentence 3: Themes and reception: \"Critics find the poem a mystical, almost Buddhist meditation on renewal, suffering, and redemption, with the final choice between divine love and the bombing of London, and the reception has been mixed, praising its lyrical belief and controversy over its emphasis on pain and religious fervor.\"\n\nCheck length: three sentences, each fairly dense. Let's refine.\n\nSentence 1: \"Little Gidding, the fourth and final poem of T. S. Eliot’s Four Quartets, was first published in October 1942 after being delayed by World War II air raids and Eliot’s declining health; its title refers to a 17th‑century Huntingdonshire Anglican community, and the poem uses fire and Pentecostal imagery to stress purification and the need to overcome humanity’s flawed, war‑filled past.\"\n\nSentence 2: \"Eliot completed five drafts, revising his first after leaving for a lecture tour, and finished the work in September 1942; the poem introduces a ghost of various poets (originally “Ser Brunetto”) who urges the narrator to experience purgation through fire and to see the unity of past, present, and future as the way to salvation.\"\n\nSentence 3: \"Themes of renewal, suffering, and redemption—contrasted with the threat of London’s air raids—are explored, and critics have responded with mixed emotions, praising its mystical, almost Buddhist tone while noting its heavy emphasis on pain and the poet’s attempt to help the world through language and soul.\"\n\nThat's three sentences. Let's check: Sentence 1 is long but okay. Sentence 2 is okay. Sentence 3 is okay.\n\nWe need to ensure it's three sentences, not more. I'll count periods. I'll write them as three separate sentences separated by periods. Ensure no extra periods inside abbreviations? \"Eliot’s\" includes an apostrophe, not a period. \"World War II\" includes a period? No. \"October 1942\" includes a period? No. \"Four Quartets\" includes a period? No. So three sentences.\n\nLet's rewrite more concisely:\n\nSentence 1: \"Little Gidding, the fourth and final poem of T. S. Eliot’s Four Quartets, was first published in October 1942 after being delayed by World War II air raids and Eliot’s declining health; its title refers to a 17th‑century Huntingdonshire Anglican community, and the poem uses fire and Pentecostal imagery to stress purification and the need to overcome humanity’s flawed, war‑filled past.\"\n\nSentence 2: \"Eliot wrote five drafts, revising his first after leaving for a lecture tour, and finished the work in September 1942; the poem introduces a ghost of various poets (originally “Ser Brunetto”) who urges the narrator to experience purgation through fire and to see the unity of past, present, and future as the path to salvation.\"\n\nSentence 3: \"Themes of renewal, suffering, and redemption—contrasted with the threat of London’s air raids—are explored, and critics have responded with mixed emotions, praising its mystical, almost Buddhist tone while noting its heavLine truncated
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 1377
|
||||||
|
},
|
||||||
|
"long_context": {
|
||||||
|
"content": "BLUE HERON 47",
|
||||||
|
"reasoning": "We need to answer: \"What was the secret code word mentioned at the very beginning? Answer with the code word only.\"\n\nThe user gave a paragraph starting: \"The secret code word is 'BLUE HERON 47'. Remember it.\"\n\nThus the secret code word is \"BLUE HERON 47\". So answer with that code word only.\n\nThus output: BLUE HERON 47\n\nBut we need to be careful about case and spacing. The text: 'BLUE HERON 47'. So exactly that.\n\nThus final answer: BLUE HERON 47.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 128
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,73 @@
|
|||||||
|
{
|
||||||
|
"label": "int4",
|
||||||
|
"ppl": 19.886369735448092,
|
||||||
|
"ppl_tokens": 40940,
|
||||||
|
"prompts": {
|
||||||
|
"factual": {
|
||||||
|
"content": "The capital of Australia is Canberra. It was chosen as a compromise between Sydney and Melbourne to serve as a neutral, purpose-built city that would not favor either of the existing major urban centers.",
|
||||||
|
"reasoning": "We need to answer the question: \"What is the capital of Australia, and why was it chosen instead of Sydney or Melbourne?\" in two sentences.\n\nFirst, the capital of Australia is Canberra. It was chosen as a compromise between Sydney and Melbourne, two of the largest cities, to avoid favoring either. The reason for choosing Canberra is that it was selected as the site for the new capital city through a contest and was built to be a neutral location between the two major cities.\n\nSo, two sentences: \n1. The capital of Australia is Canberra.\n2. It was chosen as a compromise between Sydney and Melbourne to ensure the new capital was neither too close to the existing major cities nor in a contested location.\n\nLet's craft precisely.\n\nSentence 1: Canberra is the capital of Australia. (But we need to mention why it was chosen instead of Sydney or Melbourne.)\n\nSentence 2: It was selected as a neutral site between the two largest cities, Sydney and Melbourne, to avoid favoring either and to provide a new, purpose-built capital.\n\nThat's two sentences. Let's make them concise.\n\nFinal answer: \"The capital of Australia is Canberra. It was chosen as a compromise between Sydney and Melbourne to serve as a neutral, purpose-built city that would not favor either of the existing major urban centers.\"\n\nCheck: That's two sentences. Yes.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 321
|
||||||
|
},
|
||||||
|
"german": {
|
||||||
|
"content": "**Betreff:** Verschiebung des Termins\n\nSehr geehrte Frau Weber,\n\nich möchte Sie informieren, dass das Meeting, das ursprünglich am Dienstag geplant war, auf **Donnerstag um 14 Uhr** verschoben werden muss.\n\nBitte passen Sie Ihren Kalender entsprechend an.\n\nMit freundlichen Grüßen \n[Dein Name]",
|
||||||
|
"reasoning": "We need to write a short, polite email to a colleague, Frau Weber (Mrs. Weber). The meeting on Tuesday needs to be moved to Thursday at 2 PM. So we need to compose an email in German, presumably. The user says: \"Schreibe eine kurze, höfliche E-Mail an deine Kollegin Frau Weber: Das Meeting am Dienstag muss auf Donnerstag um 14 Uhr verschoben werden.\" So we need to produce the email content. We should be polite, concise, and include the necessary details: recipient, subject, body. Possibly include a greeting, mention the meeting originally scheduled for Tuesday, now moved to Thursday at 14:00, and ask for confirmation or just inform. Also sign off politely.\n\nWe need to keep it short. Let's draft:\n\nSubject: Verschiebung des Meetings\n\nDear Frau Weber,\n\nIch möchte Sie informieren, dass das Meeting, das ursprünglich am Dienstag geplant war, auf Donnerstag um 14 Uhr verschoben werden muss.\n\nBitte passen Sie Ihren Kalender entsprechend an.\n\nMit freundlichen Grüßen\n[Name]\n\nBut we need to be careful: \"Kollegin\" means colleague, female. So \"Frau Weber\" is the title. Use \"Sehr geehrte Frau Weber,\" or \"Liebe Frau Weber,\"? Usually \"Sehr geehrte Frau Weber,\" is formal. Since it's a colleague, maybe \"Liebe Frau Weber\" is okay but \"Sehr geehrte Frau Weber\" is more formal. I'll go with \"Sehr geehrte Frau Weber,\".\n\nLet's write:\n\nBetreff: Verschiebung des Termins\n\nSehr geehrte Frau Weber,\n\nich möchte Sie informieren, dass das Meeting, das ursprünglich am Dienstag angesetzt war, auf Donnerstag um 14 Uhr verschoben werden muss.\n\nBitte passen Sie Ihren Kalender entsprechend an.\n\nMit freundlichen Grüßen\n[Dein Name]\n\nThat's short and polite. Possibly add \"Ich hoffe, dass dies keine Probleme verursacht\" but not necessary. Keep it short.\n\nThus final answer: the email text. I'll include placeholders for name. Also maybe mention \"Dienstag\" and \"Donnerstag\" and \"14 Uhr\". I'll write in German.\n\nLet's produce.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 553
|
||||||
|
},
|
||||||
|
"math": {
|
||||||
|
"content": "The price per pen is \\( \\frac{2.40}{3} = 0.8 \\) EUR. \nCost for 7 pens: \\( 7 \\times 0.8 = 5.6 \\) EUR. \nCost for 3 notebooks: \\( 3 \\times 4.50 = 13.5 \\) EUR. \nTotal cost: \\( 5.6 + 13.5 = 19.1 \\) EUR. \nChange from a 50 EUR note: \\( 50 - 19.1 = 30.9 \\) EUR.\n\nThus, Anna gets 30.9 EUR in change.\n\n\\boxed{30.9}",
|
||||||
|
"reasoning": "We need to solve: A shop sells pens at 3 for 2.40 EUR. That means the price per pen is 2.40/3 = 0.8 EUR per pen. Notebooks are 4.50 EUR each. Anna buys 7 pens and 3 notebooks. She pays with a 50 EUR note. We need to find how much change she gets.\n\nFirst, compute total cost for pens: 7 pens * (2.40/3) = 7 * 0.8 = 5.6 EUR? Let's check: 2.40/3 = 0.8 exactly. 7 * 0.8 = 5.6 EUR.\n\nNotebooks: 3 notebooks * 4.50 = 13.5 EUR.\n\nTotal cost = 5.6 + 13.5 = 19.1 EUR.\n\nShe pays 50 EUR. Change = 50 - 19.1 = 30.9 EUR.\n\nBut let's double-check: 2.40 EUR for 3 pens. So price per pen = 2.40/3 = 0.8. 7 pens cost 7*0.8 = 5.6. Notebooks: 4.50 each, 3*4.50 = 13.5. Sum = 19.1. 50 - 19.1 = 30.9. So change is 30.90 EUR.\n\nThus answer: 30.9 EUR? Usually they'd write 30.90 or 30.9. I'll put 30.90? The problem says \"End with the amount.\" So just the number.\n\nThus final: 30.9 EUR? But let's compute precisely: 2.40/3 = 0.8 exactly. 7*0.8 = 5.6. 3*4.5 = 13.5. Sum = 19.1. 50 - 19.1 = 30.9. So 30.9.\n\nBut maybe they want 30.90? I'll put 30.9.\n\nThus final answer: \\boxed{30.9} or \\boxed{30.90}? I'll do \\boxed{30.9} but maybe include two decimals: 30.90. Since 2.40 has two decimals, 4.50 has two, 50 has none. Typically change would be 30.90. I'll do \\boxed{30.90} to be safe. But 30.9 is same as 30.90. I'll go with \\boxed{30.9} or \\boxed{30.90}? Let's see: 19.1 is 19.10? Actually 5.6 + 13.5 = 19.1 exactly. 50 - 19.1 = 30.9. So it's 30.9. I'll put \\boxed{30.9} but maybe they expect 30.90. I'll check: 2.40/3 = 0.8 exactly, 7*0.8 = 5.6, 3*4.5 = 13.5, sum = 19.1. 50 - 19.1 = 30.9. So 30.9.\n\nThus final: \\boxed{30.9} EUR? The problem says \"End with the amount.\" So just the number. I'll put \\boxed{30.9}. But I'll add two decimal places: \\boxed{30.90}? I'll decide: 30.9 is fine.\n\nLet's do a quick check: 2.40/3 = 0.8 exactly. 7*0.8 = 5.6. 3*4.5 = 13.5. Total = 19.1. 50 - 19.1 = 30.9. Yes.\n\nThus answer: 30.9 EUR.\n\nI'll put \\boxed{30.9}.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 986
|
||||||
|
},
|
||||||
|
"tool_weather": {
|
||||||
|
"content": null,
|
||||||
|
"reasoning": "We need to find out if it's raining in Hamburg right now. The user specified using celsius for the unit. There's a function `get_weather` that takes parameters `city` and optionally `unit`. The required parameter is `city`. The user asked about Hamburg and wants the unit in celsius. So I should call `get_weather` with `city` as \"Hamburg\" and `unit` as \"celsius\". Let's do that.",
|
||||||
|
"tool_calls": [
|
||||||
|
{
|
||||||
|
"name": "get_weather",
|
||||||
|
"arguments": "{\"city\": \"Hamburg\", \"unit\": \"celsius\"}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"finish_reason": "tool_calls",
|
||||||
|
"completion_tokens": 128
|
||||||
|
},
|
||||||
|
"tool_flights": {
|
||||||
|
"content": null,
|
||||||
|
"reasoning": "We need to find flights from Hamburg to Lisbon on 2026-11-14 for 2 adults. The user provided origin (Hamburg), destination (Lisbon), date (2026-11-14), and number of adults (2). The function `search_flights` requires parameters: origin, destination, date, and optionally adults. The required parameters are origin, destination, and date. So I can call the function with these parameters.\n\nLet's construct the tool call.",
|
||||||
|
"tool_calls": [
|
||||||
|
{
|
||||||
|
"name": "search_flights",
|
||||||
|
"arguments": "{\"origin\": \"Hamburg\", \"destination\": \"Lisbon\", \"date\": \"2026-11-14\", \"adults\": 2}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"finish_reason": "tool_calls",
|
||||||
|
"completion_tokens": 155
|
||||||
|
},
|
||||||
|
"json": {
|
||||||
|
"content": "{\n \"name\": \"Maria Schmidt\",\n \"age\": 34,\n \"city\": \"Leipzig\",\n \"skills\": [\"Python\", \"SQL\", \"Tableau\"]\n}",
|
||||||
|
"reasoning": "We need to extract data as a JSON object with keys: name (string), age (integer), city (string), skills (list of strings). The input: \"Maria Schmidt is 34, lives in Leipzig and works with Python, SQL and Tableau.\"\n\nSo:\n- name: \"Maria Schmidt\"\n- age: 34 (integer)\n- city: \"Leipzig\"\n- skills: list of strings: \"Python\", \"SQL\", \"Tableau\". Note: The phrase \"works with Python, SQL and Tableau\" implies skills: Python, SQL, Tableau. So list: [\"Python\", \"SQL\", \"Tableau\"].\n\nThus JSON object: {\"name\": \"Maria Schmidt\", \"age\": 34, \"city\": \"Leipzig\", \"skills\": [\"Python\", \"SQL\", \"Tableau\"]}\n\nWe just output only the JSON. Ensure proper formatting: no extra text.\n\nLet's produce:\n\n{\n \"name\": \"Maria Schmidt\",\n \"age\": 34,\n \"city\": \"Leipzig\",\n \"skills\": [\"Python\", \"SQL\", \"Tableau\"]\n}\n\nWe can output as a single JSON object. I'll use double quotes for keys and string values. Age as integer without quotes.\n\nThus final answer.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 302
|
||||||
|
},
|
||||||
|
"summary_2k": {
|
||||||
|
"content": "Little Gidding is the fourth and final poem of T. S. Eliot’s *Four Quartets*, first published in October 1942 after being delayed by World War II air raids and Eliot’s declining health; its title refers to a small 17th‑century Anglican community in Huntingdonshire that was scattered during the English Civil War. The poem uses the combined image of fire and Pentecostal fire to stress purification, arguing that humanity’s flawed understanding of life and its turning away from God leads to war, but this can be overcome by recognizing the lessons of the past, as illustrated by a ghost—an amalgam of poets such as Dante, Yeats and Swift—who speaks to the narrator and urges a unity of past, present and future as a path to salvation. Critics have praised its mystical, belief‑laden language and its fourth section as Eliot’s greatest achievement, yet they also noted its heavy emphasis on pain and the choice between divine fire and the bombing of London, reflecting Eliot’s hope that belief and words can redeem the soul.",
|
||||||
|
"reasoning": "We need to summarize the article in three sentences. The article is about \"Little Gidding\" poem by T. S. Eliot, part of Four Quartets, its publication, background, themes, etc. We need to condense into three sentences.\n\nWe need to capture key points: It's the fourth and final poem of Four Quartets, published 1942 after delays due to WWII air raids and Eliot's health; title refers to a 17th-century Anglican community; uses fire and Pentecostal fire to emphasize purification; narrator meets a ghost of various poets; focuses on unity of past, present, future, and salvation; Eliot's health issues and drafts; the poem deals with time, war, death, regrets, and the need for purgation through fire; themes of renewal, religious community, connection of holy places with Holy Spirit, etc.; critics have mixed reactions; the ghost is a compilation of poets like Dante, Yeats, etc.; Eliot's letter about changing \"Ser Brunetto\" to \"you\" for purgatorial effect; the poem ends with sacrifice and rebirth.\n\nWe need three sentences. Let's craft:\n\nSentence 1: Introduce the poem, its place in Four Quartets, publication date, reasons for delay, and title's reference to an Anglican community.\n\nSentence 2: Summarize the central themes: fire and purification, past/present/future unity, ghost of poets, need for redemption through suffering and sacrifice, and the interplay of historical and literary figures.\n\nSentence 3: Mention critical reception and the significance of the ghost and the final choice between fire and bombing, plus Eliot's belief in belief and language.\n\nWe need to keep it concise but cover main points.\n\nLet's draft:\n\n\"Little Gidding is the final poem of T. S. Eliot’s Four Quartets, first published in October 1942 after being delayed by World War II air raids and Eliot’s declining health; its title refers to a 17th‑century Anglican community in Huntingdonshire that was scattered during the English Civil War. The poem uses the image of fire—both natural and Pentecostal—to stress purification and the need to overcome humanity’s flawed understanding of life, while a ghost composed of poets such as Dante, Yeats and Swift confronts the narrator and urges a union of past, present and future as a path to salvation. Critics have praised its mystical, belief‑laden language and its fourth section as a greatest achievement, yet also noted its heavy emphasis on pain and the choice between divine fire and the bombing of London, reflecting Eliot’s hope that belief and words can redeem the soul.\"\n\nThat's three sentences? Let's count: Actually that's three sentences? Let's check: The first ends after \"health; its title refers to...\" That's one sentence. The second ends after \"future as a path to salvation.\" That's second. The third ends after \"London, reflecting Eliot’s hope...\" That's third. Yes.\n\nBut we need to ensure it's exactly three sentences. Let's rewrite with proper punctuation.\n\nSentence 1: \"Little Gidding is the fourth and final poem of T. S. Eliot’s Four Quartets, first published in October 1942 after being delayed by World War II air raids and Eliot’s declining health; its title refers to a small 17th‑century Anglican community in Huntingdonshire that was scattered during the English Civil War.\"\n\nSentence 2: \"The poem employs the combined image of fire and Pentecostal fire to stress purification, arguing that humanity’s flawed understanding of life and its turning away from God leads to war, but this can be overcome by recognizing the lessons of the past, as illustrated by a ghost—an amalgam of poets such as Dante, Yeats and Swift—who speaks to the narrator and urges a unity of past, present and future as a route to salvation.\"\n\nSentence 3: \"While critics have lauded its mystical, belief‑laden language and its fourth section as Eliot’s greatest achievement, they also noted its heavy emphasis on pain and the choice between divine fire and the bombing of London, reflecting Eliot’s hope that belief and words can redeem the soul.\"\n\nCheck: That's three sentences. Let's count periods: Sentence 1 ends after \"War.\" Actually we need to ensure we have three periods. Let's rewrite clearly:\n\n1. \"Little Gidding is the fourth and final poem of T. S. Eliot’s Four Quartets, first published in October 1942 after being delayed by World War II air raids and Eliot’s declining health; its title refers to a small 17th‑century Anglican community in Huntingdonshire that was scattered during the English Civil War.\"\n\n2. \"The poem uses the combined image of fire and Pentecostal fire to stress purification, arguing that humanity’s flawed understanding of life and its turning away from God leads to a cycle of warfare, but this can be overcome by recognizing the lessons of the past, as illustrated by a ghost—an amalgam of poets such as Dante, Yeats and Swift—who speaks to the narrator and urges a unity of past, present and future aLine truncated
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 1467
|
||||||
|
},
|
||||||
|
"long_context": {
|
||||||
|
"content": "BLUE HERON 47",
|
||||||
|
"reasoning": "We need to answer the question: \"The secret code word is 'BLUE HERON 47'. Remember it. these first specimens was disputed , however . Leopold Fitzinger named the animal Batrachosaurus in 1837 . ... [long text] ... Cope placed stegocephalians in the class What was the secret code word mentioned at the very beginning? Answer with the code word only.\"\n\nSo the user gave a long passage about paleontology, and at the very beginning they said: \"The secret code word is 'BLUE HERON 47'. Remember it.\" So the answer is simply \"BLUE HERON 47\". The user asks: \"What was the secret code word mentioned at the very beginning? Answer with the code word only.\"\n\nThus we just output \"BLUE HERON 47\". Ensure we match case and spacing exactly. The phrase: 'BLUE HERON 47'. So answer exactly that.\n\nThus final: BLUE HERON 47.",
|
||||||
|
"tool_calls": [],
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"completion_tokens": 211
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,221 @@
|
|||||||
|
# LFM3-1.7B: BF16 vs FP8 vs INT4 (W4A16) — quality comparison
|
||||||
|
|
||||||
|
Generated from eval/results_{bf16,fp8,int4}.json (`eval/eval_quality.py`). All variants served by vLLM 0.32 + our plugin on the Arc Pro B65, compile + FULL_AND_PIECEWISE graphs, greedy (temperature 0, repetition_penalty 1.0), max_tokens 3000, thinking on (server default). INT4 = `./quant/LFM3-1.7B-W4A16-autoround` (AutoRound bits 4 / group 128 / sym, oneDNN `int4_gemm_w4a16`).
|
||||||
|
|
||||||
|
## Perplexity
|
||||||
|
|
||||||
|
wikitext-2-raw-v1 test, first 20 contiguous 2048-token chunks (LFM3 tokenizer), 40,940 scored tokens, identical tokens for every variant (vLLM `prompt_logprobs`).
|
||||||
|
|
||||||
|
| variant | PPL | vs BF16 |
|
||||||
|
|---|--:|--:|
|
||||||
|
| BF16 | 18.518 | — |
|
||||||
|
| FP8 W8A16 | 19.207 | +3.7% |
|
||||||
|
| INT4 W4A16 (AutoRound) | 19.886 | +7.4% |
|
||||||
|
|
||||||
|
## Greedy outputs side by side
|
||||||
|
|
||||||
|
Final answers only (reasoning is in the JSON files). Token counts include the thinking phase.
|
||||||
|
|
||||||
|
### factual
|
||||||
|
|
||||||
|
**BF16** — finish `stop`, 473 tokens
|
||||||
|
|
||||||
|
> The capital of Australia is Canberra. It was chosen as a compromise between Sydney and Melbourne, and as a purpose‑built city in the Australian Capital Territory, to provide a neutral seat of government away from the larger, more established capitals.
|
||||||
|
|
||||||
|
**FP8 W8A16** — finish `stop`, 472 tokens
|
||||||
|
|
||||||
|
> The capital of Australia is Canberra. It was chosen as a purpose‑built city located between Sydney and Melbourne to avoid being dominated by either metropolis and to serve as a neutral political center, a decision reached after a long debate and compromise in the early 20th century.
|
||||||
|
|
||||||
|
**INT4 W4A16 (AutoRound)** — finish `stop`, 321 tokens
|
||||||
|
|
||||||
|
> The capital of Australia is Canberra. It was chosen as a compromise between Sydney and Melbourne to serve as a neutral, purpose-built city that would not favor either of the existing major urban centers.
|
||||||
|
|
||||||
|
### german
|
||||||
|
|
||||||
|
**BF16** — finish `stop`, 601 tokens
|
||||||
|
|
||||||
|
> **Betreff:** Terminverschiebung – Donnerstag um 14:00 Uhr
|
||||||
|
>
|
||||||
|
> Sehr geehrte Frau Weber,
|
||||||
|
>
|
||||||
|
> ich möchte Sie informieren, dass das Meeting am Dienstag auf Donnerstag um 14 Uhr verschoben werden muss. Bitte passen Sie Ihren Kalender entsprechend an.
|
||||||
|
>
|
||||||
|
> Mit freundlichen Grüßen
|
||||||
|
> [Dein Name]
|
||||||
|
|
||||||
|
**FP8 W8A16** — finish `stop`, 613 tokens
|
||||||
|
|
||||||
|
> **Betreff:** Verschiebung des Termins am Dienstag
|
||||||
|
>
|
||||||
|
> Sehr geehrte Frau Weber,
|
||||||
|
>
|
||||||
|
> ich möchte Sie informieren, dass unser Meeting am Dienstag auf **Donnerstag um 14:00 Uhr** verschoben werden muss. Bitte passen Sie Ihren Kalender entsprechend an.
|
||||||
|
>
|
||||||
|
> Ich hoffe, das passt Ihnen gut. Lassen Sie mich wissen, falls Sie weitere Anpassungen benötigen.
|
||||||
|
>
|
||||||
|
> Mit freundlichen Grüßen
|
||||||
|
> [Dein Name]
|
||||||
|
|
||||||
|
**INT4 W4A16 (AutoRound)** — finish `stop`, 553 tokens
|
||||||
|
|
||||||
|
> **Betreff:** Verschiebung des Termins
|
||||||
|
>
|
||||||
|
> Sehr geehrte Frau Weber,
|
||||||
|
>
|
||||||
|
> ich möchte Sie informieren, dass das Meeting, das ursprünglich am Dienstag geplant war, auf **Donnerstag um 14 Uhr** verschoben werden muss.
|
||||||
|
>
|
||||||
|
> Bitte passen Sie Ihren Kalender entsprechend an.
|
||||||
|
>
|
||||||
|
> Mit freundlichen Grüßen
|
||||||
|
> [Dein Name]
|
||||||
|
|
||||||
|
### math
|
||||||
|
|
||||||
|
**BF16** — finish `stop`, 632 tokens
|
||||||
|
|
||||||
|
> The cost per pen is \( \frac{2.40}{3} = 0.80 \) EUR.
|
||||||
|
> Cost for 7 pens: \( 7 \times 0.80 = 5.60 \) EUR.
|
||||||
|
> Cost for 3 notebooks: \( 3 \times 4.50 = 13.50 \) EUR.
|
||||||
|
> Total cost: \( 5.60 + 13.50 = 19.10 \) EUR.
|
||||||
|
> Change from 50 EUR: \( 50 - 19.10 = 30.90 \) EUR.
|
||||||
|
>
|
||||||
|
> \[
|
||||||
|
> \boxed{30.90}
|
||||||
|
> \]
|
||||||
|
|
||||||
|
**FP8 W8A16** — finish `stop`, 747 tokens
|
||||||
|
|
||||||
|
> The price of pens is 3 for 2.40 EUR, so the cost per pen is \( \frac{2.40}{3} = 0.80 \) EUR.
|
||||||
|
> For 7 pens: \( 7 \times 0.80 = 5.60 \) EUR.
|
||||||
|
> Notebooks cost 4.50 EUR each, so for 3 notebooks: \( 3 \times 4.50 = 13.50 \) EUR.
|
||||||
|
> Total cost: \( 5.60 + 13.50 = 19.10 \) EUR.
|
||||||
|
> Anna pays with a 50 EUR note, so change is \( 50.00 - 19.10 = 30.90 \) EUR.
|
||||||
|
>
|
||||||
|
> \[
|
||||||
|
> \boxed{30.90}
|
||||||
|
> \]
|
||||||
|
|
||||||
|
**INT4 W4A16 (AutoRound)** — finish `stop`, 986 tokens
|
||||||
|
|
||||||
|
> The price per pen is \( \frac{2.40}{3} = 0.8 \) EUR.
|
||||||
|
> Cost for 7 pens: \( 7 \times 0.8 = 5.6 \) EUR.
|
||||||
|
> Cost for 3 notebooks: \( 3 \times 4.50 = 13.5 \) EUR.
|
||||||
|
> Total cost: \( 5.6 + 13.5 = 19.1 \) EUR.
|
||||||
|
> Change from a 50 EUR note: \( 50 - 19.1 = 30.9 \) EUR.
|
||||||
|
>
|
||||||
|
> Thus, Anna gets 30.9 EUR in change.
|
||||||
|
>
|
||||||
|
> \boxed{30.9}
|
||||||
|
|
||||||
|
### tool_weather
|
||||||
|
|
||||||
|
**BF16** — finish `tool_calls`, 106 tokens
|
||||||
|
|
||||||
|
> tool call(s): `[{"name": "get_weather", "arguments": "{\"city\": \"Hamburg\", \"unit\": \"celsius\"}"}]`
|
||||||
|
|
||||||
|
**FP8 W8A16** — finish `tool_calls`, 106 tokens
|
||||||
|
|
||||||
|
> tool call(s): `[{"name": "get_weather", "arguments": "{\"city\": \"Hamburg\", \"unit\": \"celsius\"}"}]`
|
||||||
|
|
||||||
|
**INT4 W4A16 (AutoRound)** — finish `tool_calls`, 128 tokens
|
||||||
|
|
||||||
|
> tool call(s): `[{"name": "get_weather", "arguments": "{\"city\": \"Hamburg\", \"unit\": \"celsius\"}"}]`
|
||||||
|
|
||||||
|
### tool_flights
|
||||||
|
|
||||||
|
**BF16** — finish `tool_calls`, 147 tokens
|
||||||
|
|
||||||
|
> tool call(s): `[{"name": "search_flights", "arguments": "{\"origin\": \"Hamburg\", \"destination\": \"Lisbon\", \"date\": \"2026-11-14\", \"adults\": 2}"}]`
|
||||||
|
|
||||||
|
**FP8 W8A16** — finish `tool_calls`, 147 tokens
|
||||||
|
|
||||||
|
> tool call(s): `[{"name": "search_flights", "arguments": "{\"origin\": \"Hamburg\", \"destination\": \"Lisbon\", \"date\": \"2026-11-14\", \"adults\": 2}"}]`
|
||||||
|
|
||||||
|
**INT4 W4A16 (AutoRound)** — finish `tool_calls`, 155 tokens
|
||||||
|
|
||||||
|
> tool call(s): `[{"name": "search_flights", "arguments": "{\"origin\": \"Hamburg\", \"destination\": \"Lisbon\", \"date\": \"2026-11-14\", \"adults\": 2}"}]`
|
||||||
|
|
||||||
|
### json
|
||||||
|
|
||||||
|
**BF16** — finish `stop`, 240 tokens
|
||||||
|
|
||||||
|
> {
|
||||||
|
> "name": "Maria Schmidt",
|
||||||
|
> "age": 34,
|
||||||
|
> "city": "Leipzig",
|
||||||
|
> "skills": ["Python", "SQL", "Tableau"]
|
||||||
|
> }
|
||||||
|
|
||||||
|
**FP8 W8A16** — finish `stop`, 253 tokens
|
||||||
|
|
||||||
|
> {
|
||||||
|
> "name": "Maria Schmidt",
|
||||||
|
> "age": 34,
|
||||||
|
> "city": "Leipzig",
|
||||||
|
> "skills": [
|
||||||
|
> "Python",
|
||||||
|
> "SQL",
|
||||||
|
> "Tableau"
|
||||||
|
> ]
|
||||||
|
> }
|
||||||
|
|
||||||
|
**INT4 W4A16 (AutoRound)** — finish `stop`, 302 tokens
|
||||||
|
|
||||||
|
> {
|
||||||
|
> "name": "Maria Schmidt",
|
||||||
|
> "age": 34,
|
||||||
|
> "city": "Leipzig",
|
||||||
|
> "skills": ["Python", "SQL", "Tableau"]
|
||||||
|
> }
|
||||||
|
|
||||||
|
### summary_2k
|
||||||
|
|
||||||
|
**BF16** — finish `stop`, 1467 tokens
|
||||||
|
|
||||||
|
> Little Gidding, the fourth poem of T. S. Eliot’s Four Quartets, was first published in October 1942 after a year’s delay caused by World War II air raids and Eliot’s declining health; its title refers to a 17th‑century Anglican community in Huntingdonshire that was scattered during the English Civil War. The poem employs fire—both natural and Pentecostal—to stress purification and purgation, and through a ghost that gathers Dante, Yeats, Swift and others it explores the unity of past, present and future, arguing that humanity’s salvation requires recognizing this unity and that suffering is a necessary prelude to rebirth. Critics have praised its mystical, belief‑laden language and its link to religious renewal and the Holy Spirit, while also noting its heavy emphasis on pain and the choice between redemption and destruction, and Eliot himself saw it as a work that seeks to work on the soul as well as society.
|
||||||
|
|
||||||
|
**FP8 W8A16** — finish `stop`, 974 tokens
|
||||||
|
|
||||||
|
> “Little Gidding,” the fourth and final poem of T. S. Eliot’s *Four Quartets*, was first published in October 1942 after being delayed by World War II air raids and Eliot’s declining health; its title alludes to a 17th‑century Anglican community in Huntingdonshire that was scattered during the English Civil War. The poem employs fire and Pentecostal imagery to stress purification and purgation, juxtaposing the Battle of Britain, death, and a ghost of poets (originally “Ser Brunetto”) who urges the narrator to confront past mistakes, suffer, and be redeemed by the Holy Spirit’s flame, thereby achieving unity of past, present, and future and salvation. Eliot completed five drafts, finishing the work in September 1942, and it was intended to conclude the series by linking themes of renewal, suffering, and spiritual rebirth; critics react with mixed emotions, praising its mystical, belief‑laden language while also noting its painful emphasis on disease, war, and the need for fire‑based redemption.
|
||||||
|
|
||||||
|
**INT4 W4A16 (AutoRound)** — finish `stop`, 1467 tokens
|
||||||
|
|
||||||
|
> Little Gidding is the fourth and final poem of T. S. Eliot’s *Four Quartets*, first published in October 1942 after being delayed by World War II air raids and Eliot’s declining health; its title refers to a small 17th‑century Anglican community in Huntingdonshire that was scattered during the English Civil War. The poem uses the combined image of fire and Pentecostal fire to stress purification, arguing that humanity’s flawed understanding of life and its turning away from God leads to war, but this can be overcome by recognizing the lessons of the past, as illustrated by a ghost—an amalgam of poets such as Dante, Yeats and Swift—who speaks to the narrator and urges a unity of past, present and future as a path to salvation. Critics have praised its mystical, belief‑laden language and its fourth section as Eliot’s greatest achievement, yet they also noted its heavy emphasis on pain and the choice between divine fire and the bombing of London, reflecting Eliot’s hope that belief and words can redeem the soul.
|
||||||
|
|
||||||
|
### long_context
|
||||||
|
|
||||||
|
**BF16** — finish `stop`, 124 tokens
|
||||||
|
|
||||||
|
> BLUE HERON 47
|
||||||
|
|
||||||
|
**FP8 W8A16** — finish `stop`, 124 tokens
|
||||||
|
|
||||||
|
> BLUE HERON 47
|
||||||
|
|
||||||
|
**INT4 W4A16 (AutoRound)** — finish `stop`, 211 tokens
|
||||||
|
|
||||||
|
> BLUE HERON 47
|
||||||
|
## Verdict (honest)
|
||||||
|
|
||||||
|
| prompt | BF16 | FP8 | INT4 | notes |
|
||||||
|
|---|---|---|---|---|
|
||||||
|
| factual (Canberra) | ✔ | ✔ | ✔ | all name Canberra + compromise between Sydney/Melbourne |
|
||||||
|
| German e-mail | ✔ | ✔ | ✔ | all correct, polite German; INT4 phrasing as good as BF16 |
|
||||||
|
| math (change) | 30.90 ✔ | 30.90 ✔ | 30.9 ✔ | INT4 thinks 56% longer (986 vs 632 tokens) to get there |
|
||||||
|
| tool call: weather | ✔ | ✔ | ✔ | identical call; parsed by qwen3_coder into `tool_calls` (finish `tool_calls`) |
|
||||||
|
| tool call: flights | ✔ | ✔ | ✔ | identical call incl. integer `adults: 2` |
|
||||||
|
| JSON extraction | ✔ | ✔ | ✔ | valid JSON, identical values |
|
||||||
|
| summary of ~2k-token article | ✔* | ✔* | ✔* | all say "published October 1942": the article says both "first published in September 1942" and "published in the October New English Weekly" — shared ambiguity, not an INT4 error. Content quality equivalent. |
|
||||||
|
| long context (needle before 700 tokens) | ✔ | ✔ | ✔ | sliding-window + full-attention layers still retrieve the needle |
|
||||||
|
|
||||||
|
**Where INT4 degrades:**
|
||||||
|
- **Perplexity +7.4%** over BF16 (19.89 vs 18.52), about twice FP8's +3.7%. Measurable, moderate for 4-bit
|
||||||
|
on a 1.7B model (small models usually lose more).
|
||||||
|
- **Greedy path stability:** INT4 flips tokens that BF16 was fairly confident about (top-2 margins 0.75 and
|
||||||
|
1.375 on the 64-token raw-prompt check), FP8 only flips near-ties (≤ 0.375). Outputs are differently
|
||||||
|
worded, not wrong.
|
||||||
|
- **Longer thinking:** INT4 used more tokens on 5/8 prompts (math +56%, JSON +26%, weather +21%,
|
||||||
|
long-context +70%) to reach the same answers. That eats part of the decode speed gain end-to-end.
|
||||||
|
- **Not observed:** no broken tool calls, no invalid JSON, no wrong final answers, no language drift in
|
||||||
|
German, no long-context failure on this set. 8 prompts is a small sample, so read this as "no gross
|
||||||
|
regressions", not as "lossless".
|
||||||
@@ -0,0 +1,105 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""Build the AutoRound calibration set for LFM3-1.7B: chat-formatted conversations (the model's own
|
||||||
|
chat template, incl. tool calls), shuffled and packed into exactly SEQLEN-token samples (AutoRound
|
||||||
|
drops samples shorter than seqlen). Writes OUT (list of [1, SEQLEN] LongTensors) + a JSON recipe.
|
||||||
|
|
||||||
|
python3 build_calib.py MODEL_DIR OUT.pt [NSAMPLES=256] [SEQLEN=2048]
|
||||||
|
|
||||||
|
Mix by token share: English chat 45% (ultrachat_200k test_sft), German 20% (oasst1, lang=de,
|
||||||
|
prompter->assistant pairs), tool calls 15% (glaive-function-calling-v2, converted to the template's
|
||||||
|
tools / tool_calls), code 20% (python_code_instructions_18k_alpaca).
|
||||||
|
"""
|
||||||
|
import ast, json, random, re, sys
|
||||||
|
import torch
|
||||||
|
from datasets import load_dataset
|
||||||
|
from transformers import AutoTokenizer
|
||||||
|
|
||||||
|
model_dir, out = sys.argv[1], sys.argv[2]
|
||||||
|
NSAMPLES = int(sys.argv[3]) if len(sys.argv) > 3 else 256
|
||||||
|
SEQLEN = int(sys.argv[4]) if len(sys.argv) > 4 else 2048
|
||||||
|
SHARE = {"en_chat": 0.45, "de_chat": 0.20, "tool_call": 0.15, "code": 0.20}
|
||||||
|
rng = random.Random(0)
|
||||||
|
tok = AutoTokenizer.from_pretrained(model_dir)
|
||||||
|
|
||||||
|
|
||||||
|
def render(messages, tools=None):
|
||||||
|
return tok.apply_chat_template(messages, tools=tools, tokenize=False)
|
||||||
|
|
||||||
|
|
||||||
|
def en_chat():
|
||||||
|
for r in load_dataset("HuggingFaceH4/ultrachat_200k", split="test_sft").shuffle(seed=0):
|
||||||
|
yield render([{"role": m["role"], "content": m["content"]} for m in r["messages"]])
|
||||||
|
|
||||||
|
|
||||||
|
def de_chat():
|
||||||
|
ds = load_dataset("OpenAssistant/oasst1", split="train").filter(lambda r: r["lang"] == "de")
|
||||||
|
by_id = {r["message_id"]: r for r in ds}
|
||||||
|
pairs = [(by_id[r["parent_id"]]["text"], r["text"]) for r in ds
|
||||||
|
if r["role"] == "assistant" and r["parent_id"] in by_id]
|
||||||
|
rng.shuffle(pairs)
|
||||||
|
for q, a in pairs:
|
||||||
|
yield render([{"role": "user", "content": q}, {"role": "assistant", "content": a}])
|
||||||
|
|
||||||
|
|
||||||
|
def tool_call():
|
||||||
|
turn = re.compile(r"(USER|ASSISTANT|FUNCTION RESPONSE):\s*(.*?)(?=\n+(?:USER|ASSISTANT|FUNCTION RESPONSE):|\Z)", re.S)
|
||||||
|
for r in load_dataset("glaiveai/glaive-function-calling-v2", split="train").shuffle(seed=0):
|
||||||
|
if "<functioncall>" not in r["chat"]:
|
||||||
|
continue
|
||||||
|
try:
|
||||||
|
specs = r["system"].split("-", 1)[1]
|
||||||
|
tools = [{"type": "function", "function": json.loads(s)}
|
||||||
|
for s in re.findall(r"\{.*?\}\s*(?=\n\s*\{|\Z)", specs.strip(), re.S)]
|
||||||
|
msgs = []
|
||||||
|
for role, text in turn.findall(r["chat"]):
|
||||||
|
text = text.replace("<|endoftext|>", "").strip()
|
||||||
|
if role == "USER":
|
||||||
|
msgs.append({"role": "user", "content": text})
|
||||||
|
elif role == "FUNCTION RESPONSE":
|
||||||
|
msgs.append({"role": "tool", "content": text})
|
||||||
|
elif text.startswith("<functioncall>"):
|
||||||
|
call = text[len("<functioncall>"):].strip()
|
||||||
|
name = re.search(r'"name":\s*"([^"]+)"', call).group(1)
|
||||||
|
args = re.search(r'"arguments":\s*(\'.*\'|\{.*\})', call, re.S).group(1)
|
||||||
|
args = json.loads(ast.literal_eval(args) if args.startswith("'") else args)
|
||||||
|
msgs.append({"role": "assistant", "content": "", "tool_calls": [
|
||||||
|
{"type": "function", "function": {"name": name, "arguments": args}}]})
|
||||||
|
else:
|
||||||
|
msgs.append({"role": "assistant", "content": text})
|
||||||
|
if tools and msgs and msgs[0]["role"] == "user":
|
||||||
|
yield render(msgs, tools)
|
||||||
|
except Exception:
|
||||||
|
continue
|
||||||
|
|
||||||
|
|
||||||
|
def code():
|
||||||
|
for r in load_dataset("iamtarun/python_code_instructions_18k_alpaca", split="train").shuffle(seed=0):
|
||||||
|
q = r["instruction"] + (f"\n\nInput: {r['input']}" if r["input"].strip() else "")
|
||||||
|
yield render([{"role": "user", "content": q}, {"role": "assistant", "content": f"```python\n{r['output']}\n```"}])
|
||||||
|
|
||||||
|
|
||||||
|
# Collect conversations per source until its token budget is met, then shuffle and pack.
|
||||||
|
budget = NSAMPLES * SEQLEN
|
||||||
|
convs, stats = [], {}
|
||||||
|
for name, gen in [("en_chat", en_chat), ("de_chat", de_chat), ("tool_call", tool_call), ("code", code)]:
|
||||||
|
want, got, n = int(budget * SHARE[name]), 0, 0
|
||||||
|
for text in gen():
|
||||||
|
ids = tok(text, add_special_tokens=False)["input_ids"][:SEQLEN]
|
||||||
|
convs.append(ids); got += len(ids); n += 1
|
||||||
|
if got >= want:
|
||||||
|
break
|
||||||
|
stats[name] = {"conversations": n, "tokens": got}
|
||||||
|
print(name, stats[name], flush=True)
|
||||||
|
rng.shuffle(convs)
|
||||||
|
stream = [t for c in convs for t in c]
|
||||||
|
samples = [torch.tensor([stream[i:i + SEQLEN]]) for i in range(0, len(stream) - SEQLEN + 1, SEQLEN)][:NSAMPLES]
|
||||||
|
torch.save(samples, out)
|
||||||
|
recipe = {"nsamples": len(samples), "seqlen": SEQLEN, "share_target": SHARE, "sources": stats,
|
||||||
|
"datasets": {"en_chat": "HuggingFaceH4/ultrachat_200k:test_sft",
|
||||||
|
"de_chat": "OpenAssistant/oasst1:train lang=de (prompter->assistant pairs)",
|
||||||
|
"tool_call": "glaiveai/glaive-function-calling-v2:train (only rows with <functioncall>)",
|
||||||
|
"code": "iamtarun/python_code_instructions_18k_alpaca:train"},
|
||||||
|
"format": "model chat template (tools via tools=, calls via tool_calls), conversations shuffled "
|
||||||
|
"(seed 0) and packed back-to-back into exact SEQLEN-token samples"}
|
||||||
|
json.dump(recipe, open(out.replace(".pt", ".json"), "w"), indent=1)
|
||||||
|
print(f"{len(samples)} samples x {SEQLEN} tokens -> {out}")
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"nsamples": 256,
|
||||||
|
"seqlen": 2048,
|
||||||
|
"share_target": {
|
||||||
|
"en_chat": 0.45,
|
||||||
|
"de_chat": 0.2,
|
||||||
|
"tool_call": 0.15,
|
||||||
|
"code": 0.2
|
||||||
|
},
|
||||||
|
"sources": {
|
||||||
|
"en_chat": {
|
||||||
|
"conversations": 199,
|
||||||
|
"tokens": 237340
|
||||||
|
},
|
||||||
|
"de_chat": {
|
||||||
|
"conversations": 567,
|
||||||
|
"tokens": 105303
|
||||||
|
},
|
||||||
|
"tool_call": {
|
||||||
|
"conversations": 239,
|
||||||
|
"tokens": 78660
|
||||||
|
},
|
||||||
|
"code": {
|
||||||
|
"conversations": 629,
|
||||||
|
"tokens": 106397
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"datasets": {
|
||||||
|
"en_chat": "HuggingFaceH4/ultrachat_200k:test_sft",
|
||||||
|
"de_chat": "OpenAssistant/oasst1:train lang=de (prompter->assistant pairs)",
|
||||||
|
"tool_call": "glaiveai/glaive-function-calling-v2:train (only rows with <functioncall>)",
|
||||||
|
"code": "iamtarun/python_code_instructions_18k_alpaca:train"
|
||||||
|
},
|
||||||
|
"format": "model chat template (tools via tools=, calls via tool_calls), conversations shuffled (seed 0) and packed back-to-back into exact SEQLEN-token samples"
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# Verify the per-layer-type forward patch in quantize_autoround.py leaves the model's logits unchanged.
|
||||||
|
import runpy, sys, torch
|
||||||
|
sys.argv = ["x", "/model", "/quant/calib/calib_256x2048.pt", "/tmp/unused"]
|
||||||
|
src = open("/quant/quantize_autoround.py").read().split("t0 = time.time()")[0] # setup + patch, no quantization
|
||||||
|
g = {"__name__": "check"}
|
||||||
|
from transformers import AutoModelForCausalLM
|
||||||
|
ref = AutoModelForCausalLM.from_pretrained("/model", dtype=torch.bfloat16, trust_remote_code=True).to("xpu").eval()
|
||||||
|
x = torch.load("/quant/calib/calib_256x2048.pt")[3][:, :1000].to("xpu")
|
||||||
|
with torch.no_grad():
|
||||||
|
a = ref(x).logits.float()
|
||||||
|
del ref
|
||||||
|
exec(src, g)
|
||||||
|
m = g["model"].to("xpu").eval()
|
||||||
|
with torch.no_grad():
|
||||||
|
b = m(x).logits.float()
|
||||||
|
print("max |dlogit|", (a - b).abs().max().item(), "top1 agree", (a.argmax(-1) == b.argmax(-1)).float().mean().item())
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"tool": "auto-round",
|
||||||
|
"bits": 4,
|
||||||
|
"group_size": 128,
|
||||||
|
"sym": true,
|
||||||
|
"iters": 200,
|
||||||
|
"nsamples": 256,
|
||||||
|
"seqlen": 2048,
|
||||||
|
"device": "xpu",
|
||||||
|
"seconds": 988,
|
||||||
|
"kept_16bit": [
|
||||||
|
"model.layers.10.self_attn.gate_proj",
|
||||||
|
"model.layers.12.self_attn.gate_proj",
|
||||||
|
"model.layers.14.self_attn.gate_proj",
|
||||||
|
"model.layers.16.self_attn.gate_proj",
|
||||||
|
"model.layers.18.self_attn.gate_proj",
|
||||||
|
"model.layers.2.self_attn.gate_proj",
|
||||||
|
"model.layers.20.self_attn.gate_proj",
|
||||||
|
"model.layers.22.self_attn.gate_proj",
|
||||||
|
"model.layers.4.self_attn.gate_proj",
|
||||||
|
"model.layers.6.self_attn.gate_proj",
|
||||||
|
"model.layers.8.self_attn.gate_proj"
|
||||||
|
],
|
||||||
|
"quantized_linears": 142
|
||||||
|
}
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
{
|
||||||
|
"bits": 4,
|
||||||
|
"data_type": "int",
|
||||||
|
"group_size": 128,
|
||||||
|
"sym": true,
|
||||||
|
"autoround_version": "0.16.1",
|
||||||
|
"block_name_to_quantize": "model.layers",
|
||||||
|
"quant_method": "auto-round",
|
||||||
|
"packing_format": "auto_round:auto_gptq",
|
||||||
|
"extra_config": {
|
||||||
|
"model.layers.2.self_attn.gate_proj": {
|
||||||
|
"bits": 16,
|
||||||
|
"data_type": "fp"
|
||||||
|
},
|
||||||
|
"model.layers.4.self_attn.gate_proj": {
|
||||||
|
"bits": 16,
|
||||||
|
"data_type": "fp"
|
||||||
|
},
|
||||||
|
"model.layers.6.self_attn.gate_proj": {
|
||||||
|
"bits": 16,
|
||||||
|
"data_type": "fp"
|
||||||
|
},
|
||||||
|
"model.layers.8.self_attn.gate_proj": {
|
||||||
|
"bits": 16,
|
||||||
|
"data_type": "fp"
|
||||||
|
},
|
||||||
|
"model.layers.10.self_attn.gate_proj": {
|
||||||
|
"bits": 16,
|
||||||
|
"data_type": "fp"
|
||||||
|
},
|
||||||
|
"model.layers.12.self_attn.gate_proj": {
|
||||||
|
"bits": 16,
|
||||||
|
"data_type": "fp"
|
||||||
|
},
|
||||||
|
"model.layers.14.self_attn.gate_proj": {
|
||||||
|
"bits": 16,
|
||||||
|
"data_type": "fp"
|
||||||
|
},
|
||||||
|
"model.layers.16.self_attn.gate_proj": {
|
||||||
|
"bits": 16,
|
||||||
|
"data_type": "fp"
|
||||||
|
},
|
||||||
|
"model.layers.18.self_attn.gate_proj": {
|
||||||
|
"bits": 16,
|
||||||
|
"data_type": "fp"
|
||||||
|
},
|
||||||
|
"model.layers.20.self_attn.gate_proj": {
|
||||||
|
"bits": 16,
|
||||||
|
"data_type": "fp"
|
||||||
|
},
|
||||||
|
"model.layers.22.self_attn.gate_proj": {
|
||||||
|
"bits": 16,
|
||||||
|
"data_type": "fp"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,74 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""AutoRound W4A16 (bits 4, group 128, sym) for LFM3-1.7B with Liquid's remote code, exported in
|
||||||
|
AutoRound's native format (vLLM: quant_method auto-round -> INC). Only the nn.Linear layers of the
|
||||||
|
24 decoder blocks are quantized; self_attn.gate_proj (16-output gate, BF16 in our vLLM plugin) is
|
||||||
|
kept at 16 bit. Embedding / tied lm_head, norms and the conv kernels are not Linear-in-block or are
|
||||||
|
excluded by AutoRound's defaults.
|
||||||
|
|
||||||
|
python3 quantize_autoround.py MODEL_DIR CALIB.pt OUT_DIR [DEVICE=xpu] [ITERS=200]
|
||||||
|
"""
|
||||||
|
import json, sys, time
|
||||||
|
import torch
|
||||||
|
from auto_round import AutoRound
|
||||||
|
from transformers import AutoModelForCausalLM, AutoTokenizer
|
||||||
|
|
||||||
|
model_dir, calib, out_dir = sys.argv[1:4]
|
||||||
|
device = sys.argv[4] if len(sys.argv) > 4 else "xpu"
|
||||||
|
iters = int(sys.argv[5]) if len(sys.argv) > 5 else 200
|
||||||
|
|
||||||
|
tok = AutoTokenizer.from_pretrained(model_dir)
|
||||||
|
model = AutoModelForCausalLM.from_pretrained(model_dir, dtype=torch.bfloat16, trust_remote_code=True)
|
||||||
|
samples = torch.load(calib)
|
||||||
|
|
||||||
|
# AutoRound records the kwargs that reach block 0 (a conv layer) and replays them to every block, but
|
||||||
|
# LFM3 hands each layer the RoPE table and mask of its own type (conv / sliding / full). Rebuild both
|
||||||
|
# inside each layer from its type, with Liquid's own helpers, so attention blocks see the right RoPE
|
||||||
|
# and sliding layers the 256-token window.
|
||||||
|
inner = model.model
|
||||||
|
hf_mod = sys.modules[type(inner).__module__]
|
||||||
|
layer_cls = type(inner.layers[0])
|
||||||
|
orig_forward = layer_cls.forward
|
||||||
|
for i, layer in enumerate(inner.layers):
|
||||||
|
layer._lfm3_type = model.config.layer_types[i]
|
||||||
|
_ctx_cache = {}
|
||||||
|
|
||||||
|
|
||||||
|
def _layer_ctx(hidden_states, position_ids):
|
||||||
|
key = (hidden_states.shape[0], hidden_states.shape[1], hidden_states.device, hidden_states.dtype)
|
||||||
|
if key not in _ctx_cache:
|
||||||
|
if position_ids is None:
|
||||||
|
position_ids = torch.arange(hidden_states.shape[1], device=hidden_states.device)[None]
|
||||||
|
masks = hf_mod.create_masks_by_layer_type(model.config, hidden_states, None, None, position_ids)
|
||||||
|
pe = {t: inner.rotary_emb(hidden_states, position_ids=position_ids, layer_type=t)
|
||||||
|
for t in inner.rotary_emb.layer_types}
|
||||||
|
_ctx_cache[key] = (position_ids, masks, pe)
|
||||||
|
return _ctx_cache[key]
|
||||||
|
|
||||||
|
|
||||||
|
def per_type_forward(self, hidden_states, position_embeddings=None, attention_mask=None,
|
||||||
|
position_ids=None, past_key_values=None, seq_idx=None, **kwargs):
|
||||||
|
position_ids, masks, pe = _layer_ctx(hidden_states, position_ids)
|
||||||
|
return orig_forward(self, hidden_states, position_embeddings=pe.get(self._lfm3_type),
|
||||||
|
attention_mask=masks[self._lfm3_type], position_ids=position_ids,
|
||||||
|
past_key_values=None, seq_idx=None, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
layer_cls.forward = per_type_forward
|
||||||
|
|
||||||
|
linears = [n for n, m in model.named_modules() if isinstance(m, torch.nn.Linear)]
|
||||||
|
keep16 = {n: {"bits": 16} for n in linears if n.endswith("self_attn.gate_proj")}
|
||||||
|
to_quant = [n for n in linears if n.startswith("model.layers.") and n not in keep16]
|
||||||
|
print(f"{len(linears)} nn.Linear total; quantizing {len(to_quant)}; keeping 16-bit: "
|
||||||
|
f"{len(keep16)} gate_proj + {[n for n in linears if not n.startswith('model.layers.')]}", flush=True)
|
||||||
|
|
||||||
|
t0 = time.time()
|
||||||
|
ar = AutoRound(model, tok, bits=4, group_size=128, sym=True, dataset=samples, nsamples=len(samples),
|
||||||
|
seqlen=samples[0].shape[-1], iters=iters, layer_config=keep16, device_map=device,
|
||||||
|
enable_torch_compile=False)
|
||||||
|
ar.quantize_and_save(out_dir, format="auto_round")
|
||||||
|
dt = time.time() - t0
|
||||||
|
json.dump({"tool": "auto-round", "bits": 4, "group_size": 128, "sym": True, "iters": iters,
|
||||||
|
"nsamples": len(samples), "seqlen": int(samples[0].shape[-1]), "device": device,
|
||||||
|
"seconds": round(dt), "kept_16bit": sorted(keep16), "quantized_linears": len(to_quant)},
|
||||||
|
open(f"{out_dir}/quant_run.json", "w"), indent=1)
|
||||||
|
print(f"done in {dt/60:.1f} min -> {out_dir}")
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"date": "20261028-190030", "endpoint_type": "openai", "backend": "openai", "label": null, "model_id": "lfm3-1.7b", "tokenizer_id": "/models/LFM3-1.7B", "num_prompts": 4, "request_rate": "inf", "burstiness": 1.0, "max_concurrency": 1, "duration": 16.21981619800499, "completed": 4, "failed": 0, "total_input_tokens": 512, "total_output_tokens": 2048, "request_throughput": 0.24661191909757849, "request_goodput": null, "output_throughput": 126.26530257796018, "total_token_throughput": 157.83162822245023, "latencies": [4.054860736010596, 4.045809167000698, 4.0501183480082545, 4.066602991995751], "queue_times": [0.00014915199426468462, 4.0556335099972785, 8.101898315988365, 12.15245015200344], "max_output_tokens_per_s": 129.0, "max_concurrent_requests": 2, "rtfx": 0.0, "mean_ttft_ms": 61.13200049730949, "median_ttft_ms": 60.48363649460953, "std_ttft_ms": 1.3291588232770062, "p99_ttft_ms": 63.3149148587836, "mean_tpot_ms": 7.814512348838583, "median_tpot_ms": 7.809593907063973, "std_tpot_ms": 0.015790233480834453, "p99_tpot_ms": 7.838517810287691, "mean_itl_ms": 7.814512348838583, "median_itl_ms": 7.8104444983182475, "std_itl_ms": 0.3126206018365266, "p99_itl_ms": 8.599162996833911}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"date": "20261028-190101", "endpoint_type": "openai", "backend": "openai", "label": null, "model_id": "lfm3-1.7b", "tokenizer_id": "/models/LFM3-1.7B", "num_prompts": 32, "request_rate": "inf", "burstiness": 1.0, "max_concurrency": 16, "duration": 10.284905481006717, "completed": 32, "failed": 0, "total_input_tokens": 4096, "total_output_tokens": 16384, "request_throughput": 3.1113557688104048, "request_goodput": null, "output_throughput": 1593.0141536309272, "total_token_throughput": 1991.267692038659, "latencies": [5.704396134009585, 5.718926671994268, 5.718863570000394, 5.7187668989936356, 5.718405631996575, 5.717908652994083, 5.715520469006151, 5.7155059479991905, 5.71584982398781, 5.7156498709955486, 5.714352847004193, 5.7145663209958, 5.714611841991427, 5.713848348008469, 5.7133870190009475, 5.712820049011498, 4.5538730660045985, 4.562445134011796, 4.560638511000434, 4.560600759999943, 4.560191921991645, 4.560789183000452, 4.560154932012665, 4.5601905419898685, 4.560592320005526, 4.56024729400815, 4.560527148001711, 4.560263032995863, 4.559691013011616, 4.560216452999157, 4.559697222997784, 4.561755371003528], "queue_times": [0.0006044509937055409, 0.0007931840082164854, 0.0015263480017893016, 0.0018509440124034882, 0.002035967991105281, 0.002792762010358274, 0.002983434998895973, 0.0039900440024212, 0.004137397001613863, 0.004245778996846639, 0.00530195799365174, 0.0054631509992759675, 0.005573683010879904, 0.006558861001394689, 0.0066954039939446375, 0.006876546001876704, 5.705526434001513, 5.719166735987528, 5.7206474130071, 5.720835247004288, 5.7209586600074545, 5.7210715809924295, 5.721177122992231, 5.72128153500671, 5.721387216995936, 5.721491709002294, 5.721600140997907, 5.721763424007804, 5.721891055989545, 5.722033359008492, 5.722152100992389, 5.722257934001391], "max_output_tokens_per_s": 1888.0, "max_concurrent_requests": 32, "rtfx": 0.0, "mean_ttft_ms": 744.829542469688, "median_ttft_ms": 735.7311455052695, "std_ttft_ms": 580.9166910313407, "p99_ttft_ms": 1330.3276648683823, "mean_tpot_ms": 8.596545293786344, "median_tpot_ms": 8.59511513698975, "std_tpot_ms": 0.019223837844879882, "p99_tpot_ms": 8.673056477040406, "mean_itl_ms": 8.596545293786344, "median_itl_ms": 8.542373005184345, "std_itl_ms": 0.8488952478998252, "p99_itl_ms": 11.833611790934803}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"date": "20261028-185923", "endpoint_type": "openai", "backend": "openai", "label": null, "model_id": "lfm3-1.7b", "tokenizer_id": "/models/LFM3-1.7B", "num_prompts": 8, "request_rate": "inf", "burstiness": 1.0, "max_concurrency": 1, "duration": 1.8744468180084368, "completed": 8, "failed": 0, "total_input_tokens": 32768, "total_output_tokens": 8, "request_throughput": 4.26792583451359, "request_goodput": null, "output_throughput": 4.26792583451359, "total_token_throughput": 17485.692144002176, "latencies": [0.23368233400105964, 0.23495689600531477, 0.23256029200274497, 0.2303804429975571, 0.23665731798973866, 0.2399946500081569, 0.22744831800810061, 0.23549039699719287], "queue_times": [0.00031142499938141555, 0.2344563869992271, 0.4697944209910929, 0.7026983899995685, 0.9334128680056892, 1.170331160989008, 1.4105702759989072, 1.6382492590055335], "max_output_tokens_per_s": 4.0, "max_concurrent_requests": 5, "rtfx": 0.0, "mean_ttft_ms": 233.8963310012332, "median_ttft_ms": 234.3196150031872, "std_ttft_ms": 3.609839389152679, "p99_ttft_ms": 239.76103676686762, "mean_tpot_ms": 0.0, "median_tpot_ms": 0.0, "std_tpot_ms": 0.0, "p99_tpot_ms": 0.0, "mean_itl_ms": 0.0, "median_itl_ms": 0.0, "std_itl_ms": 0.0, "p99_itl_ms": 0.0}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"date": "20261028-185956", "endpoint_type": "openai", "backend": "openai", "label": null, "model_id": "lfm3-1.7b", "tokenizer_id": "/models/LFM3-1.7B", "num_prompts": 64, "request_rate": "inf", "burstiness": 1.0, "max_concurrency": 16, "duration": 11.737198128001182, "completed": 64, "failed": 0, "total_input_tokens": 262144, "total_output_tokens": 64, "request_throughput": 5.452749395728148, "request_goodput": null, "output_throughput": 5.452749395728148, "total_token_throughput": 22339.914274298222, "latencies": [0.33587131000240333, 0.515690618994995, 0.6967835120012751, 0.8782184409938054, 1.0596897299983539, 1.2408745050051948, 1.7872314599953825, 1.422026618005475, 1.6031926129944623, 1.9660423399909632, 2.147712663994753, 2.3278466980118537, 2.51104369899258, 2.6932566619943827, 2.875741451003705, 3.055660172001808, 2.912254255003063, 2.9145877480041236, 2.9144152640074026, 2.9151242380030453, 2.915352851996431, 2.916717226995388, 2.917817367007956, 2.9183761080057593, 2.9183712169906357, 2.919064769987017, 2.9200299280055333, 2.9209921169967856, 2.9193948979955167, 2.91817050499958, 2.9175264629884623, 2.9191722520045005, 2.916454602003796, 2.917667244997574, 2.9145771079929546, 2.9185453609970864, 2.9171711660019355, 2.915255600004457, 2.9151298880024115, 2.9147463910048828, 2.9138657950097695, 2.9144785259995842, 2.913280613007373, 2.9143626440054504, 2.912487738998607, 2.9130296189978253, 2.913005668990081, 2.912183833992458, 2.9160532660025638, 2.913241244008532, 2.9172794469923247, 2.9123543969908496, 2.9137253719964065, 2.9136827920010546, 2.9138805249967845, 2.9122918950015446, 2.914327623002464, 2.914639109003474, 2.915308201001608, 2.913700671007973, 2.915056846002699, 2.914230012000189, 2.9152576299966313, 2.8363538929988863], "queue_times": [0.0011672609980450943, 0.0017392720037605613, 0.0028938530012965202, 0.0033088909985963255, 0.0036102570011280477, 0.004960910999216139, 0.00531993800541386, 0.0056640450056875125, 0.00698370901227463, 0.007545870001194999, 0.007831764000002295, 0.009132847990258597, 0.009474645004956983, 0.010425323009258136, 0.01082247999147512, 0.011983231001067907, 0.3373315659991931, 0.5176154039945686, 0.6999208299966995, 0.881713185008266, 1.0635046410025097, 1.2460970310057746, 1.427926716991351, 1.6103022430033889, 1.7925840390089434, 1.9737535420135828, 2.1557451019907603, 2.337239471002249, 2.520696947001852, 2.7038810990052298, 2.886815475008916, 3.067760455000098, 3.249764744992717, 3.432357484998647, 3.6144800770125585, 3.797081398006412, 3.979115387002821, 4.163082852988737, 4.345965768996393, 4.529053709004074, 4.711196739997831, 4.893103998008883, 5.076071785995737, 5.258438702003332, 5.440224637990468, 5.622286006997456, 5.804582452008617, 5.9870626500051, 6.166315188995213, 6.350241594002, 6.52916682700743, 6.715903472999344, 6.896530747006182, 7.078619548003189, 7.261345830993378, 7.444082714995602, 7.6253115690051345, 7.807863169000484, 7.989616384002147, 8.173031159996754, 8.352948450992699, 8.535489400004735, 8.717817765005748, 8.899253445008071], "max_output_tokens_per_s": 6.0, "max_concurrent_requests": 22, "rtfx": 0.0, "mean_ttft_ms": 2609.0917879059816, "median_ttft_ms": 2914.345133503957, "std_ttft_ms": 673.4833284703933, "p99_ttft_ms": 2970.8192973486434, "mean_tpot_ms": 0.0, "median_tpot_ms": 0.0, "std_tpot_ms": 0.0, "p99_tpot_ms": 0.0, "mean_itl_ms": 0.0, "median_itl_ms": 0.0, "std_itl_ms": 0.0, "p99_itl_ms": 0.0}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"date": "20261028-190511", "endpoint_type": "openai", "backend": "openai", "label": null, "model_id": "lfm3-1.7b", "tokenizer_id": "/models/LFM3-1.7B", "num_prompts": 4, "request_rate": "inf", "burstiness": 1.0, "max_concurrency": 1, "duration": 71.05967151399818, "completed": 4, "failed": 0, "total_input_tokens": 512, "total_output_tokens": 2048, "request_throughput": 0.05629071897992143, "request_goodput": null, "output_throughput": 28.820848117719773, "total_token_throughput": 36.02606014714972, "latencies": [18.111324792000232, 17.78233749901119, 17.467977747000987, 17.69592500499857], "queue_times": [0.00017962399579118937, 18.11198259500088, 35.894751093001105, 53.36320349801099], "max_output_tokens_per_s": 31.0, "max_concurrent_requests": 2, "rtfx": 0.0, "mean_ttft_ms": 257.9032925023057, "median_ttft_ms": 140.20863750192802, "std_ttft_ms": 215.19415307091512, "p99_ttft_ms": 615.7878218908444, "mean_tpot_ms": 34.25927195352337, "median_tpot_ms": 34.291639450086954, "std_tpot_ms": 0.20867016878453248, "p99_tpot_ms": 34.502670304532394, "mean_itl_ms": 34.27604105384325, "median_itl_ms": 33.87224499601871, "std_itl_ms": 2.362005727492665, "p99_itl_ms": 39.42533577501308}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"date": "20261028-190607", "endpoint_type": "openai", "backend": "openai", "label": null, "model_id": "lfm3-1.7b", "tokenizer_id": "/models/LFM3-1.7B", "num_prompts": 32, "request_rate": "inf", "burstiness": 1.0, "max_concurrency": 16, "duration": 36.875073657996836, "completed": 32, "failed": 0, "total_input_tokens": 4096, "total_output_tokens": 16384, "request_throughput": 0.8677948767448872, "request_goodput": null, "output_throughput": 444.31097689338225, "total_token_throughput": 555.3887211167278, "latencies": [19.31587757599482, 19.328531238992582, 19.327951879007742, 19.32743916999607, 19.327186614988022, 19.327168375006295, 19.326487591999467, 19.32715847399959, 19.32598485299968, 19.325544395003817, 19.32306054799119, 19.32492936399649, 19.32172367500607, 19.324607068003388, 19.32162878300005, 19.322595830002683, 17.548887841010583, 17.544252034989768, 17.545365846002824, 17.54388985899277, 17.543237646998023, 17.542214158005663, 17.541641636998975, 17.541391972990823, 17.54141977299878, 17.542054674006067, 17.541773748991545, 17.541692757993587, 17.541146468007355, 17.54121581900108, 17.540998384996783, 17.540629577997606], "queue_times": [0.0004819489986402914, 0.0007544640102423728, 0.0016687009920133278, 0.0020666780037572607, 0.002193331005400978, 0.0030144060001475736, 0.0031907389929983765, 0.0033084610040532425, 0.004071335002663545, 0.004230698003084399, 0.004347410998889245, 0.005305817991029471, 0.00545895000686869, 0.005708885000785813, 0.005864167993422598, 0.007294944996829145, 19.31709434899676, 19.328355867008213, 19.328686501990887, 19.328888686010032, 19.33046029500838, 19.331587035994744, 19.33185010100715, 19.332003964009346, 19.332144666012027, 19.33227721900039, 19.332419912010664, 19.332555444008904, 19.332740287994966, 19.332878631001222, 19.333018071993138, 19.33315564499935], "max_output_tokens_per_s": 480.0, "max_concurrent_requests": 32, "rtfx": 0.0, "mean_ttft_ms": 778.5335012176802, "median_ttft_ms": 762.7507889992557, "std_ttft_ms": 588.765683289452, "p99_ttft_ms": 1372.598679131188, "mean_tpot_ms": 34.550306726822676, "median_tpot_ms": 34.57903817808392, "std_tpot_ms": 0.5920179757731983, "p99_tpot_ms": 35.17834596242112, "mean_itl_ms": 34.550306726822676, "median_itl_ms": 34.218086999317165, "std_itl_ms": 1.8737787952637406, "p99_itl_ms": 39.283665696275406}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"date": "20261028-190308", "endpoint_type": "openai", "backend": "openai", "label": null, "model_id": "lfm3-1.7b", "tokenizer_id": "/models/LFM3-1.7B", "num_prompts": 8, "request_rate": "inf", "burstiness": 1.0, "max_concurrency": 1, "duration": 10.485598524988745, "completed": 8, "failed": 0, "total_input_tokens": 32768, "total_output_tokens": 8, "request_throughput": 0.7629512021593051, "request_goodput": null, "output_throughput": 0.7629512021593051, "total_token_throughput": 3125.811075246673, "latencies": [8.891904758987948, 0.23608702800993342, 0.22348755398707, 0.22580520799965598, 0.22693627901026048, 0.2263218479929492, 0.2254038009996293, 0.2269314179866342], "queue_times": [0.0001249430060852319, 8.892463258991484, 9.128845143000945, 9.352600012003677, 9.578662304993486, 9.806003011006396, 10.032563663000474, 10.258218728005886], "max_output_tokens_per_s": 4.0, "max_concurrent_requests": 5, "rtfx": 0.0, "mean_ttft_ms": 1310.35973687176, "median_ttft_ms": 226.6266329897917, "std_ttft_ms": 2865.5568237674465, "p99_ttft_ms": 8285.997517819485, "mean_tpot_ms": 0.0, "median_tpot_ms": 0.0, "std_tpot_ms": 0.0, "p99_tpot_ms": 0.0, "mean_itl_ms": 0.0, "median_itl_ms": 0.0, "std_itl_ms": 0.0, "p99_itl_ms": 0.0}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"date": "20261028-190342", "endpoint_type": "openai", "backend": "openai", "label": null, "model_id": "lfm3-1.7b", "tokenizer_id": "/models/LFM3-1.7B", "num_prompts": 64, "request_rate": "inf", "burstiness": 1.0, "max_concurrency": 16, "duration": 11.923432855997817, "completed": 64, "failed": 0, "total_input_tokens": 262144, "total_output_tokens": 64, "request_throughput": 5.367581700081133, "request_goodput": null, "output_throughput": 5.367581700081133, "total_token_throughput": 21990.9822252324, "latencies": [0.3417809689999558, 2.0057239520101575, 1.6339252690086141, 1.449077507990296, 1.0770450199925108, 0.8926266570051666, 0.5220252759900177, 0.705823298994801, 1.2615858069912065, 1.8156929740071064, 2.5547501550026936, 3.1114092209900264, 2.1838725700072246, 2.73835519500426, 2.9228725110006053, 2.367639471995062, 2.959157810008037, 2.960375312992255, 2.95942015601031, 2.9605265150021296, 2.9598054719972424, 2.9584457370074233, 2.960536176004098, 2.9608527130039874, 2.960850332994596, 2.959176472009858, 2.9615045149985235, 2.960519476007903, 2.9613689109974075, 2.9620405129971914, 2.9610026339942124, 2.959261891999631, 2.95798715899582, 2.9600242659944342, 2.957848345991806, 2.9581351410015486, 2.9640404610108817, 2.9610013339988654, 2.959479936005664, 2.9599907859956147, 2.961824169004103, 2.9608636519988067, 2.959879344009096, 2.9613584320031805, 2.959285123986774, 2.9578929679992143, 2.959232641995186, 2.9596196789934766, 2.962773688006564, 2.9609264329919824, 2.9617976189911133, 2.9620464030012954, 2.958382237004116, 2.9612025679962244, 2.962257758001215, 2.9618672210053774, 2.9607538699929137, 2.9624175609933445, 2.9639786099869525, 2.961941352012218, 2.9641878429974895, 2.965682640991872, 2.9655890809954144, 2.8846366060024593], "queue_times": [0.0005741409986512735, 0.0007864840008551255, 0.001690880992100574, 0.001968216005479917, 0.003003826001076959, 0.0032090890017570928, 0.0033923529990715906, 0.004535644009592943, 0.004751227010274306, 0.00504797299799975, 0.006115283002145588, 0.00635460700141266, 0.006508139995275997, 0.007693772000493482, 0.008328253999934532, 0.008672490002936684, 0.34267390599416103, 0.5257551250106189, 0.7106630469934316, 0.896172791995923, 1.080371432006359, 1.2669055949954782, 1.4513373590016272, 1.6359841770026833, 1.8210908539913362, 2.0068392919929465, 2.190640335000353, 2.3766081179928733, 2.5611657239933265, 2.7463768829911714, 2.931505720000132, 3.1181236050033476, 3.3021567020041402, 3.4864060130057624, 3.6703771890024655, 3.85705269499158, 4.0404805799917085, 4.225653278990649, 4.412176070996793, 4.597143945007701, 4.782234692000202, 4.966319350001868, 5.152468505999423, 5.337424188997829, 5.522853192000184, 5.708782393994625, 5.8928372010122985, 6.077757685008692, 6.260426014996483, 6.446771845003241, 6.628556391005986, 6.8155005120061105, 7.0048851070023375, 7.1870510800072225, 7.371994893997908, 7.557456366994302, 7.74437292800576, 7.9274941780022345, 8.112689275003504, 8.299087945997599, 8.482451641000807, 8.6669937770057, 8.852374747992144, 9.037647958000889], "max_output_tokens_per_s": 6.0, "max_concurrent_requests": 22, "rtfx": 0.0, "mean_ttft_ms": 2650.436803483899, "median_ttft_ms": 2959.9350650023553, "std_ttft_ms": 683.6188687267465, "p99_ttft_ms": 3019.601475591189, "mean_tpot_ms": 0.0, "median_tpot_ms": 0.0, "std_tpot_ms": 0.0, "p99_tpot_ms": 0.0, "mean_itl_ms": 0.0, "median_itl_ms": 0.0, "std_itl_ms": 0.0, "p99_itl_ms": 0.0}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 416 KiB |
@@ -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 · 09:42 · 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: fp8pc</span></div>
|
||||||
|
</header>
|
||||||
|
<section class="tiles">
|
||||||
|
<div class="tile">
|
||||||
|
<span class="label">Combined decode</span>
|
||||||
|
<span class="val">191.2 <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">124.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">58 <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,095.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,924 <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.7</td><td>91.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>167.1</td><td>192.4</td><td>221.4</td><td>192.8</td><td>0.2</td><td>0.3%</td></tr>
|
||||||
|
<tr><td>code</td><td>5</td><td>60.3</td><td>93.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>125.1</td><td>191.4</td><td>218.3</td><td>191.2</td><td>0.1</td><td>0.7%</td></tr>
|
||||||
|
<tr><td>file edit</td><td>5</td><td>61.1</td><td>67.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>131.8</td><td>191.5</td><td>221.1</td><td>191.1</td><td>1.9</td><td>0.8%</td></tr>
|
||||||
|
<tr><td>json</td><td>5</td><td>60.2</td><td>61.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>110.9</td><td>192.2</td><td>215.2</td><td>191.7</td><td>0.6</td><td>1.8%</td></tr>
|
||||||
|
<tr><td>math</td><td>5</td><td>58.4</td><td>60.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>138.2</td><td>191.2</td><td>218.4</td><td>191.2</td><td>1.3</td><td>0.9%</td></tr>
|
||||||
|
<tr><td>prose</td><td>5</td><td>41.3</td><td>61.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>124.5</td><td>190.9</td><td>219.0</td><td>190.3</td><td>0.6</td><td>2.3%</td></tr>
|
||||||
|
<tr><td>reasoning</td><td>5</td><td>60.0</td><td>60.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>135.0</td><td>191.1</td><td>219.5</td><td>190.9</td><td>0.8</td><td>1.1%</td></tr>
|
||||||
|
<tr><td>summarization</td><td>5</td><td>64.3</td><td>69.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>115.1</td><td>191.8</td><td>226.5</td><td>192.1</td><td>0.8</td><td>1.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>185.7</td><td>60.7</td><td>90.5<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>191.1</td></tr>
|
||||||
|
<tr><td>2</td><td>48/48</td><td>344.5</td><td>68.6</td><td>1,043.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>184.1</td></tr>
|
||||||
|
<tr><td>4</td><td>48/48</td><td>643.3</td><td>71.4</td><td>130.4<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>175.4</td></tr>
|
||||||
|
<tr><td>8</td><td>48/48</td><td>1,095.3</td><td>77.5</td><td>152.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>167.9</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>4/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,508</td><td>98.5</td><td>14,982.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>15,268.9</td><td>15,752.1<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>320.9</td><td>18,009.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>18,368.9</td><td>18,586.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>16,000</td><td>11,808</td><td>640.7</td><td>18,268.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>18,411.5</td><td>18,636.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>32,000</td><td>23,582</td><td>1,396.7</td><td>16,743.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>16,924.3</td><td>17,045.3<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": [192.78064313830097, 191.21725375645715, 191.13473728826827, 191.7252140490673, 191.18219166425044, 190.3214739068387, 190.92547541279458, 192.05706745550413], "decodeIqr": [0.21690337455453346, 0.14993178261866547, 1.858397012878271, 0.5618110229229671, 1.3454533226797025, 0.649580310721035, 0.7740035943622843, 0.7806733955137304], "cv": [0.27049134366927813, 0.6689018616955285, 0.8380933447961425, 1.8034893030417647, 0.9437136679745767, 2.3336630267045986, 1.091450906152162, 1.1002230970895153], "itlLow": [167.13544683584257, 125.1009148507611, 131.82129706466998, 110.92940857586512, 138.22590759839778, 124.46478467133699, 135.00866646494302, 115.10471434354399], "itlMed": [192.41992485076696, 191.4350979967117, 191.52142342570434, 192.17217388738158, 191.17984149418217, 190.8568863474068, 191.13854922169213, 191.83632819702729], "itlHigh": [221.44169379877445, 218.26837070960224, 221.0953076924125, 215.1755986515798, 218.37206087826888, 218.9740986330819, 219.4686456308759, 226.52590355902097], "batched": false, "updP50": [5.1969670021208, 5.22370250109816, 5.221347993938252, 5.203667002206203, 5.230677001236472, 5.239527999947313, 5.231807001109701, 5.212777003180236], "updP99": [5.741026400064582, 6.3121775243053, 6.400029659707797, 7.747825477563287, 6.058274769602573, 6.558707118820144, 6.151735999592346, 7.212570860865525], "tokPerUpd": [1.0, 1.0024196335983409, 1.0, 1.0, 1.0004133939644482, 1.0, 1.0007278020378456, 1.0], "ttft50": [62.705450000066776, 60.29742599639576, 61.067639995599166, 60.169862998009194, 58.414269995409995, 41.25003999797627, 59.99095999868587, 64.31883000186644], "combined": 191.1764548772592, "conc": {"levels": [1, 2, 4, 8], "agg": [185.72947231529244, 344.5484104206981, 643.3362328397067, 1095.2617918594192], "t50": [60.67849750252208, 68.64336099897628, 71.39385199843673, 77.49169150338275], "t99": [90.47001548911794, 1043.7103411015414, 130.37560900229437, 152.85843426834617], "per": [191.1493909111761, 184.08482015599793, 175.42572477266515, 167.90661670506344], "ok": [48, 48, 48, 48], "req": [48, 48, 48, 48]}, "pre": {"depths": [2000, 8000, 16000, 32000], "tok": [1508.5, 5924.5, 11807.5, 23582.5], "low": [14982.103351559106, 18009.75406399624, 18268.00290413444, 16743.68500795993], "med": [15268.927071155143, 18368.910914250395, 18411.5405850921, 16924.29156909849], "high": [15752.145459395686, 18586.619809017404, 18636.861116882606, 17045.274153896567], "t50": [98.47178199561313, 320.9191389978514, 640.6546254984278, 1396.7308555002091]}};
|
||||||
|
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,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 · 08:52 · 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: w4_eager</span></div>
|
||||||
|
</header>
|
||||||
|
<section class="tiles">
|
||||||
|
<div class="tile">
|
||||||
|
<span class="label">Combined decode</span>
|
||||||
|
<span class="val">33.2 <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">25.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">116 <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">213.1 <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">13,940 <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>117.8</td><td>235.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>26.3</td><td>34.1</td><td>35.4</td><td>34.4</td><td>0.1</td><td>2.9%</td></tr>
|
||||||
|
<tr><td>code</td><td>5</td><td>119.9</td><td>189.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>23.9</td><td>33.4</td><td>35.2</td><td>33.2</td><td>0.4</td><td>0.8%</td></tr>
|
||||||
|
<tr><td>file edit</td><td>5</td><td>116.0</td><td>130.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>25.9</td><td>34.4</td><td>35.7</td><td>34.1</td><td>0.8</td><td>3.7%</td></tr>
|
||||||
|
<tr><td>json</td><td>5</td><td>122.6</td><td>188.5<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>24.7</td><td>32.9</td><td>34.9</td><td>32.8</td><td>0.3</td><td>1.6%</td></tr>
|
||||||
|
<tr><td>math</td><td>5</td><td>116.6</td><td>120.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>24.6</td><td>33.5</td><td>35.2</td><td>33.3</td><td>0.1</td><td>0.9%</td></tr>
|
||||||
|
<tr><td>prose</td><td>5</td><td>96.5</td><td>116.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>27.3</td><td>33.9</td><td>35.2</td><td>33.2</td><td>0.5</td><td>1.2%</td></tr>
|
||||||
|
<tr><td>reasoning</td><td>5</td><td>116.7</td><td>118.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>25.8</td><td>33.4</td><td>35.2</td><td>33.0</td><td>0.2</td><td>1.1%</td></tr>
|
||||||
|
<tr><td>summarization</td><td>5</td><td>119.6</td><td>122.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>23.8</td><td>33.7</td><td>35.0</td><td>33.2</td><td>0.5</td><td>1.6%</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>33.4</td><td>115.7</td><td>130.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>33.6</td></tr>
|
||||||
|
<tr><td>2</td><td>48/48</td><td>65.2</td><td>137.4</td><td>1,116.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>33.4</td></tr>
|
||||||
|
<tr><td>4</td><td>48/48</td><td>121.2</td><td>138.2</td><td>243.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>32.6</td></tr>
|
||||||
|
<tr><td>8</td><td>48/48</td><td>213.1</td><td>139.6</td><td>276.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>32.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>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,494</td><td>133.1</td><td>10,965.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>11,292.6</td><td>11,688.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>8,000</td><td>5,884</td><td>397.4</td><td>13,896.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>14,824.2</td><td>15,053.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>16,000</td><td>11,794</td><td>804.2</td><td>14,594.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>14,641.5</td><td>14,796.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>32,000</td><td>23,570</td><td>1,690.5</td><td>13,850.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>13,940.1</td><td>14,002.1<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": [34.364733434962375, 33.19206700440281, 34.10821096816195, 32.76713673397436, 33.318806838793066, 33.17756427541256, 33.007235359554755, 33.1709535872013], "decodeIqr": [0.09530121503854616, 0.4183902933158734, 0.7986241396958604, 0.33852509671814346, 0.12757571564406334, 0.5498731917661672, 0.21400139071031532, 0.5360245512686888], "cv": [2.9103341724572043, 0.8237452790049035, 3.699727341804556, 1.6436389955278474, 0.9351396350597124, 1.1638532904726029, 1.1420439914926659, 1.5979790716943685], "itlLow": [26.279823223409803, 23.865030111541248, 25.91591603944243, 24.735945967602934, 24.562721801358283, 27.33269241871767, 25.75828487541669, 23.818259957041686], "itlMed": [34.118922661691144, 33.37045685449799, 34.38842169895646, 32.88143777454523, 33.51890628831423, 33.89081119216718, 33.4353999163892, 33.65796787698919], "itlHigh": [35.442519143371364, 35.15556080207443, 35.68373537134876, 34.851110525626375, 35.17102280226893, 35.189666668297995, 35.18643371577241, 35.03328901283396], "batched": false, "updP50": [29.309249002835713, 29.96662599980482, 29.079554995405488, 30.412295502173947, 29.83390900044469, 29.506523002055474, 29.908420499850763, 29.71064700250281], "updP99": [34.46770500217095, 34.7841154284106, 34.395019498333546, 36.62071083686894, 34.53626389891725, 33.11266059899936, 35.4027832792781, 36.517120537318995], "tokPerUpd": [1.0017889087656529, 1.0024196335983409, 1.001908396946565, 1.0018214936247722, 1.0016556291390728, 1.0006949270326615, 1.0010921004732436, 1.0030090270812437], "ttft50": [117.75696499535115, 119.86463700304739, 116.01784199592657, 122.63084099686239, 116.55026300286409, 96.47268199478276, 116.67418499564519, 119.62975400092546], "combined": 33.17868878017616, "conc": {"levels": [1, 2, 4, 8], "agg": [33.42378281555534, 65.18869095668147, 121.2331531660247, 213.05177552665992], "t50": [115.69820800286834, 137.36145349685103, 138.24324049710413, 139.63057000000845], "t99": [130.6545384853962, 1116.0005903353158, 243.57994026955566, 276.84766213227704], "per": [33.62028163890565, 33.40584144555079, 32.55145359853637, 32.34807286660677], "ok": [48, 48, 48, 48], "req": [48, 48, 48, 48]}, "pre": {"depths": [2000, 8000, 16000, 32000], "tok": [1494.5, 5883.5, 11793.5, 23570.5], "low": [10965.739988811689, 13896.165264854135, 14594.210526012417, 13850.726364722612], "med": [11292.638075967563, 14824.214668973385, 14641.463887404954, 13940.070580404934], "high": [11688.792926724736, 15053.20803295585, 14796.138460310447, 14002.103685615717], "t50": [133.08033649809659, 397.4307964963373, 804.163189499377, 1690.4636899998877]}};
|
||||||
|
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,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 · 08:45 · 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: w4_graphs</span></div>
|
||||||
|
</header>
|
||||||
|
<section class="tiles">
|
||||||
|
<div class="tile">
|
||||||
|
<span class="label">Combined decode</span>
|
||||||
|
<span class="val">219.8 <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">129.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">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,198.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">14,210 <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.5</td><td>64.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>122.4</td><td>218.5</td><td>252.4</td><td>215.4</td><td>6.8</td><td>2.9%</td></tr>
|
||||||
|
<tr><td>code</td><td>5</td><td>63.1</td><td>65.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>112.5</td><td>217.1</td><td>246.4</td><td>211.2</td><td>0.6</td><td>2.5%</td></tr>
|
||||||
|
<tr><td>file edit</td><td>5</td><td>60.4</td><td>64.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>119.4</td><td>231.4</td><td>270.2</td><td>231.1</td><td>15.1</td><td>3.9%</td></tr>
|
||||||
|
<tr><td>json</td><td>5</td><td>63.2</td><td>64.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>108.1</td><td>224.9</td><td>250.5</td><td>215.1</td><td>7.9</td><td>2.6%</td></tr>
|
||||||
|
<tr><td>math</td><td>5</td><td>60.1</td><td>62.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>137.2</td><td>218.1</td><td>252.1</td><td>227.6</td><td>20.1</td><td>5.6%</td></tr>
|
||||||
|
<tr><td>prose</td><td>5</td><td>40.9</td><td>65.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>147.0</td><td>225.7</td><td>249.9</td><td>219.2</td><td>6.7</td><td>1.7%</td></tr>
|
||||||
|
<tr><td>reasoning</td><td>5</td><td>60.0</td><td>64.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>137.2</td><td>226.8</td><td>258.9</td><td>225.8</td><td>10.7</td><td>5.8%</td></tr>
|
||||||
|
<tr><td>summarization</td><td>5</td><td>62.7</td><td>66.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>177.7</td><td>229.3</td><td>271.4</td><td>230.6</td><td>9.8</td><td>3.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>217.2</td><td>60.5</td><td>92.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>224.3</td></tr>
|
||||||
|
<tr><td>2</td><td>48/48</td><td>395.9</td><td>69.1</td><td>1,038.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>214.0</td></tr>
|
||||||
|
<tr><td>4</td><td>48/48</td><td>706.1</td><td>74.9</td><td>132.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>193.1</td></tr>
|
||||||
|
<tr><td>8</td><td>48/48</td><td>1,198.2</td><td>78.2</td><td>121.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>179.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>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,494</td><td>108.4</td><td>13,639.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>13,832.2</td><td>14,260.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>8,000</td><td>5,928</td><td>374.0</td><td>15,638.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>15,832.2</td><td>16,013.5<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>16,000</td><td>11,816</td><td>776.0</td><td>15,025.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>15,239.3</td><td>15,524.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>32,000</td><td>23,531</td><td>1,656.5</td><td>14,101.5<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>14,210.2</td><td>14,308.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>64,000</td><td>—</td><td>—</td><td>—</td><td><em>skipped</em></td><td>—</td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</details>
|
||||||
|
<footer>Generated by BetterBench 0.6.1 from a corpus v1.0 run. Corpus hash <code>e332dceff176d033</code>. Combined-score weights — code 0.3, reasoning 0.2, prose 0.15, json 0.15, file_edit 0.1, summarization 0.1. Results are only comparable within a corpus version. Stopped at <code>max_tokens</code>: 40/40 runs (100%) — on a thinking model a truncated run measures the thinking phase, not a complete answer. 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": [215.4136772008152, 211.16473619813323, 231.14017857978234, 215.12528356845192, 227.6300795413931, 219.16583304375357, 225.84640525129782, 230.58958275405243], "decodeIqr": [6.822417770242225, 0.6177487234422188, 15.10185337061759, 7.929483671027839, 20.118153672961824, 6.677713174550149, 10.66857714862536, 9.770730565233777], "cv": [2.8655040629692143, 2.5116586005631767, 3.9273691119840963, 2.5851184560291847, 5.610890348095567, 1.7477688155302353, 5.814422476953529, 3.011886817917825], "itlLow": [122.3784579969532, 112.45188907986828, 119.37333486922596, 108.05487139531768, 137.17740118444638, 147.00126239720944, 137.22095994652287, 177.68628062118523], "itlMed": [218.5122245523251, 217.09475760665794, 231.43760496452666, 224.9045338063748, 218.07715722506612, 225.70454256562505, 226.79028244555394, 229.33838860575202], "itlHigh": [252.44456881319812, 246.4088259447322, 270.213952360927, 250.5333519967704, 252.07754738928773, 249.90147363034131, 258.92755264917975, 271.4299490849172], "batched": false, "updP50": [4.5764030001009814, 4.606283502653241, 4.320818996347953, 4.446330996870529, 4.585532995406538, 4.430570996191818, 4.409360000863671, 4.360368999186903], "updP99": [6.660187255474738, 7.167082571686485, 6.714841923821947, 8.506624120636838, 6.01042460417375, 5.851964717294298, 5.849632400640982, 5.308800855127628], "tokPerUpd": [1.0, 1.0003449465332874, 1.0, 1.0, 1.0, 1.0, 1.0007278020378456, 1.0], "ttft50": [62.48170199978631, 63.11450400244212, 60.42392399831442, 63.18389500665944, 60.14257999777328, 40.897660997870844, 59.998206997988746, 62.67284500063397], "combined": 219.83534553491384, "conc": {"levels": [1, 2, 4, 8], "agg": [217.20479935817755, 395.9070219810677, 706.0660915553655, 1198.1829329140478], "t50": [60.47043399667018, 69.07949550077319, 74.91232799657155, 78.19467350054765], "t99": [92.13534395748866, 1038.1312110093859, 132.93462603818625, 121.18153225070273], "per": [224.2921923385391, 213.97327713240293, 193.09165585192085, 179.34593557692014], "ok": [48, 48, 48, 48], "req": [48, 48, 48, 48]}, "pre": {"depths": [2000, 8000, 16000, 32000], "tok": [1494.0, 5928.5, 11815.5, 23531.0], "low": [13639.743070698121, 15637.974951258393, 15025.821603988607, 14101.48526363484], "med": [13832.227808045289, 15832.157168795056, 15239.262692330332, 14210.222856551818], "high": [14260.948162638555, 16013.547301306628, 15524.919000529433, 14308.932195514773], "t50": [108.41238450302626, 374.0488325020124, 775.9623135025322, 1656.4539264982159]}};
|
||||||
|
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
@@ -7,3 +7,14 @@
|
|||||||
2026-10-29T00:48:04 default 91 15926
|
2026-10-29T00:48:04 default 91 15926
|
||||||
2026-10-29T00:53:28 fp8 144 15693 --quantization=fp8
|
2026-10-29T00:53:28 fp8 144 15693 --quantization=fp8
|
||||||
2026-10-29T01:03:13 bf16fix 142 15672
|
2026-10-29T01:03:13 bf16fix 142 15672
|
||||||
|
2026-10-29T08:40:03 w4_eager 62 15762 --enforce-eager
|
||||||
|
2026-10-29T08:43:26 w4_graphs 140 15672
|
||||||
|
2026-10-29T08:52:12 w4_eager 63 15762 --enforce-eager
|
||||||
|
2026-10-29T09:25:37 fp8 87 15949 --quantization=fp8
|
||||||
|
2026-10-29T09:27:25 default 77 15930
|
||||||
|
2026-10-29T09:42:15 fp8pc 146 15664 --quantization=fp8_per_channel
|
||||||
|
2026-10-29T10:30:05 vl-eager 95 26350 --enforce-eager
|
||||||
|
2026-10-29T10:45:16 vl-graphs 159 25305
|
||||||
|
2026-10-29T11:04:25 vlimg-bf16 122 29760 --gpu-memory-utilization=0.45
|
||||||
|
2026-10-29T11:06:39 vlimg-fp8pc 122 29781 --quantization=fp8_per_channel --gpu-memory-utilization=0.45
|
||||||
|
2026-10-29T11:20:00 vl-fp8pc 161 25920 --quantization=fp8_per_channel
|
||||||
|
Can't render this file because it contains an unexpected character in line 3 and column 61.
|
@@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
"one_image_url": {
|
||||||
|
"http_status": 200,
|
||||||
|
"expected_error": false,
|
||||||
|
"seconds": 85.92,
|
||||||
|
"prompt_tokens": 323,
|
||||||
|
"completion_tokens": 2476,
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"content": "**Newspaper:** *The New York Times* (the masthead appears across the top in the newspaper's characteristic blackletter/Gothic type, with the dateline \"NEW YORK, MONDAY, JULY 21, 1962\").\n\n**Main headline:** **\"MEN WALK ON MOON\"** – the large bold headline dominating the front page.\n\n(Directly beneath it is the supporting sub‑headline: *\"ASTRONAUTS LAND ON PLAIN; COLLECT ROCKS, PLANT FLAG,\"* along with columns such as \"Voice From Moon: 'Eagle Has Landed'\" and \"A Powdery Surface Is Closely Explored.\")",
|
||||||
|
"reasoning": "The user wants two specific pieces of information extracted from the image: the newspaper name and the main headline. Let me look carefully.\n\nThe masthead at the top reads \"The New York Times\" in the distinctive blackletter/gothic typeface. Wait, let me look closely. It says \"The New York Times\"? The standard name is \"The New York Times\"? Actually the real paper is \"The New York Times\"—no, it's \"The New York Times\"? Let me think. The actual newspaper is \"The New York Times\"? No. The correct name is \"The New York Times\"? Hmm. The famous one is \"The New York Times\"? I'm second-guessing myself. T",
|
||||||
|
"tool_calls": []
|
||||||
|
},
|
||||||
|
"two_images": {
|
||||||
|
"http_status": 200,
|
||||||
|
"expected_error": false,
|
||||||
|
"seconds": 10.85,
|
||||||
|
"prompt_tokens": 779,
|
||||||
|
"completion_tokens": 307,
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"content": "The first image shows the front page of a vintage *New York Times* newspaper (dated Monday, July 21, 1969) headlined \"MEN WALK ON MOON — ASTRONAUTS LAND ON PLAIN; COLLECT ROCKS, PLANT FLAG,\" with columns of article text and a black‑and‑white photo. The second image displays a data table titled \"Full numbers\" that lists performance metrics (passes, TTFT P50/P99, update times, TOK/UPDATE, decode med, ±IQR, CV) for two categories, \"chat\" and \"code.\"",
|
||||||
|
"reasoning": "The user wants a one-sentence description of each image. The first image is a vintage New York Times newspaper front page with the headline \"MEN WALK ON MOON\" (Apollo 11 era, dated July 21, 1969). The second image is a data table titled \"Full numbers\" showing metrics like passes, TTFT P50/P99, update times, etc., for categories \"chat\" and \"code\". I need to condense both into single sentences, capturing the essence accurately.\n\nLet me draft: First image: an old New York Times newspaper front page featuring the headline \"Men Walk on Moon / Astronauts Land on Plain; Collect Rocks, Plant Flag.\" Se",
|
||||||
|
"tool_calls": []
|
||||||
|
},
|
||||||
|
"base64_data_url": {
|
||||||
|
"http_status": 200,
|
||||||
|
"expected_error": false,
|
||||||
|
"seconds": 25.93,
|
||||||
|
"prompt_tokens": 2979,
|
||||||
|
"completion_tokens": 737,
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"content": "**Type of document:** This is a **performance / metrics report** – essentially a set of data tables (a dashboard‑style summary of model/inference performance statistics). It groups results into sections such as “Full numbers”, “Concurrency sweep”, “Reasoning / answer split” and “Prefill sweep · cold prefix cache”, each with its own tabular breakdown of latency, throughput and error/quality measures. In other words, it’s a statistical/analytical results table rather than prose, a form, or a narrative.\n\n**Column headers of the first table** (the one under the “Full numbers / Single‑stream, batch = 1” heading):\n\n| # | Column header |\n|---|----------------|\n| 1 | **CATEGORY** |\n| 2 | **PASSES** |\n| 3 | **TTFT P50** |\n| 4 | **TTFT P99** |\n| 5 | **UPDATE P50 (MS)** |\n| 6 | **UPDATE P99 (MS)** |\n| 7 | **TOK/UPDATE** |\n| 8 | **DECODE MED** |\n| 9 | **±IQR** |\n| 10 | **CV** |\n\nSo the first table has ten columns: `CATEGORY`, `PASSES`, `TTFT P50`, `TTFT P99`, `UPDATE P50 (MS)`, `UPDATE P99 (MS)`, `TOK/UPDATE`, `DECODE MED`, `±IQR`, and `CV`.\n\n(For reference, the subsequent tables use different headers – e.g. the second “Concurrency sweep” table uses `LEVEL, OK/REQ, AGGREGATE T/S, TTFT P50, TTFT P99, PER‑REQ DECODE MED` – but the *first* one listed above is the one requested.)",
|
||||||
|
"reasoning": "The user wants two things: (1) what kind of document this is, and (2) the column headers of the *first* table.\n\nLet me look carefully. The image shows a structured data display with multiple tables separated by section headers like \"Full numbers\", \"Concurrency sweep\", \"Reasoning / answer split · TTFA is time to the first answer token\", \"Prefill sweep · cold prefix cache\". Each table has category rows and numeric/performance metrics. This looks like a performance/report dashboard — likely from a language model inference or LLM benchmarking tool (e.g., a \"full numbers\" / \"concurrency sweep\" / \"r",
|
||||||
|
"tool_calls": []
|
||||||
|
},
|
||||||
|
"text_only": {
|
||||||
|
"http_status": 200,
|
||||||
|
"expected_error": false,
|
||||||
|
"seconds": 3.64,
|
||||||
|
"prompt_tokens": 22,
|
||||||
|
"completion_tokens": 101,
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"content": "The capital of Australia is Canberra.",
|
||||||
|
"reasoning": "The user asks: \"What is the capital of Australia? Answer in one sentence.\"\n\nWe need to answer with a single sentence. The capital of Australia is Canberra. So we can say: \"The capital of Australia is Canberra.\" That's one sentence.\n\nCheck if any nuance: Some might think Sydney or Melbourne, but correct answer is Canberra. So answer accordingly.\n\nThus final answer: \"The capital of Australia is Canberra.\"",
|
||||||
|
"tool_calls": []
|
||||||
|
},
|
||||||
|
"image_tool_call": {
|
||||||
|
"http_status": 200,
|
||||||
|
"expected_error": false,
|
||||||
|
"seconds": 3.17,
|
||||||
|
"prompt_tokens": 381,
|
||||||
|
"completion_tokens": 88,
|
||||||
|
"finish_reason": "tool_calls",
|
||||||
|
"content": null,
|
||||||
|
"reasoning": "The user wants to find out more about the newspaper in the image, which is clearly \"The New York Times\". They ask to search the web for its name. So we need to perform a web search for \"The New York Times\" to get information. Use the search_web tool with query \"The New York Times\".",
|
||||||
|
"tool_calls": [
|
||||||
|
{
|
||||||
|
"name": "search_web",
|
||||||
|
"arguments": "{\"query\": \"The New York Times\"}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"video_rejected": {
|
||||||
|
"http_status": 400,
|
||||||
|
"error": "At most 0 video(s) may be provided in one prompt. (parameter=video)",
|
||||||
|
"expected_error": true
|
||||||
|
},
|
||||||
|
"five_images_rejected": {
|
||||||
|
"http_status": 400,
|
||||||
|
"error": "At most 4 image(s) may be provided in one prompt. (parameter=image)",
|
||||||
|
"expected_error": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
"one_image_url": {
|
||||||
|
"http_status": 200,
|
||||||
|
"expected_error": false,
|
||||||
|
"seconds": 21.99,
|
||||||
|
"prompt_tokens": 323,
|
||||||
|
"completion_tokens": 2641,
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"content": "**Newspaper:** *The New York Times* (the front page dated Monday, July 21, 1963).\n\n**Main headline:** **\"MEN WALK ON MOON\"**\n\nIt is followed by the sub‑headline: *\"Astronauts land on plain; collect rocks, plant flag.\"*\n\n(This is the famous front page reporting on the Apollo 11 Moon landing.)",
|
||||||
|
"reasoning": "The user wants two specific pieces of information from the image: the newspaper name and the main headline. Let me look carefully.\n\nThe masthead at the top reads \"The New York Times\" in the distinctive blackletter/gothic font. Wait, let me look closely. It says \"The New York Times\"? The standard name is \"The New York Times\"—actually the real paper is \"The New York Times\"? No, it's \"The New York Times\" vs \"The New York Times.\" Let me read the image text precisely. The gothic text reads \"The New York Times\". Hmm, but the actual famous paper is \"The New York Times\"? Actually the correct name is \"",
|
||||||
|
"tool_calls": []
|
||||||
|
},
|
||||||
|
"two_images": {
|
||||||
|
"http_status": 200,
|
||||||
|
"expected_error": false,
|
||||||
|
"seconds": 2.03,
|
||||||
|
"prompt_tokens": 779,
|
||||||
|
"completion_tokens": 307,
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"content": "The first image shows the front page of a vintage *New York Times* newspaper (Monday, July 21, 1969) whose main headline reads \"MEN WALK ON MOON – ASTRONAUTS LAND ON PLAIN; COLLECT ROCKS, PLANT FLAG,\" accompanied by a black‑and‑white photo and columns of text. The second image displays a data table titled \"Full numbers\" that lists streaming performance metrics—passes, TTFT P50/P99, update P50/P99 (ms), TOK/update, DECODE MED, ±IQR, and CV—for two categories, \"chat\" and \"code.\"",
|
||||||
|
"reasoning": "The user wants a one-sentence description of each image. The first image is a vintage New York Times newspaper front page with the headline \"MEN WALK ON MOON\" from July 21, 1969. The second image is a data table titled \"Full numbers\" showing streaming metrics (passes, TTFT P50/P99, update times, etc.) for categories \"chat\" and \"code\". I need to condense both into single clear sentences.\n\nLet me draft: First image — an old New York Times newspaper front page headlined \"Men Walk on Moon\" reporting astronauts landing on the moon. Second image — a table of full-number streaming statistics comparin",
|
||||||
|
"tool_calls": []
|
||||||
|
},
|
||||||
|
"base64_data_url": {
|
||||||
|
"http_status": 200,
|
||||||
|
"expected_error": false,
|
||||||
|
"seconds": 4.76,
|
||||||
|
"prompt_tokens": 2979,
|
||||||
|
"completion_tokens": 721,
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"content": "**Type of document:** This is a **performance / metrics report (an experimental‑results data table)** – the kind of summary table produced by a model‑evaluation or benchmarking tool (e.g. an LLM inference / \"sweep\" analysis). It groups several sub‑tables (\"Full numbers\", \"Concurrency sweep\", \"Reasoning / answer split\", \"Prefill sweep · cold prefix cache\") that report per‑category or per‑level performance statistics such as passes, token‑throughput‑time, update latency, decode time, etc.\n\n**Column headers of the first table** (the \"Full numbers\" table):\n\n| Column header |\n|----------------|\n| CATEGORY |\n| PASSES |\n| TTFT P50 |\n| TTFT P99 |\n| UPDATE P50 (MS) |\n| UPDATE P99 (MS) |\n| TOK/UPDATE |\n| DECODE MED |\n| ±IQR |\n| CV |\n\n(These correspond to the rows `chat`, `code`, `file edit`, `json`, `math`, `prose`, `reasoning`, `summarization`.)",
|
||||||
|
"reasoning": "The user wants two things: (1) what kind of document this is, and (2) the column headers of the *first* table.\n\nLet me look carefully. The image shows a structured data table with multiple sub-tables under section headings like \"Full numbers\", \"Concurrency sweep\", \"Reasoning / answer split\", \"Prefill sweep · cold prefix cache\". Each has rows for categories (chat, code, file edit, json, math, prose, reasoning, summarization) or levels/target depths. The values include metrics like PASSES, TTFT P50, UPDATE P50/99 (ms), TOK/UPDATE, DECODE MED, ±IQR, CV, OK/REQ, AGGREGATE T/S, etc. This looks like",
|
||||||
|
"tool_calls": []
|
||||||
|
},
|
||||||
|
"text_only": {
|
||||||
|
"http_status": 200,
|
||||||
|
"expected_error": false,
|
||||||
|
"seconds": 0.78,
|
||||||
|
"prompt_tokens": 22,
|
||||||
|
"completion_tokens": 138,
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"content": "The capital of Australia is Canberra.",
|
||||||
|
"reasoning": "The user asks: \"What is the capital of Australia? Answer in one sentence.\"\n\nWe need to answer with a single sentence. The capital of Australia is Canberra. So we can say: \"The capital of Australia is Canberra.\" That's one sentence.\n\nBut let's double-check: There's nuance: Australia has three capitals: federal capital (Canberra), state capitals (e.g., Sydney, Melbourne, Brisbane). But generally, the capital of the country is Canberra. So answer: \"The capital of Australia is Canberra.\"\n\nThus final answer: \"The capital of Australia is Canberra.\"",
|
||||||
|
"tool_calls": []
|
||||||
|
},
|
||||||
|
"image_tool_call": {
|
||||||
|
"http_status": 200,
|
||||||
|
"expected_error": false,
|
||||||
|
"seconds": 0.63,
|
||||||
|
"prompt_tokens": 381,
|
||||||
|
"completion_tokens": 100,
|
||||||
|
"finish_reason": "tool_calls",
|
||||||
|
"content": null,
|
||||||
|
"reasoning": "The user wants to find out more about the newspaper in the image, which is clearly \"The New York Times\". They ask to search the web for its name. So we need to perform a web search for \"The New York Times\" or perhaps \"New York Times newspaper\". Let's use the search_web tool.\n\nWe should query something like \"The New York Times newspaper\".",
|
||||||
|
"tool_calls": [
|
||||||
|
{
|
||||||
|
"name": "search_web",
|
||||||
|
"arguments": "{\"query\": \"The New York Times newspaper\"}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"video_rejected": {
|
||||||
|
"http_status": 400,
|
||||||
|
"error": "At most 0 video(s) may be provided in one prompt. (parameter=video)",
|
||||||
|
"expected_error": true
|
||||||
|
},
|
||||||
|
"five_images_rejected": {
|
||||||
|
"http_status": 400,
|
||||||
|
"error": "At most 4 image(s) may be provided in one prompt. (parameter=image)",
|
||||||
|
"expected_error": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
"one_image_url": {
|
||||||
|
"http_status": 200,
|
||||||
|
"expected_error": false,
|
||||||
|
"seconds": 22.62,
|
||||||
|
"prompt_tokens": 323,
|
||||||
|
"completion_tokens": 1834,
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"content": "The newspaper shown is **The New York Times** (the front page dated Monday, July 21, 1961).\n\nIts main headline, set in the largest type across the top, is:\n\n**\"MEN WALK ON MOON\"**\n\n(The line beneath it, \"Astronauts land on plain; collect rocks, plant flag,\" serves as the sub‑headline.)",
|
||||||
|
"reasoning": "The user wants two specific pieces of information from the image: the newspaper name and the main headline. Let me look carefully.\n\nThe masthead at the top reads \"The New York Times\" in the distinctive blackletter/gothic font. Wait, let me look closely. It says \"The New York Times\"? The standard name is \"The New York Times\"? Actually the real paper is \"The New York Times\"—no, it's \"The New York Times\"? Let me read the image text. The gothic text reads \"The New York Times\". Hmm, but the actual famous paper is \"The New York Times\"? No—the correct name is \"The New York Times\"? I'm second-guessing",
|
||||||
|
"tool_calls": []
|
||||||
|
},
|
||||||
|
"two_images": {
|
||||||
|
"http_status": 200,
|
||||||
|
"expected_error": false,
|
||||||
|
"seconds": 2.81,
|
||||||
|
"prompt_tokens": 779,
|
||||||
|
"completion_tokens": 307,
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"content": "The first image shows the front page of a vintage *New York Times* newspaper (dated Monday, July 21, 1969) headlined \"MEN WALK ON MOON — ASTRONAUTS LAND ON PLAIN; COLLECT ROCKS, PLANT FLAG,\" with columns of article text and a black‑and‑white photo. The second image displays a data table titled \"Full numbers\" that lists performance metrics (passes, TTFT P50/P99, update times, TOK/UPDATE, decode med, ±IQR, CV) for two categories, \"chat\" and \"code.\"",
|
||||||
|
"reasoning": "The user wants a one-sentence description of each image. The first image is a vintage New York Times newspaper front page with the headline \"MEN WALK ON MOON\" (Apollo 11 era, dated July 21, 1969). The second image is a data table titled \"Full numbers\" showing metrics like passes, TTFT P50/P99, update times, etc., for categories \"chat\" and \"code\". I need to condense both into single sentences, capturing the essence accurately.\n\nLet me draft: First image: an old New York Times newspaper front page featuring the headline \"Men Walk on Moon / Astronauts Land on Plain; Collect Rocks, Plant Flag.\" Se",
|
||||||
|
"tool_calls": []
|
||||||
|
},
|
||||||
|
"base64_data_url": {
|
||||||
|
"http_status": 200,
|
||||||
|
"expected_error": false,
|
||||||
|
"seconds": 7.46,
|
||||||
|
"prompt_tokens": 2979,
|
||||||
|
"completion_tokens": 851,
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"content": "**Type of document:** This is a **data‑table / performance‑report (metrics) document** – essentially an evaluation or profiling report for a language model / inference system. It is laid out as a series of grouped tables (separated by section headings such as *Full numbers*, *Concurrency sweep*, *Reasoning / answer split*, and *Prefill sweep*), each summarising performance statistics across categories (chat, code, file edit, json, math, prose, reasoning, summarization, etc.). In other words, it is a tabular results / metrics report rather than a narrative text or a form.\n\n**Column headers of the first table** (the one under the heading *\"Full numbers – Single‑stream, batch = 1 · several tokens per stream update\"*):\n\n| # | Column header |\n|---|----------------|\n| 1 | **CATEGORY** |\n| 2 | **PASSES** |\n| 3 | **TTFT P50** |\n| 4 | **TTFT P99** |\n| 5 | **UPDATE P50 (MS)** |\n| 6 | **UPDATE P99 (MS)** |\n| 7 | **TOK/UPDATE** |\n| 8 | **DECODE MED** |\n| 9 | **±IQR** |\n|10 | **CV** |\n\nSo the first table has ten columns: `CATEGORY`, `PASSES`, `TTFT P50`, `TTFT P99`, `UPDATE P50 (MS)`, `UPDATE P99 (MS)`, `TOK/UPDATE`, `DECODE MED`, `±IQR`, and `CV`.\n\n(For reference, the subsequent tables use different headers – e.g. the second uses `LEVEL, OK/REQ, AGGREGATE T/S, TTFT P50, TTFT P99, PER‑REQ DECODE MED`; the third uses `CATEGORY, RUNS W/ SPLIT, REASONING SHARE (EST), TTFA P50 (MS), NEVER REACHED ANSWER`; and the last uses `TARGET DEPTH, PROMPT TOK MED, TTFT P50, PP 1% LOW, PP MEDIAN, PP 99% HIGH`.)",
|
||||||
|
"reasoning": "The user wants two things: (1) what kind of document this is, and (2) the column headers of the *first* table.\n\nLet me look carefully. The image shows a structured data display with multiple tables separated by section headers like \"Full numbers\", \"Concurrency sweep\", \"Reasoning / answer split · TTFA is time to the first answer token\", \"Prefill sweep · cold prefix cache\". Each table has category rows and numeric/performance metrics. This looks like a performance/report dashboard — specifically a model inference performance report (likely from a language model / LLM evaluation tool, e.g., a \"fu",
|
||||||
|
"tool_calls": []
|
||||||
|
},
|
||||||
|
"text_only": {
|
||||||
|
"http_status": 200,
|
||||||
|
"expected_error": false,
|
||||||
|
"seconds": 0.86,
|
||||||
|
"prompt_tokens": 22,
|
||||||
|
"completion_tokens": 101,
|
||||||
|
"finish_reason": "stop",
|
||||||
|
"content": "The capital of Australia is Canberra.",
|
||||||
|
"reasoning": "The user asks: \"What is the capital of Australia? Answer in one sentence.\"\n\nWe need to answer with a single sentence. The capital of Australia is Canberra. So we can say: \"The capital of Australia is Canberra.\" That's one sentence.\n\nCheck if any nuance: Some might think Sydney or Melbourne, but correct answer is Canberra. So answer accordingly.\n\nThus final answer: \"The capital of Australia is Canberra.\"",
|
||||||
|
"tool_calls": []
|
||||||
|
},
|
||||||
|
"image_tool_call": {
|
||||||
|
"http_status": 200,
|
||||||
|
"expected_error": false,
|
||||||
|
"seconds": 0.88,
|
||||||
|
"prompt_tokens": 381,
|
||||||
|
"completion_tokens": 102,
|
||||||
|
"finish_reason": "tool_calls",
|
||||||
|
"content": null,
|
||||||
|
"reasoning": "The user wants to find out more about the newspaper in the image, which is clearly \"The New York Times\". They ask to search the web for its name. So we need to perform a web search for \"The New York Times\" to get information.\n\nWe should use the search_web tool with query \"The New York Times\". Then provide relevant info from results.\n\nLet's do that.",
|
||||||
|
"tool_calls": [
|
||||||
|
{
|
||||||
|
"name": "search_web",
|
||||||
|
"arguments": "{\"query\": \"The New York Times\"}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"video_rejected": {
|
||||||
|
"http_status": 400,
|
||||||
|
"error": "At most 0 video(s) may be provided in one prompt. (parameter=video)",
|
||||||
|
"expected_error": true
|
||||||
|
},
|
||||||
|
"five_images_rejected": {
|
||||||
|
"http_status": 400,
|
||||||
|
"error": "At most 4 image(s) may be provided in one prompt. (parameter=image)",
|
||||||
|
"expected_error": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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-vl-2b</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 · 11:20 · llm</div>
|
||||||
|
<h1>lfm3-vl-2b</h1>
|
||||||
|
<div class="runbar"><span class="chip"><span class="swatch" style="background:var(--s1)"></span>lfm3-vl-2b</span><span class="chip"><code>http://127.0.0.1:8002/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: vl-graphs-fp8pc</span></div>
|
||||||
|
</header>
|
||||||
|
<section class="tiles">
|
||||||
|
<div class="tile">
|
||||||
|
<span class="label">Combined decode</span>
|
||||||
|
<span class="val">188.6 <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">120.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">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,075.6 <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,592 <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>63.4</td><td>65.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>99.4</td><td>190.6</td><td>220.9</td><td>190.4</td><td>1.2</td><td>2.0%</td></tr>
|
||||||
|
<tr><td>code</td><td>5</td><td>60.9</td><td>68.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>115.2</td><td>189.5</td><td>227.3</td><td>188.2</td><td>2.3</td><td>0.8%</td></tr>
|
||||||
|
<tr><td>file edit</td><td>5</td><td>62.4</td><td>71.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>92.6</td><td>189.6</td><td>229.4</td><td>185.6</td><td>1.1</td><td>2.4%</td></tr>
|
||||||
|
<tr><td>json</td><td>5</td><td>64.7</td><td>91.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>127.9</td><td>190.4</td><td>227.8</td><td>190.3</td><td>0.6</td><td>0.7%</td></tr>
|
||||||
|
<tr><td>math</td><td>5</td><td>63.9</td><td>74.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>122.6</td><td>189.4</td><td>222.8</td><td>187.8</td><td>1.8</td><td>0.6%</td></tr>
|
||||||
|
<tr><td>prose</td><td>5</td><td>42.6</td><td>92.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>105.3</td><td>189.5</td><td>217.8</td><td>187.2</td><td>5.2</td><td>1.7%</td></tr>
|
||||||
|
<tr><td>reasoning</td><td>5</td><td>59.0</td><td>60.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>150.1</td><td>189.5</td><td>218.1</td><td>189.2</td><td>1.0</td><td>0.6%</td></tr>
|
||||||
|
<tr><td>summarization</td><td>5</td><td>62.4</td><td>64.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>112.4</td><td>190.6</td><td>221.8</td><td>190.7</td><td>1.1</td><td>1.2%</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>182.9</td><td>62.1</td><td>92.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>188.8</td></tr>
|
||||||
|
<tr><td>2</td><td>48/48</td><td>337.6</td><td>69.2</td><td>988.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>179.5</td></tr>
|
||||||
|
<tr><td>4</td><td>48/48</td><td>628.5</td><td>74.4</td><td>104.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>170.9</td></tr>
|
||||||
|
<tr><td>8</td><td>48/48</td><td>1,075.6</td><td>77.6</td><td>114.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>162.9</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>95%</td><td>—</td><td>2/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,513</td><td>96.8</td><td>15,284.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>15,564.9</td><td>16,256.5<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>8,000</td><td>5,896</td><td>321.9</td><td>18,157.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>18,346.4</td><td>18,463.4<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>16,000</td><td>11,776</td><td>659.5</td><td>17,549.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>17,845.9</td><td>18,050.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>32,000</td><td>23,602</td><td>1,423.4</td><td>16,361.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>16,592.1</td><td>16,632.1<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": [190.37714942930882, 188.24534746948578, 185.60597571414493, 190.34623410813217, 187.75208746119227, 187.19985687601024, 189.1532404122811, 190.70044974113256], "decodeIqr": [1.2035245252808124, 2.3123527760021716, 1.1022819086322784, 0.5881498798515565, 1.7689038473502592, 5.1555294547303845, 0.990500321961548, 1.078124793750817], "cv": [2.0462220848686767, 0.7956551302347187, 2.3602719799893155, 0.7339173277509364, 0.6355868290943505, 1.6577018655020943, 0.5839678354267303, 1.1974602007724915], "itlLow": [99.35377664090628, 115.20763973471182, 92.59756720141452, 127.92059375957676, 122.58164407808901, 105.307791325364, 150.05217555841165, 112.38237573018655], "itlMed": [190.59737404638076, 189.5214717417397, 189.6137908539795, 190.42805757550258, 189.42633559129067, 189.4984864816846, 189.5045914220805, 190.56522980461557], "itlHigh": [220.897165224984, 227.29317472704128, 229.40930618084704, 227.7840586811554, 222.81506641007627, 217.84784196332595, 218.14045440362935, 221.78238570752202], "batched": false, "updP50": [5.246662003628444, 5.276446994685102, 5.273877999570686, 5.251326998404693, 5.2790970003115945, 5.277087002468761, 5.276916999719106, 5.24754700018093], "updP99": [8.437146097203419, 6.945832520723342, 9.892472602223277, 6.53304539824603, 6.799341861187714, 8.855421802727498, 6.055689377681118, 6.6818737023277075], "tokPerUpd": [1.0026857654431514, 1.0006901311249137, 1.0, 1.0, 1.0, 1.0, 1.0007278020378456, 1.0], "ttft50": [63.37802000052761, 60.91117399773793, 62.449393000861164, 64.6589940006379, 63.941230000637006, 42.580535999150015, 58.99910900188843, 62.411682003585156], "combined": 188.56680851645106, "conc": {"levels": [1, 2, 4, 8], "agg": [182.87800038801484, 337.6349958704313, 628.4817191484414, 1075.5668037622352], "t50": [62.07704050029861, 69.21125249937177, 74.44901900089462, 77.57392149869702], "t99": [92.7777931500168, 988.9157411208726, 104.75696847737709, 113.98346578316705], "per": [188.7649913496703, 179.45355579171326, 170.8970052484775, 162.8956319488192], "ok": [48, 48, 48, 48], "req": [48, 48, 48, 48]}, "pre": {"depths": [2000, 8000, 16000, 32000], "tok": [1513.0, 5896.5, 11776.5, 23601.5], "low": [15284.734647273244, 18157.16443126866, 17549.723921026645, 16361.867597787554], "med": [15564.931416039519, 18346.389399195006, 17845.944374779712, 16592.113872272806], "high": [16256.494006646704, 18463.351641412355, 18050.166381511946, 16632.12299478604], "t50": [96.79905700249947, 321.8794720014557, 659.4816785000148, 1423.4477650024928]}};
|
||||||
|
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,510 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<title>BetterBench — lfm3-vl-2b</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 · 10:46 · llm</div>
|
||||||
|
<h1>lfm3-vl-2b</h1>
|
||||||
|
<div class="runbar"><span class="chip"><span class="swatch" style="background:var(--s1)"></span>lfm3-vl-2b</span><span class="chip"><code>http://127.0.0.1:8002/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: vl-graphs-bf16</span></div>
|
||||||
|
</header>
|
||||||
|
<section class="tiles">
|
||||||
|
<div class="tile">
|
||||||
|
<span class="label">Combined decode</span>
|
||||||
|
<span class="val">127.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">101.7 <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">65 <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">757.7 <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,562 <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>64.9</td><td>73.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>95.9</td><td>127.8</td><td>150.0</td><td>127.6</td><td>0.5</td><td>0.5%</td></tr>
|
||||||
|
<tr><td>code</td><td>5</td><td>65.6</td><td>76.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>106.0</td><td>127.3</td><td>139.5</td><td>127.3</td><td>0.3</td><td>0.3%</td></tr>
|
||||||
|
<tr><td>file edit</td><td>5</td><td>63.6</td><td>66.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>105.1</td><td>127.4</td><td>143.4</td><td>127.3</td><td>0.2</td><td>0.1%</td></tr>
|
||||||
|
<tr><td>json</td><td>5</td><td>65.8</td><td>68.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>96.4</td><td>127.8</td><td>145.8</td><td>127.8</td><td>0.5</td><td>0.4%</td></tr>
|
||||||
|
<tr><td>math</td><td>5</td><td>60.9</td><td>66.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>84.6</td><td>127.4</td><td>148.1</td><td>126.8</td><td>0.4</td><td>0.8%</td></tr>
|
||||||
|
<tr><td>prose</td><td>5</td><td>65.4</td><td>91.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>94.9</td><td>127.2</td><td>144.7</td><td>127.5</td><td>1.1</td><td>0.5%</td></tr>
|
||||||
|
<tr><td>reasoning</td><td>5</td><td>62.7</td><td>66.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>101.2</td><td>127.2</td><td>141.6</td><td>127.1</td><td>0.1</td><td>0.4%</td></tr>
|
||||||
|
<tr><td>summarization</td><td>5</td><td>66.6</td><td>95.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>104.9</td><td>127.7</td><td>148.0</td><td>127.9</td><td>0.9</td><td>0.5%</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.2</td><td>64.2</td><td>91.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>127.4</td></tr>
|
||||||
|
<tr><td>2</td><td>48/48</td><td>239.2</td><td>70.4</td><td>1,010.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>125.3</td></tr>
|
||||||
|
<tr><td>4</td><td>48/48</td><td>446.4</td><td>71.7</td><td>133.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>121.2</td></tr>
|
||||||
|
<tr><td>8</td><td>48/48</td><td>757.7</td><td>83.6</td><td>145.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>115.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>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>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,507</td><td>98.5</td><td>14,569.0<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>15,281.0</td><td>15,534.6<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.3</td><td>17,976.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>18,295.0</td><td>18,389.5<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>16,000</td><td>11,827</td><td>663.6</td><td>17,721.4<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>17,821.3</td><td>17,916.6<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>32,000</td><td>23,552</td><td>1,420.1</td><td>16,484.4<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>16,562.5</td><td>16,812.3<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": [127.60807131162622, 127.3370459279194, 127.31520273904032, 127.84533114136559, 126.79386639093369, 127.474274453722, 127.1318219478855, 127.87686421005907], "decodeIqr": [0.5425787063894916, 0.28337506316158567, 0.1840750856554081, 0.5115772194949386, 0.37488020052114734, 1.0701683733897625, 0.11745366549338598, 0.9149975704852977], "cv": [0.5235704592146113, 0.2802590679046288, 0.08803571300487634, 0.3671450153611078, 0.8305546125535865, 0.5370444052420437, 0.4145387480106005, 0.5090423741273657], "itlLow": [95.92208069361413, 105.96202890914128, 105.08845349410367, 96.43818330508167, 84.61119432258201, 94.86113674542166, 101.22509494681834, 104.91969915946615], "itlMed": [127.82806832984937, 127.33218441967537, 127.40064218514232, 127.78225084122228, 127.42272006934934, 127.23114112904732, 127.21914715838584, 127.74784008350817], "itlHigh": [149.99469937498543, 139.47379118040382, 143.42030320308646, 145.8490090838767, 148.09008487732407, 144.72584599766358, 141.60525531098173, 148.0231983444596], "batched": false, "updP50": [7.823007999832043, 7.853474002331495, 7.849253997846972, 7.825813001545612, 7.847893997677602, 7.859711004130077, 7.86045200220542, 7.827920999261551], "updP99": [9.399741369343241, 8.568195801053662, 8.994509799522348, 8.940709199232515, 9.825147198134804, 9.243316057836621, 8.911724999488797, 9.022165115748061], "tokPerUpd": [1.000893655049151, 1.0006901311249137, 1.0, 1.0, 1.0, 1.0, 1.0007278020378456, 1.0], "ttft50": [64.92730999889318, 65.57760199939366, 63.62665600317996, 65.84280699462397, 60.852135000459384, 65.43142600276042, 62.66281600255752, 66.61640799575252], "combined": 127.444625702126, "conc": {"levels": [1, 2, 4, 8], "agg": [125.20790016211313, 239.17971302048667, 446.3918365624121, 757.7078175607977], "t50": [64.18165850118385, 70.36269499803893, 71.72885400359519, 83.55733200369286], "t99": [91.83884059239062, 1010.2238462681271, 133.61575862407335, 145.29173109935073], "per": [127.38407302347396, 125.2526232664768, 121.15785403713235, 115.06178071414757], "ok": [48, 48, 48, 48], "req": [48, 48, 48, 48]}, "pre": {"depths": [2000, 8000, 16000, 32000], "tok": [1507.0, 5924.5, 11827.0, 23551.5], "low": [14568.952386231807, 17976.55133226179, 17721.41809467632, 16484.419977904607], "med": [15281.021955044806, 18295.008152795883, 17821.335748831254, 16562.45712236422], "high": [15534.628683323175, 18389.538160557833, 17916.610323007702, 16812.345772433844], "t50": [98.51042049922398, 323.3109009997861, 663.5820969968336, 1420.1147649982886]}};
|
||||||
|
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,96 @@
|
|||||||
|
{
|
||||||
|
"photo": {
|
||||||
|
"prompt_ids_equal": true,
|
||||||
|
"n_image_tokens": 300,
|
||||||
|
"ref_n_image_tokens": 300,
|
||||||
|
"prompt_len": 318,
|
||||||
|
"vision_max_abs_diff": 6.52482795715332,
|
||||||
|
"vision_mean_abs_diff": 0.034844107925891876,
|
||||||
|
"vision_ref_absmax": 31.56201171875,
|
||||||
|
"vision_cos_min": 0.9663618803024292,
|
||||||
|
"projector_max_abs_diff": 0.039026424288749695,
|
||||||
|
"projector_mean_abs_diff": 0.0005185563932172954,
|
||||||
|
"projector_ref_absmax": 0.40740853548049927,
|
||||||
|
"projector_cos_min": 0.9828164577484131,
|
||||||
|
"first_tok_top20_overlap": 20,
|
||||||
|
"first_tok_logprob_max_abs_diff": 0.0386962890625,
|
||||||
|
"greedy_identical": true,
|
||||||
|
"first_divergence": null,
|
||||||
|
"text": "The user wants a detailed description of this image. Let me look carefully at every element.\n\nIt's a photograph of a newspaper front page. The masthead reads \"The New York Times\" in the classic blackletter/Gothic typeface. Wait, let me look closely. The text says \"The New York Times",
|
||||||
|
"ref_text": "The user wants a detailed description of this image. Let me look carefully at every element.\n\nIt's a photograph of a newspaper front page. The masthead reads \"The New York Times\" in the classic blackletter/Gothic typeface. Wait, let me look closely. The text says \"The New York Times"
|
||||||
|
},
|
||||||
|
"screenshot": {
|
||||||
|
"prompt_ids_equal": true,
|
||||||
|
"n_image_tokens": 2950,
|
||||||
|
"ref_n_image_tokens": 2950,
|
||||||
|
"prompt_len": 2977,
|
||||||
|
"vision_max_abs_diff": 2.197053909301758,
|
||||||
|
"vision_mean_abs_diff": 0.01979958266019821,
|
||||||
|
"vision_ref_absmax": 33.62376022338867,
|
||||||
|
"vision_cos_min": 0.9125450849533081,
|
||||||
|
"projector_max_abs_diff": 0.027008801698684692,
|
||||||
|
"projector_mean_abs_diff": 0.000271368509856984,
|
||||||
|
"projector_ref_absmax": 0.34975665807724,
|
||||||
|
"projector_cos_min": 0.9822132587432861,
|
||||||
|
"first_tok_top20_overlap": 20,
|
||||||
|
"first_tok_logprob_max_abs_diff": 0.07506561279296875,
|
||||||
|
"greedy_identical": true,
|
||||||
|
"first_divergence": null,
|
||||||
|
"text": "The user wants me to read the column headers of the tables in this screenshot. Let me carefully examine the image. There are multiple tables, but the question asks \"the column headers of the table.\" I need to look at the column headers across the tables.\n\nLooking at the first table (Full numbers), the columns",
|
||||||
|
"ref_text": "The user wants me to read the column headers of the tables in this screenshot. Let me carefully examine the image. There are multiple tables, but the question asks \"the column headers of the table.\" I need to look at the column headers across the tables.\n\nLooking at the first table (Full numbers), the columns"
|
||||||
|
},
|
||||||
|
"small": {
|
||||||
|
"prompt_ids_equal": true,
|
||||||
|
"n_image_tokens": 70,
|
||||||
|
"ref_n_image_tokens": 70,
|
||||||
|
"prompt_len": 88,
|
||||||
|
"vision_max_abs_diff": 2.047811508178711,
|
||||||
|
"vision_mean_abs_diff": 0.029013633728027344,
|
||||||
|
"vision_ref_absmax": 30.09486198425293,
|
||||||
|
"vision_cos_min": 0.9924454689025879,
|
||||||
|
"projector_max_abs_diff": 0.02404695749282837,
|
||||||
|
"projector_mean_abs_diff": 0.00043713353807106614,
|
||||||
|
"projector_ref_absmax": 0.302394300699234,
|
||||||
|
"projector_cos_min": 0.9928612112998962,
|
||||||
|
"first_tok_top20_overlap": 20,
|
||||||
|
"first_tok_logprob_max_abs_diff": 0.048346519470214844,
|
||||||
|
"greedy_identical": false,
|
||||||
|
"first_divergence": 52,
|
||||||
|
"vllm_top2_margin_at_div": 0.0,
|
||||||
|
"text": "The user wants a description of the image. Let me look carefully at what's presented.\n\nThe image shows a newspaper front page. The masthead reads \"The New York Times\" — wait, let me look closely. It says \"The New York Times\"? The actual historical newspaper is \"The New York Times\"? No",
|
||||||
|
"ref_text": "The user wants a description of the image. Let me look carefully at what's presented.\n\nThe image shows a newspaper front page. The masthead reads \"The New York Times\" — wait, let me look closely. It says \"The New York Times\"? Actually the historical newspaper was \"The New York Times\" or"
|
||||||
|
},
|
||||||
|
"wide": {
|
||||||
|
"prompt_ids_equal": true,
|
||||||
|
"n_image_tokens": 450,
|
||||||
|
"ref_n_image_tokens": 450,
|
||||||
|
"prompt_len": 470,
|
||||||
|
"vision_max_abs_diff": 2.2071828842163086,
|
||||||
|
"vision_mean_abs_diff": 0.01587524451315403,
|
||||||
|
"vision_ref_absmax": 31.102516174316406,
|
||||||
|
"vision_cos_min": 0.995349645614624,
|
||||||
|
"projector_max_abs_diff": 0.007486574351787567,
|
||||||
|
"projector_mean_abs_diff": 0.0002721566124819219,
|
||||||
|
"projector_ref_absmax": 0.3068137466907501,
|
||||||
|
"projector_cos_min": 0.9971569776535034,
|
||||||
|
"first_tok_top20_overlap": 20,
|
||||||
|
"first_tok_logprob_max_abs_diff": 0.05548858642578125,
|
||||||
|
"greedy_identical": true,
|
||||||
|
"first_divergence": null,
|
||||||
|
"text": "The user wants a transcription of the table in the image. I need to capture the header, the description line, and the two data rows accurately, preserving the column structure and values including the dagger symbols and percentages.</think>Full numbers\n\nSingle-stream, batch = 1 · several tokens per stream update\n\n| CAT",
|
||||||
|
"ref_text": "The user wants a transcription of the table in the image. I need to capture the header, the description line, and the two data rows accurately, preserving the column structure and values including the dagger symbols and percentages.</think>Full numbers\n\nSingle-stream, batch = 1 · several tokens per stream update\n\n| CAT"
|
||||||
|
},
|
||||||
|
"text_only": {
|
||||||
|
"prompt_ids_equal": true,
|
||||||
|
"n_image_tokens": 0,
|
||||||
|
"ref_n_image_tokens": 0,
|
||||||
|
"prompt_len": 22,
|
||||||
|
"first_tok_top20_overlap": 20,
|
||||||
|
"first_tok_logprob_max_abs_diff": 0.1244039535522461,
|
||||||
|
"greedy_identical": true,
|
||||||
|
"first_divergence": null,
|
||||||
|
"text": "The user asks: \"What is the capital of Australia? Answer in one sentence.\"\n\nWe need to answer with a single sentence. The capital of Australia is Canberra. So answer: \"The capital of Australia is Canberra.\" That's one sentence. Should we include any extra? The user wants one sentence.",
|
||||||
|
"ref_text": "The user asks: \"What is the capital of Australia? Answer in one sentence.\"\n\nWe need to answer with a single sentence. The capital of Australia is Canberra. So answer: \"The capital of Australia is Canberra.\" That's one sentence. Should we include any extra? The user wants one sentence."
|
||||||
|
},
|
||||||
|
"batched_vs_single_projector_max_abs_diff": 0.02728271484375
|
||||||
|
}
|
||||||
@@ -0,0 +1,113 @@
|
|||||||
|
{
|
||||||
|
"photo": {
|
||||||
|
"prompt_ids_equal": true,
|
||||||
|
"n_image_tokens": 300,
|
||||||
|
"ref_n_image_tokens": 300,
|
||||||
|
"prompt_len": 318,
|
||||||
|
"vision_max_abs_diff": 1.965200424194336,
|
||||||
|
"vision_mean_abs_diff": 0.028983186930418015,
|
||||||
|
"vision_ref_absmax": 31.56201171875,
|
||||||
|
"vision_cos_min": 0.9789133071899414,
|
||||||
|
"projector_max_abs_diff": 0.02992672473192215,
|
||||||
|
"projector_mean_abs_diff": 0.0004843113711103797,
|
||||||
|
"projector_ref_absmax": 0.40740853548049927,
|
||||||
|
"projector_cos_min": 0.964105486869812,
|
||||||
|
"first_tok_top20_overlap": 20,
|
||||||
|
"first_tok_logprob_max_abs_diff": 0.07188796997070312,
|
||||||
|
"greedy_identical": true,
|
||||||
|
"first_divergence": null,
|
||||||
|
"text": "The user wants a detailed description of this image. Let me look carefully at every element.\n\nIt's a photograph of a newspaper front page. The masthead reads \"The New York Times\" in the classic blackletter/Gothic typeface. Wait, let me look closely. The text says \"The New York Times",
|
||||||
|
"ref_text": "The user wants a detailed description of this image. Let me look carefully at every element.\n\nIt's a photograph of a newspaper front page. The masthead reads \"The New York Times\" in the classic blackletter/Gothic typeface. Wait, let me look closely. The text says \"The New York Times"
|
||||||
|
},
|
||||||
|
"screenshot": {
|
||||||
|
"prompt_ids_equal": true,
|
||||||
|
"n_image_tokens": 2950,
|
||||||
|
"ref_n_image_tokens": 2950,
|
||||||
|
"prompt_len": 2977,
|
||||||
|
"vision_max_abs_diff": 2.4876317977905273,
|
||||||
|
"vision_mean_abs_diff": 0.017736593261361122,
|
||||||
|
"vision_ref_absmax": 33.62376022338867,
|
||||||
|
"vision_cos_min": 0.9789955019950867,
|
||||||
|
"projector_max_abs_diff": 0.018882393836975098,
|
||||||
|
"projector_mean_abs_diff": 0.0002602388267405331,
|
||||||
|
"projector_ref_absmax": 0.34975665807724,
|
||||||
|
"projector_cos_min": 0.9899011850357056,
|
||||||
|
"first_tok_top20_overlap": 20,
|
||||||
|
"first_tok_logprob_max_abs_diff": 0.11243438720703125,
|
||||||
|
"greedy_identical": true,
|
||||||
|
"first_divergence": null,
|
||||||
|
"text": "The user wants me to read the column headers of the tables in this screenshot. Let me carefully examine the image. There are multiple tables, but the question asks \"the column headers of the table.\" I need to look at the column headers across the tables.\n\nLooking at the first table (Full numbers), the columns",
|
||||||
|
"ref_text": "The user wants me to read the column headers of the tables in this screenshot. Let me carefully examine the image. There are multiple tables, but the question asks \"the column headers of the table.\" I need to look at the column headers across the tables.\n\nLooking at the first table (Full numbers), the columns"
|
||||||
|
},
|
||||||
|
"small": {
|
||||||
|
"prompt_ids_equal": true,
|
||||||
|
"n_image_tokens": 70,
|
||||||
|
"ref_n_image_tokens": 70,
|
||||||
|
"prompt_len": 88,
|
||||||
|
"vision_max_abs_diff": 0.6763725280761719,
|
||||||
|
"vision_mean_abs_diff": 0.020643943920731544,
|
||||||
|
"vision_ref_absmax": 30.09486198425293,
|
||||||
|
"vision_cos_min": 0.9963706135749817,
|
||||||
|
"projector_max_abs_diff": 0.014222517609596252,
|
||||||
|
"projector_mean_abs_diff": 0.0003769780450966209,
|
||||||
|
"projector_ref_absmax": 0.302394300699234,
|
||||||
|
"projector_cos_min": 0.9973287582397461,
|
||||||
|
"first_tok_top20_overlap": 20,
|
||||||
|
"first_tok_logprob_max_abs_diff": 0.12149524688720703,
|
||||||
|
"greedy_identical": true,
|
||||||
|
"first_divergence": null,
|
||||||
|
"text": "The user wants a description of the image. Let me look carefully at what's presented.\n\nThe image shows a newspaper front page. The masthead reads \"The New York Times\" — wait, let me look closely. It says \"The New York Times\"? Actually the historical newspaper was \"The New York Times\" or",
|
||||||
|
"ref_text": "The user wants a description of the image. Let me look carefully at what's presented.\n\nThe image shows a newspaper front page. The masthead reads \"The New York Times\" — wait, let me look closely. It says \"The New York Times\"? Actually the historical newspaper was \"The New York Times\" or"
|
||||||
|
},
|
||||||
|
"wide": {
|
||||||
|
"prompt_ids_equal": true,
|
||||||
|
"n_image_tokens": 450,
|
||||||
|
"ref_n_image_tokens": 450,
|
||||||
|
"prompt_len": 470,
|
||||||
|
"vision_max_abs_diff": 3.6221532821655273,
|
||||||
|
"vision_mean_abs_diff": 0.01508242916315794,
|
||||||
|
"vision_ref_absmax": 31.102516174316406,
|
||||||
|
"vision_cos_min": 0.996982216835022,
|
||||||
|
"projector_max_abs_diff": 0.01400919258594513,
|
||||||
|
"projector_mean_abs_diff": 0.0002609532093629241,
|
||||||
|
"projector_ref_absmax": 0.3068137466907501,
|
||||||
|
"projector_cos_min": 0.9961916208267212,
|
||||||
|
"first_tok_top20_overlap": 19,
|
||||||
|
"first_tok_logprob_max_abs_diff": 0.16253662109375,
|
||||||
|
"greedy_identical": true,
|
||||||
|
"first_divergence": null,
|
||||||
|
"text": "The user wants a transcription of the table in the image. I need to capture the header, the description line, and the two data rows accurately, preserving the column structure and values including the dagger symbols and percentages.</think>Full numbers\n\nSingle-stream, batch = 1 · several tokens per stream update\n\n| CAT",
|
||||||
|
"ref_text": "The user wants a transcription of the table in the image. I need to capture the header, the description line, and the two data rows accurately, preserving the column structure and values including the dagger symbols and percentages.</think>Full numbers\n\nSingle-stream, batch = 1 · several tokens per stream update\n\n| CAT"
|
||||||
|
},
|
||||||
|
"text_only": {
|
||||||
|
"prompt_ids_equal": true,
|
||||||
|
"n_image_tokens": 0,
|
||||||
|
"ref_n_image_tokens": 0,
|
||||||
|
"prompt_len": 22,
|
||||||
|
"first_tok_top20_overlap": 20,
|
||||||
|
"first_tok_logprob_max_abs_diff": 0.11069488525390625,
|
||||||
|
"greedy_identical": true,
|
||||||
|
"first_divergence": null,
|
||||||
|
"text": "The user asks: \"What is the capital of Australia? Answer in one sentence.\"\n\nWe need to answer with a single sentence. The capital of Australia is Canberra. So answer: \"The capital of Australia is Canberra.\" That's one sentence. Should we include any extra? The user wants one sentence.",
|
||||||
|
"ref_text": "The user asks: \"What is the capital of Australia? Answer in one sentence.\"\n\nWe need to answer with a single sentence. The capital of Australia is Canberra. So answer: \"The capital of Australia is Canberra.\" That's one sentence. Should we include any extra? The user wants one sentence."
|
||||||
|
},
|
||||||
|
"batched_vs_single_projector_max_abs_diff": 0.013671875,
|
||||||
|
"batched_vs_single_per_image": {
|
||||||
|
"photo": {
|
||||||
|
"cos_min": 1.0,
|
||||||
|
"cos_mean": 1.0000003576278687
|
||||||
|
},
|
||||||
|
"screenshot": {
|
||||||
|
"cos_min": 0.9999999403953552,
|
||||||
|
"cos_mean": 1.0000001192092896
|
||||||
|
},
|
||||||
|
"small": {
|
||||||
|
"cos_min": 0.9964958429336548,
|
||||||
|
"cos_mean": 0.9997605681419373
|
||||||
|
},
|
||||||
|
"wide": {
|
||||||
|
"cos_min": 1.0,
|
||||||
|
"cos_mean": 1.0000003576278687
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"512x512": {
|
||||||
|
"image_tokens": 256,
|
||||||
|
"patches": 1024,
|
||||||
|
"preprocess_cpu_ms": 1.9,
|
||||||
|
"encoder_xpu_ms": 18.8
|
||||||
|
},
|
||||||
|
"1024x768": {
|
||||||
|
"image_tokens": 768,
|
||||||
|
"patches": 3072,
|
||||||
|
"preprocess_cpu_ms": 8.0,
|
||||||
|
"encoder_xpu_ms": 26.0
|
||||||
|
},
|
||||||
|
"1024x1024": {
|
||||||
|
"image_tokens": 1024,
|
||||||
|
"patches": 4096,
|
||||||
|
"preprocess_cpu_ms": 8.3,
|
||||||
|
"encoder_xpu_ms": 36.8
|
||||||
|
},
|
||||||
|
"1920x1080": {
|
||||||
|
"image_tokens": 2040,
|
||||||
|
"patches": 8160,
|
||||||
|
"preprocess_cpu_ms": 16.5,
|
||||||
|
"encoder_xpu_ms": 85.4
|
||||||
|
},
|
||||||
|
"2048x2048": {
|
||||||
|
"image_tokens": 4096,
|
||||||
|
"patches": 16384,
|
||||||
|
"preprocess_cpu_ms": 39.3,
|
||||||
|
"encoder_xpu_ms": 220.9
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
{
|
||||||
|
"1024x768": {
|
||||||
|
"image_prompt_tokens": 784,
|
||||||
|
"text_prompt_tokens": 767,
|
||||||
|
"base64_chars": 1399698,
|
||||||
|
"ttft_image_ms_median": 222.9,
|
||||||
|
"ttft_image_ms_all": [
|
||||||
|
298.6,
|
||||||
|
208.1,
|
||||||
|
218.4,
|
||||||
|
227.3,
|
||||||
|
218.5,
|
||||||
|
230.0,
|
||||||
|
207.2,
|
||||||
|
228.8,
|
||||||
|
206.9,
|
||||||
|
231.9
|
||||||
|
],
|
||||||
|
"ttft_text_ms_median": 71.6,
|
||||||
|
"ttft_text_ms_all": [
|
||||||
|
73.8,
|
||||||
|
71.3,
|
||||||
|
70.2,
|
||||||
|
71.5,
|
||||||
|
71.6,
|
||||||
|
71.4,
|
||||||
|
70.1,
|
||||||
|
73.1,
|
||||||
|
72.3,
|
||||||
|
74.8
|
||||||
|
],
|
||||||
|
"image_cost_ms": 151.3
|
||||||
|
},
|
||||||
|
"1024x1024": {
|
||||||
|
"image_prompt_tokens": 1040,
|
||||||
|
"text_prompt_tokens": 995,
|
||||||
|
"base64_chars": 1726102,
|
||||||
|
"ttft_image_ms_median": 272.7,
|
||||||
|
"ttft_image_ms_all": [
|
||||||
|
678.7,
|
||||||
|
273.6,
|
||||||
|
272.4,
|
||||||
|
273.3,
|
||||||
|
270.1,
|
||||||
|
270.9,
|
||||||
|
269.0,
|
||||||
|
276.0,
|
||||||
|
267.7,
|
||||||
|
273.0
|
||||||
|
],
|
||||||
|
"ttft_text_ms_median": 73.9,
|
||||||
|
"ttft_text_ms_all": [
|
||||||
|
72.6,
|
||||||
|
71.6,
|
||||||
|
75.4,
|
||||||
|
75.9,
|
||||||
|
79.2,
|
||||||
|
75.0,
|
||||||
|
74.9,
|
||||||
|
71.3,
|
||||||
|
72.9,
|
||||||
|
70.9
|
||||||
|
],
|
||||||
|
"image_cost_ms": 198.8
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
{
|
||||||
|
"1024x768": {
|
||||||
|
"image_prompt_tokens": 784,
|
||||||
|
"text_prompt_tokens": 767,
|
||||||
|
"base64_chars": 1399698,
|
||||||
|
"ttft_image_ms_median": 217.8,
|
||||||
|
"ttft_image_ms_all": [
|
||||||
|
309.9,
|
||||||
|
210.2,
|
||||||
|
235.2,
|
||||||
|
209.7,
|
||||||
|
232.7,
|
||||||
|
210.6,
|
||||||
|
225.1,
|
||||||
|
200.8,
|
||||||
|
229.4,
|
||||||
|
204.3
|
||||||
|
],
|
||||||
|
"ttft_text_ms_median": 73.4,
|
||||||
|
"ttft_text_ms_all": [
|
||||||
|
75.1,
|
||||||
|
74.3,
|
||||||
|
72.5,
|
||||||
|
72.3,
|
||||||
|
73.3,
|
||||||
|
73.5,
|
||||||
|
73.0,
|
||||||
|
71.9,
|
||||||
|
75.3,
|
||||||
|
76.2
|
||||||
|
],
|
||||||
|
"image_cost_ms": 144.5
|
||||||
|
},
|
||||||
|
"1024x1024": {
|
||||||
|
"image_prompt_tokens": 1040,
|
||||||
|
"text_prompt_tokens": 995,
|
||||||
|
"base64_chars": 1726102,
|
||||||
|
"ttft_image_ms_median": 269.7,
|
||||||
|
"ttft_image_ms_all": [
|
||||||
|
387.2,
|
||||||
|
246.2,
|
||||||
|
273.0,
|
||||||
|
243.2,
|
||||||
|
271.4,
|
||||||
|
244.6,
|
||||||
|
271.6,
|
||||||
|
268.0,
|
||||||
|
246.6,
|
||||||
|
279.4
|
||||||
|
],
|
||||||
|
"ttft_text_ms_median": 79.9,
|
||||||
|
"ttft_text_ms_all": [
|
||||||
|
98.5,
|
||||||
|
85.4,
|
||||||
|
80.4,
|
||||||
|
79.4,
|
||||||
|
79.8,
|
||||||
|
79.9,
|
||||||
|
79.5,
|
||||||
|
83.4,
|
||||||
|
79.5,
|
||||||
|
78.3
|
||||||
|
],
|
||||||
|
"image_cost_ms": 189.8
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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 · 11:06 · 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: fp8pc-on-vl-image</span></div>
|
||||||
|
</header>
|
||||||
|
<section class="tiles">
|
||||||
|
<div class="tile">
|
||||||
|
<span class="label">Combined decode</span>
|
||||||
|
<span class="val">188.6 <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">110.4 <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">60 <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,064.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,594 <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.8</td><td>84.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>91.9</td><td>190.6</td><td>228.9</td><td>185.0</td><td>10.8</td><td>3.5%</td></tr>
|
||||||
|
<tr><td>code</td><td>5</td><td>60.1</td><td>62.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>106.2</td><td>189.7</td><td>220.0</td><td>189.5</td><td>0.5</td><td>0.8%</td></tr>
|
||||||
|
<tr><td>file edit</td><td>5</td><td>64.8</td><td>66.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>119.3</td><td>190.1</td><td>220.0</td><td>189.8</td><td>0.8</td><td>1.2%</td></tr>
|
||||||
|
<tr><td>json</td><td>5</td><td>61.9</td><td>80.8<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>100.5</td><td>190.2</td><td>228.7</td><td>188.1</td><td>3.4</td><td>2.4%</td></tr>
|
||||||
|
<tr><td>math</td><td>5</td><td>63.1</td><td>71.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>108.7</td><td>189.7</td><td>220.2</td><td>189.9</td><td>3.7</td><td>1.4%</td></tr>
|
||||||
|
<tr><td>prose</td><td>5</td><td>46.8</td><td>66.5<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>99.2</td><td>189.2</td><td>223.2</td><td>185.1</td><td>4.5</td><td>2.2%</td></tr>
|
||||||
|
<tr><td>reasoning</td><td>5</td><td>64.7</td><td>91.2<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>125.7</td><td>189.6</td><td>219.9</td><td>189.7</td><td>1.9</td><td>0.7%</td></tr>
|
||||||
|
<tr><td>summarization</td><td>5</td><td>66.1</td><td>84.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>115.8</td><td>190.2</td><td>224.2</td><td>188.4</td><td>1.9</td><td>1.7%</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>183.0</td><td>61.7</td><td>90.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>187.4</td></tr>
|
||||||
|
<tr><td>2</td><td>48/48</td><td>340.6</td><td>68.7</td><td>1,055.9<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>181.4</td></tr>
|
||||||
|
<tr><td>4</td><td>48/48</td><td>634.5</td><td>72.6</td><td>133.5<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>173.1</td></tr>
|
||||||
|
<tr><td>8</td><td>48/48</td><td>1,064.5</td><td>80.2</td><td>135.4<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>162.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>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,506</td><td>98.2</td><td>13,564.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>15,278.4</td><td>15,756.1<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>8,000</td><td>5,912</td><td>318.9</td><td>18,290.7<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>18,586.8</td><td>18,954.4<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>16,000</td><td>11,785</td><td>659.0</td><td>17,735.4<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>17,868.8</td><td>18,087.5<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td></tr>
|
||||||
|
<tr><td>32,000</td><td>23,558</td><td>1,418.8</td><td>16,534.3<span class="thin" title="under-sampled percentile — see the note below the tables">†</span></td><td>16,594.1</td><td>16,751.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": [185.03913616122568, 189.46030896822467, 189.76803318467225, 188.08157960855482, 189.8538576833974, 185.08153540784554, 189.68235809091445, 188.3529970858619], "decodeIqr": [10.84363955412229, 0.4875989484305876, 0.7780002379525115, 3.3686499908569374, 3.688251771667126, 4.488827332306556, 1.917325219140622, 1.8867933280051545], "cv": [3.4796742182243148, 0.7774566354815193, 1.1555709792605717, 2.4000198694600767, 1.4448801581121469, 2.155872223212973, 0.652079929431946, 1.6846793299937515], "itlLow": [91.85003526538286, 106.21539039629518, 119.26271612144058, 100.470219331489, 108.74095848091663, 99.15141021397963, 125.67181247419447, 115.75124530634608], "itlMed": [190.63974113378393, 189.74170936784498, 190.07800430029587, 190.1814275058565, 189.6875237397593, 189.1991144521981, 189.56709895383847, 190.186816729562], "itlHigh": [228.9022336974357, 219.9994838940449, 220.0009087465458, 228.65096937187647, 220.18825137135593, 223.24730457553719, 219.90155697960833, 224.24287583275358], "batched": false, "updP50": [5.245496002316941, 5.270322501019109, 5.260997997538652, 5.258136996417306, 5.271828005788848, 5.285437000566162, 5.275176998111419, 5.257987999357283], "updP99": [9.070445199322418, 7.038297969629646, 6.759683759155429, 8.694278165057767, 8.116645478003196, 9.226125258137465, 6.471047580853336, 7.742991782579328], "tokPerUpd": [1.0, 1.0038075458636206, 1.0, 1.0, 1.0008271298593878, 1.0, 1.0007278020378456, 1.0], "ttft50": [62.75668899615994, 60.091119004937354, 64.77031499525765, 61.87961199611891, 63.09391499962658, 46.84571499819867, 64.71370500366902, 66.13321999611799], "combined": 188.56113458816375, "conc": {"levels": [1, 2, 4, 8], "agg": [182.999934605711, 340.6245600523404, 634.5169274833944, 1064.4966067139571], "t50": [61.70888349515735, 68.74895400324021, 72.63266100198962, 80.2235560004192], "t99": [90.74279689149989, 1055.8604054283205, 133.53284226803225, 135.44641499996942], "per": [187.44852191309644, 181.36099826124283, 173.10356370937723, 162.3374174439069], "ok": [48, 48, 48, 48], "req": [48, 48, 48, 48]}, "pre": {"depths": [2000, 8000, 16000, 32000], "tok": [1506.0, 5912.5, 11785.0, 23558.0], "low": [13564.071074910822, 18290.696047961446, 17735.38633189461, 16534.275717569577], "med": [15278.362625058624, 18586.83276278973, 17868.822484689656, 16594.104661016034], "high": [15756.099296350234, 18954.447648569756, 18087.499362964867, 16751.235540761503], "t50": [98.18725200238987, 318.9077825009008, 658.9658245029568, 1418.757874496805]}};
|
||||||
|
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, 6398, 355, 6552, 63908, 597, 5205, 302, 10125, 355, 9499, 63908, 597, 5205, 302, 11097, 355, 11818], "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.250000173225999, 2.125, 4.4999998062849045, 3.3749999217689037, 0.25, 7.249999784631655, 2.6250001192092896, 7.0624999777646735, 4.874999905005097, 2.875, 5.937500033527613, 5.124999823514372, 0.125, 6.874999857973307, 6.124999957624823, 5.249999867752194, 3.874999836087227, 6.812500070780516, 6.750000110594556, 1.25, 5.500000030733645, 7.624999763909727, 5.625000153668225, 3.9374998658895493, 6.312499870546162, 6.999999821651727, 0.25, 7.562499896273948, 8.937499622086762]}, "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.374999541265424, 7.500000163097866, 14.75000011920963, 13.499999642377361, 10.250000000691216, 6.9999999645515345, 13.000000357669705, 4.000000132247806, 4.37499981187284, 11.687499881485564, 12.312499642664989, 0.625, 2.125000052154064, 8.250000183441443, 11.25000000008913, 11.999999761894287, 12.62500035764242, 14.12500035762912, 14.75000035762804, 15.249999642372188, 10.12499988198033, 13.249999880795258, 16.124999880790718, 11.24999952406506, 6.8750000012805685, 11.750000000436557, 12.37500000005457, 9.750000120951881, 12.25000000003638, 3.124999925494194, 1.4999999850988388, 1.2499999403953552, 2.125, 0.0, 1.4999998807907104, 5.062500186264515, 5.250000192783773, 8.06249999179272, 4.375000039115548, 4.874999804422259, 4.499999783933163, 3.8750000447034836, 9.500000217638444, 4.749999826774001, 8.499999827938154, 0.8750000596046448, 0.25]}, "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.937499763342203, 0.875, 9.375000284897396, 0.7499999403953552, 0.75, 1.6249998807907104, 3.9999998807907104, 2.249999985098839, 1.0, 0.375, 1.3750000298023224, 0.0, 8.124999772699084, 0.25, 2.750000089406967, 0.25, 0.625, 3.8750000931322575, 0.125, 7.9999998663552105, 0.375, 3.249999925494194, 1.375, 3.1250000447034836, 0.0625, 8.187500467174686]}, "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.5000000447034836, 7.999999701423803, 13.562500238419943, 5.000000079162419, 12.249999642396688, 0.6249999403953552, 2.000Line 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.562499925494194, 0.4375, 0.625, 4.250000149011612, 3.3749999329447746, 1.4999998807907104, 8.875000215135515, 8.375000157742761, 6.000000055413693, 3.5, 6.187499824911356, 5.000000030733645, 0.75, 7.374999810708687, 4.62499980814755, 8.250000023923349, 5.249999891035259, 2.562500089406967, 4.750000007450581, 4.875000026077032, 0.625, 8.124999561870936, 5.12499978672713, 6.1249998232815415, 2.8125, 4.8125, 4.625000227242708, 0.4375, 5.437500100582838, 2.3750000596046448, 3.4999999925494194, 7.500000075669959, 2.0000000596046448, 4.687500134110451, 7.499999885098077, 4.1250001937150955, 1.8750000596046448, 4.687500149011612, 3.1249999701976776, 0.25, 7.375000111875124, 2.750000089406967, 6.875000030151568, 5.125000128522515, 2.6874999701976776, 6.124999839812517, 4.874999764375389, 0.125, 6.374999913852662, 4.500000019557774, 4.999999804422259, 4.249999891966581, 3.312499925494194, 6.562500085681677, 5.12500009406358, 0.625, 4.749999776482582, 5.125000110827386, 6.499999999068677, 4.999999874271452, 2.3750000298023224, 3.1875000298023224, 5.500000048428774, 4.875000059604645]}, "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.312500175088644, 0.75, 8.75000034304685, 1.0000000298023224, 9.124999847321305, 2.249999925494194, 5.8750000433065, 7.500000231724698, 3.124999914318323, 4.625000101514161, 8.000000335334335, 5.7499999650754035, 9.500000005908078, 0.625, 6.874999893363565, 8.4375001010485, 6.624999828636646, 7.999999718449544, 6.749999871943146, 14.87500035762804, 14.124999761583695, 10.999999642543116, 6.2500001604203135, 14.124999642377361, 3.374999985098839, 4.375000054948032, 11.312500239175279, 12.374999642508556, 0.25, 2.0000000447034836, 9.374999649749952, 11.125000238531356, 12.499999642494004, 13.312500000007276, 13.249999642374632, 14.37500011920963, 15.874999880790718, 10.375000000763976, 13.749999761583695, 16.374999880790718, 11.24999964408562, 6.249999789521098, 12.125000000181899, 13.249999880802534, 9.249999527848559, 11.375000119354809, 2.500000052154064, 1.4999999552965164, 0.625, 2.0000000596046448, 0.125, 0.75, 4.125000171363354, 5.249999867752194, 8.125000236934284, 3.374999899417162, 4.5000001303851604, 3.999999888241291, 3.3749998807907104, 8.749999524618033, 4.749999932944775, 8.000000439817086, 0.4999999403953552, 0.375]}, "chat_short": {"tokens": [2083, 1094, 310, 5141, 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, 20, 522, 1094, 310, 18960, 395, 296, 1046, 19027, 63908, 9077, 12683], "margins": [0.875, 12.562499880858013, 12.374999765968823, 6.625000228639692, 0.0, 13.124999761583695, 11.999999523233782, 14.37500011920963, 12.062499880894393, 14.374999523163865, 8.999999889725586, 10.500000001091394, 0.375, 3.7499999925494194, 3.625000076368451, 11.374999880974428, 2.5000000074505806, 1.1249999701976776, 11.62500000158252, 10.00000000163709, 8.62499978323467, 6.124999845400453, 5.624999773455784, 1.0000000596046448, 11.37499964343806, 0.5, 9.499999683670467, 1.2499999701976776, 0.7499999403953552, 1.6250000596046448, 4.999999832361937, 1.3749999701976776, 2.249999985098839, 1.25, 1.8750000298023224, 0.0, 7.875000165018719, 0.25, 3.7499999217689037, 0.5, 1.5000001192092896, 3.4999999180436134, 0.25, 8.000000367639586, 1.2500000298023224, 1.1249999701976776, 2.0000000298023224, 4.124999903142452, 0.375, 6.875000154715963, 1.125, 3.2499998956918716, 0.125, 0.5, 0.25, 1.999999925494194, 0.875, 2.999999947845936, 1.7499999552965164, 1.125, 5.000000215135515, 2.125000037252903, 1.6250000298023224, 4.500000014901161]}, "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.3749999403953552, 8.000000418396667, 13.62500035762912, 4.999999936670065, 11.999999523203769, 0.375, 2.2499999701976776, 9.99999964343806, 14.12500035Line 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.562499925494194, 0.4375, 0.625, 4.250000149011612, 3.3749999329447746, 1.4999998807907104, 8.875000215135515, 8.375000157742761, 6.000000055413693, 3.5, 6.187499824911356, 5.000000030733645, 0.75, 7.374999810708687, 4.62499980814755, 8.250000023923349, 5.249999891035259, 2.562500089406967, 4.750000007450581, 4.875000026077032, 0.625, 8.124999561870936, 5.12499978672713, 6.1249998232815415, 2.8125, 4.8125, 4.625000227242708, 0.4375, 5.437500100582838, 2.3750000596046448, 3.4999999925494194, 7.500000075669959, 2.0000000596046448, 4.687500134110451, 7.499999885098077, 4.1250001937150955, 1.8750000596046448, 4.687500149011612, 3.1249999701976776, 0.25, 7.375000111875124, 2.750000089406967, 6.875000030151568, 5.125000128522515, 2.6874999701976776, 6.124999839812517, 4.874999764375389, 0.125, 6.375000198138878, 4.5000001871958375, 4.9999998696148396, 4.249999850988388, 3.312499910593033, 6.437499953433871, 5.250000062864274, 0.6250000596046448, 4.749999917112291, 5.124999841675162, 6.374999955762178, 5.124999986030161, 2.3750000298023224, 3.1874999403953552, 5.437499932944775, 4.875000218860805]}, "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.312500175088644, 0.75, 8.75000034304685, 1.0000000298023224, 9.124999847321305, 2.249999925494194, 5.8750000433065, 7.500000231724698, 3.124999914318323, 4.625000101514161, 8.000000335334335, 5.7499999650754035, 9.500000005908078, 0.625, 6.874999893363565, 8.4375001010485, 6.624999828636646, 7.999999718449544, 6.749999871943146, 14.87500035762804, 14.124999761583695, 10.999999642543116, 6.2500001604203135, 14.124999642377361, 3.374999985098839, 4.375000054948032, 11.312500239175279, 12.250000000181899, 0.375, 1.9999999105930328, 9.250000128231477, 11.00000023856228, 12.499999761701474, 13.37500035763378, 13.249999642374632, 14.37500011920963, 15.874999880790718, 10.375000000763976, 13.749999761583695, 16.374999880790718, 11.250000240153895, 6.250000118976459, 12.124999523353836, 13.249999880802534, 9.375000242078386, 11.374999761732397, 2.750000014901161, 1.5000000596046448, 0.625, 2.1249999403953552, 0.125, 0.8749999403953552, 4.187500208616257, 5.250000072643161, 8.062499530962668, 3.3750001043081284, 4.499999791383743, 3.999999910593033, 3.2500001043081284, 8.749999888415914, 4.749999804422259, 8.12500022398308, 0.5000000596046448, 0.375]}, "chat_short": {"tokens": [2083, 1094, 310, 5141, 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, 20, 522, 1094, 310, 18960, 395, 296, 1046, 19027, 63908, 9077, 12683], "margins": [0.875, 12.562499880858013, 12.374999765968823, 6.625000228639692, 0.0, 13.124999761583695, 11.999999523233782, 14.37500011920963, 12.062499880894393, 14.374999523163865, 8.999999889725586, 10.500000001091394, 0.375, 3.7499999925494194, 3.625000076368451, 11.374999880974428, 2.5000000074505806, 1.1249999701976776, 11.62500000158252, 10.00000000163709, 8.62499978323467, 6.124999845400453, 5.624999773455784, 1.0000000596046448, 11.312499762869265, 0.5, 9.500000275031198, 1.3750000298023224, 0.7500000298023224, 1.6249999403953552, 4.874999830499291, 1.3750000298023224, 2.250000089406967, 1.25, 1.8749998807907104, 0.0, 7.999999662919436, 0.2500000596046448, 3.6249999031424522, 0.5, 1.5, 3.499999910593033, 0.25, 8.124999856576324, 1.2499999403953552, 1.125, 1.9999998807907104, 4.124999828636646, 0.375, 6.875000029336661, 1.2499999403953552, 3.1250001043081284, 0.0, 0.5, 0.25, 2.0000000447034836, 0.875, 3.125000014901161, 1.7500000298023224, 1.1249999701976776, 5.000000189058483, 2.1249999925494194, 1.6249999403953552, 4.624999910593033]}, "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.3749999403953552, 8.000000299245585, 13.68750035762912, 4.8750000055879354, 12.12500035766152, 0.375, 2.249999Line truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"raw_short": {"tokens": [4741, 318, 597, 5205, 302, 3888, 355, 18943, 318, 597, 5205, 302, 6398, 355, 6552, 318, 597, 5205, 302, 10125, 355, 9499, 318, 597, 5205, 302, 11097, 355, 11818, 318, 597, 5205, 302, 278, 2203, 2507, 355, 5644, 20, 388, 3563, 318, 597, 5205, 302, 5177, 355, 36038, 318, 597, 5205, 302, 5881, 355, 2076, 59405, 318, 597, 5205, 302, 278, 2203, 10020, 355], "margins": [2.437499925494194, 0.125, 2.1875000596046448, 3.750000074505806, 4.250000195577741, 0.7499999403953552, 9.187500006635673, 7.437500108266249, 5.1250001192092896, 5.06250012293458, 6.625000017695129, 6.1249998905695975, 0.7500000596046448, 8.375000429223292, 5.812499979976565, 3.500000048428774, 4.250000208616257, 5.625000225380063, 6.499999847845174, 1.8749999105930328, 8.187499958556145, 8.000000065017957, 3.750000063329935, 4.562499910593033, 5.750000165775418, 6.999999763676897, 0.5, 9.437500385960448, 9.250000388274202, 2.4999999031424522, 3.750000089406967, 4.749999780207872, 5.75000015925616, 0.375, 4.999999970197678, 1.2500000298023224, 4.875000181607902, 5.500000172294676, 0.875, 4.500000050291419, 8.124999554594979, 1.9999999403953552, 3.5000001192092896, 3.9999998956918716, 4.874999877996743, 1.8750000894069672, 8.50000010424992, 2.8749999180436134, 3.2499999403953552, 4.312499850988388, 5.374999973922968, 6.249999828170985, 1.125, 7.500000175787136, 1.8750000894069672, 8.374999846622813, 3.3749999292194843, 4.0000001192092896, 5.374999977648258, 6.749999821651727, 0.25, 3.8750001192092896, 2.3750000074505806, 3.8749999552965164]}, "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": [6.000000002793968, 1.0, 7.499999950872734, 0.625, 8.749999689636752, 2.3749999180436134, 5.624999834224582, 7.8749997853301466, 2.625000074505806, 4.99999981559813, 6.124999894062057, 4.9999999003484845, 9.749999769293936, 0.25, 6.250000076601282, 8.499999681022018, 5.000000070314854, 9.749999786537956, 5.875000190921128, 14.125000238419943, 12.125000238504981, 11.499999523302904, 9.499999527848559, 12.750000357700628, 3.3749999217689037, 3.375000085681677, 11.250000239782821, 9.750000010360964, 0.875, 1.9999998956918716, 9.624999649749952, 11.874999523188308, 11.125000358140824, 12.625000000022283, 12.000000119284778, 13.249999761586196, 14.37500011920963, 9.99999988198033, 10.874999881176336, 13.74999964237304, 10.750000004729372, 8.499999602034222, 11.500000119700417, 11.499999642524926, 10.374999762116204, 8.499999908788595, 3.124999888241291, 1.75, 3.0000001043081284, 2.7499999403953552, 0.25, 2.3749999403953552, 2.8750000596046448, 10.124999896041118, 4.124999847263098, 3.750000052154064, 5.124999846331775, 4.374999802559614, 10.375000253610779, 4.499999804422259, 4.4999999310821295, 7.500000020838343, 6.624999769963324, 9.999999665669748]}, "chat_short": {"tokens": [2083, 1094, 310, 5141, 34, 496, 2992, 355, 340, 22, 13729, 497, 8022, 296, 1046, 19027, 22, 340, 22, 13729, 497, 355, 267, 2810, 302, 58330, 1083, 20, 9784, 278, 6284, 33136, 20, 7467, 2037, 405, 278, 19355, 312, 332, 432, 340, 22, 13729, 497, 22, 810, 589, 267, 2300, 19316, 296, 15789, 20, 1092, 374, 1597, 2387, 310, 851, 33673, 309, 35172, 22], "margins": [1.3749999850988388, 13.500000238424946, 11.562499523559381, 8.250000441796146, 0.0, 9.74999964408562, 10.62499976228355, 14.50000011920963, 12.437500000181899, 13.37500035763378, 8.875000255837222, 8.625000471569365, 1.3750000298023224, 5.3750001564621925, 3.5000000279396772, 12.500000357654244, 2.5000000298023224, 1.375, 12.374999524774466, 10.249999883781129, 9.125000037194695, 4.125000219792128, 3.1250000409781933, 0.2500000596046448, 7.2500002345768735, 1.4375000298023224, 7.999999971711077, 1.7500000298023224, 0.3749999403953552, 4.250000196509063, 2.7500001192092896, 5.750000123400241, 0.875, 2.25, 3.1250000447034836, 3.375000014901161, 5.124999945983291, 0.25, 0.75, 3.3749998956918716, 0.625, 2.4374999552965164, 8.437499856809154, 6.937500063795596, 5.624999980442226, 1.7500000298023224, 5.874999799299985, 1.8750000149011612, 5.749999958090484, 4.437500081956387, 7.249999890453182, 3.9999999925494194, 3.3750000596046448, 0.75, 0.125, 1.7499999403953552, 0.0, 1.8749998807907104, 12.625000000007276, 5.87500019185245, 1.6249999850988388, 3.624999947845936, 0.25, 2.3749999701976776]}, "chat_long_600": {"tokens": [2083, 1094, 310, 47275, 278, 2803, 296, 1703, 34013, 4019, 22, 440, 2803, 355, 836, 278, 2628, 302, 278, 38890, 20, 15363, 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], "margins": [2.3749999701976776, 8.50000Line truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"raw_short": {"tokens": [4741, 318, 597, 5205, 302, 3888, 355, 18943, 318, 597, 5205, 302, 6398, 355, 6552, 318, 597, 5205, 302, 10125, 355, 9499, 318, 597, 5205, 302, 11097, 355, 11818, 318, 597, 5205, 302, 278, 2203, 2507, 355, 5644, 20, 388, 3563, 318, 597, 5205, 302, 5177, 355, 36038, 318, 597, 5205, 302, 5881, 355, 2076, 59405, 318, 597, 5205, 302, 278, 2203, 10020, 355], "margins": [2.437499910593033, 0.0625, 2.1875001192092896, 3.75, 4.250000102445483, 0.75, 9.062500153959263, 7.375000040046871, 5.000000231899321, 4.937499765306711, 6.750000067986548, 6.249999859370291, 0.75, 8.250000119383913, 5.874999769497663, 3.624999888241291, 4.249999895691872, 5.49999993853271, 6.499999875552021, 1.8750000596046448, 8.125000205240212, 7.87499992584344, 3.7500000298023224, 4.625000186264515, 5.62499999627471, 7.125000116880983, 0.5, 9.374999552383088, 9.43749966485484, 2.5000000819563866, 3.8124999403953552, 4.624999962747097, 5.875000000698492, 0.375, 5.000000009313226, 1.2500000596046448, 4.874999979510903, 5.499999763444066, 0.7500000596046448, 4.37500006146729, 8.125000045576598, 2.1250001192092896, 3.5000000298023224, 3.8750001043081284, 4.875000161118805, 2.0000000596046448, 8.375000044703484, 2.8749999925494194, 3.2499998845160007, 4.374999940395355, 5.50000018440187, 6.2500000356230885, 1.1249999403953552, 7.375000135274604, 1.874999925494194, 8.37499960657442, 3.3750000819563866, 4.062499925494194, 5.375000186264515, 6.500000063562766, 0.375, 3.8124999403953552, 2.250000014901161, 3.7499999199062586]}, "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": [5.875000086612999, 0.8750000298023224, 7.624999828403816, 0.6250000596046448, 8.750000051019015, 2.5, 5.750000080559403, 7.749999931373168, 2.7500000298023224, 4.999999793246388, 5.999999770661816, 5.000000125728548, 9.875000244828698, 0.125, 6.249999794643372, 8.249999955412932, 4.8749997657723725, 9.749999785897671, 5.62499993131496, 14.062500000001819, 12.12500000008913, 11.500000238545908, 9.499999647137884, 12.499999642479452, 3.2500000409781933, 3.2500000596046448, 11.062500359708793, 9.749999534586095, 0.8750000298023224, 2.1250001043081284, 9.49999965573079, 11.875000357654244, 11.124999881383701, 12.624999642396688, 11.750000357753379, 13.062500000007276, 14.37500011920963, 9.750000121122866, 10.625000239000656, 13.874999880791279, 10.875000242849637, 8.62500030818046, 11.625000358082616, 11.250000357904355, 10.499999523586666, 8.125000414816895, 3.125000074505806, 1.7499999850988388, 3.2500001192092896, 2.875, 0.25, 2.3750000596046448, 2.875000074505806, 10.249999777355697, 4.125000206753612, 3.750000011175871, 4.999999832361937, 4.249999921768904, 10.250000018189894, 4.375000102445483, 4.375000141561031, 7.500000054016709, 6.625000105239451, 10.000000023428584]}, "chat_short": {"tokens": [2083, 1094, 310, 5141, 34, 496, 2992, 355, 340, 22, 13729, 497, 8022, 296, 1046, 19027, 22, 340, 22, 13729, 497, 355, 267, 2810, 302, 58330, 1083, 20, 9784, 278, 6284, 33136, 20, 7467, 2037, 405, 278, 19355, 312, 332, 432, 340, 22, 13729, 497, 22, 810, 589, 267, 2300, 19316, 296, 15789, 20, 1092, 374, 1597, 2387, 310, 851, 33673, 309, 35172, 22], "margins": [1.3749999701976776, 13.249999880798441, 11.437499642939656, 8.250000174739398, 0.0, 9.625000359832484, 10.624999523908627, 14.50000011920963, 12.437499642561306, 13.249999523171937, 8.87499977927655, 8.874999615421984, 1.4999999552965164, 5.499999875202775, 3.5000000279396772, 12.374999880820724, 2.4999999031424522, 1.4999999701976776, 12.312500120839104, 10.312499764295353, 9.374999909923645, 4.250000208616257, 3.0000000782310963, 0.2500000596046448, 7.249999930500053, 1.3125, 7.999999833002221, 1.7500000447034836, 0.25, 4.2499998062849045, 2.6249999552965164, 5.624999864026904, 0.875, 2.3750001192092896, 3.0000000670552254, 3.249999914318323, 5.374999919906259, 0.1875, 1.125, 3.749999925494194, 0.625, 2.3749999403953552, 8.37500031827949, 7.124999841907993, 5.999999882420525, 1.6250000447034836, 5.874999947845936, 1.8749999850988388, 5.874999776482582, 4.43750012293458, 7.124999992258381, 3.874999951571226, 3.3750001043081284, 0.8749999403953552, 0.125, 1.7499998807907104, 0.0, 1.9999998807907104, 12.625000000007276, 5.749999996740371, 1.6249999701976776, 3.4999999031424522, 0.3750000596046448, 2.4999999701976776]}, "chat_long_600": {"tokens": [2083, 1094, 310, 47275, 278, 2803, 296, 1703, 34013, 4019, 22, 440, 2803, 355, 836, 278, 2628, 302, 278, 38890, 20, 15363, 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], Line truncated
|
||||||
@@ -2,14 +2,15 @@
|
|||||||
# Start one LFM3 vLLM variant on a test port, wait until ready, record startup time + VRAM.
|
# Start one LFM3 vLLM variant on a test port, wait until ready, record startup time + VRAM.
|
||||||
# tests/variant.sh NAME [--fresh] [extra vllm args...]
|
# 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};
|
# 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).
|
# model dir ${MODEL:-/models/LFM3-1.7B}; 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.
|
# Writes logs/variant_NAME.log (server log) and appends one line to results/variants_startup.tsv.
|
||||||
# Stop with: docker stop lfm3-var-NAME
|
# Extra docker env: DOCKER_ENV="-e K=V ...". Stop with: docker stop lfm3-var-NAME
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
NAME=$1; shift
|
NAME=$1; shift
|
||||||
PORT=${PORT:-8001}
|
PORT=${PORT:-8001}
|
||||||
IMAGE=${IMAGE:-lfm3-vllm-xpu:v0.32.0-lfm3}
|
IMAGE=${IMAGE:-lfm3-vllm-xpu:v0.32.0-lfm3}
|
||||||
|
MODEL=${MODEL:-/models/LFM3-1.7B}
|
||||||
CACHE=$PWD/.cache/$NAME
|
CACHE=$PWD/.cache/$NAME
|
||||||
if [[ "${1:-}" == "--fresh" ]]; then
|
if [[ "${1:-}" == "--fresh" ]]; then
|
||||||
shift
|
shift
|
||||||
@@ -22,9 +23,9 @@ docker run -d --rm --name "lfm3-var-$NAME" \
|
|||||||
--device /dev/dri --group-add 991 --ipc=host --shm-size=16g \
|
--device /dev/dri --group-add 991 --ipc=host --shm-size=16g \
|
||||||
-p 127.0.0.1:${PORT}:8000 \
|
-p 127.0.0.1:${PORT}:8000 \
|
||||||
-v /dev/dri:/dev/dri -v /dev/dri/by-path:/dev/dri/by-path:ro \
|
-v /dev/dri:/dev/dri -v /dev/dri/by-path:/dev/dri/by-path:ro \
|
||||||
-v /models/LFM3-1.7B:/model:ro \
|
-v "$MODEL":/model:ro \
|
||||||
-v "$CACHE":/root/.cache/vllm \
|
-v "$CACHE":/root/.cache/vllm \
|
||||||
-e HF_HUB_OFFLINE=1 -e TRANSFORMERS_OFFLINE=1 \
|
-e HF_HUB_OFFLINE=1 -e TRANSFORMERS_OFFLINE=1 ${DOCKER_ENV:-} \
|
||||||
"$IMAGE" /model --host=0.0.0.0 --port=8000 --served-model-name=lfm3-1.7b \
|
"$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 \
|
--gpu-memory-utilization=0.5 --dtype=bfloat16 --max-model-len=32768 \
|
||||||
--enable-auto-tool-choice --tool-call-parser=qwen3_coder --reasoning-parser=qwen3 \
|
--enable-auto-tool-choice --tool-call-parser=qwen3_coder --reasoning-parser=qwen3 \
|
||||||
|
|||||||
@@ -0,0 +1,77 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""OpenAI-API tests against a served lfm3-vl-2b: image by http URL, two images, base64 data URL
|
||||||
|
(what Open WebUI sends), text only, image + tool call, and the rejections (video, > 4 images).
|
||||||
|
|
||||||
|
python3 tests/vl/api_test.py PORT LABEL [IMAGE_BASE_URL] -> results/vl/api_LABEL.json
|
||||||
|
IMAGE_BASE_URL: where tests/vl/images is served over http for the server (default http://172.17.0.1:8765).
|
||||||
|
"""
|
||||||
|
import base64, json, sys, time, urllib.error, urllib.request
|
||||||
|
|
||||||
|
port, label = int(sys.argv[1]), sys.argv[2]
|
||||||
|
base = sys.argv[3] if len(sys.argv) > 3 else "http://172.17.0.1:8765"
|
||||||
|
URL = f"http://127.0.0.1:{port}/v1/chat/completions"
|
||||||
|
IMG = "tests/vl/images"
|
||||||
|
|
||||||
|
|
||||||
|
def data_url(path, mime):
|
||||||
|
return f"data:{mime};base64," + base64.b64encode(open(f"{IMG}/{path}", "rb").read()).decode()
|
||||||
|
|
||||||
|
|
||||||
|
def img(url):
|
||||||
|
return {"type": "image_url", "image_url": {"url": url}}
|
||||||
|
|
||||||
|
|
||||||
|
def chat(content, max_tokens=4096, tools=None, expect_error=False):
|
||||||
|
# no sampling params: the server applies the checkpoint's generation_config.json
|
||||||
|
# (temperature 0.1, top_k 50, repetition_penalty 1.1), as for an Open WebUI request; fixed seed
|
||||||
|
body = {"model": "lfm3-vl-2b", "messages": [{"role": "user", "content": content}],
|
||||||
|
"max_tokens": max_tokens, "seed": 0}
|
||||||
|
if tools:
|
||||||
|
body["tools"] = tools
|
||||||
|
req = urllib.request.Request(URL, json.dumps(body).encode(), {"Content-Type": "application/json"})
|
||||||
|
t0 = time.time()
|
||||||
|
try:
|
||||||
|
r = json.loads(urllib.request.urlopen(req, timeout=600).read())
|
||||||
|
except urllib.error.HTTPError as e:
|
||||||
|
return {"http_status": e.code, "error": json.loads(e.read()).get("error", {}).get("message", "")[:400],
|
||||||
|
"expected_error": expect_error}
|
||||||
|
m = r["choices"][0]["message"]
|
||||||
|
return {"http_status": 200, "expected_error": expect_error, "seconds": round(time.time() - t0, 2),
|
||||||
|
"prompt_tokens": r["usage"]["prompt_tokens"], "completion_tokens": r["usage"]["completion_tokens"],
|
||||||
|
"finish_reason": r["choices"][0]["finish_reason"], "content": m.get("content"),
|
||||||
|
"reasoning": (m.get("reasoning") or "")[:600],
|
||||||
|
"tool_calls": [tc["function"] for tc in (m.get("tool_calls") or [])]}
|
||||||
|
|
||||||
|
|
||||||
|
TOOLS = [{"type": "function", "function": {
|
||||||
|
"name": "search_web", "description": "Search the web.",
|
||||||
|
"parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}}]
|
||||||
|
|
||||||
|
TESTS = {
|
||||||
|
"one_image_url": lambda: chat([img(f"{base}/photo.jpeg"),
|
||||||
|
{"type": "text", "text": "Which newspaper is this and what is the main headline?"}]),
|
||||||
|
"two_images": lambda: chat([img(f"{base}/photo.jpeg"), img(f"{base}/wide_strip.png"),
|
||||||
|
{"type": "text", "text": "Describe the first image in one sentence and the second image in one sentence."}]),
|
||||||
|
"base64_data_url": lambda: chat([{"type": "text", "text": "What kind of document is this? What are the column headers of the first table?"},
|
||||||
|
img(data_url("screenshot.png", "image/png"))]),
|
||||||
|
"text_only": lambda: chat("What is the capital of Australia? Answer in one sentence."),
|
||||||
|
"image_tool_call": lambda: chat([img(data_url("photo.jpeg", "image/jpeg")),
|
||||||
|
{"type": "text", "text": "Find out more about the newspaper in this image: search the web for its name."}],
|
||||||
|
tools=TOOLS),
|
||||||
|
"video_rejected": lambda: chat([{"type": "video_url", "video_url": {"url": f"{base}/clip.mp4"}},
|
||||||
|
{"type": "text", "text": "What happens?"}], expect_error=True),
|
||||||
|
"five_images_rejected": lambda: chat([img(data_url("small.png", "image/png"))] * 5 +
|
||||||
|
[{"type": "text", "text": "How many images?"}], expect_error=True),
|
||||||
|
}
|
||||||
|
|
||||||
|
out = {}
|
||||||
|
for name, fn in TESTS.items():
|
||||||
|
out[name] = fn()
|
||||||
|
r = out[name]
|
||||||
|
ok = (r["http_status"] != 200) == r["expected_error"]
|
||||||
|
print(f"{'OK ' if ok else 'BAD'} {name}: status {r['http_status']}"
|
||||||
|
+ (f", {r['prompt_tokens']} prompt tok, {r['completion_tokens']} out, {r['seconds']} s, finish {r['finish_reason']}"
|
||||||
|
if r["http_status"] == 200 else f": {r['error'][:200]}"), flush=True)
|
||||||
|
if r["http_status"] == 200:
|
||||||
|
print(" content:", repr((r["content"] or "")[:300]), "| tool_calls:", r["tool_calls"], flush=True)
|
||||||
|
json.dump(out, open(f"results/vl/api_{label}.json", "w"), indent=1, ensure_ascii=False)
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
"""Plugin's vendored processor (no trust_remote_code) vs Liquid's remote processor: same ids + pixels.
|
||||||
|
python3 check_processor.py mine|ref OUT.pt (run each in its own process; 'ref' does not import the plugin)"""
|
||||||
|
import sys, torch, numpy as np
|
||||||
|
from PIL import Image
|
||||||
|
from transformers import AutoProcessor
|
||||||
|
which, out = sys.argv[1], sys.argv[2]
|
||||||
|
if which == "mine":
|
||||||
|
import vllm_lfm3
|
||||||
|
vllm_lfm3.register()
|
||||||
|
proc = AutoProcessor.from_pretrained("/vl", trust_remote_code=(which == "ref"))
|
||||||
|
print(which, type(proc).__module__, type(proc.image_processor).__module__)
|
||||||
|
rng = np.random.default_rng(0)
|
||||||
|
res = {}
|
||||||
|
for (w, h) in [(640, 480), (100, 60), (2400, 400), (1024, 1024), (1920, 1080)]:
|
||||||
|
img = Image.fromarray(rng.integers(0, 255, (h, w, 3), dtype=np.uint8))
|
||||||
|
msgs = [{"role": "user", "content": [{"type": "image"}, {"type": "text", "text": "hi"}]}]
|
||||||
|
text = proc.apply_chat_template(msgs, add_generation_prompt=True, tokenize=False)
|
||||||
|
res[(w, h)] = dict(proc(text=text, images=[img], return_tensors="pt"))
|
||||||
|
torch.save(res, out)
|
||||||
|
if which == "mine":
|
||||||
|
ref = torch.load(out.replace("mine", "ref"))
|
||||||
|
for k, a in res.items():
|
||||||
|
b = ref[k]
|
||||||
|
print(k, "grid", a["image_grid_thw"].tolist(), "image tokens", int((a["input_ids"] == 125030).sum()),
|
||||||
|
"ids equal", torch.equal(a["input_ids"], b["input_ids"]), "pixels equal", torch.equal(a["pixel_values"], b["pixel_values"]))
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""vLLM (our plugin, XPU, BF16) vs the Transformers reference from ref_vl.py.
|
||||||
|
Per case: image-token count + prompt ids, vision tower / projector max abs diff (on the reference's
|
||||||
|
own pixel_values), first-token top-20 logprobs, 64 greedy tokens (first divergence + top-2 margin
|
||||||
|
of the reference there).
|
||||||
|
|
||||||
|
python3 check_vl.py MODEL_DIR IMAGES_DIR REF.pt OUT.json [extra LLM kwargs as JSON]
|
||||||
|
"""
|
||||||
|
import json, os, sys
|
||||||
|
import torch
|
||||||
|
from PIL import Image
|
||||||
|
from vllm import LLM, SamplingParams
|
||||||
|
|
||||||
|
os.environ.setdefault("VLLM_ALLOW_INSECURE_SERIALIZATION", "1")
|
||||||
|
def main():
|
||||||
|
model_dir, img_dir, ref_path, out = sys.argv[1:5]
|
||||||
|
extra = json.loads(sys.argv[5]) if len(sys.argv) > 5 else {}
|
||||||
|
ref = torch.load(ref_path, weights_only=False)
|
||||||
|
FILES = {"photo": "photo.jpeg", "screenshot": "screenshot.png", "small": "small.png", "wide": "wide_strip.png"}
|
||||||
|
|
||||||
|
llm = LLM(model=model_dir, dtype="bfloat16", max_model_len=8192, gpu_memory_utilization=0.4,
|
||||||
|
limit_mm_per_prompt={"image": 4}, **{"enforce_eager": True, **extra})
|
||||||
|
sp = SamplingParams(max_tokens=64, temperature=0.0, logprobs=20, repetition_penalty=1.0)
|
||||||
|
|
||||||
|
|
||||||
|
def encoder_outputs(llm, pv, grid):
|
||||||
|
def run(model):
|
||||||
|
dev = next(model.parameters()).device
|
||||||
|
with torch.no_grad():
|
||||||
|
vis = model.vision_tower(pv.to(dev), grid.tolist())
|
||||||
|
proj = model.multi_modal_projector(vis)
|
||||||
|
path = "/tmp/lfm3_vl_enc.pt" # the worker shares the container's /tmp
|
||||||
|
torch.save((vis.float().cpu(), proj.float().cpu()), path)
|
||||||
|
return path
|
||||||
|
# tensors don't survive the RPC's msgpack serialization intact: hand them over as a file
|
||||||
|
return torch.load(llm.apply_model(run)[0])
|
||||||
|
|
||||||
|
|
||||||
|
report = {}
|
||||||
|
for name, r in ref.items():
|
||||||
|
mm = {"image": Image.open(f"{img_dir}/{FILES[name]}").convert("RGB")} if name in FILES else None
|
||||||
|
prompt = {"prompt": r["text"], **({"multi_modal_data": mm} if mm else {})}
|
||||||
|
o = llm.generate([prompt], sp)[0]
|
||||||
|
ids = list(o.prompt_token_ids)
|
||||||
|
ref_ids = r["input_ids"].tolist()
|
||||||
|
rep = {"prompt_ids_equal": ids == ref_ids, "n_image_tokens": ids.count(125030),
|
||||||
|
"ref_n_image_tokens": ref_ids.count(125030), "prompt_len": len(ids)}
|
||||||
|
if mm:
|
||||||
|
vis, proj = encoder_outputs(llm, r["pixel_values"], r["image_grid_thw"])
|
||||||
|
for key, mine, theirs in (("vision", vis, r["vision_out"]), ("projector", proj, r["proj_out"])):
|
||||||
|
d = (mine - theirs.float()).abs()
|
||||||
|
rep[f"{key}_max_abs_diff"] = float(d.max())
|
||||||
|
rep[f"{key}_mean_abs_diff"] = float(d.mean())
|
||||||
|
rep[f"{key}_ref_absmax"] = float(theirs.abs().max())
|
||||||
|
rep[f"{key}_cos_min"] = float(torch.nn.functional.cosine_similarity(mine, theirs.float(), dim=-1).min())
|
||||||
|
# first-token top-20 logprobs vs reference
|
||||||
|
first = o.outputs[0].logprobs[0]
|
||||||
|
top_vals, top_ids = r["first_top20"]
|
||||||
|
diffs = [abs(first[t].logprob - v) for t, v in zip(top_ids.tolist(), top_vals.tolist()) if t in first]
|
||||||
|
rep["first_tok_top20_overlap"] = len(diffs)
|
||||||
|
rep["first_tok_logprob_max_abs_diff"] = max(diffs) if diffs else None
|
||||||
|
gen = list(o.outputs[0].token_ids)
|
||||||
|
ref_gen = r["gen_ids"].tolist()
|
||||||
|
div = next((i for i, (a, b) in enumerate(zip(gen, ref_gen)) if a != b), None)
|
||||||
|
rep["greedy_identical"] = gen == ref_gen
|
||||||
|
rep["first_divergence"] = div
|
||||||
|
if div is not None:
|
||||||
|
lp = o.outputs[0].logprobs[div]
|
||||||
|
top2 = sorted(lp.values(), key=lambda x: -x.logprob)[:2]
|
||||||
|
rep["vllm_top2_margin_at_div"] = top2[0].logprob - top2[1].logprob
|
||||||
|
rep["text"] = o.outputs[0].text
|
||||||
|
rep["ref_text"] = r["gen_text"]
|
||||||
|
report[name] = rep
|
||||||
|
print(name, json.dumps({k: v for k, v in rep.items() if "text" not in k}), flush=True)
|
||||||
|
|
||||||
|
# mixed-size batch through the encoder (varlen attention, per-frame conv) == one image at a time
|
||||||
|
names = [n for n in ref if "pixel_values" in ref[n]]
|
||||||
|
pv = torch.cat([ref[n]["pixel_values"] for n in names])
|
||||||
|
grid = torch.cat([ref[n]["image_grid_thw"] for n in names])
|
||||||
|
_, proj_batch = encoder_outputs(llm, pv, grid)
|
||||||
|
singles = torch.cat([encoder_outputs(llm, ref[n]["pixel_values"], ref[n]["image_grid_thw"])[1] for n in names])
|
||||||
|
report["batched_vs_single_projector_max_abs_diff"] = float((proj_batch - singles).abs().max())
|
||||||
|
cos = torch.nn.functional.cosine_similarity(proj_batch, singles, dim=-1)
|
||||||
|
sizes = [int(ref[n]["image_grid_thw"].prod()) // 4 for n in names]
|
||||||
|
report["batched_vs_single_per_image"] = {
|
||||||
|
n: {"cos_min": float(c.min()), "cos_mean": float(c.mean())} for n, c in zip(names, cos.split(sizes))}
|
||||||
|
print("batched vs single:", report["batched_vs_single_projector_max_abs_diff"],
|
||||||
|
report["batched_vs_single_per_image"], flush=True)
|
||||||
|
json.dump(report, open(out, "w"), indent=1, ensure_ascii=False)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""Image cost split: CPU preprocessing (Liquid's processor, vendored) and XPU vision tower + projector
|
||||||
|
(our plugin inside a vLLM engine, via LLM.apply_model, synchronized), per image size.
|
||||||
|
|
||||||
|
python3 encoder_timing.py MODEL_DIR IMAGE OUT.json
|
||||||
|
"""
|
||||||
|
import json, statistics, sys, time
|
||||||
|
import torch
|
||||||
|
from PIL import Image
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
from vllm import LLM
|
||||||
|
from transformers import AutoProcessor
|
||||||
|
import vllm_lfm3
|
||||||
|
|
||||||
|
model_dir, image, out = sys.argv[1:4]
|
||||||
|
vllm_lfm3.register()
|
||||||
|
proc = AutoProcessor.from_pretrained(model_dir)
|
||||||
|
src = Image.open(image).convert("RGB")
|
||||||
|
sizes = {"512x512": (512, 512), "1024x768": (1024, 768), "1024x1024": (1024, 1024),
|
||||||
|
"1920x1080": (1920, 1080), "2048x2048": (2048, 2048)}
|
||||||
|
llm = LLM(model=model_dir, dtype="bfloat16", max_model_len=8192, gpu_memory_utilization=0.4,
|
||||||
|
limit_mm_per_prompt={"image": 4}, enforce_eager=True)
|
||||||
|
res = {}
|
||||||
|
for name, size in sizes.items():
|
||||||
|
im = src.resize(size, Image.BICUBIC)
|
||||||
|
cpu = []
|
||||||
|
for _ in range(5):
|
||||||
|
t0 = time.perf_counter()
|
||||||
|
x = proc.image_processor(images=[im], return_tensors="pt")
|
||||||
|
cpu.append((time.perf_counter() - t0) * 1000)
|
||||||
|
pv, grid = x["pixel_values"], x["image_grid_thw"]
|
||||||
|
|
||||||
|
def run(model, pv=pv, grid=grid):
|
||||||
|
dev = next(model.parameters()).device
|
||||||
|
pv_d = pv.to(dev)
|
||||||
|
times = []
|
||||||
|
for i in range(8):
|
||||||
|
torch.xpu.synchronize(); t0 = time.perf_counter()
|
||||||
|
with torch.no_grad():
|
||||||
|
model.multi_modal_projector(model.vision_tower(pv_d, grid.tolist()))
|
||||||
|
torch.xpu.synchronize(); times.append((time.perf_counter() - t0) * 1000)
|
||||||
|
return times[2:] # first runs warm up kernels for this shape
|
||||||
|
|
||||||
|
gpu = llm.apply_model(run)[0]
|
||||||
|
res[name] = {"image_tokens": int(grid.prod()) // 4, "patches": int(grid.prod()),
|
||||||
|
"preprocess_cpu_ms": round(statistics.median(cpu), 1),
|
||||||
|
"encoder_xpu_ms": round(statistics.median(gpu), 1)}
|
||||||
|
print(name, res[name], flush=True)
|
||||||
|
json.dump(res, open(out, "w"), indent=1)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""TTFT of a chat request with one ~1024px image vs a text-only request of the same prompt length,
|
||||||
|
streaming, max_tokens 1, sequential. Each image request carries a freshly perturbed image (one pixel
|
||||||
|
changed, base64 PNG data URL as Open WebUI sends it) and each text request a fresh random prefix, so
|
||||||
|
neither vLLM's multimodal cache nor its prefix cache can hit. TTFT(image) - TTFT(text) = image cost
|
||||||
|
(decode base64 + preprocessing + vision encoder + projector).
|
||||||
|
|
||||||
|
python3 tests/vl/image_ttft.py PORT OUT.json [REPS=10]
|
||||||
|
Needs Pillow: run with a python that has it (e.g. the vLLM image).
|
||||||
|
"""
|
||||||
|
import base64, io, json, random, statistics, sys, time, urllib.request
|
||||||
|
from PIL import Image
|
||||||
|
|
||||||
|
port, out = int(sys.argv[1]), sys.argv[2]
|
||||||
|
reps = int(sys.argv[3]) if len(sys.argv) > 3 else 10
|
||||||
|
URL = f"http://127.0.0.1:{port}/v1/chat/completions"
|
||||||
|
rng = random.Random(0)
|
||||||
|
|
||||||
|
src = Image.open("tests/vl/images/photo.jpeg").convert("RGB")
|
||||||
|
SIZES = {"1024x768": (1024, 768), "1024x1024": (1024, 1024)}
|
||||||
|
|
||||||
|
|
||||||
|
def ttft(content):
|
||||||
|
body = {"model": "lfm3-vl-2b", "messages": [{"role": "user", "content": content}], "max_tokens": 1,
|
||||||
|
"stream": True, "stream_options": {"include_usage": True}, "temperature": 0.0}
|
||||||
|
req = urllib.request.Request(URL, json.dumps(body).encode(), {"Content-Type": "application/json"})
|
||||||
|
t0 = time.perf_counter(); first = None; usage = None
|
||||||
|
with urllib.request.urlopen(req, timeout=300) as r:
|
||||||
|
for line in r:
|
||||||
|
line = line.decode().strip()
|
||||||
|
if not line.startswith("data:") or line == "data: [DONE]":
|
||||||
|
continue
|
||||||
|
d = json.loads(line[5:])
|
||||||
|
if first is None and d.get("choices"):
|
||||||
|
first = time.perf_counter() - t0
|
||||||
|
usage = d.get("usage") or usage
|
||||||
|
return first * 1000, usage["prompt_tokens"]
|
||||||
|
|
||||||
|
|
||||||
|
def image_content(size):
|
||||||
|
im = src.resize(size, Image.BICUBIC)
|
||||||
|
im.putpixel((rng.randrange(size[0]), rng.randrange(size[1])), tuple(rng.randrange(256) for _ in range(3)))
|
||||||
|
buf = io.BytesIO(); im.save(buf, "PNG")
|
||||||
|
url = "data:image/png;base64," + base64.b64encode(buf.getvalue()).decode()
|
||||||
|
return [{"type": "image_url", "image_url": {"url": url}}, {"type": "text", "text": "Describe this image."}], len(url)
|
||||||
|
|
||||||
|
|
||||||
|
WORDS = "alpha bravo charlie delta echo foxtrot golf hotel india juliet kilo lima mike november oscar papa".split()
|
||||||
|
|
||||||
|
|
||||||
|
def text_content(n_tokens):
|
||||||
|
# ~1 token per word for these words; fresh random words → no prefix-cache hit
|
||||||
|
return " ".join(rng.choice(WORDS) for _ in range(n_tokens)) + "\n\nDescribe this text."
|
||||||
|
|
||||||
|
|
||||||
|
res = {}
|
||||||
|
ttft(image_content((640, 480))[0]); ttft("warmup") # warm both paths
|
||||||
|
for name, size in SIZES.items():
|
||||||
|
img_ms, txt_ms = [], []
|
||||||
|
for _ in range(reps):
|
||||||
|
content, b64_len = image_content(size)
|
||||||
|
ms, img_prompt = ttft(content); img_ms.append(ms)
|
||||||
|
# text prompt of about the same length (calibrate once)
|
||||||
|
n = img_prompt
|
||||||
|
for _ in range(3):
|
||||||
|
_, got = ttft(text_content(n)); n += img_prompt - got
|
||||||
|
for _ in range(reps):
|
||||||
|
ms, txt_prompt = ttft(text_content(n)); txt_ms.append(ms)
|
||||||
|
med_i, med_t = statistics.median(img_ms), statistics.median(txt_ms)
|
||||||
|
res[name] = {"image_prompt_tokens": img_prompt, "text_prompt_tokens": txt_prompt, "base64_chars": b64_len,
|
||||||
|
"ttft_image_ms_median": round(med_i, 1), "ttft_image_ms_all": [round(x, 1) for x in img_ms],
|
||||||
|
"ttft_text_ms_median": round(med_t, 1), "ttft_text_ms_all": [round(x, 1) for x in txt_ms],
|
||||||
|
"image_cost_ms": round(med_i - med_t, 1)}
|
||||||
|
print(name, {k: v for k, v in res[name].items() if not k.endswith("_all")}, flush=True)
|
||||||
|
json.dump(res, open(out, "w"), indent=1)
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 121 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 157 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 141 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 61 KiB |
@@ -0,0 +1,18 @@
|
|||||||
|
"""Precision baseline: Liquid's vision tower + projector in BF16 (CPU) vs the fp32 reference outputs."""
|
||||||
|
import sys, torch
|
||||||
|
from transformers import AutoModelForImageTextToText
|
||||||
|
ref = torch.load(sys.argv[2], weights_only=False)
|
||||||
|
m = AutoModelForImageTextToText.from_pretrained(sys.argv[1], trust_remote_code=True, dtype=torch.bfloat16,
|
||||||
|
attn_implementation="sdpa").eval()
|
||||||
|
for name, r in ref.items():
|
||||||
|
if "pixel_values" not in r:
|
||||||
|
continue
|
||||||
|
with torch.no_grad():
|
||||||
|
vis = m.model.vision_tower(r["pixel_values"].bfloat16(), grid_thw=r["image_grid_thw"], return_dict=True).last_hidden_state
|
||||||
|
proj = m.model.multi_modal_projector(vis)
|
||||||
|
out = {}
|
||||||
|
for key, mine, theirs in (("vision", vis, r["vision_out"]), ("projector", proj, r["proj_out"])):
|
||||||
|
mine = mine.float()
|
||||||
|
out[f"{key}_max_abs_diff"] = round(float((mine - theirs).abs().max()), 4)
|
||||||
|
out[f"{key}_cos_min"] = round(float(torch.nn.functional.cosine_similarity(mine, theirs, dim=-1).min()), 4)
|
||||||
|
print(name, out, flush=True)
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""Transformers reference for LFM3-VL (Liquid's remote code, trust_remote_code, CPU fp32, sdpa), no plugin.
|
||||||
|
Per case: prompt ids, pixel_values, grid, vision-tower output, projector output, top-20 logprobs of
|
||||||
|
the first generated token, 64 greedy tokens (no repetition penalty).
|
||||||
|
|
||||||
|
python3 ref_vl.py MODEL_DIR IMAGES_DIR OUT.pt
|
||||||
|
"""
|
||||||
|
import sys, time
|
||||||
|
import torch
|
||||||
|
from PIL import Image
|
||||||
|
from transformers import AutoModelForImageTextToText, AutoProcessor
|
||||||
|
|
||||||
|
model_dir, img_dir, out = sys.argv[1:4]
|
||||||
|
torch.manual_seed(0)
|
||||||
|
CASES = {
|
||||||
|
"photo": ("photo.jpeg", "Describe this image in detail."),
|
||||||
|
"screenshot": ("screenshot.png", "What does this screenshot show? Read the column headers of the table."),
|
||||||
|
"small": ("small.png", "What is in this image?"),
|
||||||
|
"wide": ("wide_strip.png", "Transcribe the text in this image."),
|
||||||
|
"text_only": (None, "What is the capital of Australia? Answer in one sentence."),
|
||||||
|
}
|
||||||
|
|
||||||
|
proc = AutoProcessor.from_pretrained(model_dir, trust_remote_code=True)
|
||||||
|
model = AutoModelForImageTextToText.from_pretrained(
|
||||||
|
model_dir, trust_remote_code=True, dtype=torch.float32, attn_implementation="sdpa").eval()
|
||||||
|
print(type(model).__module__, flush=True)
|
||||||
|
|
||||||
|
res = {}
|
||||||
|
for name, (img_file, question) in CASES.items():
|
||||||
|
t0 = time.time()
|
||||||
|
content = ([{"type": "image"}] if img_file else []) + [{"type": "text", "text": question}]
|
||||||
|
text = proc.apply_chat_template([{"role": "user", "content": content}], add_generation_prompt=True, tokenize=False)
|
||||||
|
images = [Image.open(f"{img_dir}/{img_file}").convert("RGB")] if img_file else None
|
||||||
|
inputs = proc(text=text, images=images, return_tensors="pt")
|
||||||
|
r = {"text": text, "input_ids": inputs["input_ids"][0], "image_size": images[0].size if images else None}
|
||||||
|
with torch.no_grad():
|
||||||
|
if images:
|
||||||
|
r["pixel_values"], r["image_grid_thw"] = inputs["pixel_values"], inputs["image_grid_thw"]
|
||||||
|
vis = model.model.vision_tower(inputs["pixel_values"], grid_thw=inputs["image_grid_thw"], return_dict=True)
|
||||||
|
r["vision_out"] = vis.last_hidden_state
|
||||||
|
r["proj_out"] = model.model.multi_modal_projector(vis.last_hidden_state)
|
||||||
|
logits = model(**inputs).logits[0, -1].float()
|
||||||
|
lp = torch.log_softmax(logits, -1)
|
||||||
|
r["first_top20"] = lp.topk(20)
|
||||||
|
gen = model.generate(**inputs, max_new_tokens=64, do_sample=False, repetition_penalty=1.0)
|
||||||
|
r["gen_ids"] = gen[0, inputs["input_ids"].shape[1]:]
|
||||||
|
r["gen_text"] = proc.decode(r["gen_ids"])
|
||||||
|
res[name] = r
|
||||||
|
print(f"{name}: {r['image_size']} grid {r.get('image_grid_thw', torch.zeros(1)).tolist()} "
|
||||||
|
f"prompt {len(r['input_ids'])} tok, {time.time() - t0:.0f}s\n {r['gen_text']!r}", flush=True)
|
||||||
|
torch.save(res, out)
|
||||||
Executable
+42
@@ -0,0 +1,42 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Serve LFM3-VL-2B on a test port, wait until ready, record startup time + VRAM.
|
||||||
|
# tests/vl/serve_vl.sh NAME [--fresh] [extra vllm args...]
|
||||||
|
# Container lfm3-vl-NAME on 127.0.0.1:${PORT:-8002}; image ${IMAGE:-lfm3-vllm-xpu:v0.32.0-lfm3-vl};
|
||||||
|
# model mounted read-only from /mnt/model-library; compile cache ./.cache/vl-NAME. GPU share ${GPU_UTIL:-0.4}
|
||||||
|
# (the daily lfm3 in llama-swap keeps its 0.5). Log: logs/vl_serve_NAME.log. Stop: docker stop lfm3-vl-NAME
|
||||||
|
set -euo pipefail
|
||||||
|
cd "$(dirname "$0")/../.."
|
||||||
|
NAME=$1; shift
|
||||||
|
PORT=${PORT:-8002}
|
||||||
|
IMAGE=${IMAGE:-lfm3-vllm-xpu:v0.32.0-lfm3-vl}
|
||||||
|
MODEL=${MODEL:-/mnt/model-library/LiquidAI/LFM3-VL-2B}
|
||||||
|
CACHE=$PWD/.cache/vl-$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-vl-$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 "$MODEL":/model:ro \
|
||||||
|
-v "$CACHE":/root/.cache/vllm \
|
||||||
|
-e HF_HUB_OFFLINE=1 -e TRANSFORMERS_OFFLINE=1 ${DOCKER_ENV:-} \
|
||||||
|
"$IMAGE" /model --host=0.0.0.0 --port=8000 --served-model-name=lfm3-vl-2b \
|
||||||
|
--gpu-memory-utilization=${GPU_UTIL:-0.4} --dtype=bfloat16 --max-model-len=32768 \
|
||||||
|
--limit-mm-per-prompt='{"image": 4}' \
|
||||||
|
--reasoning-parser=qwen3 --enable-auto-tool-choice --tool-call-parser=qwen3_coder \
|
||||||
|
"$@" >/dev/null
|
||||||
|
docker logs -f "lfm3-vl-$NAME" > "logs/vl_serve_$NAME.log" 2>&1 &
|
||||||
|
until curl -sf "127.0.0.1:${PORT}/v1/models" >/dev/null; do
|
||||||
|
if ! docker inspect "lfm3-vl-$NAME" >/dev/null 2>&1; then
|
||||||
|
echo "$NAME: container exited during startup (see logs/vl_serve_$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\tvl-%s\t%.0f\t%s\t%s\n' "$(date +%FT%T)" "$NAME" "$t" "$vram" "$*" >> results/variants_startup.tsv
|
||||||
|
echo "$NAME ready in ${t%.*} s, GPU memory used (whole card) ${vram} MiB"
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
import sys
|
||||||
|
from PIL import Image
|
||||||
|
from vllm import LLM, SamplingParams
|
||||||
|
|
||||||
|
def main():
|
||||||
|
llm = LLM(model="/vl", dtype="bfloat16", max_model_len=8192, gpu_memory_utilization=0.4,
|
||||||
|
limit_mm_per_prompt={"image": 4}, enforce_eager=True)
|
||||||
|
msgs = [{"role": "user", "content": [{"type": "image_pil", "image_pil": Image.open("/tests/vl/images/photo.jpeg").convert("RGB")},
|
||||||
|
{"type": "text", "text": "What newspaper is this?"}]}]
|
||||||
|
o = llm.chat(msgs, SamplingParams(max_tokens=80, temperature=0.0))[0]
|
||||||
|
print("PROMPT_LEN", len(o.prompt_token_ids), "IMG_TOK", o.prompt_token_ids.count(125030))
|
||||||
|
print("OUT", repr(o.outputs[0].text))
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
# Full-page PNG of a local HTML file: python screenshot.py IN.html OUT.png [width]
|
||||||
|
import sys
|
||||||
|
from playwright.sync_api import sync_playwright
|
||||||
|
src, out = sys.argv[1], sys.argv[2]
|
||||||
|
width = int(sys.argv[3]) if len(sys.argv) > 3 else 1280
|
||||||
|
with sync_playwright() as p:
|
||||||
|
b = p.chromium.launch()
|
||||||
|
pg = b.new_page(viewport={"width": width, "height": 900}, device_scale_factor=1.5)
|
||||||
|
pg.goto("file://" + src); pg.wait_for_timeout(1500)
|
||||||
|
pg.screenshot(path=out, full_page=True)
|
||||||
|
b.close()
|
||||||
Reference in new issue
Block a user