Skip to main content
Deploy a synced checkpoint from a training job as a Baseten model, from the Baseten CLI or the dashboard. This covers Hugging Face-compatible LLM checkpoints; for Qwen3-ASR and Qwen3-TTS, see Speech checkpoints.
For Engine-Builder-LLM or Baseten Embeddings Inference (BEI), see Deploy with optimized inference engines.

Prerequisites

Prepare a LoRA adapter config

A LoRA checkpoint deploys only when Baseten can read its base model architecture. PEFT leaves auto_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:
PEFT writes this value into every saved adapter config, including each 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

The deployment bills for its GPU while it’s live. When you finish, delete the model.
To deploy a checkpoint:
  1. Run the following command, replacing <job_id> with your training job’s ID:
  2. At the prompts, select the checkpoints to deploy, then set the model name, the GPU type and count, and the Hugging Face secret.
When the deployment is created, the command prints its model ID, deployment ID, and a logs link, then the model value to send in requests. For all options, see baseten train checkpoint deploy.
After the deployment finishes, call it like any other model. For more information, see Call your model.

Deploy from a config file

To skip the prompts, define a DeployCheckpointsConfig 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
The config sets which checkpoints deploy and the model that serves them. For all fields, see DeployCheckpointsConfig. To deploy the checkpoints the config names:
Each deploy writes the generated model config to truss_configs/<model_version_name>_<model_version_id>/config.yaml. To inspect or customize the config before deploying, generate it without deploying:
The command prints 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.
Pass --yes to skip the confirmation prompt in scripts.

Speech checkpoints

The Qwen3-ASR recipe produces a final 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 the training_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.
When the replica starts, Baseten downloads each file to /tmp/training_checkpoints/<job_id>/rank-<node_rank>/<relative_file_name>. For the preceding example, read: