Deep learning model training method, system and medium

By performing variable dimension change processing and progressive training on the deep learning model, the problem of deploying the deep learning model on different computing power platforms is solved, and the efficient operation and large-scale deployment of the model on various hardware are achieved.

CN114528975BActive Publication Date: 2024-09-24传申弘安智能(深圳)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210070754.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-20
Publication Date
2024-09-24
Estimated Expiration
2042-01-20

AI Technical Summary

Technical Problem

Existing high-accuracy deep learning models have a large amount of parameters and calculations and cannot be deployed on various computing platforms. Moreover, the model compression technology requires retraining, which cannot meet the needs of large-scale deployment of AI models.

Method used

By processing variable dimensional changes in the deep learning model, including width changes, depth changes, convolution kernel size changes, attention head number changes, and embedding dimension changes, a progressive training method is adopted to achieve one-time training to meet the needs of different computing power platforms. Deployment requirements.

Benefits of technology

It realizes the flexible deployment of deep learning models on different computing power platforms, avoids repeated training, and meets the needs of large-scale deployment of AI models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114528975B
    Figure CN114528975B
Patent Text Reader

Abstract

The present invention discloses a deep learning model training method, system and medium, wherein the method comprises the following steps: performing variable dimension change processing on the deep learning model and training it, obtaining multiple deep learning models that meet the deployment requirements of different computing power platforms; wherein the variable dimension change processing includes but is not limited to the following dimensions, and also includes the combined changes of variable dimensions: width change processing, depth change processing, convolution kernel size change processing, attention head number change processing and embedding dimension change processing. The embodiment of the present invention solves the problem of repeated training encountered when the deep learning model is deployed on different computing power platforms, and by transforming the deep learning network structure and training process, it is possible to achieve one-time training to meet the deployment requirements of different computing power platforms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of deep learning, automatic machine learning, target detection, and image processing, and in particular to a deep learning model training method, system, and medium. Background Art

[0002] A large number of AI application scenarios require the deployment of a large number of AI models on different computing platforms, and new network models such as Transformer architecture networks are emerging in an endless stream. However, the number of parameters and computational complexity of existing high-accuracy deep learning models are rapidly increasing, and they can only run on high-computing platforms, which cannot meet the requirements of deployment on hardware with various computing powers. Although model compression technology can allow deep learning models to run on low-computing platforms, the deployment requirements of different types of computing platforms are different. Migration to different platforms requires retraining of deep learning models, which cannot meet the needs of large-scale deployment of AI models. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a deep learning model training method, which can transform the deep learning network, obtain new deep learning models of various widths and depths from the basic network, and achieve one-time training to meet the deployment requirements of different computing power platforms through a progressive training method.

[0004] The present invention also proposes a deep learning model training system.

[0005] The present invention also proposes a computer-readable storage medium for implementing the above-mentioned deep learning model training method.

[0006] According to the deep learning model training method of the first aspect of the present invention, the following steps are included: performing variable dimensional change processing on the deep learning model and training it to obtain multiple deep learning models that meet the deployment requirements of different computing power platforms; wherein the variable dimensional change processing includes but is not limited to the following dimensions, and also includes combined changes of variable dimensions: width change processing, depth change processing, convolution kernel size change processing, attention head number change processing and embedding dimension change processing.

[0007] The deep learning model training method according to the embodiment of the present invention has at least the following beneficial effects: the method of the embodiment of the present invention transforms the deep learning model and the training process to achieve one-time training to meet the deployment requirements of different computing power platforms.

[0008] According to some embodiments of the present invention, the width change processing includes: sampling multiple transformations from the N transformations of the deep learning model according to a sampling strategy to generate multiple new layers, and connecting the layers generated by the i-th transformation in series to form multiple new deep learning models; wherein N, i are positive integers; wherein the transformation includes transforming the input width and output width of the neural network layer of the deep learning model, retaining a first ratio of input to enter the neural network, and retaining a second ratio of output to enter the next layer of the network.

