Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.baseten.co/llms.txt

Use this file to discover all available pages before exploring further.

truss init [OPTIONS] TARGET_DIRECTORY
Creates a new Truss project in the specified directory with the standard file structure.

Options

}
-b, --backend
TrussServer | TRT_LLM
default:"TrussServer"
Server type to create. Default: TrussServer.
-n, --name
TEXT
Value assigned to model_name in config.yaml.
--python-config / --no-python-config
Use code-first tooling to build the model. Default: --no-python-config.
--log
humanfriendly | W | WARNING | I | INFO | D | DEBUG
default:"humanfriendly"
Logging verbosity. humanfriendly (default) is pretty-printed; INFO, DEBUG, WARNING produce structured logs.
--non-interactive
Disable interactive prompts. Use in CI/automated contexts where stdin isn’t a TTY.

Arguments

TARGET_DIRECTORY
TEXT
required
Directory where the Truss project is created.
Examples: Create a new Truss project:
truss init my-model
You should see:
Truss my-model was created in /path/to/my-model
This creates the following directory structure:
my-model/
├── config.yaml
├── data/
├── model/
│   ├── __init__.py
│   └── model.py
└── packages/
Create a Truss with a custom name:
truss init --name "My Model" my-model
Create a Truss with TRT_LLM backend:
truss init --backend TRT_LLM my-trt-model