Help Center/ ModelArts/ Troubleshooting/ Inference Deployment/ Model Management/ Creating a Model Failed Due to Image Building Timeout
Updated on 2024-12-30 GMT+08:00

Creating a Model Failed Due to Image Building Timeout

Symptom

A model fails to be created. Error message "Model image build task timed out" is displayed, and no detailed build log is generated.

Figure 1 Building the model image timed out

Possible Causes

ImagePacker has a timeout limit when building images. The default value is 30 minutes (which may vary in different regions). If building a model image times out, the building task will fail. In this case, the message "Model image build task timed out" is displayed, and no detailed build log is generated.

Solution

  • Prepare the dependency packages to be downloaded and built beforehand to save time. You can install the running environment dependency using an offline wheel package. When installing the offline wheel package, ensure that the wheel package and model file are stored in the same directory.
  • Optimize the model code to improve the efficiency of building model images.