[0009] According to some embodiments of the present invention, the depth change processing includes: sampling different depths of the deep learning model according to a sampling strategy, sampling multiple times, discarding certain layers according to the sampling results, and connecting the retained layers in series to obtain multiple new deep learning models.

[0010] According to some embodiments of the present invention, the deep learning model is processed and trained with variable dimensional changes, including: training a deep learning model with variable dimensional changes, performing multiple variable dimensional change processes on the deep learning model and training it, specifically including: selecting K types of variable dimensional change processes and sorting them, where K is a positive integer and K≤5; performing the first variable dimensional change process on the trained initial deep learning model, and training the obtained multiple new deep learning models until the total number of iterations reaches a preset threshold, and obtaining multiple trained first-change deep learning models; performing the K+1th variable dimensional change process on the kth-change deep learning model, and training the obtained multiple new deep learning models until the total number of iterations reaches a preset threshold, and obtaining multiple trained K+1th-change deep learning models; where k represents the order of variable dimensional change processing.

[0011] According to some embodiments of the present invention, the variable dimensionality change processing and training of the deep learning model includes: a variable dimensionality change processing step: performing multiple variable dimensionality change processing on the initial deep learning model to obtain multiple deep learning models with variable dimensionality changes; a training step: inputting the training images into all the deep learning models with variable dimensionality changes for training, calculating the loss and gradient, and averaging all the obtained gradient information to update the parameters of the deep learning model; returning to the variable dimensionality change processing step until the total number of iterations of the deep learning model reaches a preset threshold.

[0012] According to some embodiments of the present invention, performing variable dimensional change processing and training on a deep learning model includes: S1, performing variable dimensional change processing on the deep learning model to obtain M new deep learning models; wherein M is a positive integer; S2, inputting training images into the obtained M deep learning models, and outputting M model prediction values; S3, calculating and adding the loss function based on the M model prediction values ​​and the annotations corresponding to the training images, and updating the parameters of the M deep learning models and the parameters included in the corresponding transformations through a gradient descent algorithm; S4, returning to step S1 until the total number of iterations of each of the deep learning models reaches a preset threshold.

[0013] According to some embodiments of the present invention, the sampling strategy includes at least one of the following: fixed sampling, random sampling, sampling by stage, sampling according to a certain probability distribution, and a mixture of fixed sampling and random sampling.

[0014] According to the second aspect of the present invention, the deep learning model training system includes: a variable dimension change processing module, which is used to perform variable dimension change processing on the deep learning model, and a training module, which is used to train the deep learning model; wherein the variable dimension change processing module includes at least two or more of the following units: a width change processing unit, which is used to perform width change processing on the deep learning model; a depth change processing unit, which is used to perform depth change processing on the deep learning model; a convolution kernel size change processing unit, which is used to perform convolution kernel size change processing on the deep learning model; an attention head number change processing unit, which is used to perform attention head number change processing on the deep learning model; and an embedding dimension change processing unit, which is used to perform embedding dimension change processing on the deep learning model.

[0015] The deep learning model training system according to the embodiment of the present invention has at least the following beneficial effects: the system of the embodiment of the present invention transforms the deep learning model structure training process to achieve one-time training to meet the deployment requirements of different computing power platforms.

[0016] According to some embodiments of the present invention, the variable dimensional change processing module includes a sampling strategy unit for selecting a sampling strategy, wherein the sampling strategy includes at least one of the following items: fixed sampling, random sampling, sampling by stage, sampling according to a certain probability distribution, and a mixture of fixed sampling and random sampling.

[0017] According to a computer-readable storage medium of an embodiment of the third aspect of the present invention, a computer program is stored thereon, and when the computer program is executed by a processor, the method of any one of the embodiments of the first aspect of the present invention is implemented.

[0018] Since the computer-readable storage medium of an embodiment of the present invention stores computer-executable instructions for executing the deep learning model training method as described in any one of the first aspects of the present invention, it has all the beneficial effects of the first aspect of the present invention.

[0019] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0021] Figure 1 A schematic diagram of the basic Transformer model structure of an embodiment of the present invention;

