Previous
Deploy software
Deploy a trained ML model to one machine or your entire fleet using the same fragment workflow you use for modules. When you retrain and upload a new model version, machines configured to track that version update automatically.
Use this page when you have a trained model in the Viam registry and want to deploy it to multiple machines. If you are deploying to a single machine for the first time, start with deploy a model to a machine.
ML models are deployed as registry packages, the same way modules are. A machine needs two services to run a model:
You configure both services in a fragment, apply the fragment to your machines, and every machine downloads the model and starts running inference.
tflite and add tflite_cpu).mlmodel and add the mlmodel vision service.Each ML model package has a version field in the fragment configuration.
stable and development tags on the fragment. Test new models on development machines before promoting to production. See reuse configuration for the tag workflow.To control the timing of updates, configure a maintenance window so models are not swapped while a machine is actively processing. See manage versions.
Apply the fragment to your machines through the Viam app, provisioning, or CLI. See deploy software for the steps.
When you retrain and upload a new model version:
stable tag to the new revision.Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better:
Thank you!