Skip to main content
This page describes how to serve a bundle by referencing it from a ModelDeployment. It applies both to the bundles that SambaNova provides and to bundles you authored yourself. To author your own bundle first, see Create a custom bundle. To serve a single model without a bundle, see Deploy a single model.

Prerequisites

Before deploying, complete the quickstart that applies to you:

Quickstart - Hosted

System set up for hosted SambaStack

Quickstart - On-prem

System set up for on-prem SambaStack
Additionally:

Deploy the bundle

1

Discover the available bundles

List the bundles present in the cluster and note the name of the one you want to deploy:
Output:
Before deploying, confirm the bundle passed validation, as described in Legalizer results.
2

Create a ModelDeployment

Insert the bundle name into spec.bundle:
3

Apply the ModelDeployment

4

Monitor deployment status

Verify the deployment

Pods reporting ready means the serving containers started, not that the model answers requests. Confirm the serving name, then send one inference request.

Resolve the serving name

The name you send to the API is not the Kubernetes resource name. Three names are involved: Read the serving name from the Model you deployed:
Then confirm the gateway is serving it. Each id in the response is a servable name:
A model set to modelSettings.routable: false, such as a speculative decoding draft model, is deliberately absent from this list and cannot be addressed directly.

Send a request

Use the serving name in the model field:
A successful response returns the serving name in model and a populated choices[0].message:
The usage object carries additional throughput and latency fields; for the full body, and for the API domain to use in each environment, see Quickstart - Hosted or Quickstart - On-prem.
A model not found error with pods running usually means the request used metadata.name instead of spec.name. An inference error on a model that loads and lists usually means the checkpoint and the profile disagree on model_arch. See Deployment failures.

Switch bundles

A ModelDeployment’s bundle reference cannot be changed in place. To serve a different bundle, delete the existing deployment and apply a new one that references the new bundle.
1

Delete the existing ModelDeployment

2

Apply a ModelDeployment for the new bundle

Author a new ModelDeployment whose spec.bundle names the bundle you want to serve, then apply it as described in Deploy the bundle.
To request new bundles, contact SambaNova support.

Deploy multiple bundles

To serve more than one bundle at a time, apply a separate ModelDeployment for each bundle.
SambaStack supports only one bundle per node. When deploying multiple bundles, assign each bundle to separate nodes to avoid resource conflicts. Use spec.nodeSelector on each ModelDeployment to control placement.
Verify that the pods reflect the deployed bundles:

Update or remove a deployment or bundle

1

Modify the YAML file

Edit the ModelBundle, ModelProfile, or ModelDeployment YAML file with your changes.
2

Reapply the configuration

The legalizer automatically revalidates the changes. Changing a profile or a model triggers a reconcile of every bundle and deployment that references it.

Troubleshooting

For the failures the operator reports once it starts creating serving pods, and for the failures the legalizer reports before that, see Troubleshooting deployments.

Supported models and bundles

Catalogue of models and bundles available for deployment

ModelDeployment

Full field reference for the deployment resource

Deploying custom checkpoints

Deploy your own custom or fine-tuned checkpoints

Migrating bundle configuration

Migrate bundles built with the deprecated custom resources