At this point, you will deploy the model the just created into RHOAI model serving. If something went wrong with the model traning you can still do this section. Just follow the first “Fallback” section.
Once again, in the following objects that you will create, please change “userX” with your real user ID.
Model Registry
userX
- Change with your USER IDminio123
https://minio-s3-minio.apps.crazy-train.sandbox1730.opentlc.com
none
model-registry
In your project create a model server. You can click here to go to see all your deployed models:
Click Add model server
Here is the info you need to enter:
Traffic Sign Detection
OpenVINO Model Server
1
Small
unchecked
unchecked
The result should look like:
You can click on Add to create the model server.
In your project, under Models and model servers select Deploy model.
Click Deploy model
Here is the information you will need to enter. If are on the fallback track, please change the “Existing data connection - Name” with the name of the data connection you created (Model Registry):
new
Traffic Sign Detection
onnx-1
pipelines
- FOR FALLBACK track: use Model Registry
models/model.onnx
The result should look like:
Click on Deploy.
If the model is successfully deployed you will see its status as green after few seconds.
We will now confirm that the model is indeed working by querying it!
Once the model is served, we can use it as an endpoint that can be queried. We’ll send a request to it, and get a result. This applies to anyone working within our cluster. This could either be colleagues, or applications.
First, we need to get the URL of the model server.
To do this, click on the Internal Service link under the Inference endpoint column.
In the popup, you will see a few URLs for our model server.
Note or copy the RestUrl, which should be something like http://modelmesh-serving.{user}:8008
We will now use this URL to query the model. Go back to the your running workbench i.e the jupyter notebooks environment.
inference/inference.ipynb
. Update the variable “RestUrl” with the endpoint your previously copied.The first section queries the base model that has been deployed globally for everyone. The second section takes your RestUrl endpoint and queries the model that you have tranined and deploy. You should see that with the base model, only the speed limit traffic signs are recognized. After your model re-training you now have a model that can better detect lego traffic signs. Congratulations!