> ## Documentation Index
> Fetch the complete documentation index at: https://docs.budecosystem.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploying a model

> The deployment wizard step by step: model, hardware, template, targets, features, cluster and autoscaling.

You describe the workload and the targets; the platform simulates the options on your clusters and recommends where and how to run it.

**Who:** someone with Manage permission on the project · **Projects → your project → Deployments → Deploy Model**

## Before you start

* The model must be in the registry ([Adding models](https://docs.budecosystem.com/models/adding-models.md)) and a cluster must be onboarded ([Connecting compute](https://docs.budecosystem.com/clusters/adding-clusters.md)). A self-hosted deployment runs on one of your clusters; a cloud model needs a stored provider credential instead.
* You need Manage permission on the project that will own the deployment.
* You can also start from the model's own page (**Deploy**). The drawer then asks you to **Select Project** first ("Select the project to deploy this model"), and the model is pre-selected for you.
* The wizard is one drawer. **Back** goes to the previous step and keeps what you entered. If you close it, the work in progress shows in the Task Island and you can resume from there.

> [!NOTE]
>
> **What the simulator does.** When you finish the specification and feature steps, the platform does not guess a size. It simulates your model on each of your clusters, across the hardware on offer, the parallelism settings and the engine settings. For each option it predicts time to first token, throughput per session, end-to-end latency and the number of replicas needed for your concurrency. It keeps the options that meet your targets and ranks them, best fit first, with a cost per million tokens. You choose from that list in step 6.

## The eight steps at a glance

**1. Model Zoo**

Select the model and click **Next**.

**2. Hardware Resource Mode**

**Dedicated Hardware** (recommended) gives the model its own GPUs or CPUs. **Shared Hardware** lets several small deployments share a GPU.

**3. Select Deployment templates**

Pick the template closest to your use case, such as a chatbot, retrieval-augmented generation or code generation. It pre-fills the next step.

**4. Set Deployment Specifications**

Name, **Concurrent Request**, **Avg Input Tokens**, **Avg Output Tokens** and, with dedicated hardware, the performance targets.

**5. Configure Deployment Features**

Tool calling, reasoning parser, FP8 KV cache, speculative decoding and advanced settings. The simulation runs when you click **Next**.

**6. Choose a Cluster**

Clusters are listed in best-fit order with cost per million tokens, expected TTFT, throughput and replicas.

**7. BudAI Scaler Configuration**

Optionally enable autoscaling, then click **Deploy**.

**8. Deployment In Progress**

Minimise the drawer if you like; you are notified when it finishes. On success, click **View Deployment**.

## Step 1 · Model Zoo

![Step 1: choose the model.](https://mintcdn.com/budecosystem-b7b14df4/tm7AvlRzpE_EcnqL/images/product-guide/deploy-step1.jpg?fit=max\&auto=format\&n=tm7AvlRzpE_EcnqL\&q=85\&s=529ba829f6806262a5924326ce919703)

Step 1: choose the model.

The drawer lists your registry models (adapters are left out). Use the search box to filter by model name, tag or size, then click a model to select it. **+ New Model** takes you to the add-model flow; it cancels the deployment in progress. The **Next** button stays disabled until a model is selected. A cloud model continues at **Select Credentials**; every other model continues at hardware mode.

## Step 2 · Hardware Resource Mode

![Step 2: dedicated or shared hardware.](https://mintcdn.com/budecosystem-b7b14df4/tm7AvlRzpE_EcnqL/images/product-guide/deploy-hardware.jpg?fit=max\&auto=format\&n=tm7AvlRzpE_EcnqL\&q=85\&s=9546012907e4c4a52a5d8a94818713af)

Step 2: dedicated or shared hardware.

| Option | What it means | Use it when |
| - | - | - |
| **Dedicated Hardware *(Recommended)*** | Exclusive GPU or CPU allocation for this deployment only. Consistent performance, no resource sharing or context switching, higher cost per deployment. | Production traffic, or any time you need to set latency and throughput targets. |
| **Shared Hardware *(Cost efficient)*** | Several deployments share the same hardware through scheduling. Lower cost per deployment and better utilisation, with a slight overhead from context switching. | Development, testing and small models. |

Dedicated is pre-selected. With shared hardware the specification step does not ask for performance targets, because they cannot be guaranteed.

## Step 3 · Select Deployment templates

![Step 3: start from a template.](https://mintcdn.com/budecosystem-b7b14df4/tm7AvlRzpE_EcnqL/images/product-guide/deploy-template.jpg?fit=max\&auto=format\&n=tm7AvlRzpE_EcnqL\&q=85\&s=f8ba71626806565d4e08b2fccfa7ec56)

Step 3: start from a template.

A template is a starting point for the workload shape: pick one that matches your use case and click **Next**. **Next** stays disabled until you choose one. Embedding models, voice (audio) models and decision-only models skip this step and go straight to the specification.

## Step 4 · Set Deployment Specifications

![Step 4: name, load and performance targets.](https://mintcdn.com/budecosystem-b7b14df4/tm7AvlRzpE_EcnqL/images/product-guide/deploy-specs.jpg?fit=max\&auto=format\&n=tm7AvlRzpE_EcnqL\&q=85\&s=f668c35ecbb6aebff2ac31cae4ea56d8)

Step 4: name, load and performance targets.

"Enter these specifications to optimize performance based on your requirements."

| Field | What to enter | Rules and defaults |
| - | - | - |
| **Deployment Name** | A unique name. This is the `model` value callers send. | Required. Letters, numbers and hyphens only; spaces turn into hyphens as you type. Maximum 50 characters. Messages: "Please enter deployment name", "Deployment name should be less than 50 characters", "Deployment name should contain only alphanumeric characters and hyphens". |
| **Concurrent Request** | How many requests the model must handle at the same time. | Required, whole number of 1 or more ("Concurrent requests should be greater than 0"). Sets how many replicas the simulator plans. |
| **Avg Input Tokens** | The typical prompt length, in tokens. Performance is planned for requests of this size. | Slider with a number box. Minimum 30; maximum is the model's context length. Not the longest request allowed: that is **Maximum context** in step 5. Hidden for models that do not read text prompts. |
| **Avg Output Tokens** | The typical response length, in tokens. | Slider with a number box. Minimum 10; maximum is the model's context length. |
| **Per-Session Tokens/Sec** | The generation speed each user session should get. It drives throughput. | Dedicated hardware only. 5 to 100. Drag the handles to set a range, or type the values. |
| **TTFT(ms)** | Time to first token: the wait before the first token appears. | Dedicated hardware only. 50 to 5,000 ms. A range of two handles. |
| **End to end latency(s)** | Time to finish a whole request. | Dedicated hardware only. 1 to 300 s. A range of two handles. |

The three targets are shown only for dedicated hardware and only for models that stream text. Tighter targets mean fewer matching clusters, a higher cost, or both. **Next** stays disabled until the name, the concurrency and the average input and output tokens are filled in.

> [!TIP]
>
> **Start loose.** If the cluster list in step 6 is empty, the targets are almost always the cause. Raise TTFT and end-to-end latency, lower tokens per second, or lower the concurrency, then run the simulation again.

## Step 5 · Configure Deployment Features

"Features decide which clusters can run this model, so they're set before cluster selection." Only the features the model and its engine can support are offered; the list is checked while the drawer opens.

| Field | What it does | Rules and defaults |
| - | - | - |
| **Tool Calling** | Lets callers pass tools and receive tool calls ("Enable tool calling for this deployment"). | Off by default. Shown for text-generation models. The engine's parser is chosen for you. |
| **Reasoning Parser** | Separates the model's reasoning from its final answer ("Enable reasoning parser for the model response"). | Off by default. Switching it on pre-selects **Sampling** = Sampled if you have not chosen one. |
| **FP8 KV cache** | Stores the KV cache in 8-bit: about half the memory per cached token, so roughly twice as many tokens cached. | Shown only when the model is eligible. Off unless you turn it on. |
| **Speculative decoding** | Drafts several tokens and verifies them in one pass: faster generation per user, mostly at low load. Not every cluster supports it. | Off by default. When on, two lists appear (below). |
| **Method** | **MTP** uses the model's own prediction heads. **EAGLE3** needs a draft model. | Only the methods valid for the model are listed. Leave empty for *Planner default*. |
| **Speculative tokens (k)** | Tokens drafted per step. More helps only when most drafts are accepted. | 1 to 5. Leave empty for *Planner default*, which picks the method and k that fit the model and engine and may turn prefix caching off. |

### Advanced settings *(Optional)*

Collapsed by default. Leave every field empty to keep the planner's choice for the cluster. The header reads *Planner defaults*, or *N changed* once you override something; **Reset to defaults** clears them.

| Field | What to enter | Rules and defaults |
| - | - | - |
| **Maximum context** | The longest request (input plus output, in tokens) the deployment must accept. | Whole number of at least 1. Empty means the model's maximum. Error: "Cannot exceed the model's maximum (N tokens)". |
| **LoRA adapters** | How many LoRA adapters can be served at the same time. | 0 to 8. 0 (the default) deploys without LoRA support. Error: "At most 8 adapters". |
| **Sampling** | How clients will call the model. | *Greedy (temperature 0)* or *Sampled*; empty is treated as sampled. Greedy gets more from speculative decoding. |
| **Weight precision** | *Auto* lets the planner pick a validated lower-precision variant when it is faster. *Original* keeps the checkpoint's weights. | Default Auto. |

> [!WARNING]
>
> **Set LoRA adapters now if you will use them.** Attaching more adapters later than the number set here re-plans and restarts the deployment. See "Attach a LoRA adapter" in [Operating a deployment](https://docs.budecosystem.com/deployments/operating-a-deployment.md).

Click **Next**. A "Finding best clusters for deployment" screen shows the simulation running ("Based on the deployment specification and clusters available, we are calculating what will be the best clusters to deploy on"). **Cancel** asks you to confirm ("You're about to cancel the finding best clusters process") and ends the attempt.

## Step 6 · Choose a Cluster

"Clusters are listed in best fit order." The line *Clusters Available* shows how many matched; **Search Clusters** filters by name. Each card shows the cluster, the cost in *USD / 1M tokens* and the predicted performance on it.

| Card figure | Meaning |
| - | - |
| **Workers** | How many replicas the plan needs for your concurrency. |
| **E2E Latency** | Predicted end-to-end latency for your average request. |
| **TTFT(ms)** | Predicted time to first token. |
| **Overall token per sec** | Predicted total throughput of the plan. |
| **Per session token per sec** | Predicted generation speed for one session. |
| **Concurrency** | Concurrent requests the plan serves. |

Click a card to select it; click it again to clear the choice. **Next** stays disabled until one cluster is selected. A plan can mix hardware types; the card then lists each device with its replicas, TTFT and end-to-end latency. If nothing fits you see **Cluster Not Found? Let's Tweak Things!**: click **Back** and relax concurrent requests, context length, tokens per second or TTFT.

## Step 7 · BudAI Scaler Configuration

Autoscaling is **off** by default; the deployment then runs a fixed set of replicas. Switch on **Enable autoscaling** to add replicas under load and remove them when it falls. You can also change this later under **Settings → Autoscaling** ([Operating a deployment](https://docs.budecosystem.com/deployments/operating-a-deployment.md)). Click **Deploy** to start, with or without it.

| Field | What to enter | Rules and defaults |
| - | - | - |
| **Min Replicas** | The fewest replicas the deployment may scale down to. | Required. Default 1. Replicas run, and cost money, even at zero traffic. |
| **Max Replicas** | The most replicas it may scale up to. | Required. Default 10. Reserves capacity from the cluster. |
| **Metrics Sources → Target Metric, Target Value** | The live signals that trigger scaling. **Add Source** adds another; the bin removes one. | Text models: Request in Queue (default 5), Running Requests (10), KV Cache Usage % (0.8), TTFT s (2), TPOT s (0.1), E2E Latency s (10). Embedding and classification models: Queue Depth (10), Embedding Latency s (2), Classify Latency s (2). With no source, defaults for the model type are used. |
| **Predictive Scaling** | Switch on to scale before a forecast spike, using past traffic. | Off by default. **Look Ahead (minutes)** 1 to 60, default 15. **History (days)** 1 to 90, default 7. **Min Confidence** slider 0 to 100%, default 70%. |
| **Schedule Hints → Add** | Pre-scale for known patterns such as business hours. | Each hint: **Frequency** (Every day, Weekdays (Mon-Fri), Weekends (Sat-Sun), Specific days with Mon to Sun), **Start Time** (HH:mm), **Target Replicas** (0 or more), **Duration** (1, 2, 4, 8, 12 or 24 hours; default 8). |
| **Scaling Behavior → Scale Up** | How quickly replicas are added. | **Stabilization (sec)** 0 to 3,600, default 30. **Select Policy** Max (default), Min or Disabled. **Percent Value (%)** 0 to 100 (default 100) per **Percent Period (sec)** (default 15). **Pods Value** (default 4) per **Pods Period (sec)** (default 15). |
| **Scaling Behavior → Scale Down** | How quickly replicas are removed. | Same fields. Defaults: Stabilization 300 s, Select Policy Min, Percent 100% and Pods 4, each per 15 s. |

> [!TIP]
>
> **Select Policy.** When both a percentage step and a pod step apply, *Max* uses the larger and *Min* the smaller. The defaults scale up fast and scale down slowly.

## Step 8 · Deployment In Progress

The drawer shows live progress for "\{model} in \{cluster}" ("This process may take a while, depending on your configuration"). Close or minimise it; the Task Island keeps tracking, and you get a notification when it finishes.

* **Cancel** asks "You're about to cancel the deployment process". **Continue Deployment** keeps going; **Cancel Anyways** stops, and you start again from the beginning.
* **Success.** "Deployment successful": click **View Deployment**.
* **Failure.** The buttons become **Back** (return to the autoscaling step) and **Retry** (redeploy with the same settings). An engine that fails to start can be re-rendered with the next fallback configuration before the failure is reported. If it still fails, read the error in the drawer, relax the targets or pick another cluster, and retry.

## Deployment statuses

| Status | Meaning |
| - | - |
| **Pending / Deploying** | The deployment is being created or started on the cluster. Model files are copied to the cluster first, which can take a while for large models. |
| **Running** | The deployment is healthy and accepting requests. |
| **Unhealthy** | It was running but is no longer passing its health checks. Check the **Workers** tab. |
| **Failure** | The deployment could not start. |
| **Deleting / Deleted** | It is being torn down, or is gone. |

## Cloud models: the shorter path

1. **Model Zoo:** select the cloud model and click **Next**.
2. **Select Credentials:** choose the stored provider credential. **Next** stays disabled until you do. For an OpenAI-compatible connection the drawer checks that the server lists the model; if it does not, you see a notice, but the deployment still goes ahead (some servers do not report every model they serve). If this is the wrong connection, requests fail at inference time.
3. **Template** (skipped for voice and decision-only models).
4. **Specification:** **Deployment Name** and **Concurrent Request**. There are no hardware targets, no simulation, no cluster and no autoscaling, because the provider runs the model.

> [!TIP]
>
> The deployment is created as soon as you click **Next** on the specification. A cloud deployment has no **Workers** tab and no autoscaling.

## Common problems

| What you see | Why and what to do |
| - | - |
| **No clusters listed** | No cluster can meet all targets. Relax the targets, lower concurrency, reduce **Maximum context**, or turn off a feature that limits placement. Check that a cluster with enough free GPUs is onboarded and healthy. |
| **A feature toggle is missing** | The model or the engine does not support it, so the platform does not offer it. |
| **Deployment name rejected** | Use only letters, numbers and hyphens, at most 50 characters. Names must be unique. |
| **Deployment stays in Deploying** | Large models take time to copy to the cluster. Open the Task Island for the current step. If a worker never becomes ready, check the cluster's free disk and GPU capacity. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.