import type { Metadata } from "next"; import { listDeployableModels, listDeployments } from "@/lib/deployments"; import { SweepForm, type SweepBase } from "./sweep-form"; export const dynamic = "force-dynamic"; export const metadata: Metadata = { title: "New sweep" }; export default async function NewSweepPage({ searchParams }: PageProps<"/benchmarks/sweeps/new">) { const { deployment } = await searchParams; const [deployments, models] = await Promise.all([listDeployments(), listDeployableModels()]); const bases: SweepBase[] = deployments .filter((d) => !d.sweepId) .map((d) => ({ id: d.id, name: d.name, engine: d.engine, accelerator: d.accelerator, repoId: d.repoId, options: d.options, cpus: d.cpus, memoryMb: d.memoryMb, ggufFiles: models.find((m) => m.id === d.modelId)?.candidates.gguf.map((g) => g.path) ?? [], })); return (

New sweep

Vary one or two settings of a deployment. Kaname deploys each variant in turn, benchmarks it with BetterBench, removes it again and compares all of them, including the resources each one used.

); }