Truss 101: Model serving
Step 7: Publish your Truss
Push your Truss to production-ready infrastructure
When you’re happy with your Truss, it’s time to publish it to production. This re-builds the model server on production-ready infrastructure.
Before publishing your Truss, you can turn off truss watch
as it only patches models under development, not published models.
Publish your Truss
To publish your Truss, run:
Re-building your model server takes more time than patching it; it’ll be a moment until the new server is ready to be called.
Call the published model
Once the new model server is live, call it with truss predict
:
Invocation
Response
Review your learning
In this tutorial, you learned how to:
- Create a Truss
- Connect your local development environment to a model server
- Deploy a basic text classification model
- Publish your model to production
For more step-by-step instructions, move on to the Truss 201 tutorial. Or, to find an example that matches your use case, see the Truss examples docs.