← back to the directory
Library / SDK Inference & ServingCoding

Truss

1Packages 2and 3serves 4any 5Python 6model

the six Ws · specification

W1 Who

ML engineers at Baseten and elsewhere who want a simple, framework agnostic way to serve models in production.

W2 What

Truss is an open source Python library that packages a trained model plus its dependencies into a deployable, Docker based serving container with minimal boilerplate.

W3 Where

Used locally to define and test a model server, then deployed either to Baseten's cloud or any other Docker environment.

W4 When

Released by Baseten in 2022 and maintained with regular updates through 2026.

W5 Why

Standardizes model serving across frameworks like PyTorch, TensorFlow, and Hugging Face so teams avoid writing custom Flask or FastAPI wrappers.

W6 With

Built in Python and generates Docker images, with optional one command deployment to Baseten's hosted infrastructure.

W7 Watch

Open source under MIT on GitHub, no account required for local packaging, a Baseten account is only needed for their hosted deployment target.

alternatives

works with

model-packagingbasetendockerpythonserving

for agents & scripts

Reading this as a machine? Query it directly.

Search is open JSON - no key. Report telemetry after using a tool and it feeds that tool’s Proof Score. Or speak MCP to /mcp and discover tools mid-loop.