[0022] Figure 2 is a schematic diagram of a transformation operation according to an embodiment of the present invention;

[0023] Figure 3 A schematic diagram of a flow chart of a progressive training method according to an embodiment of the present invention;

[0024] Figure 4 A schematic diagram of width variation based on a sampling strategy according to an embodiment of the present invention;

[0025] Figure 5 The module schematic block diagram of the system according to the embodiment of the present invention. DETAILED DESCRIPTION

[0026] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0027] In the description of the present invention, "several" means one or more, "more" means two or more, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0028] The deep learning model training method of the present invention comprises the following steps: performing variable dimensional change processing on the deep learning model and training it to obtain multiple deep learning models that meet the deployment requirements of different computing power platforms.

[0029] The variable dimension change processing includes but is not limited to the following dimensions, and also includes the combined changes of variable dimensions: width change processing, depth change processing, convolution kernel size change processing, attention head number change processing and embedding dimension change processing.

[0030] In some embodiments, the width change processing includes: sampling multiple transformations from N transformations of the deep learning model according to the sampling strategy to generate multiple new layers, and connecting the layers generated by the i-th transformation in series to form multiple new deep learning models; wherein N, i are positive integers; wherein the transformation includes transforming the input width and output width of the neural network layer of the deep learning model, retaining the first proportion of input to enter the neural network, and retaining the second proportion of output to enter the next layer of the network. The neural network layer of this embodiment includes a fully connected layer, a convolutional layer, etc.

[0031] In some embodiments, depth change processing includes: sampling different depths of the deep learning model according to a sampling strategy, sampling multiple times, discarding certain layers according to the sampling results, and connecting the retained layers in series to obtain multiple new deep learning models.

[0032] In some embodiments, performing variable dimensional change processing and training on a deep learning model includes: selecting K types of variable dimensional change processing and sorting them, where K is a positive integer and K≤5; performing the first variable dimensional change processing on the deep learning model, and training the obtained multiple new deep learning models until the total number of iterations reaches a preset threshold, and obtaining multiple trained first-change deep learning models; performing the K+1th variable dimensional change processing on the k-th change deep learning model, and training the obtained multiple new deep learning models until the total number of iterations reaches a preset threshold, and obtaining multiple trained K+1th change deep learning models; wherein k represents the order of variable dimensional change processing.

[0033] In some embodiments, performing variable dimensional change processing and training on a deep learning model includes: a variable dimensional change processing step: performing multiple variable dimensional change processing on the deep learning model to obtain multiple deep learning models with variable dimensional changes; a training step: inputting the training images into all the deep learning models with variable dimensional changes for training, calculating the loss and gradient, and averaging all the obtained gradient information to update the parameters of the deep learning model; returning to the variable dimensional change processing step until the total number of iterations of the deep learning model reaches a preset threshold.

[0034] In some embodiments, performing variable dimensional change processing and training on the deep learning model includes: S1, performing variable dimensional change processing on the deep learning model to obtain M new deep learning models; wherein M is a positive integer; S2, inputting the training images into the obtained M deep learning models, and outputting M model prediction values; S3, calculating and adding the loss function based on the M model prediction values ​​and the annotations corresponding to the training images, and updating the parameters of the M deep learning models and the parameters included in the corresponding transformations through the gradient descent algorithm; S4, returning to step S1 until the total number of iterations of each deep learning model reaches a preset threshold.

[0035] In some embodiments, the sampling strategy includes at least one of the following: fixed sampling, random sampling, sampling by stage, sampling according to a certain probability distribution, and a mixture of fixed sampling and random sampling.

[0036] The following embodiment of the present invention takes the transformer model as an example to illustrate the deep learning model training method of the present invention.

[0037] The embodiment of the present invention transforms the transformer network, and can obtain new transformers of various widths and depths from the basic transformer; a progressive training method is proposed for the improved transformer, so that one-time training can meet the deployment requirements of different computing power platforms.

[0038] Perform variable-dimensional changes and train the Transformer network or the variant network based on the Transformer to obtain multiple Transformer models that meet the deployment requirements of different computing power platforms.

