This guide covers creating custom bundles. For deploying pre-configured bundles provided by SambaNova, see Deploying Bundles.
Prerequisites
Before creating custom bundles, complete the following that applies to you:Quickstart - Hosted
System set up for hosted SambaStack
Quickstart - On-prem
System set up for On-prem Sambastack
- Model Bundle Deployment - Bundle deployment concepts and workflows
- Supported Models and Bundles - Available model checkpoints
- Speculative Decoding Deployment Guidelines - Required if configuring speculative decoding pairs
Terminology
Concepts
Bundle architecture
For an overview of core bundle concepts including what bundles and bundle templates are see Deploying Model Bundles. This section covers the specific three-tier structure used when creating custom bundles:- BundleTemplate - Defines how models can be run: available sequence length profiles, batch sizes, and PEF mappings. Also defines target and draft model relationships for speculative decoding pairs.
- Bundle - Binds a template to specific checkpoints in storage, making it ready for deployment
- BundleDeployment - Instantiates one or more replicas of a bundle on the cluster
- Reuse templates across multiple checkpoints, including custom checkpoints for fine-tuned models
- Bundle different checkpoints of the same underlying model while sharing the same template
- Deploy the same bundle configuration with different replica counts
- Update checkpoints without modifying deployment configurations
BundleTemplate structure
A BundleTemplate defines the deployment capabilities for one or more models. The following example shows a multi-model template with speculative decoding configuration:- gpt-oss-120b: 2 configs
- Meta-Llama-3.3-70B-Instruct: 5 configs, 3 of which use speculative decoding with Meta-Llama-3.1-8B-Instruct as the draft model
- Meta-Llama-3.1-8B-Instruct: 3 configs
Models and Experts
Each model in a BundleTemplate contains one or more experts, which represent sequence length profiles. Common profiles include:8k,16k,32k,64k,128k- Fixed sequence length configurationsdefault- Standard configuration when no specific length is required
Speculative decoding parameters
Speculative decoding parameters
Parameters within
spec_decoding (target models only):For detailed guidance, see Speculative Decoding Deployment Guidelines.
Bundle structure
A Bundle binds a BundleTemplate to specific checkpoints. The following sections explain each part of the Bundle manifest. Resource Identity Define the Bundle name and resource type:metadata.name- The Bundle name used to reference this bundle in deploymentsapiVersionandkind- Keep these values the same for all bundles
Models
Map model names to checkpoints and templates:
Template and Secrets
Connect the Bundle to its BundleTemplate and credentials:
Complete Bundle Example
The following example shows a complete multi-model Bundle:source fields above.
BundleDeployment structure
A BundleDeployment instantiates a bundle on the cluster. For detailed deployment information, see Quickstart - Hosted or Quickstart - On-prem.PEF and checkpoint lifecycle status
SambaStack assigns apef_status field to PEF CR versions and a checkpoint_status field to model CR checkpoint versions to indicate their support lifecycle. Understanding these statuses helps you make informed decisions when selecting PEF or checkpoint versions for custom bundles.
PEF and checkpoint version status values
Each version entry in a PEF CR includes a pef_status field. Checkpoint CR versions use checkpoint_status. Both share the same set of values:
Example PEF CR versions with status
kubectl describe pef <pef-name> or kubectl describe model <model-name> and review the pef_status or checkpoint_status field in the Versions section.
Procedures
Identify available PEFs
Before creating a BundleTemplate, identify the PEF resources available for your model.1
List available PEFs
List PEFs matching your model and sequence length requirements:Example:Output:
- Hosted
- On Premise
2
View PEF details
View PEF details to understand supported configurations and check for higher versions:Example output:Review the
- Hosted
- On Premise
Spec.Metadata section for:batch_size- Supported batch sizemax_seq_length- Maximum sequence lengthnum_rdus- Required RDU countrdu_arch- Required RDU architectureseq_lengths- Supported sequence lengths
Versions section to determine if a higher PEF version is available and to review each version’s pef_status before referencing it in a BundleTemplate.Create a BundleTemplate
1
Create the YAML file
Create a YAML file for your BundleTemplate. For a single-model template:For multi-model templates with speculative decoding, see the BundleTemplate Structure example.
2
Apply the BundleTemplate
- Hosted
- On Premise
3
Verify creation
- Hosted
- On Premise
Create a bundle
1
Create the YAML file
2
Apply the Bundle
- Hosted
- On Premise
3
Verify legalizer validation
The legalizer automatically runs when you apply the bundle and validates whether the bundle fits in RDU memory.
- Hosted
- On Premise
- Successful validation
- Failed validation
Deploy the bundle
1
Create a BundleDeployment
2
Apply the BundleDeployment
- Hosted
- On Premise
3
Monitor deployment status
- Hosted
- On Premise
Update or remove a bundle/BundleTemplate
- Update a bundle
- Remove a bundle
1
Modify the YAML file
Edit the Bundle or BundleTemplate YAML file with your changes.
2
Reapply the configuration
- Hosted
- On Premise
Troubleshooting
Legalizer validation failures
Deployment failures
Related documentation
Model Deployment
Bundle deployment concepts and workflows
Supported Models and Bundles
Catalogue of models and bundles available for deployment
Custom checkpoint deployment
Deploy your own custom or fine-tuned checkpoints
Checkpoint Conversion Tool
Convert Checkpoints to Compatible formats

