Get up and running quickly with Truss’ developer workflow
Truss' live reload model serving workflow
truss init
creates those files in a target directory.
To package a model with Truss, follow the quickstart, a step-by-step example, or an example from GitHub.
See the CLI reference for more information on truss init.
truss push
to spin up a model server with your model and config.
See the CLI reference for more information on truss init.
truss predict
.
See the CLI reference for more information on truss predict.
truss watch
command in a new terminal tab in the same working directory, as you’ll need to leave it running while you work.truss watch
running, it will automatically attempt to patch that change onto the model server. Most changes to model.py
and config.yaml
can be patched.
resources
in config.yaml
, which must be set before the first truss push
model_name
in config.yaml
. Changing the model name requires a new truss push
to create a new model server.truss watch
and run: