Skip to main content
Deploy any synced checkpoint from a training job to an inference engine straight from Baseten storage, without downloading or re-uploading the weights. The job must have checkpointing enabled. Engine-Builder-LLM and Baseten Embeddings Inference (BEI) support this workflow. The checkpoint must hold full model weights. A LoRA adapter checkpoint fails the engine build with BUILD_FAILED and no error message; deploy LoRA checkpoints with baseten train checkpoint deploy instead.
For deploying weights from external cloud storage (GCS, S3, Azure), see Deploy from cloud storage.
Each deployment on this page bills for its GPU while it’s live. When you finish, delete the model.

Checkpoint reference

The repo and revision fields in checkpoint_repository select the training project and checkpoint to deploy.
  • repo: The training project’s name. The job ID belongs in revision, not here.
  • revision: The job and checkpoint to deploy. These formats are supported:
To look up a job’s checkpoint names, run:
The checkpoint name is the value in the ID column. See List and download checkpoints for the full output.

LLM deployment

Use Engine-Builder-LLM to deploy a fine-tuned language model. Set base_model to decoder:
config.yaml

Embeddings deployment

Use BEI to deploy a fine-tuned embedding or reranker model. Use encoder_bert for BERT-based models (sentence-transformers, rerankers, classifiers) or encoder for causal embedding models:
config.yaml
Encoder models have specific requirements:
  • No tensor parallelism: Omit tensor_parallel_count or set it to 1.
  • Fast tokenizer required: Your checkpoint must include a tokenizer.json file. Models using only the legacy vocab.txt format aren’t supported.
  • Embedding model files: For sentence-transformer models, include modules.json and 1_Pooling/config.json in your checkpoint.
The webserver_default_route field sets the inference endpoint path:
  • /v1/embeddings: For embedding models.
  • /v1/systemone: For typed-decision models (BEI-Bert).
  • /rerank: For rerankers.
  • /predict: For classifiers.
  • /predict_tokens: For token-level prediction.

Deploy the model

To deploy the model, run the following command from the directory that contains config.yaml:
The command prints the deployment’s predict URL, which contains the model ID. --wait returns when the deployment is active. The curl examples below authenticate with BASETEN_API_KEY. Export your API key first. To call an LLM deployment:
To call an embeddings deployment:
For streaming, the OpenAI SDK, and other inference options, see Call your model.

Delete the model

When you finish, delete the model to stop its charges. Replace <model_id> with the model ID from the predict URL that baseten model push printed. Deleting the model doesn’t delete your synced checkpoints.
Pass --yes to skip the confirmation prompt in scripts.