[0039] Among them, the variable dimension change processing includes at least two or more of the following items: width change processing of the Transformer model, depth change processing of the Transformer model, number change processing of the attention head, and embedding dimension change processing.

[0040] Width variation: Each layer Lold of the basic transformer network contains N possible transformations (the transformation can be linear, nonlinear, or identity, etc.), each of which can convert the corresponding layer into a new layer Lnew, whose width may be different from Lold.

[0041] Deep change: The new layers obtained by transformation are randomly discarded, and the retained layers are connected in series in sequence to form a new transformer structure.

[0042] Change in the number of attention heads: A sampling strategy is adopted for each layer of the transformer network to sample the number of attention heads and retain a certain number of attention heads.

[0043] Embedding dimension change: The input of each transformer network contains an embedding layer, which is a fully connected neural network. Its width is transformed to change its dimension.

[0044] The method of this embodiment is effective for all transformer-type structures, including but not limited to visiontransformer, swin transformer, bert and other structures.

[0045] Reference Figure 1 , using the most basic Vision transformer to illustrate an example of width change and the number of attention heads. The structure of a layer of Vision transformer is as follows Figure 1 shown. Figure 1 In the Vision transformer, the fully connected neural network (MLP), layer normalization (Norm), and multi-head attention layer (Multi-HeadAttention). The fully connected neural network can change the width of the output layer through transformation, and the multi-head attention layer can change the number of attention heads through transformation.

[0046] Reference Figure 2 , suppose you want to transform the input width and output width of the MLP layer, the input width is the width of the previous layer output, and the output width is 75% of the original width, then an example of width transformation is as follows Figure 2 That is, at the time of input, only the first 50% of the input is retained to enter the MLP, and only the first 75% of the output is retained to enter the next layer of the network.

[0047] Multi-Head Attention uses multiple attention heads (such as 7) for calculation, while variable Multi-Head Attention can reduce the amount of network calculation by reducing the number of attention heads, such as retaining only the results of the first 6 attention heads to participate in the next step of calculation. Similarly, the retained action is a transformation.

[0048] The modified transformer can directly generate new transformer models with different widths, depths, numbers of attention heads, and embedding dimensions. Since transformer models of different widths and depths are adapted to different computing powers, the generated transformer model can directly meet the deployment requirements of different computing power platforms.

[0049] The embodiment of the present invention provides two training methods. The first method is a progressive training method for variable dimensions; the second method is training all variable dimensions together.

[0050] The following embodiment introduces the first training method in detail.

[0051] The following embodiments select two variable dimensions: width change and depth change to transform the network.

[0052] Reference Figure 3 The method of the embodiment of the present invention comprises the following steps:

[0053] a. Normally train the basic transformer model until convergence. The specific training steps are:

[0054] 1. Input the training image into transformer and output the model prediction value.

[0055] 2. The model prediction value is compared with the annotation corresponding to the training image to calculate the loss function, and the transformer parameters are updated using the gradient descent algorithm.

[0056] 3. Repeat 1 and 2 until the basic transformer model converges.

[0057] b. The transformer model with varying sampling training width is trained. The specific training steps are as follows:

[0058] 1. Each layer of the trained basic transformer model contains N transformations. For each layer of transformations, a sampling strategy is used to randomly sample M transformations from the N transformations to generate M new layers (sampling strategies include fixed sampling, random sampling, sampling based on a certain distribution, a mixture of fixed sampling and random sampling, etc.). The size of M is estimated based on the computing power of the platform to be deployed, generally 4 to 8.

[0059] Further references Figure 4In some embodiments, according to a sampling strategy, among the M samplings, X times (e.g., X=2 or 3) are sampling to a fixed-width network, such as the first sampling is always sampling to the base transformer, the second sampling is always sampling to the minimum-width transformer, the third sampling is always sampling to a fixed-width transformer, and the remaining sampling is completely random. The layers generated by the i-th transformation are connected in series to form M new transformer models.

[0060] 2. Input the training image into the new transformer and output M model prediction values.

