Release / release (push) Successful in 3m40s
Intel/AMD GPU telemetry in benchmark runs (hwmon power/temperature, amdgpu sysfs, Intel VRAM/utilization from DRM fdinfo via a minimal host-PID probe container), temperature for all GPUs, VRAM estimate for NVIDIA and Intel/AMD in the deployment form, /dev/dri group IDs added to Intel/AMD runtime containers, Intel llama.cpp presets seeded on first detection, ZES_ENABLE_SYSMAN=1 for the SYCL preset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
import "server-only";
|
|
import { listApiKeys } from "@/lib/api-keys";
|
|
import { listDeployableModels } from "@/lib/deployments";
|
|
import { applyOverrides } from "@/lib/hardware";
|
|
import { getDockerInfo, listRuntimes } from "@/lib/runtimes";
|
|
import { getHardwareOverrides } from "@/lib/settings";
|
|
import type { FormHost, FormModel, FormRuntime } from "./deployment-form";
|
|
|
|
/** Everything the deployment form needs: runtimes, servable models, host facts, API key count. */
|
|
export async function formData(): Promise<{
|
|
runtimes: FormRuntime[];
|
|
models: FormModel[];
|
|
host: FormHost;
|
|
apiKeyCount: number;
|
|
}> {
|
|
const [runtimes, models, docker, keys, overrides] = await Promise.all([
|
|
listRuntimes(),
|
|
listDeployableModels(),
|
|
getDockerInfo(),
|
|
listApiKeys(),
|
|
getHardwareOverrides(),
|
|
]);
|
|
return {
|
|
runtimes: runtimes.map((r) => ({
|
|
id: r.id,
|
|
name: r.name,
|
|
engine: r.engine,
|
|
image: r.image,
|
|
imageState: r.imageState,
|
|
env: r.env,
|
|
extraArgs: r.extraArgs,
|
|
accelerator: r.accelerator,
|
|
})),
|
|
models,
|
|
host: docker
|
|
? {
|
|
cpus: docker.cpus,
|
|
memoryBytes: docker.memoryBytes,
|
|
cpuFeatures: docker.cpuFeatures,
|
|
nvidia: !!docker.nvidia,
|
|
gpus: docker.gpus ?? [],
|
|
hardwareGpus: applyOverrides(docker.hardware, overrides)?.gpus ?? [],
|
|
}
|
|
: null,
|
|
apiKeyCount: keys.length,
|
|
};
|
|
}
|