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
+20
-1
@@ -1,9 +1,10 @@
|
||||
import "server-only";
|
||||
import { eq } from "drizzle-orm";
|
||||
import { db } from "@/lib/db/client";
|
||||
import { settings } from "@/lib/db/schema";
|
||||
import { type HardwareOverrides, settings } from "@/lib/db/schema";
|
||||
import { APPROVAL_MODES, type Guardrails, parseGuardrails } from "@/lib/agent-guardrails";
|
||||
import { isLabelColor } from "@/lib/colors";
|
||||
import { HARDWARE_OVERRIDES_KEY, HardwareOverrideError, parseOverrides, validateOverrides } from "@/lib/hardware";
|
||||
import { FILE_ROLE_ORDER, FILE_ROLES, type FileRole, type FileRoleStyles } from "@/lib/file-roles";
|
||||
import { MIN_SPEED_LIMIT, parseSpeedLimit, SPEED_LIMIT_KEY } from "@/lib/download-limit";
|
||||
import { DEFAULT_RECOMMENDED_ROLES, RECOMMENDABLE_ROLES } from "@/lib/recommend";
|
||||
@@ -119,3 +120,21 @@ export async function saveGuardrails(input: Partial<Guardrails>): Promise<Guardr
|
||||
await write(GUARDRAILS_KEY, parsed);
|
||||
return parsed;
|
||||
}
|
||||
|
||||
/** Manual hardware values (Settings → Hardware) that replace what detection reports. */
|
||||
export async function getHardwareOverrides(): Promise<HardwareOverrides> {
|
||||
return parseOverrides(await read<unknown>(HARDWARE_OVERRIDES_KEY));
|
||||
}
|
||||
|
||||
export async function saveHardwareOverrides(input: unknown): Promise<HardwareOverrides> {
|
||||
let next: HardwareOverrides;
|
||||
try {
|
||||
next = validateOverrides(input);
|
||||
} catch (err) {
|
||||
if (err instanceof HardwareOverrideError) throw new SettingsError(err.message);
|
||||
throw err;
|
||||
}
|
||||
if (Object.keys(next).length === 0) await db().delete(settings).where(eq(settings.key, HARDWARE_OVERRIDES_KEY));
|
||||
else await write(HARDWARE_OVERRIDES_KEY, next);
|
||||
return next;
|
||||
}
|
||||
Reference in new issue
Block a user