[0061] 3. The loss function is calculated and added for the M model prediction values ​​and the annotations corresponding to the training images, and the gradient descent algorithm is used to update the transformer parameters and the parameters contained in the corresponding transformation.

[0062] 4. Repeat 1, 2, and 3 until the total number of iterations meets the specified threshold.

[0063] c. Sample training depth-varying transformer model:

[0064] 1. For the trained transformer model with varying width, a sampling strategy (including fixed sampling, random sampling, sampling according to a certain distribution, a mixture of fixed sampling and random sampling, empty sampling, etc.) is used to randomly discard some layers of the M transformer models. In some embodiments, a sampling strategy is adopted: the first time, no discarding is done and the base transformer is sampled; the second time, the most layers are discarded and the transformer with the smallest depth is sampled; the third time, a transformer with a fixed depth is always sampled, and the rest are randomly discarded. The width of the retained layer is obtained by sampling according to step b.1. Note that the sampling width of the retained layer is only sampled once. Finally, the retained layers are connected in series to form M new transformer models.

[0065] 2. Input the training image into the new transformer and output M model prediction values.

[0066] 3. The loss function is calculated and added for the M model prediction values ​​and the annotations corresponding to the training images, and the gradient descent algorithm is used to update the transformer parameters and the parameters contained in the corresponding transformation.

[0067] 4. Repeat 1, 2, and 3 until the total number of iterations meets the specified threshold.

[0068] It should be noted that the progressive training method of this embodiment is not limited to width transformation and depth change. In some embodiments, after obtaining the trained transformer model with width change and depth change, one or more of the above-mentioned sampling strategies can be used for the transformer model to process the change in the number of attention heads and the change in the embedding dimension of the transformer model, and the transformer model after the change processing can be trained with reference to the above-mentioned progressive training method.

[0069] It should be noted that the transformer network transformation in this embodiment includes multiple variable dimensions, including width, depth, the number of attention heads, and embedding dimension. The order of change of these four variable dimensions is not fixed. For example, in the above embodiment, the depth can be changed first and then the width can be changed.

[0070] Since the training time of the transformer model is long, the progressive training method of this embodiment can avoid the waste of time caused by errors in the training of the transformer model. The transformer models trained in each stage can be retained through the progressive training method.

[0071] The second training method of the embodiment of the present invention is to train all variable dimensions together. An embodiment is used for illustration below.

[0072] Given a randomly initialized Transformer model, an image is input into the Transformer model. M Transformers are sampled from the largest Transformer model using a certain sampling strategy. The width, depth, number of attention heads, and embedding dimension of these M Transformers may be different. A recommended sampling strategy is to always sample the largest Transformer for the first time, the smallest Transformer (with the smallest width, depth, number of attention heads, and embedding dimension) for the second time, and a fixed Transformer for the third, fourth, …, K (K < M) times. The remaining are randomly sampled Transformer models. The variation processes of different widths, depths, number of attention heads, and embedding dimensions are the same as those described in the above embodiments, that is, several transformations are included in each layer to control the variation of width and the number of attention heads; several transformations are included in the embedding layer to control the variation of the embedding dimension; and several transformations are performed on the network depth to control the variation of depth (such as randomly discarding some layers of the Transformer model). These transformations may or may not include parameters.

[0073] Given the input, after sampling all the Transformer models, the input is input into all the models for forward propagation and the loss and gradients are calculated, and all the gradient information is averaged to update the parameters of the Transformer. This process is repeated until a fixed number of iteration steps is reached.

[0074] Corresponding to the foregoing embodiments, the present invention also provides an embodiment of the system. For the system embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment.

[0075] Referring to Figure 5 , the system according to the embodiment of the present invention includes: a variable dimension change processing module for performing variable dimension change processing on the deep learning model; and a training module for training the deep learning model.

[0076] Among them, the variable dimension change processing module includes at least two or more of the following units: a width change processing unit, used to perform width change processing on the deep learning model; a depth change processing unit, used to perform depth change processing on the deep learning model; a convolution kernel size change processing unit, used to perform convolution kernel size change processing on the deep learning model; an attention head number change processing unit, used to perform attention head number change processing on the deep learning model; and an embedding dimension change processing unit, used to perform embedding dimension change processing on the deep learning model.

[0077] In some embodiments, the variable dimension change processing module includes a sampling strategy unit for selecting a sampling strategy, and the sampling strategy includes at least one of the following: fixed sampling, random sampling, sampling by stage, sampling according to a certain probability distribution, and a mixture of fixed sampling and random sampling.

[0078] Although specific embodiments are described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are also within the scope of the present disclosure. For example, any of the functions and / or processing capabilities described in conjunction with a particular device or component may be performed by any other device or component. In addition, although various exemplary implementations and architectures have been described according to embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary implementations and architectures described herein are also within the scope of the present disclosure.

[0079] Some aspects of the present disclosure are described above with reference to the block diagram and flow chart of the system, method, system and / or computer program product according to the exemplary embodiments.It should be understood that the combination of one or more blocks in the block diagram and the flow chart and the blocks in the block diagram and the flow chart can be realized by executing computer executable program instructions respectively.Equally, according to some embodiments, some blocks in the block diagram and the flow chart may not need to be executed in the order shown, or may not need to be executed in full.In addition, additional components and / or operations beyond those components and / or operations shown in the blocks in the block diagram and the flow chart may be present in certain embodiments.

[0080] Therefore, the blocks in the block diagrams and flow charts support the combination of devices for performing the specified functions, the combination of elements or steps for performing the specified functions, and the program instruction devices for performing the specified functions. It should also be understood that each block in the block diagrams and flow charts and the combination of blocks in the block diagrams and flow charts can be implemented by a special-purpose hardware computer system or a combination of special-purpose hardware and computer instructions that performs a specific function, element or step.

[0081] The program modules, applications, etc. described herein may include one or more software components, including, for example, software objects, methods, data structures, etc. Each such software component may include computer-executable instructions that, in response to execution, cause at least a portion of the functionality described herein (e.g., one or more operations of the illustrative methods described herein) to be performed.

[0082] Software components can be encoded with any of various programming languages. An exemplary programming language can be a low-level programming language, such as an assembly language associated with a specific hardware architecture and / or an operating system platform. The software component comprising assembly language instructions may need to be converted to executable machine code by an assembler before being executed by hardware architecture and / or platform. Another exemplary programming language can be a higher-level programming language, which can be transplanted across multiple architectures. The software component comprising a higher-level programming language may need to be converted to an intermediate representation by an interpreter or a compiler before execution. Other examples of programming languages ​​include but are not limited to macro languages, shells or command languages, job control languages, scripting languages, database queries or search languages ​​or report writing languages. In one or more exemplary embodiments, the software component comprising the instruction of one of the above-mentioned programming language examples can be directly executed by an operating system or other software components, without first being converted into another form.

[0083] Software components may be stored as files or other data storage structures. Software components of similar type or related functions may be stored together, such as in a specific directory, folder, or library. Software components may be static (e.g., preset or fixed) or dynamic (e.g., created or modified at execution time).

[0084] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.

Claims

1. A deep learning model training method, characterized in that: The following steps are involved: Perform variable-dimensional processing and training on deep learning models to obtain multiple deep learning models that meet the deployment requirements of different computing power platforms; The variable dimension change processing includes the following dimensions, and also includes the combined changes of variable dimensions: width change processing, depth change processing, convolution kernel size change processing, attention head number change processing, and embedding dimension change processing; The width change process includes: According to the sampling strategy, multiple transformations are sampled from the N transformations of the deep learning model to generate multiple new layers, and the layers generated by the i-th transformation are connected in series to form multiple new deep learning models; wherein N, i are positive integers; The transformation includes transforming the input width and output width of the neural network layer of the deep learning model, retaining a first ratio of input to enter the neural network, and retaining a second ratio of output to enter the next layer of the network; The depth change processing includes: The deep learning model is sampled at different depths according to a sampling strategy, the sampling is performed multiple times, some layers are discarded according to the sampling results, and the reserved layers are connected in series to obtain multiple new deep learning models; The processing and training of the deep learning model with variable dimensions includes: Variable dimension change processing step: performing multiple variable dimension change processing on the deep learning model to obtain multiple deep learning models with variable dimension changes; Training steps: Input the training images into the deep learning model with all variable dimensions for training, calculate the loss and gradient, and average all the obtained gradient information to update the parameters of the deep learning model; Return to the variable dimension change processing step until the total number of iterations of the deep learning model reaches a preset threshold.

