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>
This commit is contained in:
1 parent
ee6c623e2a
commit
e007a35143
16 files changed
+781
-98
No files matched your search
@@ -1,16 +1,47 @@
|
||||
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] = await Promise.all([listRuntimes(), listDeployableModels(), getDockerInfo(), listApiKeys()]);
|
||||
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 })),
|
||||
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 ?? [] } : null,
|
||||
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,
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user