# US 2023/0266956 A1 · Method and apparatus for processing mirror images of ai platform

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0266956 A1
- Document ID: US20230266956A1
- Status: Published application
- Kind: A1
- Application number: 18/012,934
- Filed: 2021-07-29
- Published: 2023-08-24
- Earliest claimed: 2020-09-11
- Assignees: Inspur Suzhou Intelligent Technology Co., Ltd.
- Applicants: Inspur Suzhou Intelligent Technology Co., Ltd.
- Inventors: Jiyu WANG
- Web page: https://patentgrep.com/patent/US20230266956A1

## CPC

- G06F 8/63: {Image based installation; Cloning; Build to order}
- G06F 16/116: {Details of conversion of file system types or formats}
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Disclosed is a method and device for processing mirror images of an AI platform, including: scanning a file used for building a mirror image to detect whether a format and syntax of the file are correct, and building the mirror image according to the file if the format and syntax are correct; selecting and installing a component required for mirror image training; adjusting queue positions of mirror images to be imported according to priorities of the mirror images, and importing the mirror images according to the queue positions; classifying and recommending mirror images, and performing a model training according to the mirror images selected; and in response to detecting that a storage of mirror images in a local disk space reaches a preset cleaning threshold, screening the mirror images, and cleaning mirror images screened out.

## Claims

### Claim 1

A method for processing mirror images of an artificial intelligence (AI) training platform, comprising:
scanning, in response to receiving a mirror image building request, a file used for building a mirror image to detect whether a format and syntax of the file are correct, and building the mirror image according to the file in response to detecting that the format and syntax of the file are correct;
selecting and installing, according to a type of the mirror image and component information, a component required for mirror image training in response to receiving a request for importing the mirror image to the training platform;
adjusting queue positions of mirror images to be imported according to priorities of the mirror images, and importing the mirror images according to the queue positions;
in response to receiving a model training request, classifying and recommending mirror images according to information about mirror images and information about training tasks, and performing a model training according to the mirror images selected; and
in response to detecting that a storage of mirror images in a local disk space reaches a preset cleaning threshold, screening, according to usage information of the mirror images, the mirror images, and cleaning mirror images screened out.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
monitoring a health state of a mirror image repository in real time, and determining, in response to monitoring that the health state is abnormal, whether the mirror image repository is deployed with a high availability; and
transferring traffic in the mirror image repository to a standby mirror image repository in response to determining that the mirror image repository is deployed with the high availability.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
detecting the health state of the mirror image repository at a preset time interval in response to determining that the mirror image repository is not deployed with the high availability, and sending abnormality prompt information in response to a number of detections reaching a preset number and determining that the health state is still abnormal.

### Claim 4 (depends on 1)

The method according to claim 1, further comprising:
displaying, during building the mirror image, building progress information in real time according to a number of command lines, and displaying, via a log, a command execution process in real time.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising:
in response to determining that the building the mirror image is high concurrency building or the importing the mirror image is high concurrency importing, adjusting a quantity of concurrent mirror images according to a resource utilization rate of a CPU and a memory.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
periodically detecting and processing mirror images that are inconsistent in the training platform and a mirror image repository.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the scanning, in response to receiving a mirror image building request, a file used for building a mirror image to detect whether a format and syntax of the file are correct further comprises:
prompting incorrect information and feeding back a modification example and modification suggestions in response to detecting that the syntax and format of the file are incorrect.

### Claim 8

A device for processing mirror images of an artificial intelligence (AI) training platform, comprising a processor and a memory, wherein the memory is configured to store a computer program, and the processor is configured to call the computer program stored in the memory and run the computer program to:
scan, in response to receiving a mirror image building request, a file used for building a mirror image to detect whether a format and syntax of the file are correct, and build the mirror image according to the file in response to detecting that the format and syntax of the file are correct;
select and install, according to a type of the mirror image and component information, a component required for mirror image training in response to receiving a request for importing the mirror image to the training platform;
adjust queue positions of mirror images to be imported according to priorities of the mirror images, and import the mirror images according to the queue positions;
in response to receiving a model training request, classify and recommend mirror images according to information about mirror images and information about training tasks, and perform a model training according to the mirror images selected; and
in response to detecting that a storage of the mirror images in a local disk space reaches a preset cleaning threshold, screen, according to usage information of the mirror images, the mirror images and clean mirror images screened out.

### Claim 9 (depends on 8)

The device according to claim 8, wherein the processor is further configured to:
monitor a health state of a mirror image repository in real time; determine whether the mirror image repository is deployed with a highly availability in response to monitoring that the health state is abnormal; and transfer traffic in the mirror image repository to a standby mirror image repository in response to determining that the mirror image repository is deployed with the high availability.

### Claim 10 (depends on 8)

The device according to claim 8, wherein the processor is further configured to:
in response to determining that the mirror images are built or imported in a high concurrency way, adjust a quantity of concurrent mirror images according to a resource utilization rate of a CPU and memory.

### Claim 11 (depends on 1)

The method according to claim 1, wherein the file used for building the mirror image is Dockerfile.

### Claim 12 (depends on 1)

The method according to claim 1, wherein before selecting and installing, according to a type of the mirror image and component information, a component required for mirror image training, the method further comprises:
detecting whether the mirror image has a component required for AI training.

### Claim 13 (depends on 12)

The method according to claim 12, wherein in response to detecting that the mirror image does not have the component required for AI training, the component is automatically recommended and installed according to the type of the mirror image, a use frequency of the component and installation times of the component.

### Claim 14 (depends on 1)

The method according to claim 1, wherein the adjusting queue positions of mirror images to be imported according to priorities of the mirror images comprises designating a mirror image to be processed preferentially.

### Claim 15 (depends on 1)

The method according to claim 1, wherein the classifying and recommending mirror images according to information about mirror images and information about training tasks comprises classifying and recommending the mirror images according to types of the mirror images, a task of mirror training, a star level of the mirror images and a number of uses.

### Claim 16 (depends on 1)

The method according to claim 1, wherein the usage information of the mirror images comprises a usage frequency, a pull time and a latest usage time of the mirror images.

### Claim 17 (depends on 3)

The method according to claim 3, wherein the detecting the health state of the mirror image repository comprises detecting the health state of a harbor repository.

### Claim 18 (depends on 17)

The method according to claim 17, wherein the health state of the harbor repository is abnormal due to network bridge abnormality of harbor services, container state abnormality of harbor services, port occupancy of harbor containers, harbor container abnormality, harbor mirror image abnormality.

### Claim 19 (depends on 6)

The method according to claim 6, wherein the detecting and processing mirror images that are inconsistent in the training platform and a mirror image repository comprises detecting a consistency of mirror images at the AI platform and a harbor repository.

### Claim 20

A non-transitory computer-readable storage medium storing programs that, when executed by a processor, cause the processor to perform a method for processing mirror images of an artificial intelligence (AI) training platform, comprising:
scanning, in response to receiving a mirror image building request, a file used for building a mirror image to detect whether a format and syntax of the file are correct, and building the mirror image according to the file in response to detecting that the format and syntax of the file are correct;
selecting and installing, according to a type of the mirror image and component information, a component required for mirror image training in response to receiving a request for importing the mirror image to a training platform;
adjusting queue positions of mirror images to be imported according to priorities of the mirror images, and importing the mirror images according to the queue positions;
in response to receiving a model training request, classifying and recommending mirror images according to information about mirror images and information about training tasks, and performing a model training according to the mirror image selected; and
in response to detecting that a storage of mirror images in a local disk space reaches a preset cleaning threshold, screening, according to usage information of the mirror images, the mirror images, and cleaning mirror images screened out.
