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
+44
-2
@@ -37,6 +37,23 @@ export const DeploymentBody = z.object({
|
||||
flashAttn: z.enum(["auto", "on", "off"]).nullable().optional(),
|
||||
webui: z.boolean().nullable().optional(),
|
||||
requireApiKey: z.boolean().nullable().optional(),
|
||||
cacheRamMb: int(-1, 1_048_576).nullable().optional(),
|
||||
gpus: z.array(z.string().regex(/^GPU-[0-9a-f-]{36}$/i, "a GPU UUID")).max(64).nullable().optional(),
|
||||
gpuLayers: z
|
||||
.string()
|
||||
.regex(/^(auto|all|\d{1,4})$/, "auto, all or a number")
|
||||
.nullable()
|
||||
.optional(),
|
||||
splitMode: z.enum(["none", "layer", "row", "tensor"]).nullable().optional(),
|
||||
tensorSplit: z
|
||||
.string()
|
||||
.regex(/^\d+(\.\d+)?(,\d+(\.\d+)?)*$/, "proportions like 3,1")
|
||||
.nullable()
|
||||
.optional(),
|
||||
cpuMoe: z.boolean().nullable().optional(),
|
||||
nCpuMoe: int(0, 1000).nullable().optional(),
|
||||
tensorParallel: int(1, 64).nullable().optional(),
|
||||
gpuMemoryUtilization: z.number().min(0.05).max(1).nullable().optional(),
|
||||
dtype: z.enum(["auto", "bfloat16", "float16", "float32"]).nullable().optional(),
|
||||
maxNumSeqs: int(1, 1024).nullable().optional(),
|
||||
kvCacheGb: z.number().min(0.25).max(1024).nullable().optional(),
|
||||
@@ -90,9 +107,33 @@ async function validate(input: DeploymentInput, selfId?: string): Promise<Deploy
|
||||
const draft = o.draftFile ? c.drafts.find((d) => d.path === o.draftFile) : null;
|
||||
if (o.draftFile && !draft) throw new DeploymentError("invalid", "Unknown draft/MTP file.", 400);
|
||||
options.draftType = draft?.type ?? null;
|
||||
Object.assign(options, { dtype: null, maxNumSeqs: null, kvCacheGb: null });
|
||||
Object.assign(options, { dtype: null, maxNumSeqs: null, kvCacheGb: null, tensorParallel: null, gpuMemoryUtilization: null });
|
||||
} else {
|
||||
Object.assign(options, { modelFile: "", mmproj: null, draftFile: null, draftType: null, batchSize: null, ubatchSize: null, cacheTypeK: null, cacheTypeV: null, flashAttn: null, webui: null });
|
||||
Object.assign(options, {
|
||||
modelFile: "",
|
||||
mmproj: null,
|
||||
draftFile: null,
|
||||
draftType: null,
|
||||
batchSize: null,
|
||||
ubatchSize: null,
|
||||
cacheTypeK: null,
|
||||
cacheTypeV: null,
|
||||
flashAttn: null,
|
||||
webui: null,
|
||||
cacheRamMb: null,
|
||||
gpuLayers: null,
|
||||
splitMode: null,
|
||||
tensorSplit: null,
|
||||
cpuMoe: null,
|
||||
nCpuMoe: null,
|
||||
});
|
||||
}
|
||||
// GPU settings only mean something on a GPU runtime; GPU picking only on NVIDIA.
|
||||
if (runtime.accelerator === "cpu") {
|
||||
Object.assign(options, { gpus: null, gpuLayers: null, splitMode: null, tensorSplit: null, cpuMoe: null, nCpuMoe: null, tensorParallel: null, gpuMemoryUtilization: null });
|
||||
} else {
|
||||
if (runtime.accelerator !== "nvidia") options.gpus = null;
|
||||
options.kvCacheGb = null;
|
||||
}
|
||||
if (o.requireApiKey && (await db().select({ id: apiKeys.id }).from(apiKeys).limit(1)).length === 0) {
|
||||
throw new DeploymentError("invalid", "Add an API key under Settings → API keys first.", 400);
|
||||
@@ -186,6 +227,7 @@ const listColumns = {
|
||||
runtimeId: deployments.runtimeId,
|
||||
runtimeName: runtimes.name,
|
||||
runtimeImage: runtimes.image,
|
||||
accelerator: runtimes.accelerator,
|
||||
engine: runtimes.engine,
|
||||
modelId: deployments.modelId,
|
||||
repoId: models.repoId,
|
||||
|
||||
Reference in new issue
Block a user