Deploying models
One service, a list of replicas
Deploying a model creates one inference service: one model, one name that clients send. The service runs as replicas. A replica is one running copy of the model on one inference node, on its own GPUs. The API gateway spreads requests across every replica that is serving.
A model's card says how many GPUs one replica needs, for example 2 GPUs per replica. On an inference node with 8 GPUs, a 2-GPU model fits up to 4 replicas. One service can run replicas on several inference nodes at once: 2 replicas on one node and 4 on another is one service.
The deploy page
Choose Deploy on a model's card on the Models page. The deploy page opens with the model's logo, name and subtitle, as on its card. Under them it shows what one replica needs (its GPU count and the GPU memory it allocates on each GPU). Below that you choose the Inference service the replicas go to:
- New service: the deploy creates a new inference service with the replicas in the list.
- Change a running service: choose one of this model's running services. Its replicas fill the Replicas list, and the list becomes everything the service should run. Each service is listed with its short id, how many replicas it runs and on which inference nodes, and when it was deployed. With no service of this model running, the choice is disabled and says so.
Below that are two lists side by side:
- Available GPUs (left): every inference node with all its GPUs. Tick GPUs, a multiple of the GPUs one replica needs on each inference node, and choose the arrow button between the lists: the control plane cuts the ticked GPUs into replicas, in the order the node lists them, and moves them to the right. When the ticked GPUs cannot be added, the reason shows under the button.
- Replicas (right): every replica the service should run, with its inference node, its GPUs and its env files. Choose x to take any replica out of the list.
Each new replica in the Replicas list has its own env files, none at first. Choose Env files on the replica to attach them: env files that hold variables, in the order they apply, and mounted env files, each at the container path where the replica's containers read it. See Env files. A running replica keeps the env files it runs with; its Env files button is disabled and says so.
Change the GPU memory or the profile for one deploy
Choose Edit next to what one replica needs. The dialog changes the deploy profile for this deploy only. The new service runs its own copy of the profile with your changes. The catalog does not change, other services of the model do not change, and replicas added to the service later run the same copy. The line next to Edit says Profile as in the catalog or Profile edited for this deploy.
- GPU memory: move the slider to the GPU memory one replica allocates on each GPU. The engine is told the new amount minus the margin the profile keeps for the engine's own buffers. The dialog shows the amount the profile states and the most one GPU of the profile's product holds. Below the profile's amount, the model may not load, or may serve less context or fewer requests at once; the dialog says so. The Available GPUs list then counts the new amount.
- YAML: change any text file of the profile, such as
ai-deploy.yamlorcompose.yaml. This needs the right to change model catalogs, which an Administrator holds. Without it, the files are read-only, and the GPU memory tab still works.
Use the catalog profile removes every change. To keep a change for other deploys, change the profile in a catalog draft and publish it. Edit is disabled when you change a running service: a running service runs its own copy already.
On the Deployments page, Redeploy is disabled for a model whose profile was edited at deploy, and its info icon says why: a redeploy would replace the edit with the catalog's version. To run the catalog's version, deploy it as a new service, then undeploy the edited one.
For a running service, the replicas it runs now are in the list like any other, marked running. Remove them, add others, or both, then choose Apply: the control plane compares the list with what runs. A replica on the same inference node and GPUs keeps running untouched, every other running replica is undeployed, and every new one is deployed. On each inference node, what leaves stops before what comes starts, so a GPU moving from one replica to another serves nothing for that moment. Removing every replica and choosing Undeploy the service removes the service.
Show suitable only, on by default, hides every GPU a replica of this model does not belong on: another product than the model is qualified on or below its minimums, not enough free memory (by what is allocated or what is measured in use, whichever is tighter), already used by a replica of this service, or on an inference node that cannot take replicas. A ticked GPU stays shown. Clear the box to see every GPU with the reason it is passed by; you can still tick such a GPU, and the deploy goes ahead and says what deserves a second look.
With no GPU ticked, the button between the lists shows +, which lets the control plane place replicas instead. While 8 replicas or fewer still fit, each click adds one replica. When more than 8 fit, it opens Auto-Allocate GPUs to Replicas: choose how many, from 1 to the most that still fit. It spreads them across as many inference nodes as possible, on suitable GPUs, unused GPUs first.
The one GPU you cannot tick is one a replica of the Replicas list already uses: a GPU runs at most one replica of a service.
An inference node that cannot take replicas stays on the page with every reason: not connected, running models as host processes, software too old, or no GPUs reported yet.
Deploy (or Apply, when changing a running service) is disabled from the first click until the control plane answers, so a double click never deploys twice. Once the deploy is accepted, the page returns to the Models page.
After you deploy
A new replica goes through stages before it serves. Most of them are expected work, not a problem. Each replica on a server card shows two pills. The first says what the inference node does with the replica, for example Loading model or Running. The second, API:, says whether clients reach it through the API gateway, for example API: Starting or API: Serving. The info icon on the second pill says what the replica does or waits for right now. A replica that shows Running and API: Starting has started its engine, and the API gateway is registering it or waits for its first test request to pass.
| Stage | What happens | GPUs | How long | What to do |
|---|---|---|---|---|
| Preparing (grey, spinner) | The inference node downloads the model weights and container images. The line under the pill shows how much is downloaded. | not used yet | minutes to hours, depending on the model's size and the network | Nothing. A download that makes no progress for one hour stops with the error model-weight-download-no-progress, and the replica becomes Blocked. |
| Blocked (amber) | Every download the replica waits for failed, and nothing moves on its own. | not used | until you act | Read the reason, fix its cause, then retry the download from the inference node's Downloads. |
| Starting (blue, spinner) | The replica waits for its GPUs, stops the replica it replaces, frees GPU memory, starts its engine and loads the model. Then the API gateway registers it, and the first test request must pass. | in use | seconds to minutes; loading a large model can take up to 30 minutes | Nothing. Each step has a time limit; a step past its limit makes the replica Failed or Unavailable with the reason. |
| Serving (green) | Clients reach the model through the API gateway. One or two failed test requests in a row keep a replica Serving, with the failure in its reason. | in use | ||
| Saturated (amber) | The replica serves clients at its capacity: its test request was turned away or timed out because the model was busy, while clients got answers from it. | in use | Nothing breaks, but some requests wait or are turned away. Add replicas, or send fewer requests at once. | |
| Unavailable (amber) | The replica runs, but clients do not reach it: the inference node is not heard from, its connection to the API gateway is down, the API gateway refused its route, or 3 test requests in a row failed while no client got an answer from it. | in use | Read the reason on the info icon. The model's card on the Status page shows each failed test request. | |
| Failed (red) | The replica stopped with an error. | freed | Read the error and open its error report; Retry starts it again. A replica that stopped after it was ready is started again by the inference node itself: three times in 15 minutes, then after 15 minutes, then once every hour, until it stays running; the error says when the next start is. | |
| Stopping (grey) | The replica is being stopped or was stopped, for example after Undeploy. | in use until the inference node has stopped it | seconds | Nothing. The replica leaves the list when the inference node has stopped it. |
Downloads of several replicas run at the same time. While a replica that replaces another one downloads, the replica it replaces keeps serving. When you restart a replica, it keeps serving while it prepares its new start, and shows Serving until its engine restarts. Only one replica at a time starts on the same GPU; the others show Waiting for GPUs under Starting, with the GPU and the replica that is starting on it.
The APIs page shows one availability per model name, from the stages of all its replicas:
| Availability | What it means |
|---|---|
| Serving (green) | Every replica that should serve does. Replicas that are still Preparing or Starting are not counted. |
| Saturated (amber) | Every replica serves, but the model is at its capacity: in the last 5 minutes clients were turned away because it was busy (at least 3 requests and 5% of them), while other clients got answers, or a replica's test request was. Add replicas, or send fewer requests at once. |
| Degraded (amber) | Clients get answers, but at least one replica that should serve does not, or a replica's newest test request failed. The line under it says which one and why. A broken replica always shows as Degraded, even when another one is Saturated. |
| Deploying (blue, spinner) | No replica serves yet, and at least one is Preparing or Starting. This is normal after a deploy. |
| Not serving (red) | No replica serves, and none is on its way. The line under it says why. |
While a model is Deploying, the test request is not sent and no alert fires. The Status page draws that time as deploying, not as an outage. A test request that fails because the model is busy, while clients get answers, is drawn as Saturated, not as downtime, and no alert fires for it.
When you undeploy
Undeploy asks the inference node to stop the model's replicas. The replicas stay on the server card, as Stopping, until the inference node has stopped them, usually within a minute. Their GPU memory stays allocated until then, so a new deploy is never offered memory that is still in use. Then the replicas, and the model on the APIs page, leave the list. While they stop, the APIs page shows the model as Not serving with the reason Undeploying, and Restart and Undeploy on their cards are disabled.
| What you see | What it means | What to do |
|---|---|---|
| Stopping, "Undeployed at 14:02; the inference node is stopping it" | The inference node is stopping the replica. | Nothing. |
| Failed, "Undeployed at 14:02, but the inference node could not stop it: ..." | The inference node could not stop the replica, and tries again. | Read the reason and open its error report. |
| Unavailable, "... has not confirmed the stop for 10 minutes" | The inference node is connected, but the stop does not finish. | Check the replica's console log and the inference node's error reports; restart the inference node from the Servers page. |
| Stopping, "The inference node has not been heard from since ..." | The inference node is not connected, so it cannot confirm the stop. | The replica leaves the list when the inference node reconnects, or when you remove the inference node on the Servers page. |
A replica on an inference node that is lost when you undeploy leaves the list at once: that node can never confirm the stop.
Maintenance of a server
To work on a server (replace a GPU, update its drivers, reboot it), put it into maintenance: open its menu on the Servers page and choose Start maintenance…. Give a note, such as "Replacing GPU 2", and a grace period (3 minutes unless you change it).
- The server pauses its downloads (model weights and images) at once and starts no new model or benchmark. A paused download says so on the Downloads page.
- Its running models keep serving, and its running benchmarks keep running, until the grace period ends. Then it stops them. Clients of those models get errors until the models run again; a model with replicas on other servers keeps serving from them.
- Its models stay deployed: their replicas show Stopped for maintenance. A model you deploy to the server meanwhile is accepted, and starts when maintenance ends. The deploy page says so, and automatic placement leaves the server out.
- The server stays in maintenance when it restarts or reboots.
The badge beside the server's connection says Entering maintenance or In maintenance; its tooltip says why, who started it, and when the server stops its models. End maintenance in the same menu makes the server take work again: it starts its models and continues its downloads. A benchmark stopped by maintenance is not run again; start it again yourself.
On the machine itself, sudo onprem-ai-node maintenance start --note "..." --grace-period 3m, end and status do the same, also while the server is not connected to the control plane. The control plane shows a maintenance started there, and can end it.
While every replica of a model is on a server in maintenance, the Status page shows the model as planned maintenance, and the model test alert does not fire for it. A model with a replica on a server that takes work is checked as usual.
When the machine shuts down, the server stops its models and benchmarks first. A maintenance you started stays after the restart; otherwise the server takes work again when it is back.
Downloads on a server
Under Deployed models, a server card's Models tab lists Cached models: every model whose weights and container images are all downloaded on that inference node, while none of its services runs there. Its ⋯ menu has Deploy, which opens its deploy page (its replicas on that node start without a download), and Delete, which removes its model weights and container images from that inference node, except those another model there needs too; those stay for that model. A model only partly downloaded, or no longer in its catalog, is not listed. With nothing waiting, the list says None.
A server card on the Servers page, and the Downloads page, list what an inference node has downloaded, in three lists:
- Cached model weights: every model weight directory on the node.
- Cached container images: every container image on the node.
- Cached benchmark files: the files a benchmark of a model reads on the node, such as page images for a document reading (OCR) benchmark. They are downloaded once and kept for the next benchmark run, in the same storage as the model weights; they cannot be deleted one by one.
Each list shows how much of its storage is used and how much is available. Every download is listed once, however many models need it; a container image or model weights needed by several deploy profiles are stored on the node once. The info icon on a download's line says two things:
- In use by: the deployed models whose replicas on this inference node run it now.
- Related to: every deploy profile it belongs to, whether downloaded for it or deployed from it, each marked in use or not in use. Profiles of one model that share a name are told apart by their subtitle, for example "Qwen3.8 27B (NVFP4 · MTP)" and "Qwen3.8 27B (1M context · MTP)".
Undeploying a model keeps its downloads on the node until you remove them, so deploying it again starts without downloading; they stay related to its deploy profile, not in use.
Delete is disabled while a download runs (cancel it with the X on its row) and while a deployed model uses the download; the info icon names the model to undeploy first.
GPU memory: used, allocated, total
Every replica allocates GPU memory on each of its GPUs when it is deployed: the amount the model's deploy profile states. The allocation is a promise, kept for as long as the replica exists, including while it is stopped or still downloading. The model's engine is started with a matching memory limit, so it takes what it allocated.
The Servers page shows every GPU's memory as used / allocated / total:
- used: what is measured in use on the GPU right now;
- allocated: what the replicas on the GPU allocated;
- total: the GPU's memory.
Free to allocate is what a new replica can still be given: the total, less what each replica on the GPU allocated or uses (whichever is larger), less what programs outside the platform use. A replica usually uses less than it allocated; that headroom stays its own, because the replica grows into it under load. Overbooked means the GPU has promised or holds more than it has.
Each replica on a server card shows its own used, allocated and total memory per GPU. A warning icon beside it means one of two things:
| What the icon says | What it means | What to do |
|---|---|---|
| Uses more than it allocated | The replica takes memory its neighbours on the GPU were promised; one of them may run out of memory. | Undeploy a replica on that GPU, or deploy on other GPUs. |
| Allocation not enforced | The model's engine sets no memory limit of its own, so it may take more than it allocated. | Deploy the model on GPUs nothing else runs on. |
Hardware products
The platform knows a GPU by the name its driver reports, for example "NVIDIA RTX PRO 6000 Blackwell Server Edition". The hardware catalog lists which of these names make up one product, and how much memory that product has. The Servers page shows each GPU's product, or Unknown product when the catalog lists no product with that name. A model deploys on an unknown product only when you pick its GPUs by hand; automatic placement leaves it out.
A warning icon beside the product means the GPU reports a different amount of memory, or a different CUDA compute capability, than the catalog states for that product. Send the message to support so the catalog can be corrected. Until then, the platform plans with the memory the GPU reports.
A model's card on the Models page shows a warning when the model's engine takes a different amount of GPU memory than the model allocates. The model can still be deployed; the warning is for the author of the model's deploy profile.
When the deploy warns
A deploy goes ahead whatever GPUs you chose, and lists what deserves a second look. Each warning shows as a bold headline under the replica it is about; the info icon beside it opens the numbers, the cause and the fix.
| Headline | What it means | What to do |
|---|---|---|
| Not enough VRAM | The GPU has less free memory than the replica allocates. | Select another GPU, or undeploy a replica on that GPU. |
| Other GPU model, Unknown GPU model | The GPU is of another product than the model is qualified on, or one the catalog does not list. | Select GPUs of the qualified product. |
| Wrong GPU count | Another number of GPUs than the model needs. | Deploy on exactly the number the model needs. |
| NVIDIA driver too old, CUDA too old | The node is below the model's minimum NVIDIA driver or CUDA version. | Update the NVIDIA driver on the node, or deploy on another inference node. |
| No VRAM limit, Engine VRAM mismatch | The model's engine sets no memory limit, or takes more than it allocates. | Deploy it on GPUs nothing else runs on. |
When a replica fails
A failed replica on a server card shows why in a bold headline beside its phase. The alert icon opens the complete message, the engine's last log output, the error report and the code. The most common headlines:
| Headline | What to do |
|---|---|
| Not enough VRAM | The engine ran out of GPU memory. Undeploy a replica on that GPU, or deploy on another GPU. View GPU processes in the dialog shows what holds the memory. |
| VRAM not freed | The GPU's memory was not freed in time. Open View GPU processes and stop what still holds it. |
| Image download failed | Check the node's connection to the registry, then retry. |
| Engine crashed, Engine reported failure | Read the log output in the dialog, fix what it names, and deploy again. |
| Health check failed, Start took too long | Read the replica's console log; the engine did not answer in time. |