Release / release (push) Successful in 3m25s
Every run records GPUs (PCIe link under load and maximum, ReBAR, P2P), runtime image/tag/digest and the engine version the server reports, model, quant, KV cache, context and concurrency, plus a whitelisted system summary and a description. Shown on the run page, compare and sweep views; passed to BetterBench as notes and to the launch80 preview as sections. Settings -> Hardware for manual values. Also: scripts/intel-probe.sh (read-only diagnostics for Intel hosts), and --quick is no longer passed together with --passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
53 lines
2.3 KiB
TypeScript
53 lines
2.3 KiB
TypeScript
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||
import { metaRows } from "@/lib/benchmark-meta";
|
||
import type { RunMeta, SystemSummary } from "@/lib/db/schema";
|
||
import { systemSummaryLines } from "@/lib/hardware";
|
||
|
||
/** Hardware, runtime and model a run measured (A and B side by side for an A/B), plus the system summary. */
|
||
export function RunMetaCard({ meta, metaB, system }: { meta: RunMeta | null; metaB?: RunMeta | null; system: SystemSummary | null }) {
|
||
if (!meta && !system) return null;
|
||
const a = meta ? metaRows(meta) : [];
|
||
const b = metaB ? metaRows(metaB) : null;
|
||
const keys = [...new Set([...a, ...(b ?? [])].map((r) => r.key))];
|
||
const label = (k: string) => (a.find((r) => r.key === k) ?? b?.find((r) => r.key === k))!.label;
|
||
const value = (rows: typeof a | null, k: string) => rows?.find((r) => r.key === k)?.value ?? "–";
|
||
return (
|
||
<Card size="sm">
|
||
<CardHeader>
|
||
<CardTitle>Hardware & runtime</CardTitle>
|
||
</CardHeader>
|
||
<CardContent className="flex flex-col gap-3">
|
||
{meta && (
|
||
<dl className={`grid gap-x-4 gap-y-1 text-xs ${b ? "grid-cols-[max-content_1fr_1fr]" : "grid-cols-[max-content_1fr]"}`}>
|
||
{b && (
|
||
<>
|
||
<span />
|
||
<span className="font-medium">A</span>
|
||
<span className="font-medium">B</span>
|
||
</>
|
||
)}
|
||
{keys.map((k) => (
|
||
<div key={k} className="contents">
|
||
<dt className="text-muted-foreground">{label(k)}</dt>
|
||
<dd className="min-w-0 font-mono break-all">{value(a, k)}</dd>
|
||
{b && <dd className="min-w-0 font-mono break-all">{value(b, k)}</dd>}
|
||
</div>
|
||
))}
|
||
</dl>
|
||
)}
|
||
{meta && meta.overridden.length > 0 && <p className="text-[11px] text-muted-foreground">From Settings → Hardware: {meta.overridden.join(", ")}.</p>}
|
||
{system && (
|
||
<div className="flex flex-col gap-1">
|
||
<span className="text-xs text-muted-foreground">System</span>
|
||
<ul className="flex flex-col gap-0.5 text-xs">
|
||
{systemSummaryLines(system).map((l) => (
|
||
<li key={l}>{l}</li>
|
||
))}
|
||
</ul>
|
||
</div>
|
||
)}
|
||
</CardContent>
|
||
</Card>
|
||
);
|
||
}
|