Skip to main content
Develop and deploy your own models on dedicated infrastructure. Truss is the model packaging framework. Its config.yaml file uses YAML syntax to define the model container, dependencies, and runtime configuration. Use the Baseten CLI to deploy and manage the package on Baseten with autoscaling and observability. To call a hosted model without deploying it, use Model APIs.

Choose how to serve your model

Start with the code or configuration you already have:
  • Model recipe or engine configuration: Follow Deploy your first model for an Engine-Builder-LLM endpoint, or choose a model recipe. Configure hardware, weights, and runtime behavior in config.yaml.
  • Custom Python: Write a Model class when you need preprocessing, postprocessing, or prediction logic. Follow The development loop to deploy a Python Truss and test an edit.
  • Existing inference server: Configure a model server to run Qwen with a vLLM container. Use Custom Docker servers to bring another container or serving framework.
  • Multi-step pipeline: Use Chains when models or processing steps need separate hardware and scaling.

Deploy the package

Use the Baseten CLI to deploy your Truss project. Deploy a model shows the same model deployed from Explore, from a Truss project with the Baseten CLI, or through the Management API.
Workflow from model configuration to a deployment on Baseten

Update a deployment

For Python Truss models, create a development deployment and test local edits. The CLI watches your project and applies supported changes without rebuilding the container. Development deployments are limited to one replica. For custom Docker servers and engine configurations, publish and validate an update. Test the new deployment before promoting it to an environment, which updates the version serving a stable endpoint.

Build multi-model systems

Use Chains when a workflow contains multiple models or steps that need different hardware. For example, a RAG pipeline can run retrieval and generation on separate instances with independent scaling rules.