Benchmarks: paired A/B runs, sweeps, resource usage
- A/B with betterbench ab between two deployments of the same model, with verdict, confidence interval and caveats. - Sweeps vary one or two deployment settings, deploy, benchmark and remove each variant, and compare them in one table. - Every run records CPU, RAM, VRAM, GPU utilization and power. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9e167a44f6
commit
b623b16a6d
37 files changed
+4314
-214
No files matched your search
@@ -43,6 +43,39 @@ export function runArgs(o: {
|
||||
];
|
||||
}
|
||||
|
||||
/** `betterbench ab`: interleaved paired A/B until the CI is tighter than --mde (or --max-pairs). */
|
||||
export function abArgs(o: {
|
||||
endpointA: string;
|
||||
endpointB: string;
|
||||
model: string;
|
||||
out: string;
|
||||
mdePct: number;
|
||||
maxPairs: number;
|
||||
notes: Record<string, string>;
|
||||
}): string[] {
|
||||
return [
|
||||
"ab",
|
||||
"--endpoint-a",
|
||||
o.endpointA,
|
||||
"--endpoint-b",
|
||||
o.endpointB,
|
||||
"--model",
|
||||
o.model,
|
||||
"--out",
|
||||
o.out,
|
||||
"--mde",
|
||||
String(o.mdePct),
|
||||
"--max-pairs",
|
||||
String(o.maxPairs),
|
||||
...Object.entries(o.notes).flatMap(([k, v]) => ["--note", `${k}=${v}`]),
|
||||
"--no-update-check",
|
||||
];
|
||||
}
|
||||
|
||||
export { AB_FILE } from "@/lib/benchmark-paths";
|
||||
export const AB_DEFAULT_MDE_PCT = 1;
|
||||
export const AB_DEFAULT_MAX_PAIRS = 200;
|
||||
|
||||
/**
|
||||
* Prints Kaname's BenchmarkSummary for a results.json, using BetterBench's own report functions
|
||||
* so the numbers match its HTML report.
|
||||
|
||||
Reference in new issue
Block a user