Checkpoint conversion is a substep of deploying custom checkpoints on SambaStack or SambaCloud. See the Deploying custom checkpoints page for the high-level workflow.
Overview
The Checkpoint Conversion Tool provides two primary capabilities:- Checkpoint conversion: Transforms HuggingFace-format checkpoints into SambaNova-compatible format for deployment on SN40L hardware
- Speculative decoding validation: Verifies whether a converted draft checkpoint is compatible with a target checkpoint for speculative decoding deployments
Prerequisites
System requirements
Before using the Checkpoint Conversion Tool, ensure your system meets the following requirements:Estimated conversion times
Required software
- Docker Desktop or Docker Engine - Installation guide
- Google Cloud CLI - Installation guide
Required access
- Network access to your SambaStack instance endpoint
- Authentication credentials for Google Cloud (the same account used for your organization’s SambaStack artifact registry, if configured; otherwise contact your SambaNova account team or support)
Supported models and checkpoint formats
Supported model architectures
Custom checkpoint deployment is supported for a growing set of base models. To check whether custom checkpoints are supported for a model family, see the Supported models table and check the Custom checkpoints supported field in the Features and optimizations column.Checkpoint format requirements
Checkpoints are accepted in the HuggingFace format. The tensors should be in the safetensors format and the checkpoint directory should contain the same relevant config files as the base model for the custom checkpoint. For example, if the custom checkpoint is a finetuned variant of meta-llama/Llama-3.3-70B-Instruct, the checkpoint directory should contain files similar to the following:Checkpoint compatibility
Given that a checkpoint is fine-tuned or derived from one of the supported models for your platform, checkpoints are compatible when their computational graph has not been modified from the original checkpoint (i.e., tensor weights and shapes). Aspects that must remain unchanged:- Number of attention heads
- Rope type (rope theta)
- Model vocabulary size
- Optimizer type
- Static architectural attributes in
config.jsonsuch as:head_dim,hidden_act,intermediate_size,attention_bias,attention_dropout,vocab_size
- Model weights or model weight tensor values
- Tokenizer and vocabulary (as long as it retains the exact vocabulary size of the original model checkpoint–useful for multilingual use-cases)
Practical compatibility examples
Take the base model meta-llama/Llama-3.3-70B-Instruct (a base model supported by SambaNova). The following checkpoints use the same computational graph as the original 70B model and can be converted and deployed on SambaNova platforms: These checkpoints have undergone updates to their model weights, which have been adjusted and refined to improve performance or adapt to specific tasks or datasets.Download and set up
The Checkpoint Conversion Tool is distributed as a Docker container that encapsulates all conversion and validation utilities.Contact your SambaNova account team or SambaNova support to obtain your
<REGISTRY_HOST> and <REGISTRY_PATH> values.Install Docker Desktop or Docker Engine
Install the Docker engine in your conversion environment. You can follow the official Docker Engine Installation guide.After installation, start Docker (this can be done via the desktop application on macOS).
Install Google Cloud CLI
Install Google Cloud CLI in your conversion environment. You can follow the official Google Cloud CLI Installation guide.
Authenticate and pull the container image
First, configure the Docker client to authenticate with Authenticate with Google Cloud:Pull the Docker image:
<REGISTRY_HOST> (one-time setup):Replace
<REGISTRY_HOST> with your registry domain, provided by your SambaNova account team or SambaNova support.Use the Google account associated with your organization’s SambaStack artifact registry access, if you have one configured.
Replace
<REGISTRY_PATH> with your Checkpoint Conversion Tool image path, provided by your SambaNova account team or SambaNova support.Sync model metadata
This step downloads platform-specific model metadata from your SambaStack instance and stores it locally. The tool uses this metadata to perform checkpoint conversions. You can additionally inspect the model metadata to understand how artifacts are converted to run on SambaNova’s SN40L hardware.The metadata is fetched and cached by running the Checkpoint Conversion Tool container with the
download-serving-cache command.Command template
On native Linux/amd64 environments, the
--platform linux/amd64 flag is optional and can be omitted. It is primarily helpful on macOS (especially Apple Silicon) to ensure the correct architecture is used.Parameters
Your setup should now be complete. The full setup only needs to be done once. You may need to repeat Step 4 under the following conditions:
- SambaNova or your organization make more model architectures available for custom checkpoint inference
- Updates to any model metadata are released for your SambaStack instance (scoped by the base URL)
- You are switching to another platform (e.g., SambaCloud) or your organization is using multiple SambaStack instances (scoped by base URLs)
Convert and validate checkpoint
The Checkpoint Conversion Tool converts custom checkpoints (from HuggingFace or otherwise) into a format that can run on SambaNova’s SN40L hardware. This step occurs prior to uploading or deploying custom checkpoints on any SambaStack or SambaCloud.Command template
Parameters
These are the primary input flags to theprepare-ckpt command:
Host-level variables
In addition to the flags above, you will typically set the following environment variables for the Docker command:Validating the conversion output
After a successful conversion, verify that the output directory is complete and consistent:Checklist
- The output directory contains the expected set of
safetensorsfiles, typically namedmodel-00001-of-000NN.safetensors,model-00002-of-000NN.safetensors, …, up toNN - The output directory contains a
DONEfile indicating successful completion - The tool logs show no errors
Successful conversion log
A successful run ends with a log similar to:Failed conversion log
If conversion fails, you may see error entries like:If you do not see either
"One or more failures have occurred. Do not deploy" or "The process is completed without any errors" and the process exits unexpectedly, you may have hit an out-of-memory (OOM) condition. In that case, increase available memory and rerun the conversion.Once you’ve confirmed that the conversion completed successfully and the output directory contains all expected files, you can proceed to the upload and deployment steps in Deploying custom checkpoints.
Interpreting output logs and troubleshooting
The Checkpoint Conversion Tool prints a structured log for each run to help diagnose issues, identify which part of the process failed, and decide what to do next.Log structure overview
At a high level, each run includes:- A final report header showing the command that was executed
- A sequence of STEP entries indicating which module or test is running
- An Errors section (if any failures occur) with details and suggestions
- A final status line indicating whether the process completed successfully or failed
Example output log
Log components explained
Final report header Shows the exact command and arguments used:-
If there are no errors:
-
If a step results in error:
Error block components
If a step failed, each error block will contain the following fields:Common errors and solutions
Next steps
After successfully converting your checkpoint:- Upload the converted checkpoint to your GCS bucket
- Register the checkpoint with a Model Manifest
- Deploy the checkpoint using a Bundle configuration

