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>
This commit is contained in:
1 parent
981c4170fc
commit
ee6c623e2a
45 files changed
+4627
-60
No files matched your search
@@ -0,0 +1,52 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { BotIcon, BoxesIcon, KeyRoundIcon, LogOutIcon, MonitorIcon, MoonIcon, SunIcon, TagIcon, TagsIcon } from "lucide-react";
|
||||
import { BotIcon, BoxesIcon, CpuIcon, KeyRoundIcon, LogOutIcon, MonitorIcon, MoonIcon, SunIcon, TagIcon, TagsIcon } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
import { useTheme } from "next-themes";
|
||||
import { useTransition } from "react";
|
||||
@@ -71,6 +71,10 @@ export function UserMenu({ user, signOutAction }: { user: MenuUser; signOutActio
|
||||
<BoxesIcon />
|
||||
Runtimes
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem render={<Link href="/settings/hardware" />}>
|
||||
<CpuIcon />
|
||||
Hardware
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem render={<Link href="/settings/api-keys" />}>
|
||||
<KeyRoundIcon />
|
||||
Runtime API keys
|
||||
|
||||
Reference in new issue
Block a user