feat: gate explicit CUDA profiles before model provisioning

This commit is contained in:
Pavlo Ratushnyi
2026-10-04 19:17:25 +02:00
parent 606ce2b759
commit 710d3347c7
7 changed files with 277 additions and 32 deletions
+25
View File
@@ -524,6 +524,7 @@ preparation to `provision --config` and `serve --config`:
{
"bind": "127.0.0.1:8081",
"model": "qwen-flash-native",
"gpu_requirement": "cuda-13.0-linux",
"native_model": {
"manifest": "/srv/strata/manifests/source-v1.json",
"source_dir": "/srv/strata/models/source-v1",
@@ -570,3 +571,27 @@ without optional MTP. Full-model and clean-node GPU qualification remain open.
preparation and offline reuse with a synthetic worker, including corruption,
locking, conflicting config and previous-version preservation. It is a CPU
startup-order test, not an inference or model-quality result.
### Explicit GPU profile requirement
Set top-level `"gpu_requirement": "cuda-13.0-linux"` on CUDA 13.0 Linux
profiles. `provision` and `serve` check the host before fetching assets,
preparing a model, materializing an embedded engine, starting a worker, or
opening the HTTP listener. Unsupported OS, missing/unreadable driver, and a
version below this profile's conservative **580.65.06** floor fail with an
actionable error. The floor follows the Linux CUDA 13.0 GA toolkit driver in
[NVIDIA's release table](https://docs.nvidia.com/cuda/archive/13.0.0/cuda-toolkit-release-notes/index.html).
This is an explicit deployment policy, not a universal CUDA compatibility limit.
The check reads the kernel driver version, falling back to `nvidia-smi` when
unavailable. That subprocess has a five-second timeout and 8 KiB output limit;
it is killed and reaped on failure. Versions are compared numerically. No CUDA
context or inference request is created. `check-config` only reports the
requirement with `gpu_requirement_checked: false`; it never runs this probe.
Omitting the requirement preserves CPU/manual worker behavior. A requirement
without a worker, or an unknown requirement, is rejected.
A successful check does **not** qualify GPU architecture, free VRAM, model
quality, engine shared-library dependencies, MTP support, or a clean-node
real-model launch. Those remain separate release gates. Keep model/auxiliary
bundles pinned and use distinct versioned output directories as described above.