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
+16
-2
@@ -17,9 +17,13 @@ export class BenchmarkError extends Error {
|
||||
}
|
||||
}
|
||||
|
||||
export const DESCRIPTION_MAX = 4000;
|
||||
|
||||
export const BenchmarkBody = z.object({
|
||||
deploymentId: z.string().min(1),
|
||||
label: z.string().trim().max(120).nullable().optional(),
|
||||
/** Free text: what this run tries out. Passed to BetterBench and launch80 with the system summary. */
|
||||
description: z.string().trim().max(DESCRIPTION_MAX).nullable().optional(),
|
||||
quick: z.boolean().default(false),
|
||||
passes: z.number().int().min(1).max(200).nullable().optional(),
|
||||
warmup: z.number().int().min(0).max(50).nullable().optional(),
|
||||
@@ -64,6 +68,7 @@ export async function createBenchmark(input: BenchmarkInput) {
|
||||
deploymentBId: b?.id ?? null,
|
||||
modelId: a.modelId,
|
||||
label: input.label || null,
|
||||
description: input.description || null,
|
||||
settings: {
|
||||
quick: input.quick,
|
||||
passes: input.passes ?? null,
|
||||
@@ -101,6 +106,10 @@ const listColumns = {
|
||||
ab: benchmarkRuns.ab,
|
||||
resources: benchmarkRuns.resources,
|
||||
sweepId: benchmarkRuns.sweepId,
|
||||
meta: benchmarkRuns.meta,
|
||||
metaB: benchmarkRuns.metaB,
|
||||
system: benchmarkRuns.system,
|
||||
description: benchmarkRuns.description,
|
||||
createdAt: benchmarkRuns.createdAt,
|
||||
};
|
||||
|
||||
@@ -141,8 +150,13 @@ export async function cancelBenchmark(id: string) {
|
||||
}
|
||||
}
|
||||
|
||||
export async function updateBenchmarkLabel(id: string, label: string | null) {
|
||||
const res = await db().update(benchmarkRuns).set({ label: label?.trim() || null }).where(eq(benchmarkRuns.id, id)).returning({ id: benchmarkRuns.id });
|
||||
/** Rename a run (label) and/or change its description; fields left out stay as they are. */
|
||||
export async function updateBenchmark(id: string, patch: { label?: string | null; description?: string | null }) {
|
||||
const set: Partial<typeof benchmarkRuns.$inferInsert> = {};
|
||||
if (patch.label !== undefined) set.label = patch.label?.trim() || null;
|
||||
if (patch.description !== undefined) set.description = patch.description?.trim() || null;
|
||||
if (Object.keys(set).length === 0) return;
|
||||
const res = await db().update(benchmarkRuns).set(set).where(eq(benchmarkRuns.id, id)).returning({ id: benchmarkRuns.id });
|
||||
if (res.length === 0) throw new BenchmarkError("not_found", "Benchmark not found.", 404);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user