On this page

Deployments

A deployment runs one model on dedicated GPUs. Only your organization uses these GPUs.

Sources#

SourceDescription
Model hubA model from Hugging Face, for example hf:org/model.
PackageA folder with model files. The CLI uploads it.
ContainerA folder with a Dockerfile. Nuemetrix builds, scans and signs the image.

Make a deployment#

  1. In the dashboard, go to Deployments.
  2. Select New deployment.
  3. Type a name. Use lowercase letters, digits and hyphens.
  4. Select a model, or register a model from the model hub.
  5. Select the GPU class and the regions.
  6. Set the minimum and maximum number of replicas.
  7. 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#

SettingMeaning
Minimum replicasThe number of replicas that always run. Zero lets the deployment scale to zero.
Maximum replicasThe highest number of replicas.
Idle secondsThe time without requests before Nuemetrix removes a replica.
Target queueThe 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.

  1. Open the deployment.
  2. In Secrets, type the name and the value.
  3. Select Save secret.

A new secret makes a new revision.