For Engine-Builder-LLM or Baseten Embeddings Inference (BEI), see Deploy with optimized inference engines.
Prerequisites
- A training job with checkpointing enabled that writes checkpoints to
$BT_CHECKPOINT_DIR. - A checkpoint whose sync has completed. To check, run
baseten train checkpoint list --job-id <job_id>and look forCOMPLETEin theSYNCcolumn.
Prepare a LoRA adapter config
A LoRA checkpoint deploys only when Baseten can read its base model architecture. PEFT leavesauto_mapping null unless the LoraConfig sets it, so Baseten disables deployment with Architecture could not be determined.
Set auto_mapping.base_model_class to the model class from the base model’s config.json, not the model repo ID:
checkpoint-* directory. If the job already saved checkpoints, add the field to each adapter_config.json while it runs; Baseten syncs the change. If the job has finished, rerun it with the corrected config.
Deploy the checkpoint
- CLI
- UI
To deploy a checkpoint:
-
Run the following command, replacing
<job_id>with your training job’s ID: - At the prompts, select the checkpoints to deploy, then set the model name, the GPU type and count, and the Hugging Face secret.
model value to send in requests. For all options, see baseten train checkpoint deploy.Deploy from a config file
To skip the prompts, define aDeployCheckpointsConfig in a Python file and pass it with --config. The file is executed rather than read, and it must define exactly one DeployCheckpointsConfig:
deploy_config.py
DeployCheckpointsConfig.
To deploy the checkpoints the config names:
truss_configs/<model_version_name>_<model_version_id>/config.yaml. To inspect or customize the config before deploying, generate it without deploying:
Writing truss config to generated/config.yaml and creates no deployment. With --config-out-dir, the config goes directly into that directory instead of a truss_configs/<model_version_name>_<model_version_id>/ subdirectory. Pass --config with --dry-run: with only --job-id, the command prompts for the checkpoints to deploy, and fails in a script or CI job.
To deploy an edited config, copy it into its own directory and deploy it with baseten model push. For more information, see Deployments.
To serve a checkpoint from a config.yaml you write yourself, sync the checkpoint into a Baseten Delivery Network (BDN) volume and mount the volume.
Delete the model
When you finish, delete the model to stop its charges. Replace<model_id> with the model ID that the deploy command printed. Deleting the model doesn’t delete your synced checkpoints, so you can deploy them again.
--yes to skip the confirmation prompt in scripts.
Speech checkpoints
The Qwen3-ASR recipe produces afinal checkpoint of type FULL for Qwen3-ASR-1.7B. After it finishes syncing, select Deploy next to the checkpoint in the completed job’s Overview. Choose a compatible batch or real-time WebSocket serving template, then a supported GPU. The available templates depend on the checkpoint’s base model, architecture, and type.
For Qwen3-TTS, follow the recipe’s Truss deployment procedure. Its serving implementation and request format differ from the Qwen3-TTS Streaming Model Library entry.
Deploy custom or sharded checkpoints with Truss
For a custom model architecture or weights sharded across nodes, download the checkpoint files into your own Truss model with thetraining_checkpoints block.
To see each file’s node rank and path, run baseten train checkpoint files --job-id <job_id>. For a file such as checkpoint-10/weights.safetensors written by node 4, add a block like the following to your Truss configuration. Wildcards * match an arbitrary number of characters, while ? matches one.
/tmp/training_checkpoints/<job_id>/rank-<node_rank>/<relative_file_name>. For the preceding example, read: