GPU templates
Prepare a GPU machine, install its driver, deploy a model or tune the machine, each as one plan of signed recipes that you check first.
This guide shows how the GPU templates work: what a template checks, how you pick its options, what the plan holds, and how it runs as a maintenance with steps.
What a template is
A template is a plan for one job on a GPU machine. It reads what the machine has, offers only the options that fit it, and builds a list of steps. Each step is a signed recipe or an action of Kosken, such as stopping an endpoint. Nothing runs until you start the plan.
Open Recipes, then Templates. The table lists each template, its steps, and the machines it fits.
| Template | What it does |
|---|---|
| Prepare a GPU machine | Checks the driver, the container toolkit, the CDI spec and the engine, and installs what is missing. |
| Install the GPU driver | Installs the NVIDIA driver from the packages of the distribution, or the AMD driver and ROCm. |
| Upgrade the GPU driver | Stops the endpoints, moves the NVIDIA driver to another branch, reboots, checks the driver and starts the endpoints again. |
| Deploy a model | Deploys a model of the catalog with a vLLM version, and can run a quick benchmark after. |
| Upgrade vLLM | Moves an endpoint to a newer vLLM version, next to the old one or in its place, with a benchmark before and after. |
| Tune a GPU machine | Applies the optimizations of the tuning scan that you picked. |
The plan of a machine
- Select a machine in the Machines it fits column, or open the template and pick the machine.
- Kosken reads the machine: packages, kernel modules, the GPU stack and the engines. The facts are fresh for 10 minutes; an older read is read again before the plan shows.
- The Checks show what the machine has now. The Requirements say what the template needs; a requirement that is missing blocks the plan and says why.
- Pick the options. An option lists only the values that fit the machine, such as the driver branches that the package manager offers.
- Read the steps. A step that the machine already has is Done and does not run. A step that does not apply says why.
Run the plan
A plan runs as a maintenance with steps: one approval, the steps in order, and a check after each one. Choose Start now or pick a window. A plan with a reboot runs in a window. If a step fails, Kosken rolls back the steps before it, or keeps them when you chose so.
A step that needs an executor right that is off on the machine shows the command to turn it on, for example sudo kosken-agent enable gpu.
The CUDA of the driver and the image
Each vLLM image is built for one CUDA version. Kosken compares it with the CUDA of the driver before a deploy: an image for the same CUDA or an older one runs; a newer minor version of the same major runs with a warning; a newer major version is refused, and the plan proposes the driver upgrade first. The GPU tab of a machine shows the CUDA of the driver in its Stack card.
Something here does not match the app? Tell us