Upon successful model import, the state of a model can be UNSPECIFIED
, OFFLINE
, ONLINE
or ERROR
.
- When a model is initially created, the states is by default
OFFLINE
. - A model can be switched to
OFFLINE
state by invoking themodel-backend
endpoint/undeploy
only when its original state isONLINE
. - A model can be switch to
ONLINE
state by invoking themodel-backend
endpoint/deploy
only when its original state isOFFLINE
. Model deployment operation can take time depending on factors like Internet connection and model size. Before a model is deployed online, the state will beUNSPECIFIED
. - If the state of a model ends up with
ERROR
, it is undeployable on Instill Model. Please refer to Prepare Models to make your model Instill Model ready.
The finite-state-machine (FSM) diagram for the model state transition logic
in which <user-id>
and <model-id>
corresponds to the namespace and ID of a model.