Skip to main content
Labels are a JSON object stored with a deployment. Use them to record metadata such as the owning team, source commit, or CI run. Published deployment labels remain fixed after creation. To change them, create another deployment with new labels. For a development deployment, passing labels on a later push replaces its current labels. Omitting labels preserves them. A label object can be up to 2 KB after JSON serialization. Label keys and string values can contain printable ASCII characters except spaces.

Set labels

To label a deployment:
For more information, see baseten model push.

View labels

After you push the deployment, view its labels in the console, the Baseten CLI, or the Management API:
To view a deployment’s labels:
  1. Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
  2. Select your model.
  3. Select the deployment under Deployments.
  4. Find Labels in the deployment details, below Truss config.

Next steps

Use labels in CI/CD to compare the deployment running on Baseten with the commit or workflow run that created it.