Server-based data processing method, system, device, medium and product
By running the neural network model on different servers, training the hardware computing power evaluation model and optimizing the model parameters, the problem of hardware characteristics being ignored is solved and the best performance and efficiency of the neural network model on different hardware is achieved.
Patent Information
- Application Number
- CN202410792199.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-19
AI Technical Summary
Existing neural architecture search methods ignore hardware characteristics, resulting in a low match between the searched neural network structure and the actual hardware, and the inability to achieve optimal performance on different hardware.
By pre-building multiple neural network models to run on different servers, obtain performance evaluation parameters, train the hardware computing power evaluation model, predict server performance, optimize the neural network model to adapt to specific hardware, and construct an objective function to optimize model parameters.
It improves the optimal performance of neural network models running on different servers, ensures the best match between the model and hardware, and improves efficiency and resource utilization.
Smart Images

Figure CN118364867B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a server-based data processing method, system, device, medium and product. Background Art
[0002] Neural Architecture Search (NAS) is an automated model design method that aims to replace traditional manual network design. Neural Architecture Search uses machine learning algorithms to find the optimal neural network structure. The core idea is to search for the neural network structure with the best performance in a predefined search space. This method can help people design and optimize neural networks more quickly, thereby improving the performance and efficiency of the model.
[0003] Currently, as different types of hardware devices are used to run neural networks, both academia and industry are in urgent need of studying more challenging hardware-aware neural architecture search problems. This means considering the impact of hardware characteristics on the structure of the neural network and seeking the best performance when running on different hardware.
[0004] However, most existing studies use hardware-independent metrics, which ignores the inconsistency between hardware-independent metrics and the actual efficiency measured on real hardware, and may result in a low match between the searched neural network structure and the hardware to which it is applied. Summary of the invention
[0005] The purpose of the present invention is to provide a server-based data processing method, system, device, medium and product, which takes into account the influence of the server's indicator parameters on the third neural network model, so that the determined target neural network model is more suitable for application to a specific server, thereby improving the optimal performance of the neural network model when running on different servers.
[0006] In a first aspect, the present invention provides a server-based data processing method, comprising:
[0007] Pre-constructing a plurality of first neural network models, respectively running the plurality of first neural network models on servers with different index parameters, and obtaining a plurality of first performance evaluation parameters, wherein the first performance evaluation parameters are used to characterize the efficiency of the servers running the first neural network models;
[0008] Using a plurality of the first performance evaluation parameters and the index parameters of the server as training data sets, training the second neural network model to obtain a hardware computing power evaluation model; the hardware computing power evaluation model is used to characterize the corresponding relationship between the index parameters of the server and the first performance evaluation parameters;
[0009] Inputting the index parameters of the current server into the hardware computing power evaluation model to predict the second performance evaluation parameters of the current server;
[0010] Constructing an objective function according to the second performance evaluation parameter and the model parameters of the third neural network model, optimizing the third neural network model according to the objective function, determining the third neural network model that meets the preset optimization conditions as a target neural network model, and running the target neural network model on the current server;
[0011] The third neural network model is a model used to detect or classify targets in a preset image data set.
[0012] Wherein, several first neural network models are respectively run on the servers with different index parameters to obtain several first performance evaluation parameters, including:
[0013] Running several first neural network models with different numbers of channels on servers with different indicator parameters to obtain several first delay times, where the first delay times are inference delay times required when the first neural network model runs on the servers;
[0014] The second neural network model is trained by using the first performance evaluation parameters and the index parameters of the server as a training data set to obtain a hardware computing power evaluation model, including:
[0015] The indicator parameters of each server are encoded, and the second neural network model is trained using the encoded indicator parameters of the server, the number of channels and the first delay time to obtain the hardware computing power evaluation model.
[0016] The index parameters of each server are encoded, and the second neural network model is trained using the encoded index parameters of the server, the number of channels and the first delay time to obtain the hardware computing power evaluation model, including:
[0017] Encoding the indicator parameters of the server into a first vector, a second vector and a third vector;
[0018] Calculating the similarity between the first vector and the second vector using an attention mechanism to obtain an attention weight; the attention weight is used to characterize the correlation between the indicator parameters of the server;
[0019] Using a random selection module to randomly select or randomly remove some of the attention weights to obtain a target attention weight;
[0020] Concatenate the target attention weight and the number of channels to obtain an intermediate weight;
[0021] Determine a prediction parameter output by the hardware computing power evaluation model according to the intermediate weight and the third vector;
[0022] The hardware computing power evaluation model is determined according to the prediction parameters.
[0023] Wherein, determining the prediction parameter output by the hardware computing power evaluation model according to the intermediate weight and the third vector includes:
[0024] multiplying the intermediate weight by the third vector to obtain a weighted third vector;
[0025] The prediction parameter output by the hardware computing power assessment model is determined based on the weighted third vector.
[0026] The similarity between the first vector and the second vector is calculated by using the attention mechanism to obtain the attention weight, including:
[0027] The similarity between the first vector and the second vector is calculated using a first preset expression to obtain an attention weight, where the first preset expression is:
[0028] ;
[0029] in, is the attention weight, Q is the first vector, K is the second vector, T is the transposed matrix, w is the number of attention heads.
[0030] The index parameters of each server are encoded, and the encoded index parameters of the server, the number of channels and the first delay time are used for training to obtain the hardware computing power evaluation model, including:
[0031] The indicator parameters of each server are encoded, and the hardware computing power evaluation model is determined according to a second preset expression, where the second preset expression is:
[0032] ;
[0033] in, f 1 is the hardware computing power evaluation model, is the activation function, Q is the first vector, K is the second vector, V is the third vector, w is the number of attention heads, T is the transposed matrix, Attention is the function corresponding to the attention layer in the neural network, softmax is the function corresponding to the softmax layer in the neural network.
[0034] Among them, several first neural network models are pre-built, including:
[0035] Presetting a target search space, wherein the target search space includes the type and structure of the network layer, and the number of channels and convolution kernels of each of the network layers;
[0036] Randomly determine a number of sample parameters of the first neural network model from the target search space, and construct a number of the first neural network models based on the sample parameters.
[0037] The target search space is pre-set, including:
[0038] Preset a basic search space, where the convolution kernel of the basic search space is not less than n×n, n is an integer not less than 3, and the number of channels of each network layer is not less than 8;
[0039] The target search space is set to be M times the basic search space, where M is an integer greater than 1.
[0040] Wherein, the connection relationship between network layers in the target search space at least includes parallel connection, and / or switching connection, and / or fusion connection;
[0041] When the upper network layer is connected in parallel with the lower network layer, the characteristics of the upper network layer are directly transmitted to the lower network layer;
[0042] When the upper network layer is exchanged and connected with the lower network layer, the first feature of the first resolution of the upper network layer is converted into the first feature of the second resolution, and the first feature of the second resolution is transmitted to the lower network layer and merged with the second feature of the second resolution in the lower network layer, and the first resolution is greater than the second resolution;
[0043] When the upper network layer is fused and connected with the lower network layer, the first feature of the third resolution of the upper network layer is converted into the first feature of the fourth resolution, and the first feature of the fourth resolution is transmitted to the lower network layer and fused with the second feature of the fourth resolution in the lower network layer.
[0044] Wherein, after inputting the index parameter of the current server into the hardware computing power evaluation model and predicting the second performance evaluation parameter of the current server, it also includes:
[0045] Obtaining actual performance parameters of the server;
[0046] Determine a preferred value range of the number of channels according to the actual performance parameter and the second performance evaluation parameter;
[0047] Constructing an objective function according to the second performance evaluation parameter and the model parameters of the third neural network model, and optimizing the third neural network model according to the objective function, including:
[0048] An objective function is constructed according to the second performance evaluation parameter and the model parameters of the third neural network model, and the third neural network model is optimized according to the objective function within the preferred value range of the number of channels.
[0049] Wherein, determining the preferred value range of the number of channels according to the actual performance parameter and the second performance evaluation parameter includes:
[0050] determining a difference between the second performance evaluation parameter and the actual performance parameter;
[0051] The preferred value range of the number of channels is determined according to the difference.
[0052] Wherein, determining the difference between the second performance evaluation parameter and the actual performance parameter includes:
[0053] The difference between the second performance evaluation parameter and the actual performance parameter is determined according to a third preset expression, wherein the third preset expression is: s ( x )= a × f ( x , d )- b × m ( x );
[0054] in, s ( x ) is the difference, a is the first multiplication factor, f ( x , d ) is the second performance evaluation parameter, x is the current channel number, d For the current server, b is the second multiplication factor, m ( x ) are actual performance parameters.
[0055] Wherein, determining the preferred value range of the number of channels according to the difference includes:
[0056] Scoring the differences to obtain a score corresponding to each difference;
[0057] The k channel numbers corresponding to the first k scores are selected in order from high to low as the preferred value range of the channel number, where k is a positive integer.
[0058] Wherein, constructing an objective function according to the second performance evaluation parameter and the model parameters of the third neural network model comprises:
[0059] Constructing the objective function according to the second performance evaluation parameter and the weight parameter and structure parameter of the third neural network model;
[0060] The expression of the objective function is: f = L ( θ , α )+ E ( latency ), where f is the objective function, θ is the weight parameter, α is the structural parameter, L is a function of the weight parameter and the structure parameter, E ( latency ) is the second performance evaluation parameter.
[0061] After the third neural network model that meets the preset optimization conditions is determined as the target neural network model, the method further includes:
[0062] Obtain preset classification requirements and preset image data sets;
[0063] According to the preset classification requirements and the preset image data set, the preset image data set is classified using the target neural network model.
[0064] After the third neural network model that meets the preset optimization conditions is determined as the target neural network model, the method further includes:
[0065] Constructing an image data set, and performing normalization processing on the image data set to obtain a preset image data set;
[0066] Combining the target neural network model with the feature pyramid network model to obtain a detection network model;
[0067] Utilizing the preset image data set to optimize and train the detection network model;
[0068] Determine the detection network model that meets the preset iteration end condition as the target detection network model;
[0069] The target to be detected is detected using the target detection network model, and the target detection network model runs on the server.
[0070] In a second aspect, the present invention further provides a server-based data processing system, comprising:
[0071] A first operation unit is used to pre-build a plurality of first neural network models, and respectively operate the plurality of the first neural network models on the servers with different index parameters to obtain a plurality of first performance evaluation parameters, wherein the first performance evaluation parameters are used to characterize the efficiency of the servers operating the first neural network models;
[0072] A first training unit is used to train a second neural network model using the first performance evaluation parameters and the index parameters of the server as a training data set to obtain a hardware computing power evaluation model; the hardware computing power evaluation model is used to characterize the corresponding relationship between the index parameters of the server and the first performance evaluation parameters;
[0073] A prediction unit, used to input the index parameter of the current server into the hardware computing power evaluation model to predict a second performance evaluation parameter of the current server;
[0074] an optimization unit, configured to construct an objective function according to the second performance evaluation parameter and the model parameters of the third neural network model, and optimize the third neural network model according to the objective function, and determine the third neural network model that meets the preset optimization conditions as a target neural network model, and the target neural network model runs on the current server;
[0075] The third neural network model is a model used to detect or classify targets in a preset image data set.
[0076] In a third aspect, the present invention further provides a server-based data processing device, comprising:
[0077] Memory for storing computer programs;
[0078] The processor is used to implement the steps of the above-mentioned server-based data processing method when storing a computer program.
[0079] In a fourth aspect, the present invention further provides a non-volatile storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned server-based data processing method are implemented.
[0080] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program / instruction, which implements the steps of the above-mentioned server-based data processing method when executed by a processor.
[0081] The present invention provides a server-based data processing method, system, device, medium and product, which relates to the field of data processing and solves the problem of ignoring the index parameters of the server when determining the model. A first neural network model is pre-constructed and run on a server with different index parameters to obtain a first performance evaluation parameter; a second neural network model is trained according to the first performance evaluation parameter and the index parameters of the server to obtain a hardware computing power evaluation model; an objective function is constructed according to the predicted second performance evaluation parameters of the current server and the model parameters of the third neural network model, and the third neural network model is optimized to obtain a target neural network model. The present invention takes into account the influence of the server's index parameters on the third neural network model, so that the determined target neural network model is more suitable for application to a specific server, thereby improving the optimal performance of the neural network model when running on different servers. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0083] Figure 1 A flow chart of a server-based data processing method provided by the present invention;
[0084] Figure 2 A schematic diagram of a connection mode between network layers provided by the present invention;
[0085] Figure 3 A schematic diagram of a server-based data processing system provided by the present invention;
[0086] Figure 4 A schematic diagram of a server-based data processing device provided by the present invention. DETAILED DESCRIPTION
[0087] The core of the present invention is to provide a server-based data processing method, system, device, medium and product, which takes into account the influence of the server's index parameters on the third neural network model, so that the determined target neural network model is more suitable for application to a specific server, thereby improving the optimal performance of the neural network model when running on different servers.
[0088] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0089] First, as Figure 1 As shown, the present invention provides a server-based data processing method, comprising:
[0090] S11: Pre-construct a number of first neural network models, and respectively run the first neural network models on servers with different indicator parameters to obtain a number of first performance evaluation parameters, where the first performance evaluation parameters are used to characterize the efficiency of the server running the first neural network model.
[0091] The main task of this step is to evaluate the performance of different servers on these first neural network models by pre-building and running several first neural network models. Specifically, first, build several first neural network models, and different first neural network models can have different architectures and parameter configurations to comprehensively evaluate the performance of the server. These first neural network models may include various popular deep learning architectures, such as convolutional neural networks (CNNs), recurrent neural networks (RNNs), etc., depending on the tasks to be evaluated (such as image classification, target detection, etc.). Select servers with different hardware configurations, such as different central processing unit (CPU) core numbers, clock frequencies, graphics processing unit (GPU) parallel processing unit numbers, video memory size, memory bandwidth, storage device type and bus bandwidth. Run the constructed first neural network models on these servers with different configurations respectively.
[0092] When the first neural network model is run on each server, its first performance evaluation parameters are recorded, and these first performance evaluation parameters are used to characterize the efficiency of the server running the model. Specific performance evaluation parameters may include: training time: the time required for the model to complete a training on the server; inference delay time: the time required for the first neural network model to perform an inference (prediction) on the server; throughput: the amount of data that the server can process per unit time; resource utilization: such as the utilization of the CPU and GPU; energy consumption: the energy consumption of the server during the model running process.
[0093] By collecting these performance evaluation parameters, we can understand the efficiency of each server when running neural network models. Efficient servers can complete model training and inference tasks in a shorter time and with lower resource consumption. By comparing the performance evaluation parameters of different servers on the same neural network model, we can determine which hardware configurations are more suitable for running specific types of neural network models.
[0094] S12: Using several first performance evaluation parameters and index parameters of the server as training data sets, training the second neural network model to obtain a hardware computing power evaluation model; the hardware computing power evaluation model is used to characterize the correspondence between the index parameters of the server and the first performance evaluation parameters.
[0095] The main task of this step is to use the first performance evaluation parameters obtained from different servers and the index parameters of these servers to train a second neural network model, thereby building a hardware computing power evaluation model. The hardware computing power evaluation model is used to characterize the corresponding relationship between the hardware configuration of the server and the performance of its running neural network model.
[0096] Specifically, the first performance evaluation parameter obtained from S11 represents the performance of different servers when running several first neural network models. For example, training time, inference delay time, throughput, resource utilization and energy consumption. The server's indicator parameters describe the server's hardware configuration, including the number of cores of the central processing unit (CPU), the clock frequency of the central processing unit, the number of parallel processing units of the graphics processing unit (GPU), the size of the GPU's video memory, memory bandwidth, storage device type (such as SSD (Solid State Drive, solid state drive), HDD (Hard Disk Drive, mechanical hard disk)), bus bandwidth, etc.
[0097] A training data set is formed based on the server's indicator parameters and the first performance evaluation parameters, which is used to train the second neural network model. The input layer of the second neural network model is used to receive the server's indicator parameters, the hidden layer is used to capture the complex relationship between the input features and the output targets, and the output layer is used to predict the performance evaluation parameters of the server running the neural network model. The training data set is input into the second neural network model, and multiple rounds of iterative training are performed until the model converges or reaches the preset training conditions. The trained second neural network model can predict the performance evaluation parameters of its running neural network model based on the input server indicator parameters, thereby predicting the performance of the current server when running the neural network model. This process ensures the scientificity and accuracy of evaluating and optimizing the operating efficiency of the neural network model.
[0098] S13: Input the index parameters of the current server into the hardware computing power evaluation model to predict the second performance evaluation parameters of the current server.
[0099] The main task of this step is to input the index parameters of the current server into the previously trained hardware computing power evaluation model to predict the performance evaluation parameters of the server. Among them, the hardware computing power evaluation model trained in the above steps can input the index parameters of the server and output the predicted performance evaluation parameters. In this step, all the index parameters of the current server are input into the trained hardware computing power evaluation model. For example, the number of CPU cores of the current server is 16, the clock frequency is 3.2GHz, the GPU has 2560 parallel processing units, the video memory is 12GB, the memory bandwidth is 100GB / s, the storage device is SSD, and the bus bandwidth is 10GB / s. The hardware computing power evaluation model predicts the performance evaluation parameters of the server based on the input index parameters of the current server. The predicted performance evaluation parameters may include: training time, inference delay time, throughput, resource utilization, energy consumption, etc. For example, it is predicted that the training time of the current server running a specific neural network model is 2 hours, the inference time is 0.01 seconds / sample, the throughput is 500 samples / second, the CPU utilization is 80%, the GPU utilization is 90%, and the energy consumption is 300W.
[0100] The predicted performance evaluation parameters can help you understand the efficiency of your current server when running a specific neural network model. These evaluation parameters can help users and system administrators better understand and optimize server usage. For example, if the predicted training time is long, you may need to optimize the model or select a server with better performance. If the predicted energy consumption is high, you may need to make a trade-off between energy efficiency and performance.
[0101] S14: constructing an objective function according to the second performance evaluation parameter and the model parameters of the third neural network model, optimizing the third neural network model according to the objective function, determining the third neural network model that meets the preset optimization conditions as the target neural network model, and running the target neural network model on the current server;
[0102] The third neural network model is a model used to detect or classify targets in a preset image data set.
[0103] The task of this step is to construct an objective function based on the predicted performance evaluation parameters (second performance evaluation parameters) and the model parameters of the third neural network model, optimize the third neural network model, and finally run the optimized target neural network model on the current server.
[0104] Specifically, the second performance evaluation parameters of the current server have been predicted in the above steps, and these parameters are used to quantify the efficiency of the current server when running the neural network model (such as training time, inference delay time, resource utilization, etc.). The model parameters of the third neural network model refer to the specific parameters and hyperparameters of the neural network model used for target detection or classification, such as network structure, number of layers, number of neurons in each layer, learning rate, etc. Combining the second performance evaluation parameters and the model parameters of the third neural network model, an objective function is constructed, the purpose of which is to balance the performance of the model and the effective use of resources during the optimization process.
[0105] The optimization process of optimizing the third neural network model according to the objective function may include: using an optimization algorithm (such as gradient descent, genetic algorithm, particle swarm optimization, etc.) to adjust and optimize the model parameters of the third neural network model according to the constructed objective function. The goal of the optimization is to find the best combination of model parameters to maximize (or minimize) the value of the objective function, thereby achieving optimal performance and resource utilization on the current server. During the optimization process, some optimization conditions or stop conditions need to be set, such as reaching certain performance indicators, optimizing resource utilization to a predetermined level, reaching an upper limit on the number of optimization iterations, and the loss function being less than a preset threshold. When these preset conditions are met, the optimization process is stopped.
[0106] After the optimization process, the third neural network model that meets the preset optimization conditions is determined to be the target neural network model. This means that the model has achieved the optimal balance in terms of performance and resource utilization. The determined target neural network model is deployed on the current server to perform actual tasks (such as detecting or classifying targets in a preset image dataset).
[0107] In summary, this embodiment constructs and optimizes the objective function so that the third neural network model achieves the best performance and resource utilization on the current server. This process not only ensures the high performance of the model on the task, but also optimizes the resource utilization of the server, thereby improving the overall efficiency and economy. In this way, the target neural network model and the specific server can be matched more accurately, and the operating efficiency can be improved so that it can run on a specific server and achieve the preset target classification and target detection tasks.
[0108] Based on the above embodiments:
[0109] In one embodiment, constructing an objective function according to the second performance evaluation parameter and the model parameter of the third neural network model includes:
[0110] constructing an objective function according to the second performance evaluation parameter and the weight parameters and structure parameters of the third neural network model;
[0111] The expression of the objective function is: f = L ( θ , α )+ E ( latency ), where f is the objective function, θ is the weight parameter, α is the structural parameter, L is a function of weight parameters and structure parameters, E ( latency ) is the performance evaluation parameter.
[0112] In one embodiment, the process of optimizing the objective function includes: calculating the first gradient of the objective function with respect to the structural parameters, and updating the structural parameters according to the first gradient; calculating the second gradient of the objective function with respect to the weight parameters, and updating the weight parameters according to the second gradient; the process of determining the third neural network model that meets the preset optimization conditions as the target neural network model includes: determining the structural parameters and weight parameters of the objective function that meet the preset optimization conditions as the model parameters of the final third neural network model, and determining the third neural network model corresponding to the model parameters of the final third neural network model as the target neural network model, so that the server classifies or detects targets in a preset image data set according to the target neural network model.
[0113] In summary, this embodiment realizes the optimization search process of the target neural network model through gradient calculation and parameter update, and finally determines the neural network structure suitable for the target server, thereby improving the performance and hardware adaptability of the neural network.
[0114] In one embodiment, several first neural network models are respectively run on servers with different index parameters to obtain several first performance evaluation parameters, including:
[0115] Running a plurality of first neural network models with different numbers of channels on servers with different indicator parameters to obtain a plurality of first delay times, where the first delay time is an inference delay time required when the first neural network model runs on the server;
[0116] The second neural network model is trained using the first performance evaluation parameters and the index parameters of the server as training data sets to obtain a hardware computing power evaluation model, including:
[0117] The index parameters of each server are encoded, and the second neural network model is trained using the encoded index parameters of the server, the number of channels and the first delay time to obtain a hardware computing power evaluation model.
[0118] This embodiment describes a method for constructing a hardware computing power evaluation model, which is used to evaluate the performance of a server under different numbers of channels, especially the inference delay time when running a neural network model. Specifically, first create a series of neural network model samples, namely the first neural network model. These samples can be neural network models with different numbers of layers, different numbers of nodes, different connection methods, etc. These first neural network models are run on servers with different index parameters, and the first delay time of each first neural network model under each number of channels is recorded. The first delay time represents the time required for the first neural network model to perform inference on the server, usually in milliseconds. Encode the index parameters of the server, which may include processor type, memory size, storage type, etc. The encoded index parameters will be used to train the hardware computing power evaluation model. The encoded server index parameters are matched with the first delay time under each number of channels, so as to train the second neural network model, thereby obtaining a hardware computing power evaluation model, which can be used to predict the inference delay time (i.e., the second performance evaluation parameter) under different numbers of channels under the index parameters of a given server.
[0119] In summary, this embodiment establishes a hardware computing power evaluation model for a specific server, which helps to optimize the utilization of hardware resources when designing a neural network model, thereby improving the performance of the neural network on the server.
[0120] In one embodiment, the indicator parameters of each server are encoded, and the second neural network model is trained using the encoded server indicator parameters, the number of channels and the first delay time to obtain a hardware computing power evaluation model, including: encoding the server indicator parameters into a first vector, a second vector and a third vector; using an attention mechanism to calculate the similarity between the first vector and the second vector to obtain an attention weight; the attention weight is used to characterize the correlation between the indicator parameters of the server; using a random selection module to randomly select or randomly eliminate some attention weights to obtain a target attention weight; splicing the target attention weight and the number of channels to obtain an intermediate weight; determining the prediction parameters output by the hardware computing power evaluation model based on the intermediate weight and the third vector; and determining the hardware computing power evaluation model based on the prediction parameters.
[0121] In one embodiment, the prediction parameters output by the hardware computing power evaluation model are determined based on the intermediate weight and the third vector, including: multiplying the intermediate weight by the third vector to obtain a weighted third vector; and determining the prediction parameters output by the hardware computing power evaluation model based on the weighted third vector.
[0122] In one embodiment, using an attention mechanism to calculate the similarity between the first vector and the second vector to obtain an attention weight includes: using a first preset expression to calculate the similarity between the first vector and the second vector to obtain the attention weight, and the first preset expression is:
[0123] ;
[0124] in, is the attention weight, Q is the first vector, K is the second vector, and Y is the transposed matrix. w is the number of attention heads.
[0125] In one embodiment, the index parameters of each server are encoded, and the second neural network model is trained using the encoded index parameters of the server, the number of channels and the first delay time to obtain a hardware computing power evaluation model, including:
[0126] The index parameters of each server are encoded, and the hardware computing power evaluation model is determined according to the second preset expression. The second preset expression is:
[0127] ;
[0128] in, f 1 is the hardware computing power evaluation model, is the activation function, Q is the first vector, K is the second vector, V is the third vector, w is the number of attention heads, T is the transposed matrix, Attention is the function corresponding to the attention layer in the neural network, softmax is the function corresponding to the softmax layer in the neural network.
[0129] The present embodiments are all key steps in building a hardware computing power evaluation model. Specifically, the server performance parameters are encoded into a first vector, a second vector, and a third vector: In this step, the performance parameters of the server will be encoded into different vector forms. For example, the first vector may include parameters such as processor speed and memory capacity, the second vector may include parameters such as hardware connection method and power consumption, and the third vector may include parameters such as hardware materials and manufacturing processes. Encoding these parameters into vector form is conducive to subsequent calculations and analysis.
[0130] The attention mechanism is used to calculate the similarity between the first vector and the second vector to obtain the attention weight: In this step, the similarity is the correlation between their performance parameters; by calculating the similarity, the attention weight can be obtained. This weight is used to characterize the correlation between server performance parameters, that is, which parameters have a greater impact on performance.
[0131] Use the random selection module to randomly select or randomly remove some attention weights to obtain the target attention weights: In the application process, the combination of the server's indicator parameters is limited by the actual situation of commercial servers, and it is impossible to have any combination, so it presents a discrete and discontinuous state, and the total number of cases is limited. In one case, in order to effectively fit this situation, a neural network with a randomly selected Transformer structure can be used to help remove some attention weights, making the model more accurate and effective.
[0132] Concatenate the target attention weight and the number of channels to obtain the intermediate weight: In this step, combining the attention weight and the number of channels can comprehensively consider the impact of different parameters on server performance and obtain a more comprehensive evaluation result.
[0133] Multiply the intermediate weight by the third vector to obtain a weighted third vector: This weighted third vector takes into account the influence of attention weight and number of channels, and is a more comprehensive and accurate performance parameter.
[0134] The prediction parameters output by the hardware computing power evaluation model are determined based on the weighted third vector: these prediction parameters can reflect the performance of the server, including its performance when running the neural network structure, thereby helping users select and optimize the server.
[0135] The integration of these steps can help obtain an accurate and comprehensive hardware computing power evaluation model, which can accurately evaluate and optimize the performance of the server.
[0136] In one embodiment, several first neural network models are pre-constructed, including: pre-setting a target search space, the target search space including the type and structure of the network layer, and the number of channels and convolution kernels of each network layer; randomly determining sample parameters of several first neural network models from the target search space, and constructing several first neural network models based on the several sample parameters.
[0137] This embodiment describes the specific steps of constructing the first neural network model, which mainly includes two key steps: presetting the target search space and randomly determining the sample parameters. Specifically, in the design of the first neural network model, the target search space refers to the range of all possible structures and parameters considered when designing the model. This range includes the type of network layer (such as convolution layer, pooling layer, fully connected layer, etc.), structure (such as the depth and width of the network, etc.), and the number of channels and convolution kernels of each network layer. The purpose of presetting the target search space is to determine a reasonable range so that the optimal first neural network model can be searched within this range. Once the target search space is defined, the next step is to randomly select several sample parameters of the first neural network model from this space. This means that within the pre-set range, some of the possible combinations of structures and parameters are randomly selected as samples. The purpose of this is to increase the diversity of the search so as to better explore the space of the first neural network model and find some non-traditional but good performance structures.
[0138] In general, this embodiment determines the search range by presetting the target search space, and then randomly selects sample parameters from this range to increase the diversity and coverage of the search, so as to better find the optimal neural network model.
[0139] In one embodiment, the target search space is pre-set, including: pre-setting a basic search space, the convolution kernel of the basic search space is not less than n×n, n is an integer not less than 3, and the number of channels of each network layer is not less than 8; setting the target search space to M times the basic search space, M is an integer greater than 1.
[0140] This embodiment describes a specific implementation method based on a pre-set target search space. Specifically, the basic search space is first determined, which includes the type and structure of the network layer, the number of channels and the number of convolution kernels of each network layer. Specifically, the size of the convolution kernel is not less than n×n, where n is an integer not less than 3, which means that the size of the convolution kernel is at least n×n. The number of channels of each network layer is not less than 8, which means that each network layer contains at least 8 channels. The basic search space is set to ensure that enough network structures and parameter combinations are included to search within this range. Furthermore, the target search space is set to M times the basic search space, where M is an integer greater than 1. This means that the target search space is an extension of the basic search space and contains more possibilities. By expanding the target search space to M times the basic search space, the breadth of the search can be increased, further improving the chance of discovering the preferred first neural network model.
[0141] In summary, this embodiment describes how to construct a first neural network model by presetting a basic search space and expanding the target search space to M times the basic search space. This ensures the breadth and diversity of the search, making it more likely to find a first neural network model with excellent performance.
[0142] like Figure 2 As shown, in one embodiment, the connection relationship between network layers in the target search space includes at least parallel connection, and / or exchange connection, and / or fusion connection; when the upper network layer is connected in parallel with the lower network layer, the characteristics of the upper network layer are directly transmitted to the lower network layer; when the upper network layer is exchange connected with the lower network layer, the first feature of the first resolution of the upper network layer is converted into the first feature of the second resolution, and the first feature of the second resolution is transmitted to the lower network layer, and is fused with the second feature of the second resolution in the lower network layer, and the first resolution is greater than the second resolution; when the upper network layer is fusion connected with the lower network layer, the first feature of the third resolution of the upper network layer is converted into the first feature of the fourth resolution, and the first feature of the fourth resolution is transmitted to the lower network layer, and is fused with the second feature of the fourth resolution in the lower network layer.
[0143] This embodiment defines the connection relationship between network layers in the target search space, which may include but is not limited to the following three connection modes: parallel connection, switching connection and converged connection.
[0144] In parallel connection, the features of the previous network layer are directly transferred to the next network layer without any form of conversion or transformation. This connection method retains the original information of the features, that is, the features extracted by the previous network layer are directly passed to the next network layer for processing. This connection method is suitable for situations where the original feature information needs to be retained. For example, in some image processing tasks, if the features extracted by the previous network layer have an important impact on the input of the next network layer, parallel connection can be selected.
[0145] In a switching connection, the features of the previous network layer are passed to the next network layer after a certain transformation. Specifically, the first feature of the first resolution of the previous network layer is converted to the first feature of the second resolution, and then fused with the second feature of the second resolution in the next network layer. This connection method is usually used to process features of different resolutions, such as combining high-resolution features with low-resolution features to improve the overall performance of the network.
[0146] In a fusion connection, the features of the previous network layer are also transformed and passed to the next network layer, and then fused with the features of the corresponding resolution in the next network layer. Unlike a switching connection, a fusion connection does not necessarily require a resolution transformation, but still requires feature fusion. This connection method can be used to integrate features extracted from different network layers to obtain richer information or improve the representation ability of features.
[0147] For example, there are three features of different scales in the previous network layer, namely F 1. F 2 and F 3. The sizes of the three features are H × W , 2 H ×2 W , 4 H ×4 W , the features of the next network layer are F 1 ’ , F 2 ’ and F 3 ’ . When connected in parallel, F 1 ’ = t 1× F 1, F 2 ’ = t 2× F 2, F 2 ’ = t 3× F 2; When switching connections, F 1 ’ = l 1× downsample ( F 3)+ l 2× downsample ( F 2)+ l 3× F 1; F 2 ’ = m 1× downsample ( F 3)+ m 2× F 2; F 3 ’ = n 1 × F 2. When fusion connection is in progress, F 1 ’ = o 1× downsample (F 3)+ o 2× downsample ( F 2)+ o 3× F 1; F 2 ’ = p 1× downsample ( F 3)+ upsample ( F 1)+ p 3× F 2; F 3 ’ = q 1 × F 3+ q 2× upsample ( F 2)+ q 3× F 1. Among them downsample represents the downsampling operation, upsample represents the upsampling operation, t,l,m,n,o,p,q It is a binary value of 0 or 1, where 0 means no connection and 1 means connection.
[0148] In general, the choice of these connection methods can be determined according to the requirements of the task and the design of the network structure. Parallel connection is suitable for situations where the original feature information needs to be retained, while switching connection and fusion connection are suitable for situations where feature transformation or integration is required. The flexible use of these connection methods can effectively improve the performance of the neural network model on the server.
[0149] In one embodiment, after the indicator parameters of the current server are input into the hardware computing power evaluation model and the second performance evaluation parameters of the current server are predicted, it also includes: obtaining the actual performance parameters of the server; determining the preferred value range of the number of channels based on the actual performance parameters and the second performance evaluation parameters; constructing an objective function based on the second performance evaluation parameters and the model parameters of the third neural network model, and optimizing the third neural network model based on the objective function, including: constructing an objective function based on the second performance evaluation parameters and the model parameters of the third neural network model, and optimizing the third neural network model based on the objective function within the preferred value range of the number of channels.
[0150] This embodiment describes a specific implementation method for determining a preferred range of values for the number of channels and constructing an objective function to optimize a third neural network model after evaluating the performance of the server using a hardware computing power evaluation model. Specifically, first, actual performance parameters of the server are obtained, such as actual inference delay time. The actual performance parameters are used to compare and match with the second performance evaluation parameters output by the hardware computing power evaluation model, so as to determine the performance level of the server.
[0151] Specifically, the actual performance parameters of the server are compared with the second performance evaluation parameters obtained by the hardware computing power evaluation model. By comparison, the preferred value range of the number of channels suitable for the performance level of the server can be determined. The selection of the number of channels may affect the performance of the third neural network model on the server. Therefore, it is necessary to determine a suitable range of the number of channels based on the actual performance parameters of the server and the second performance evaluation parameters to ensure the efficient operation of the third neural network model on the server.
[0152] Finally, an objective function is constructed using the second evaluation parameter and the model of the third neural network model. The design of the objective function should take into account the actual performance parameters of the server, the preferred value range of the number of channels, and the model parameters of the third neural network model. The purpose of the objective function is to optimize the performance while ensuring the effectiveness and efficiency of the third neural network model running on the server. By optimizing the third neural network model through the objective function, the most suitable number of channels and other model parameter configurations can be determined to achieve the best performance of the third neural network model on the server.
[0153] In summary, this embodiment provides an optimization method that comprehensively considers server performance and model parameters of the third neural network model, which can effectively improve the performance of the third neural network model on a specific server.
[0154] In one embodiment, determining a preferred range of values for the number of channels according to the actual performance parameter and the second performance evaluation parameter includes: determining a difference between the second performance evaluation parameter and the actual performance parameter; and determining a preferred range of values for the number of channels according to the difference.
[0155] In one embodiment, determining the difference between the second performance evaluation parameter and the actual performance parameter includes: determining the difference between the second performance evaluation parameter and the actual performance parameter according to a third preset expression, where the third preset expression is: s ( x )= a × f ( x , d )- b × m ( x );in, s( x ) is the difference, a is the first multiplication factor, f ( x , d ) is the second performance evaluation parameter, x is the current channel number, d For the current server, b is the second multiplication factor, m ( x ) are actual performance parameters.
[0156] This embodiment describes a method for determining a preferred range of values for the number of channels. Specifically, the difference between the second performance evaluation parameter and the actual performance parameter is first determined: the method for calculating the difference may be, but is not limited to, calculated by a third preset expression. After the difference is calculated, the preferred range of values for the number of channels is determined based on the difference. The difference can reflect the deviation between the second performance evaluation parameter and the actual performance parameter, thereby affecting the selection of the number of channels. By analyzing the difference, the preferred range of values for the number of channels can be determined to ensure that the performance of the third neural network model on the server is optimal.
[0157] The core idea of this embodiment is to determine the preferred value range of the number of channels based on the difference between the second performance evaluation parameter and the actual performance parameter to ensure that the performance of the third neural network model on the server is optimized.
[0158] In one embodiment, the preferred range of the number of channels is determined based on the difference, including: scoring the difference to obtain a score corresponding to each difference; selecting k channel numbers corresponding to the first k scores in order from high to low as the preferred range of the number of channels, where k is a positive integer.
[0159] In this embodiment, it is first necessary to determine a scoring mechanism for evaluating the size of the difference and its impact on the server performance. The difference represents the deviation between the evaluation parameter and the actual performance parameter, and the scoring is a way to quantify this deviation. The design of the scoring mechanism usually takes into account different performance indicators, such as inference delay time, power consumption, etc., to comprehensively consider the impact of the difference. Once the scoring mechanism is determined, each difference can be scored. The scoring process may be based on methods such as empirical rules, mathematical models, or machine learning algorithms. The scoring result should be able to intuitively reflect the impact of the difference on the server performance, so that the score can be used as a basis for measuring the pros and cons of the number of channels. After obtaining the score corresponding to each difference, sort them in order of high and low scores, and select the k number of channels corresponding to the first k scores as the preferred value range of the number of channels. Generally, the higher the score, the smaller the difference, so selecting the number of channels corresponding to the difference with a higher score can make the preferred value range more reasonable and accurate.
[0160] In general, this embodiment is to determine the preferred value range of the number of channels by evaluating and sorting the difference between the evaluation parameters and the actual performance parameters, so as to better optimize the third neural network model.
[0161] In one embodiment, after determining the third neural network model that meets the preset optimization conditions as the target neural network model, it also includes obtaining preset classification requirements and a preset image data set; according to the preset classification requirements and the preset image data set, using the target neural network model to classify the preset image data set.
[0162] In this embodiment, after determining the target neural network model, if it is necessary to classify the preset image data set, it is first necessary to obtain the preset classification requirements, that is, what kind of classification or recognition task is to be performed on the image. This may include identifying objects, distinguishing different categories in the image, etc. At the same time, it is also necessary to obtain a preset image data set, which is a collection of images used to train and test the classification model. The image data set usually contains a large number of image samples, each sample has a corresponding label to indicate the category to which the image belongs. Once the preset classification requirements and image data set are obtained, the target neural network model can be used to classify the image data set. This process includes inputting the image into the target neural network model, and converting the image into a predicted category label or probability distribution through the forward propagation process of the target neural network model. The target neural network model plays a key role here because it is an optimized model that can run efficiently on the server and can accurately classify images.
[0163] In one embodiment, after determining the third neural network model that meets the preset optimization conditions as the target neural network model, it also includes: constructing an image data set, normalizing the image data set to obtain a preset image data set; combining the target neural network model with the feature pyramid network model to obtain a detection network model; optimizing and training the detection network model using the preset image data set; determining the detection network model that meets the preset iteration end conditions as the target detection network model; and detecting the target to be detected using the target detection network model, wherein the target detection network model runs on a server.
[0164] In this embodiment, when performing target detection on preset image data, it is first necessary to construct an image data set, which is a collection of a large number of image samples, each sample has a corresponding label, which is used to indicate the category or target to which the image belongs. Next, the image data set is normalized to map the pixel value range of the image to a standard range, usually between 0 and 1 or between -1 and 1, which helps to improve the training stability and convergence speed of the neural network model. Then the target neural network model is combined with the feature pyramid network model to construct a detection network model for target detection tasks. The feature pyramid network model is a network structure that can extract features at different scales, and it can effectively detect targets of different sizes. By combining the target neural network model with the feature pyramid network, the detection ability of the target detection model for targets of different scales can be improved. The detection network model is optimized and trained using the preset image data set constructed previously. The purpose of the optimization training is to adjust the parameters of the detection network model through the back propagation algorithm so that it can detect targets in the image more accurately. This process includes inputting the image into the network model, calculating the difference (loss) between the model's prediction result and the true label, and then using an optimization algorithm (such as gradient descent) to adjust the model parameters to reduce the loss. During the optimization training process, some iteration end conditions are usually set, such as reaching a certain number of training rounds or the performance of the model on the validation set reaching a certain level. When these preset end conditions are met, the current detection network model can be determined as the target detection network model, that is, the final training result model. Finally, the server uses the trained target detection network model to detect the target to be detected. This process includes inputting the image to be detected into the target detection network model, and obtaining the location and category information of the target through the forward propagation process of the model. Since the target detection network model has been deployed and run on the server, the target to be detected can be detected and identified in real time.
[0165] Second, as Figure 3As shown, the present invention also provides a server-based data processing system, including: a first running unit 31, used to pre-build a number of first neural network models, respectively run the first neural network models on servers with different index parameters, and obtain a number of first performance evaluation parameters, the first performance evaluation parameters are used to characterize the efficiency of the server running the first neural network model; a first training unit 32, used to use the first performance evaluation parameters and the index parameters of the server as training data sets, train the second neural network model, and obtain a hardware computing power evaluation model; the hardware computing power evaluation model is used to characterize the corresponding relationship between the index parameters of the server and the first performance evaluation parameters; a prediction unit 33, used to input the index parameters of the current server into the hardware computing power evaluation model, and predict the second performance evaluation parameters of the current server; an optimization unit 34, used to construct an objective function according to the second performance evaluation parameters and the model parameters of the third neural network model, and optimize the third neural network model according to the objective function, and determine the third neural network model that meets the preset optimization conditions as the target neural network model, and the target neural network model runs on the current server;
[0166] The third neural network model is a model used to detect or classify targets in a preset image data set.
[0167] Thirdly, Figure 4 As shown, the present invention also provides a server-based data processing device, comprising:
[0168] A memory 41, used for storing computer programs;
[0169] The processor 42 is used to implement the steps of the above-mentioned server-based data processing method when storing the computer program.
[0170] For the introduction of the server-based data processing device, please refer to the above-mentioned embodiment, and the present invention will not be described in detail here.
[0171] In a fourth aspect, the present invention further provides a non-volatile storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned server-based data processing method are implemented.
[0172] Please refer to the above embodiments for the introduction of the non-volatile storage medium, and the present invention will not go into details here.
[0173] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program / instruction, which implements the steps of the above-mentioned server-based data processing method when executed by a processor.
[0174] For the introduction of the computer program product, please refer to the above embodiments, and the present invention will not be described in detail here.
[0175] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0176] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A server-based data processing method, characterized in that: include: Pre-constructing a plurality of first neural network models, respectively running the plurality of first neural network models on servers with different index parameters, and obtaining a plurality of first performance evaluation parameters, wherein the first performance evaluation parameters are used to characterize the efficiency of the servers running the first neural network models; Using the first performance evaluation parameters and the index parameters of the server as training data sets, training the second neural network model to obtain a hardware computing power evaluation model; the hardware computing power evaluation model is used to characterize the corresponding relationship between the index parameters of the server and the first performance evaluation parameters; Inputting the index parameters of the current server into the hardware computing power evaluation model to predict the second performance evaluation parameters of the current server; Constructing an objective function according to the second performance evaluation parameter and the model parameters of the third neural network model, optimizing the third neural network model according to the objective function, determining the third neural network model that meets the preset optimization conditions as a target neural network model, and running the target neural network model on the current server; The third neural network model is a model for detecting or classifying targets in a preset image data set; After inputting the index parameter of the current server into the hardware computing power evaluation model to predict the second performance evaluation parameter of the current server, the method further includes: Obtaining actual performance parameters of the server; determining a difference between the second performance evaluation parameter and the actual performance parameter; Determine a preferred value range of the number of channels according to the difference; Constructing an objective function according to the second performance evaluation parameter and the model parameters of the third neural network model, and optimizing the third neural network model according to the objective function, including: An objective function is constructed according to the second performance evaluation parameter and the model parameters of the third neural network model, and the third neural network model is optimized according to the objective function within the preferred value range of the number of channels.
2. The server-based data processing method according to claim 1, characterized in that: Several of the first neural network models are respectively run on servers with different index parameters to obtain several first performance evaluation parameters, including: Running the first neural network models with several different numbers of channels on servers with different indicator parameters to obtain several first delay times, where the first delay times are inference delay times required when the first neural network models are running on the servers; The second neural network model is trained by using the first performance evaluation parameters and the index parameters of the server as a training data set to obtain a hardware computing power evaluation model, including: The indicator parameters of each server are encoded, and the second neural network model is trained using the encoded indicator parameters of the server, the number of channels and the first delay time to obtain the hardware computing power evaluation model.
3. The server-based data processing method according to claim 2, characterized in that: Encoding the index parameters of each server, and using the encoded index parameters of the server, the number of channels and the first delay time to train the second neural network model to obtain the hardware computing power evaluation model, including: Encoding the indicator parameters of the server into a first vector, a second vector and a third vector; Calculating the similarity between the first vector and the second vector using an attention mechanism to obtain an attention weight; the attention weight is used to characterize the correlation between the indicator parameters of the server; Using a random selection module to randomly select or randomly remove some of the attention weights to obtain a target attention weight; Concatenate the target attention weight and the number of channels to obtain an intermediate weight; Determine a prediction parameter output by the hardware computing power evaluation model according to the intermediate weight and the third vector; The hardware computing power evaluation model is determined according to the prediction parameters.
4. The server-based data processing method according to claim 3, characterized in that: Determining a prediction parameter output by the hardware computing power evaluation model according to the intermediate weight and the third vector includes: multiplying the intermediate weight by the third vector to obtain a weighted third vector; The prediction parameter output by the hardware computing power assessment model is determined based on the weighted third vector.
5. The server-based data processing method according to claim 3, characterized in that: Calculating the similarity between the first vector and the second vector by using the attention mechanism to obtain an attention weight includes: The similarity between the first vector and the second vector is calculated using a first preset expression to obtain an attention weight, where the first preset expression is: ; in, is the attention weight, Q is the first vector, K is the second vector, T is the transposed matrix, w is the number of attention heads.
6. The server-based data processing method according to claim 3, characterized in that: Encoding the index parameters of each server, and using the encoded index parameters of the server, the number of channels and the first delay time to train the second neural network model to obtain the hardware computing power evaluation model, including: The indicator parameters of each server are encoded, and the hardware computing power evaluation model is determined according to a second preset expression, where the second preset expression is: ; in, f 1 is the hardware computing power evaluation model, is the activation function, Q is the first vector, K is the second vector, V is the third vector, w is the number of attention heads, T is the transposed matrix, Attention is the function corresponding to the attention layer in the neural network, softmax is the function corresponding to the softmax layer in the neural network.
7. The server-based data processing method according to claim 1, characterized in that: Several first neural network models are pre-built, including: Presetting a target search space, wherein the target search space includes the type and structure of the network layer, and the number of channels and convolution kernels of each of the network layers; Randomly determine a number of sample parameters of the first neural network model from the target search space, and construct a number of the first neural network models based on the sample parameters.
8. The server-based data processing method according to claim 7, characterized in that: Pre-set target search space, including: Preset a basic search space, where the convolution kernel of the basic search space is not less than n×n, n is an integer not less than 3, and the number of channels of each network layer is not less than 8; The target search space is set to be M times the basic search space, where M is an integer greater than 1.
9. The server-based data processing method according to claim 7, characterized in that: The connection relationship between network layers in the target search space at least includes parallel connection, and / or switching connection, and / or converged connection; When the upper network layer is connected in parallel with the lower network layer, the characteristics of the upper network layer are directly transmitted to the lower network layer; When the upper network layer is exchanged and connected with the lower network layer, the first feature of the first resolution of the upper network layer is converted into the first feature of the second resolution, and the first feature of the second resolution is transmitted to the lower network layer and merged with the second feature of the second resolution in the lower network layer, and the first resolution is greater than the second resolution; When the upper network layer is fused and connected with the lower network layer, the first feature of the third resolution of the upper network layer is converted into the first feature of the fourth resolution, and the first feature of the fourth resolution is transmitted to the lower network layer and fused with the second feature of the fourth resolution in the lower network layer.
10. The server-based data processing method according to claim 1, characterized in that: Determining a difference between the second performance evaluation parameter and the actual performance parameter includes: The difference between the second performance evaluation parameter and the actual performance parameter is determined according to a third preset expression, wherein the third preset expression is: s ( x )= a × f ( x , d )- b × m ( x ); in, s ( x ) is the difference, a is the first multiplication factor, f ( x , d ) is the second performance evaluation parameter, x is the current channel number, d For the current server, b is the second multiplication factor, m ( x ) is the actual performance parameter.
11. The server-based data processing method according to claim 1, characterized in that: Determining a preferred value range of the number of channels according to the difference includes: Scoring the differences to obtain a score corresponding to each difference; The k channel numbers corresponding to the first k scores are selected in order from high to low as the preferred value range of the channel number, where k is a positive integer.
12. The server-based data processing method according to any one of claims 1 to 9, characterized in that: Constructing an objective function according to the second performance evaluation parameter and the model parameter of the third neural network model, comprising: Constructing the objective function according to the second performance evaluation parameter and the weight parameter and structure parameter of the third neural network model; The expression of the objective function is: f = L ( θ , α )+ E ( latency ),in, f is the objective function, θ is the weight parameter, α is the structural parameter, L is a function of the weight parameter and the structure parameter, E ( latency ) is the second performance evaluation parameter.
13. The server-based data processing method according to any one of claims 1 to 9, characterized in that: After determining the third neural network model that meets the preset optimization conditions as the target neural network model, the method further includes: Obtain preset classification requirements and preset image data sets; According to the preset classification requirements and the preset image data set, the preset image data set is classified using the target neural network model.
14. The server-based data processing method according to any one of claims 1 to 9, characterized in that: After determining the third neural network model that meets the preset optimization conditions as the target neural network model, the method further includes: Constructing an image data set, and performing normalization processing on the image data set to obtain a preset image data set; Combining the target neural network model with the feature pyramid network model to obtain a detection network model; Utilizing the preset image data set to optimize and train the detection network model; Determine the detection network model that meets the preset iteration end condition as the target detection network model; The target to be detected is detected using the target detection network model, and the target detection network model runs on the server.
15. A server-based data processing system, characterized in that: include: A first operation unit is used to pre-build a plurality of first neural network models, and respectively operate the plurality of the first neural network models on servers with different index parameters to obtain a plurality of first performance evaluation parameters, wherein the first performance evaluation parameters are used to characterize the efficiency of the servers operating the first neural network models; A first training unit is used to train a second neural network model using the first performance evaluation parameters and the index parameters of the server as a training data set to obtain a hardware computing power evaluation model; the hardware computing power evaluation model is used to characterize the corresponding relationship between the index parameters of the server and the first performance evaluation parameters; A prediction unit, used to input the index parameter of the current server into the hardware computing power evaluation model to predict a second performance evaluation parameter of the current server; an optimization unit, configured to construct an objective function according to the second performance evaluation parameter and the model parameters of the third neural network model, and optimize the third neural network model according to the objective function, and determine the third neural network model that meets the preset optimization conditions as a target neural network model, and the target neural network model runs on the current server; The third neural network model is a model for detecting or classifying targets in a preset image data set; The server-based data processing system is also used to obtain actual performance parameters of the server; determining a difference between the second performance evaluation parameter and the actual performance parameter; Determine a preferred value range of the number of channels according to the difference; Constructing an objective function according to the second performance evaluation parameter and the model parameters of the third neural network model, and optimizing the third neural network model according to the objective function, including: An objective function is constructed according to the second performance evaluation parameter and the model parameters of the third neural network model, and the third neural network model is optimized according to the objective function within the preferred value range of the number of channels.
16. A data processing device based on a server, characterized in that: include: Memory for storing computer programs; A processor, used to implement the steps of the server-based data processing method described in any one of claims 1-14 when storing a computer program.
17. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the server-based data processing method according to any one of claims 1 to 14 are implemented.
18. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the server-based data processing method described in any one of claims 1-14 are implemented.
