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:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-10-10 20:54:38 +02:00
1 parent f0b4adda63
commit 9e167a44f6
61 files changed
+9898 -194

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
// Where benchmark files live. Shared by the worker (writes) and the web app (serves reports).
import { dirname, join, resolve } from "node:path";
import { coreEnv } from "@/lib/env";
/** BENCHMARKS_DIR, or "benchmarks" next to the SQLite file (e.g. /data/benchmarks). */
export function benchmarksDir(): string {
const env = coreEnv();
if (env.BENCHMARKS_DIR) return resolve(env.BENCHMARKS_DIR);
const db = env.DATABASE_URL.replace(/^file:/, "");
return resolve(dirname(db), "benchmarks");
}
/** Run ids are ULIDs; anything else never becomes a path. */
const RUN_ID_RE = /^[0-9A-HJKMNP-TV-Z]{26}$/;
export function runDir(runId: string): string {
if (!RUN_ID_RE.test(runId)) throw new Error("invalid run id");
return join(benchmarksDir(), runId);
}
export const RESULTS_FILE = "results.json";
export const REPORT_FILE = "results.html";