2. The deep learning model training method according to claim 1, characterized in that: The processing and training of the deep learning model with variable dimensions includes: Select K variable dimension changes and process and sort them, where K is a positive integer and K≤5; Performing a first variable dimension change process on the deep learning model, and training multiple new deep learning models obtained, until the total number of iterations reaches a preset threshold, to obtain multiple trained first change deep learning models; Performing a K-th variable dimension change process on the k-th change deep learning model, and training multiple new deep learning models obtained, until the total number of iterations reaches a preset threshold, to obtain multiple trained K-th change deep learning models; Here, k represents the order of variable dimension change processing.

3. The deep learning model training method according to claim 1, characterized in that: The deep learning model is processed and trained with variable dimensions, including: S1. Perform variable dimension change processing on the deep learning model to obtain M new deep learning models; where M is a positive integer; S2, input the training images into the obtained M deep learning models, and output M model prediction values; S3, calculating and adding the loss function according to the M model prediction values ​​and the annotations corresponding to the training images, and updating the parameters of the M deep learning models and the parameters included in the corresponding transformations by a gradient descent algorithm; S4. Return to step S1 until the total number of iterations of each of the deep learning models reaches a preset threshold.

4. The deep learning model training method according to any one of claim 1, characterized in that: The sampling strategy includes at least one of the following: Fixed sampling, random sampling, sampling by stage, sampling according to a certain probability distribution, and a mixture of fixed sampling and random sampling.

5. A deep learning model training system, characterized in that: include: The variable dimension change processing module is used to perform variable dimension change processing on the deep learning model; Training module, used to train deep learning models; The variable dimension change processing module includes at least two or more of the following units: a width change processing unit, which is used to perform width change processing on the deep learning model; A deep change processing unit, used for performing deep change processing on the deep learning model; A convolution kernel size change processing unit, used to perform convolution kernel size change processing on a deep learning model; An attentionhead quantity change processing unit is used to process the attentionhead quantity change of the deep learning model; and Embedding dimension change processing unit, used to process embedding dimension changes of deep learning models; The width change processing unit is further used for: According to the sampling strategy, multiple transformations are sampled from the N transformations of the deep learning model to generate multiple new layers, and the layers generated by the i-th transformation are connected in series to form multiple new deep learning models; wherein N, i are positive integers; The transformation includes transforming the input width and output width of the neural network layer of the deep learning model, retaining a first ratio of input to enter the neural network, and retaining a second ratio of output to enter the next layer of the network; The depth change processing unit is further used for: The deep learning model is sampled at different depths according to a sampling strategy, the sampling is performed multiple times, some layers are discarded according to the sampling results, and the reserved layers are connected in series to obtain multiple new deep learning models; The variable dimension change processing module is also used for: Variable dimension change processing step: performing multiple variable dimension change processing on the deep learning model to obtain multiple deep learning models with variable dimension changes; Training steps: Input the training images into the deep learning model with all variable dimensions for training, calculate the loss and gradient, and average all the obtained gradient information to update the parameters of the deep learning model; Return to the variable dimension change processing step until the total number of iterations of the deep learning model reaches a preset threshold.

6. The deep learning model training system according to claim 5, characterized in that: The variable dimension change processing module includes a sampling strategy unit for selecting a sampling strategy, wherein the sampling strategy includes at least one of the following: fixed sampling, random sampling, sampling by stage, sampling according to a certain probability distribution, and a mixture of fixed sampling and random sampling.

7. A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method according to any one of claims 1 to 4 when executed by a processor.