Benchmarks with BetterBench, launch80-style reports and publishing, GPU support
- Benchmarks: BetterBench 0.6.1 (pinned by checksum) runs against a running deployment, one at a time; quick/full/custom passes, phase selection, live step and output, cancel, run again, compare runs side by side. - Report page after launch80's bench.betterbench.v1: headline tiles, "Read these first" caveats (quick, sample gate, max_tokens truncation, batched streams, failures, skipped depths, prefix-cache hits), charts, full tables with daggered under-sampled cells, method text. All figures come from BetterBench's own report functions. - Publish to launch80 as a double opt-in: L80 dry run builds the exact payload for inspection, an explicit confirmation publishes that file (L80 CLI 0.4.0 pinned by checksum, L80_TOKEN worker-only). Endpoint and host never leave. - GPUs: runtime accelerator (CPU, NVIDIA, /dev/dri, ROCm) with presets for the official CUDA/Vulkan/Intel/ROCm builds; NVIDIA GPUs probed via nvidia-smi in a short-lived container; per-deployment GPU picking, -ngl, split mode, tensor split, MoE offload, vLLM tensor parallel and GPU memory share. - llama.cpp --cache-ram option (1 GiB for new deployments) and a memory estimate that counts it and the KV cache: the 8 GiB default made containers thrash at their memory limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f0b4adda63
commit
9e167a44f6
61 files changed
+9898
-194
No files matched your search
@@ -0,0 +1,48 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { describe, it } from "node:test";
|
||||
import { configChips, deltaPct, describeSettings, headline } from "./benchmark-view";
|
||||
import type { BenchmarkSnapshot, BenchmarkSummary } from "./db/schema";
|
||||
|
||||
const summary: BenchmarkSummary = {
|
||||
combined: { decode: 42.5, ttft_p50: 180, itl_low1: null, update_p50: null, update_p99: null },
|
||||
single: [],
|
||||
prefill: [
|
||||
{ target_depth: 2048, skipped: false, pp_med: 900 },
|
||||
{ target_depth: 8192, skipped: false, pp_med: 700 },
|
||||
{ target_depth: 65536, skipped: true },
|
||||
],
|
||||
concurrency: [
|
||||
{ level: 1, ok: 48, requests: 48, aggregate_tps: 40, ttft_p50: 100, ttft_p99: 200, decode_med: 40 },
|
||||
{ level: 4, ok: 48, requests: 48, aggregate_tps: 95, ttft_p50: 300, ttft_p99: 900, decode_med: 25 },
|
||||
{ level: 8, ok: 48, requests: 48, aggregate_tps: 90, ttft_p50: 700, ttft_p99: 2000, decode_med: 12 },
|
||||
],
|
||||
phases: ["decode", "prefill", "concurrency"],
|
||||
cacheHits: 0,
|
||||
betterbenchVersion: "0.6.1",
|
||||
corpusVersion: "1.0",
|
||||
passes: 20,
|
||||
quick: false,
|
||||
};
|
||||
|
||||
describe("benchmark view", () => {
|
||||
it("picks the headline numbers", () => {
|
||||
assert.deepEqual(headline(summary), { decode: 42.5, ttftMs: 180, prefill: { tps: 700, depth: 8192 }, peak: { tps: 95, level: 4 } });
|
||||
assert.deepEqual(headline(null), { decode: null, ttftMs: null, prefill: null, peak: null });
|
||||
});
|
||||
|
||||
it("lists set options as chips", () => {
|
||||
const snap = {
|
||||
options: { modelFile: "Qwen3-0.6B-Q4_K_M.gguf", contextSize: 4096, threads: 8, cacheTypeK: "q8_0", extraArgs: [] },
|
||||
cpus: 8,
|
||||
memoryMb: null,
|
||||
} as unknown as BenchmarkSnapshot;
|
||||
assert.deepEqual(configChips(snap), ["Q4_K_M", "context 4096", "threads 8", "kv cache k / v q8_0 / f16", "cpu limit 8 cores"]);
|
||||
});
|
||||
|
||||
it("describes settings and deltas", () => {
|
||||
assert.equal(describeSettings({ quick: true, passes: null, warmup: null, phases: [] }), "quick, 5 passes · all phases");
|
||||
assert.equal(describeSettings({ quick: false, passes: 10, warmup: null, phases: ["decode"] }), "10 passes · decode");
|
||||
assert.equal(deltaPct(110, 100), 10);
|
||||
assert.equal(deltaPct(null, 100), null);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user