According to Qichacha APP, Huawei Technologies Co., Ltd. recently published a patent for "A Method and Apparatus for Generating AI Models." The patent abstract indicates that this technology, related to the field of artificial intelligence, can improve the efficiency of generating AI models and reduce resource consumption. The method involves: the first processor, based on the execution time of each operator in the multiple operators of the AI model, the memory occupancy of the second memory of the second processor during the operation of each operator, and the memory offloading time, constructs a target optimization with the operation instruction information as the optimization variable.