Help Center> ModelArts> Tool Guide> FAQs> What Should I Do If an Error Occurs During Service Deployment

What Should I Do If an Error Occurs During Service Deployment

Before deploying a model as a service, you need to compile the configuration file and inference code based on the trained model.

If the confi.json configuration file or the customize_service.py inference code is missing in the model storage path, an error is displayed, as shown in the following figure.

Solution: Compile the configuration file and inference code, and save them to the OBS directory where the model to be deployed resides. For details, see Model Package Specifications, Specifications for Compiling the Model Configuration File, and Specifications for Compiling Model Inference Code.

Figure 1 Error