Release / release (push) Successful in 12m32s
Kaname keeps two jobs: the model downloader and benchmarks. Benchmarks now run against endpoints (any OpenAI-compatible server added by URL, with an optional server-side API key and hand-written hardware notes) instead of deployments Kaname started itself. Removed: runtimes, deployments, sweeps, resource telemetry, hardware detection, the /api/v1 API with tokens and guardrails, and all Docker access. The quality eval's coding tests run in a network-less sandbox container that shares only an exchange folder with the worker. The previous state is kept in branch backup / tag backup-0.14.3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
45 lines
1.6 KiB
TypeScript
45 lines
1.6 KiB
TypeScript
import type { Metadata } from "next";
|
|
import Link from "next/link";
|
|
import { listBenchmarks } from "@/lib/benchmarks";
|
|
import { getModel } from "@/lib/library";
|
|
import { BenchmarkList } from "./benchmark-list";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
export const metadata: Metadata = { title: "Benchmarks" };
|
|
|
|
export default async function BenchmarksPage({ searchParams }: PageProps<"/benchmarks">) {
|
|
const modelId = (await searchParams).model;
|
|
const model = typeof modelId === "string" ? await getModel(modelId) : null;
|
|
const rows = await listBenchmarks({ modelId: model?.model.id });
|
|
return (
|
|
<div className="flex flex-col gap-4">
|
|
<div className="flex flex-col gap-1">
|
|
<h1 className="text-xl font-semibold">Benchmarks</h1>
|
|
<p className="text-sm text-muted-foreground">
|
|
{model ? (
|
|
<>
|
|
Runs of{" "}
|
|
<Link href={`/${model.model.repoId}`} className="underline">
|
|
{model.model.repoId}
|
|
</Link>
|
|
.{" "}
|
|
<Link href="/benchmarks" className="underline">
|
|
Show all
|
|
</Link>
|
|
</>
|
|
) : (
|
|
<>
|
|
Speed (BetterBench), A/B and quality runs against your{" "}
|
|
<Link href="/endpoints" className="underline">
|
|
endpoints
|
|
</Link>
|
|
. Start one from an endpoint; select runs to compare their settings and numbers.
|
|
</>
|
|
)}
|
|
</p>
|
|
</div>
|
|
<BenchmarkList rows={JSON.parse(JSON.stringify(rows))} filter={{ model: model?.model.id }} />
|
|
</div>
|
|
);
|
|
}
|