Deployments
A deployment runs one model on dedicated GPUs. Only your organization uses these GPUs.
Sources#
| Source | Description |
|---|---|
| Model hub | A model from Hugging Face, for example hf:org/model. |
| Package | A folder with model files. The CLI uploads it. |
| Container | A folder with a Dockerfile. Nuemetrix builds, scans and signs the image. |
Make a deployment#
- In the dashboard, go to Deployments.
- Select New deployment.
- Type a name. Use lowercase letters, digits and hyphens.
- Select a model, or register a model from the model hub.
- Select the GPU class and the regions.
- Set the minimum and maximum number of replicas.
- Select Create deployment.
The status changes from building or deploying to ready. A deployment with a minimum of zero replicas changes to scaled_to_zero when it has no traffic.
Scaling#
| Setting | Meaning |
|---|---|
| Minimum replicas | The number of replicas that always run. Zero lets the deployment scale to zero. |
| Maximum replicas | The highest number of replicas. |
| Idle seconds | The time without requests before Nuemetrix removes a replica. |
| Target queue | The number of waiting requests for each replica before Nuemetrix adds a replica. |
Revisions#
Each change to the model, the GPU or a secret makes a new revision. To go back to an earlier revision, open the deployment and select Roll back on that revision.
Secrets#
A secret is an environment variable that Nuemetrix encrypts. The replica can read it. The dashboard and the API never show the value again.
- Open the deployment.
- In Secrets, type the name and the value.
- Select Save secret.
A new secret makes a new revision.