Release 0.16.0: new look, search, remove files, easier deploy
Release / release (push) Successful in 4m33s

- Dot-matrix "Creation of Adam" page banners behind a floating menu,
  glass cards and tables, library header with live stats, table toolbar
  with pagination, Cmd/Ctrl+K search across models, endpoints, runs,
  tags, settings and actions.
- Remove single files from a model (selection + disk, via a worker job).
- Containers start as root to prepare folders and drop to PUID:PGID;
  AUTH_SECRET is generated when unset; sandbox runs as nobody;
  KANAME_IMAGE and image docs in the README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-10-30 14:06:46 +01:00
1 parent c6bcb514e6
commit 5becfc47a0
53 files changed
+1869 -468

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ export function AbReport({ run }: { run: ListRow }) {
const same = rows.filter((x) => x.va === x.vb);
return (
<article className="flex flex-col gap-8 rounded-2xl bg-card px-5 py-6 ring-1 ring-foreground/10 sm:px-8 sm:py-8">
<article className="flex flex-col gap-8 rounded-2xl bg-card/55 px-5 py-6 ring-1 ring-foreground/10 backdrop-blur-md sm:px-8 sm:py-8">
<header className="flex flex-col gap-3">
<span className="font-mono text-[11px] tracking-wider text-muted-foreground uppercase">
BetterBench {ab.betterbenchVersion} · paired A/B · {ab.pairs} pairs
+161 -130
View File
@@ -31,10 +31,23 @@ import { Button, buttonVariants } from "@/components/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { Input } from "@/components/ui/input";
import { reportSummary, weightsLabel } from "@/lib/benchmark-report";
import { CONFIG_ROWS, describeSettings, engineName, isEndpointSnapshot, modelName, targetName } from "@/lib/benchmark-view";
import {
CONFIG_ROWS,
describeSettings,
engineName,
isEndpointSnapshot,
modelName,
targetName,
} from "@/lib/benchmark-view";
import type { ListRow } from "../benchmark-list";
import { PageHero } from "@/components/hero/page-hero";
import { RunMetaCard } from "@/components/run-meta";
import { cancelBenchmark, deleteBenchmark, describeBenchmark, renameBenchmark } from "../actions";
import {
cancelBenchmark,
deleteBenchmark,
describeBenchmark,
renameBenchmark,
} from "../actions";
import { AbReport } from "./ab-report";
import { QualityReport } from "./quality-report";
import { BenchmarkReport } from "./benchmark-report";
@@ -104,7 +117,9 @@ export function BenchmarkDetail({ initial }: { initial: ListRow }) {
// Runs from before 0.15 measured a deployment (gone now); newer ones an endpoint.
const legacy = !isEndpointSnapshot(s);
const endpointLink = (id: string | null, name: string) =>
legacy ? name : id ? (
legacy ? (
name
) : id ? (
<Link href={`/endpoints/${id}`} className="hover:underline">
{name}
</Link>
@@ -114,136 +129,141 @@ export function BenchmarkDetail({ initial }: { initial: ListRow }) {
const took = duration(r.startedAt, r.finishedAt, now);
return (
<div className="flex flex-col gap-4">
<Card>
<CardContent className="flex flex-wrap items-start justify-between gap-4">
<div className="flex min-w-0 flex-col gap-1">
<div className="flex flex-wrap items-center gap-2">
<h1 className="text-xl font-semibold">
{r.label ?? (r.kind === "ab" && sB ? `${targetName(s)} vs ${targetName(sB)}` : targetName(s))}
</h1>
{r.kind === "ab" && (
<span className="rounded-md border px-1.5 text-xs text-muted-foreground">
A/B
</span>
)}
<BenchmarkStateBadge
state={r.state}
cancelling={!!r.cancelRequestedAt}
/>
</div>
<p className="text-sm text-muted-foreground">
{endpointLink(r.endpointId, targetName(s))} ·{" "}
{r.modelId ? (
<Link href={`/models/${r.modelId}`} className="hover:underline">
{modelName(s)}
</Link>
) : (
modelName(s)
)}{" "}
· {engineName(s)}
{r.kind === "ab" && sB && (
<>
{" "}
· B: {endpointLink(r.endpointBId, targetName(sB))} ({engineName(sB)})
</>
)}
</p>
<p className="text-xs text-muted-foreground">
{r.kind === "eval" ? "Kaname" : "BetterBench"} ·{" "}
{r.kind === "ab"
? `paired A/B, target ±${r.settings.mdePct ?? 1}%, up to ${r.settings.maxPairs ?? 200} pairs`
: describeSettings(r.settings)}{" "}
· created <LocalTime value={r.createdAt} />
{took &&
` · ${r.state === "running" ? "running for" : "took"} ${took}`}
</p>
</div>
<div className="flex flex-wrap items-center gap-2">
{r.hasReport && (
<a
href={`/api/benchmarks/${r.id}/report`}
target="_blank"
rel="noreferrer"
className={buttonVariants({ variant: "outline" })}
>
<ExternalLinkIcon />
Full report
</a>
<PageHero
painting={{ view: 0.6, focus: [0.25, 0.6], anchor: [0.65, 0.4] }}
title={
<span className="flex flex-wrap items-center gap-2">
{r.label ??
(r.kind === "ab" && sB
? `${targetName(s)} vs ${targetName(sB)}`
: targetName(s))}
{r.kind === "ab" && (
<span className="rounded-md border px-1.5 text-xs font-normal text-muted-foreground">
A/B
</span>
)}
<BenchmarkStateBadge
state={r.state}
cancelling={!!r.cancelRequestedAt}
/>
</span>
}
description={
<div className="flex flex-col gap-0.5">
<p>
{endpointLink(r.endpointId, targetName(s))} ·{" "}
{r.modelId ? (
<Link href={`/models/${r.modelId}`} className="hover:underline">
{modelName(s)}
</Link>
) : (
modelName(s)
)}{" "}
· {engineName(s)}
{r.kind === "ab" && sB && (
<>
{" "}
· B: {endpointLink(r.endpointBId, targetName(sB))} (
{engineName(sB)})
</>
)}
{r.state === "completed" && (
<a
href={`/api/benchmarks/${r.id}/results`}
className={buttonVariants({ variant: "outline" })}
>
<DownloadIcon />
{r.kind === "ab" ? "ab.json" : "results.json"}
</a>
)}
{active ? (
</p>
<p className="text-xs text-muted-foreground">
{r.kind === "eval" ? "Kaname" : "BetterBench"} ·{" "}
{r.kind === "ab"
? `paired A/B, target ±${r.settings.mdePct ?? 1}%, up to ${r.settings.maxPairs ?? 200} pairs`
: describeSettings(r.settings)}{" "}
· created <LocalTime value={r.createdAt} />
{took &&
` · ${r.state === "running" ? "running for" : "took"} ${took}`}
</p>
</div>
}
actions={
<>
{r.hasReport && (
<a
href={`/api/benchmarks/${r.id}/report`}
target="_blank"
rel="noreferrer"
className={buttonVariants({ variant: "outline" })}
>
<ExternalLinkIcon />
Full report
</a>
)}
{r.state === "completed" && (
<a
href={`/api/benchmarks/${r.id}/results`}
className={buttonVariants({ variant: "outline" })}
>
<DownloadIcon />
{r.kind === "ab" ? "ab.json" : "results.json"}
</a>
)}
{active ? (
<Button
variant="outline"
disabled={!!r.cancelRequestedAt}
onClick={async () =>
(await cancelBenchmark(r.id)) && router.refresh()
}
>
<SquareIcon />
Cancel
</Button>
) : (
r.endpointId &&
(r.kind !== "ab" || r.endpointBId) && (
<Button
variant="outline"
disabled={!!r.cancelRequestedAt}
onClick={async () =>
(await cancelBenchmark(r.id)) && router.refresh()
}
onClick={again}
title="Queue a new run with the same settings against the same endpoint"
>
<SquareIcon />
Cancel
<RotateCcwIcon />
Run again
</Button>
) : (
r.endpointId &&
(r.kind !== "ab" || r.endpointBId) && (
)
)}
<AlertDialog>
<AlertDialogTrigger
render={
<Button
variant="outline"
onClick={again}
title="Queue a new run with the same settings against the same endpoint"
disabled={r.state === "running"}
className="text-destructive hover:bg-destructive/10 hover:text-destructive"
/>
}
>
<Trash2Icon />
Delete
</AlertDialogTrigger>
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>Delete this benchmark?</AlertDialogTitle>
<AlertDialogDescription>
Its numbers, log, results.json and HTML report are removed.
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction
variant="destructive"
onClick={async () => {
if (await deleteBenchmark(r.id)) {
router.push("/benchmarks");
router.refresh();
}
}}
>
<RotateCcwIcon />
Run again
</Button>
)
)}
<AlertDialog>
<AlertDialogTrigger
render={
<Button
variant="outline"
disabled={r.state === "running"}
className="text-destructive hover:bg-destructive/10 hover:text-destructive"
/>
}
>
<Trash2Icon />
Delete
</AlertDialogTrigger>
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>Delete this benchmark?</AlertDialogTitle>
<AlertDialogDescription>
Its numbers, log, results.json and HTML report are removed.
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction
variant="destructive"
onClick={async () => {
if (await deleteBenchmark(r.id)) {
router.push("/benchmarks");
router.refresh();
}
}}
>
Delete
</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
</div>
</CardContent>
</Card>
Delete
</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
</>
}
>
{r.error && (
<div className="flex gap-3 rounded-xl border border-destructive/30 bg-destructive/10 px-4 py-3 text-sm">
<TriangleAlertIcon className="mt-0.5 size-4 shrink-0 text-destructive" />
@@ -263,7 +283,13 @@ export function BenchmarkDetail({ initial }: { initial: ListRow }) {
<div className="grid items-start gap-4 lg:grid-cols-[minmax(0,1fr)_340px]">
<div className="flex min-w-0 flex-col gap-4">
{r.kind === "ab" ? <AbReport run={r} /> : r.kind === "eval" ? <QualityReport quality={r.quality} running={active} /> : <BenchmarkReport run={r} />}
{r.kind === "ab" ? (
<AbReport run={r} />
) : r.kind === "eval" ? (
<QualityReport quality={r.quality} running={active} />
) : (
<BenchmarkReport run={r} />
)}
<LiveLog
url={`/api/benchmarks/${r.id}/logs`}
title="BetterBench output"
@@ -275,7 +301,9 @@ export function BenchmarkDetail({ initial }: { initial: ListRow }) {
{r.kind === "run" && r.state === "completed" && r.summary && (
<PublishCard
runId={r.id}
defaultTitle={r.label ?? `${modelName(s).split("/").pop()} ${weightsLabel(s)}`}
defaultTitle={
r.label ?? `${modelName(s).split("/").pop()} ${weightsLabel(s)}`
}
defaultSummary={reportSummary(r)}
/>
)}
@@ -319,7 +347,8 @@ export function BenchmarkDetail({ initial }: { initial: ListRow }) {
}
/>
<p className="text-[11px] text-muted-foreground">
Passed to BetterBench (when set before the run starts) and to the launch80 preview, together with the system summary.
Passed to BetterBench (when set before the run starts) and to
the launch80 preview, together with the system summary.
</p>
</CardContent>
</Card>
@@ -353,7 +382,9 @@ export function BenchmarkDetail({ initial }: { initial: ListRow }) {
</div>
)}
{isEndpointSnapshot(s) && s.hardware.description && (
<p className="text-xs whitespace-pre-wrap text-muted-foreground">{s.hardware.description}</p>
<p className="text-xs whitespace-pre-wrap text-muted-foreground">
{s.hardware.description}
</p>
)}
{sum && (
<p className="text-[11px] text-muted-foreground">
@@ -366,6 +397,6 @@ export function BenchmarkDetail({ initial }: { initial: ListRow }) {
)}
</aside>
</div>
</div>
</PageHero>
);
}
@@ -72,7 +72,7 @@ export function BenchmarkReport({ run }: { run: ListRow }) {
].filter(Boolean) as string[];
return (
<article className="flex flex-col gap-8 rounded-2xl bg-card px-5 py-6 ring-1 ring-foreground/10 sm:px-8 sm:py-8">
<article className="flex flex-col gap-8 rounded-2xl bg-card/55 px-5 py-6 ring-1 ring-foreground/10 backdrop-blur-md sm:px-8 sm:py-8">
<header className="flex flex-col gap-3">
<span className="font-mono text-[11px] tracking-wider text-muted-foreground uppercase">
BetterBench {sum.betterbenchVersion} · {date(sum.timestamp ?? run.startedAt)}