Benchmarks with BetterBench, launch80-style reports and publishing, GPU support
- Benchmarks: BetterBench 0.6.1 (pinned by checksum) runs against a running deployment, one at a time; quick/full/custom passes, phase selection, live step and output, cancel, run again, compare runs side by side. - Report page after launch80's bench.betterbench.v1: headline tiles, "Read these first" caveats (quick, sample gate, max_tokens truncation, batched streams, failures, skipped depths, prefix-cache hits), charts, full tables with daggered under-sampled cells, method text. All figures come from BetterBench's own report functions. - Publish to launch80 as a double opt-in: L80 dry run builds the exact payload for inspection, an explicit confirmation publishes that file (L80 CLI 0.4.0 pinned by checksum, L80_TOKEN worker-only). Endpoint and host never leave. - GPUs: runtime accelerator (CPU, NVIDIA, /dev/dri, ROCm) with presets for the official CUDA/Vulkan/Intel/ROCm builds; NVIDIA GPUs probed via nvidia-smi in a short-lived container; per-deployment GPU picking, -ngl, split mode, tensor split, MoE offload, vLLM tensor parallel and GPU memory share. - llama.cpp --cache-ram option (1 GiB for new deployments) and a memory estimate that counts it and the KV cache: the 8 GiB default made containers thrash at their memory limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f0b4adda63
commit
9e167a44f6
61 files changed
+9898
-194
No files matched your search
@@ -12,6 +12,8 @@ import { coreEnv } from "@/lib/env";
|
||||
import { checkHub, modelsDueForHubCheck } from "@/lib/hub/availability";
|
||||
import { backfillMetadata } from "@/lib/hub/refresh";
|
||||
import { DeleteRunner } from "./delete";
|
||||
import { flushBenchmarkLogs, recoverBenchmarks, refreshSummaries, stopBenchmarks, tickBenchmarks } from "./benchmarks";
|
||||
import { reportL80Status, tickPublications } from "./publish";
|
||||
import { adoptContainers, flushDeploymentLogs, LOG_FLUSH_INTERVAL_MS, reconcileDeployments, stopFollowingLogs } from "./deployments";
|
||||
import { DownloadRunner } from "./download";
|
||||
import { log } from "./log";
|
||||
@@ -34,6 +36,7 @@ const DOCKER_INFO_MS = 5 * 60_000;
|
||||
const IMAGE_SYNC_MS = 60_000;
|
||||
const PULL_CHECK_MS = 3_000;
|
||||
const DEPLOYMENT_TICK_MS = 2_000;
|
||||
const BENCHMARK_TICK_MS = 2_000;
|
||||
/** Touched on every heartbeat; the Docker healthcheck checks its age. */
|
||||
const HEALTH_FILE = join(tmpdir(), "kaname-worker-alive");
|
||||
|
||||
@@ -348,6 +351,8 @@ async function shutdown(reason: string, code = 0) {
|
||||
// Deployment containers keep running; the next worker re-attaches to them.
|
||||
stopFollowingLogs();
|
||||
await flushDeploymentLogs().catch(() => {});
|
||||
await stopBenchmarks().catch(() => {});
|
||||
await flushBenchmarkLogs().catch(() => {});
|
||||
if (runners.size > 0) {
|
||||
for (const r of runners.values()) r.interrupt();
|
||||
const deadline = Date.now() + SHUTDOWN_GRACE_MS;
|
||||
@@ -404,6 +409,13 @@ async function main() {
|
||||
await adoptContainers();
|
||||
timers.push(setInterval(() => void reconcileDeployments().catch((err) => log.error("deployments failed", err)), DEPLOYMENT_TICK_MS));
|
||||
timers.push(setInterval(() => void flushDeploymentLogs().catch((err) => log.error("deployment logs failed", err)), LOG_FLUSH_INTERVAL_MS));
|
||||
// Benchmarks: one BetterBench run at a time against a running deployment.
|
||||
await recoverBenchmarks();
|
||||
void refreshSummaries();
|
||||
void reportL80Status();
|
||||
timers.push(setInterval(() => void tickPublications().catch((err) => log.error("publications failed", err)), BENCHMARK_TICK_MS));
|
||||
timers.push(setInterval(() => void tickBenchmarks().catch((err) => log.error("benchmarks failed", err)), BENCHMARK_TICK_MS));
|
||||
timers.push(setInterval(() => void flushBenchmarkLogs().catch((err) => log.error("benchmark logs failed", err)), LOG_FLUSH_INTERVAL_MS));
|
||||
void scanFolders();
|
||||
void tick();
|
||||
setTimeout(() => void checkHubDue(), 15_000);
|
||||
|
||||
Reference in new issue
Block a user