basetenlabs/truss

The simplest way to serve AI/ML models in production

What it solves

Truss simplifies the process of deploying and serving AI/ML models in production. It removes the need for manual containerization, Dockerfile writing, and Kubernetes configuration, allowing developers to move from a model on Hugging Face to a production-ready API endpoint quickly.

How it works

Truss provides a CLI that packages model code, weights, and dependencies into a portable format. Users define their deployment specifications—such as hardware (GPUs), model weights, and inference engines—in a config.yaml file. The tool then handles the build process, including TensorRT-LLM optimization and containerization, and deploys the model to Baseten or other infrastructure.

Who it’s for

ML engineers and developers who want to deploy models from any Python framework (such as PyTorch, TensorFlow, vLLM, or transformers) without managing the underlying infrastructure or container orchestration.

Highlights

  • Framework Agnostic: Supports a wide range of frameworks including vLLM, SGLang, TensorRT-LLM, transformers, and diffusers.
  • Rapid Iteration: Features live reload and a "watch" mode to sync changes to deployed models without full rebuilds.
  • Simplified Configuration: Uses a YAML-based configuration for specifying hardware and model settings, with IDE support for autocompletion and validation.
  • Production Ready: Built-in support for GPU configuration, secrets, caching, and autoscaling.

Related

  • Project
  • Project
  • Project
  • Project
  • Project