After creating and uploading a custom image to SWR, you can use the image to import a model and deploy the model as a service on the ModelArts management console.
Set basic parameters for importing a model according to Importing a Meta Model from a Container Image. When importing a model using a custom image, pay attention to the settings of Meta Model Source and Configuration File.
Select Container Image. Click in the edit box of Container Image Path to select an image. The system automatically lists all images uploaded to SWR. Select an image based on the site requirements.
The model configuration file needs to be compiled independently. For details about how to compile the model configuration file, see Specifications for Compiling the Model Configuration File. For details about the configuration file examples of a custom image, see Example of the Custom Image Model Configuration File. After editing the model configuration file based on the ModelArts specifications, upload it to OBS or use Edit online on the Import Model page.
After a model is successfully imported using a custom image, that is, the model status is normal, you can deploy the model as a service. On the Models page, click Deploy in the Operation column and select a service type, for example, Real-time Service.
You can deploy models as real-time or batch services based on the business logic of your custom image. The procedure for deploying a model imported using other methods is the same as that for deploying a model imported using a custom image. For details, see Introduction to Model Deployment.