Task processing method, task processing device, electronic equipment and storage medium

By detecting the data volume information of tasks to be processed, processing in stages, and using batch or independent calculation methods, the problem of low task processing efficiency in the existing technology is solved, and more efficient task management and processing speed are achieved.

CN118733232APending Publication Date: 2024-10-01CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410903407.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing batch processing technology cannot effectively pay attention to the actual needs of the task when processing tasks with different amounts of data, causing processing progress and efficiency to be affected. Especially tasks with small text sequence lengths will generate unnecessary waiting time.

Method used

By obtaining the data volume information of the task to be processed, it is detected whether the preset conditions are met, and the processing is divided into the first stage and the second stage. Batch calculation or independent calculation is used to reasonably plan the task processing process and determine the processing strategy based on the data volume information. Improve the pertinence and efficiency of task processing.

Benefits of technology

It improves the effectiveness and efficiency of task processing, ensures that tasks are managed according to actual needs, reduces unnecessary time costs, and improves the accuracy and speed of task processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733232A_ABST
    Figure CN118733232A_ABST
Patent Text Reader

Abstract

The invention provides a task processing method, a task processing device, electronic equipment and a computer readable storage medium, and belongs to the technical field of computers. The method comprises the steps of obtaining a to-be-processed task of a task processing model, and adding the to-be-processed task to a target processing batch of the task processing model; determining data volume information of the to-be-processed task in the target processing batch; detecting whether the data volume information of the to-be-processed task meets a preset condition or not; according to a detection result of whether the data volume information of the to-be-processed task meets a preset condition, performing first-stage processing on the to-be-processed task to obtain a first-stage processing result; and performing second-stage processing on the first-stage processing result to obtain a target processing result. According to the method, the to-be-processed task can be reasonably and effectively processed.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the rapid development of artificial intelligence, machine learning models have been widely applied and popularized in many fields. To improve the model's reasoning speed and processing efficiency, batch processing is often used to process tasks. However, due to the differences in the data size of different tasks, such as the length of the input text sequence, existing batch processing technology, when processing multiple tasks with different data sizes, needs to wait until all tasks in the same batch are processed before returning the results. This fails to address the actual needs of different tasks within the batch, affecting the progress and efficiency of task processing. For example, tasks with shorter text sequences will incur unnecessary waiting time. Therefore, how to effectively batch process tasks is a problem that needs to be solved in existing technologies.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute prior art known to ordinary technicians in the field. Summary of the Invention

[0004] The present disclosure provides a task processing method, a task processing device, an electronic device, and a computer-readable storage medium, thereby overcoming, at least to a certain extent, the problem that the prior art cannot reasonably and effectively batch process tasks.

[0005] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by practice of the present disclosure.

[0006] According to one aspect of the present disclosure, a task processing method is provided, including: obtaining pending tasks of a task processing model, and adding the pending tasks to a target processing batch of the task processing model; determining data volume information of the pending tasks in the target processing batch; detecting whether the data volume information of the pending tasks meets a preset condition; performing first-stage processing on the pending tasks in the target processing batch based on the detection result of whether the data volume information of the pending tasks meets the preset condition to obtain a first-stage processing result; and performing second-stage processing on the first-stage processing result of the pending tasks to obtain a target processing result.

[0007] In an exemplary embodiment of the present disclosure, obtaining the pending tasks of the task processing model includes: receiving a user request task input by a user, and sending the user request task to a preset task queue for storage; extracting the user request task from the preset task queue as the pending tasks of the task processing model.

[0008] In an exemplary embodiment of the present disclosure, adding the pending tasks to the target processing batch of the task processing model includes: obtaining the load status information and performance configuration information of the current system; determining the target processing batch of the task processing model based on the load status information and performance status information; and adding the pending tasks to the target processing batch of the task processing model.

[0009] In an exemplary embodiment of the present disclosure, the load status information includes the number of unfinished tasks in the batch being processed in the current system; the performance configuration information includes the maximum number of tasks that can be accommodated in the batch being processed in the current system; determining the target processing batch of the task processing model based on the load status information and the performance configuration information includes: detecting whether the current system includes a candidate processing batch in which the number of unfinished tasks in the batch being processed is less than the maximum number of tasks that can be accommodated in the batch being processed; if the candidate processing batch is detected, determining the target processing batch of the task processing model based on the candidate processing batch.

[0010] In an exemplary embodiment of the present disclosure, the method further includes: if the candidate processing batch is not detected, creating a new batch in the current system as a target processing batch of the task processing model.

[0011] In an exemplary embodiment of the present disclosure, the load status information also includes: the number of batches being processed in the current system, and the performance configuration information also includes: the maximum number of batches that the current system can accommodate; before creating a new batch in the current system as the target processing batch of the task processing model, the method also includes: when it is detected that the number of batches being processed in the current system is not less than the maximum number of batches that the current system can accommodate, canceling the processing of the pending task.

[0012] In an exemplary embodiment of the present disclosure, the target processing batch includes multiple tasks to be processed; the detection result of whether the data volume information of the tasks to be processed meets the preset conditions is used to perform the first-stage processing on the tasks to be processed in the target processing batch to obtain the first-stage processing results, including: if the target processing batch includes multiple tasks to be processed whose data volume information meets the preset conditions, the batch calculation method is used to perform the first-stage processing on the multiple tasks to be processed to obtain the first-stage processing results; if the target processing batch includes tasks to be processed whose data volume information does not meet the preset conditions, the independent calculation method is used to perform the first-stage processing on the tasks to be processed to obtain the first-stage processing results.

[0013] In an exemplary embodiment of the present disclosure, the data volume information of the task to be processed includes the first data length of the task to be processed, and / or the second data length of the reference information determined according to the task to be processed; the detection of whether the data volume information of the task to be processed meets the preset conditions includes any one or more of the following combinations: detecting whether the length difference of the first data lengths of the multiple tasks to be processed is less than a first preset length threshold; detecting whether the length difference of the second data lengths of the multiple tasks to be processed is less than a second preset length threshold; detecting whether the length difference of the third data lengths of the multiple tasks to be processed is less than a third preset length threshold, and the third data length is determined by the first data length and the second data length.

[0014] According to one aspect of the present disclosure, a task processing device is provided, including: a task adding module, used to obtain pending tasks of a task processing model and add the pending tasks to a target processing batch of the task processing model; an information determining module, used to determine the data volume information of the pending tasks in the target processing batch; a condition detection module, used to detect whether the data volume information of the pending tasks meets a preset condition; a first processing module, used to perform a first-stage processing on the pending tasks in the target processing batch according to the detection result of whether the data volume information of the pending tasks meets the preset condition, to obtain a first-stage processing result; and a second processing module, used to perform a second-stage processing on the first-stage processing result of the pending tasks, to obtain a target processing result.

[0015] According to one aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform any one of the above-mentioned methods by executing the executable instructions.

[0016] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any one of the above methods is implemented.

[0017] The exemplary embodiments of the present disclosure have the following beneficial effects:

[0018] Obtain the pending tasks of the task processing model and add the pending tasks to the target processing batch of the task processing model; determine the data volume information of the pending tasks in the target processing batch; detect whether the data volume information of the pending tasks meets the preset conditions; based on the detection result of whether the data volume information of the pending tasks meets the preset conditions, perform the first stage processing on the pending tasks in the target processing batch to obtain the first stage processing results; perform the second stage processing on the first stage processing results of the pending tasks to obtain the target processing results. On the one hand, this exemplary embodiment proposes a new task processing method, which can first execute the first stage processing process and then execute the second stage processing process based on the data volume information of the task to be processed. Through the two stages, the processing process related to the task data volume information and the processing process unrelated to the task data volume information are respectively executed. Compared with directly processing the task to be processed, this exemplary embodiment reasonably plans the task processing flow and improves the effectiveness and efficiency of task processing; on the other hand, this exemplary embodiment takes the data volume information of the task to be processed as a consideration for task processing, and determines how to perform the first stage processing on the task to be processed by detecting whether the data volume information of the task to be processed meets the preset conditions, thereby improving the targeted processing of the task to be processed in the first stage and further ensuring the accuracy and efficiency of task processing; on the other hand, this exemplary embodiment can add the task to be processed to the corresponding target processing batch when performing batch processing, and fully combine the data volume information of the task to be processed to execute a reasonable task processing process, which is conducive to task management according to actual needs in batch processing, improving task processing speed, and reducing unnecessary time cost consumption.

[0019] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and those skilled in the art can derive other drawings based on these drawings without inventive effort.

[0021] Figure 1 A flowchart schematically illustrates a task processing method in this exemplary embodiment;

[0022] Figure 2 A sub-flowchart schematically illustrates a task processing method in this exemplary embodiment;

[0023] Figure 3A schematic diagram of a system architecture in this exemplary embodiment is schematically shown;

[0024] Figure 4 A schematic diagram of a process flow of a batch scheduling component scheduling tasks to be processed in this exemplary embodiment is shown schematically;

[0025] Figure 5 A schematic diagram schematically illustrates a flow chart of a calculation process of a heterogeneous dimensional matrix calculation component in this exemplary embodiment;

[0026] Figure 6 A schematic diagram illustrating a processing flow of a tensor merging and reshaping component in this exemplary embodiment is shown;

[0027] Figure 7 A structural block diagram of a task processing device in this exemplary embodiment is schematically shown;

[0028] Figure 8 An electronic device for implementing the above method in this exemplary embodiment is schematically shown. DETAILED DESCRIPTION

[0029] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0030] The exemplary embodiment of the present disclosure first provides a task processing method. Figure 1 This exemplary embodiment is further described as follows. Figure 1 As shown, the task processing method may include the following steps S110 to S150:

[0031] Step S110: Obtain the pending tasks of the task processing model, and add the pending tasks to the target processing batch of the task processing model.

[0032] Among them, the task processing model can be any machine learning model that can process task data, such as a neural network model for speech or text processing, a machine learning model for target object recognition or detection, or a natural language processing model, LLM (Large Language Model, large language model), etc. The task to be processed is a task for input into the task processing model for processing, such as a user request or user instruction input by a user, sample data pulled from a data source, or a task extracted from other task data pools, etc. The task to be processed can specifically be a text processing task, a speech processing task, or an image processing task, etc., and this disclosure does not specifically limit this.

[0033] Typically, in order to improve the processing efficiency of the task processing model, batch processing is used to process pending tasks. For example, multiple pending tasks are divided into multiple batches, each batch can include multiple pending tasks, and each batch is passed to the task processing model for processing. In this exemplary embodiment, the target processing batch refers to a batch to which pending tasks can be added and processed by the task processing model. The target processing batch can be a batch already in the current system. For example, if the current system includes 20 batches being processed, the target processing batch can be determined from these 20 batches. The target processing batch can also be a new batch. For example, if the current system has a total of 20 batches being processed, the 21st batch can be created as the target processing batch, and the pending tasks can be added to the target processing batch, etc. The specific batch can be determined according to actual needs.

[0034] In an exemplary embodiment, in the above step S110, obtaining the tasks to be processed of the task processing model may include:

[0035] Receive user request tasks input by users and send the user request tasks to the preset task queue for storage;

[0036] Extract user request tasks from the preset task queue as pending tasks of the task processing model.

[0037] User-requested tasks are tasks acquired from the user or other software. They may include specific data such as the user ID (unique identifier), session ID, and request string. The pre-set task queue is a queue used to store user-requested tasks. User-requested tasks stored in the queue can be stored in a cached form.

[0038] This exemplary embodiment can configure an inference system server interface component and connect to users or other software through the inference system server interface component. For example, the inference system server interface component can provide an API (Application Programming Interface) interface and provide calling functions for users and other software through the API interface. The inference system server interface component can receive user request tasks through the API interface, and then the inference system server interface component can send the user request tasks to a preset task queue for caching. Furthermore, through the batch scheduling component configured in the system, new user request tasks can be pulled from the preset task queue as pending tasks for the task processing model.

[0039] Step S120: Determine the data volume information of the tasks to be processed in the target processing batch.

[0040] The data volume information of the pending task can be indicator data information used to reflect the data volume of the pending task. In this exemplary embodiment, the data volume information can be data size information or data length information. The data volume information of the pending task can be information obtained based on the pending task itself. For example, when the pending task is text information or sequence information converted from the pending task, the data volume information can be the length information of the text information or sequence information. The data volume information of the pending task can also be information based on the data volume determined by statistics or calculations of the pending task. For example, this exemplary embodiment can calculate the parameter matrix of the attention mechanism, such as the Q (query) matrix, K (key) matrix, V (value) matrix, etc., based on the input pending task, and use the size or length information of the parameter matrix as the data volume information. In this exemplary embodiment, the target processing batch can include one or more pending tasks, and the data volume information of each pending task needs to be calculated separately.

[0041] Step S130: Check whether the data volume information of the task to be processed meets the preset conditions.

[0042] The preset condition refers to the detection condition used by this exemplary embodiment to judge the data volume information of the task to be processed. Depending on the type of data volume information, the preset condition may include multiple conditions. For example, when the data volume information is data length information, the preset condition may be whether the length information of the task to be processed is within a preset length range, or whether the length information of multiple tasks to be processed is consistent, or whether the difference in length information of multiple tasks to be processed is within a preset length difference range, etc.; when the data volume information is data size information, the preset condition may be whether the size information of the task to be processed is within a preset size range, or whether the size information of multiple tasks to be processed is consistent, or whether the difference in size information of multiple tasks to be processed is within a preset size difference range, etc.

[0043] Step S140 , performing first-stage processing on the task to be processed based on the detection result of whether the data volume information of the task to be processed meets the preset conditions, and obtaining a first-stage processing result.

[0044] By determining whether the data volume information of the task to be processed meets the preset conditions, this exemplary embodiment can further perform the first stage of processing on the task to be processed. The first stage of processing refers to a processing process performed based on the data volume information, and can include calculation methods related to the data volume. For example, in neural network calculations, it includes length-related calculation tasks and length-independent calculation tasks. The first stage of processing can be used to perform calculation tasks related to length information, such as Attention calculations in neural network models. Based on the length information of the calculation task, this exemplary embodiment can adopt different strategies to process the task to be processed in the first stage of processing. That is, the first stage of processing can include multiple processing strategies based on whether the data volume information of the task to be processed meets the preset conditions. For example, the first stage of processing can include batch Attention calculations, or ordinary independent Attention calculations. After the first stage of processing on the task to be processed, the first stage processing results can be obtained.

[0045] Step S150: Perform second-stage processing on the first-stage processing result to obtain the target processing result.

[0046] After obtaining the first-stage processing results, the first-stage processing results can be subjected to second-stage processing, wherein the second-stage processing and the first-stage processing can correspond to different processing methods. In this exemplary embodiment, the first-stage processing can include different processing methods according to the data volume information of the task to be processed, and the second-stage processing can perform statistical processing on all the first-stage processing results after the first-stage processing to obtain the target processing results. For example, the second-stage processing can be used to perform computing tasks that are not related to length information, such as LayerNorm (normalization), Linear (linear), GeLU (activation), Add (addition) and other calculations.

[0047] Based on the above description, in this exemplary embodiment, the pending tasks of the task processing model are obtained, and the pending tasks are added to the target processing batch of the task processing model; the data volume information of the pending tasks in the target processing batch is determined; it is detected whether the data volume information of the pending tasks meets the preset conditions; based on the detection result of whether the data volume information of the pending tasks meets the preset conditions, the first stage processing is performed on the pending tasks in the target processing batch to obtain the first stage processing results; the second stage processing is performed on the first stage processing results of the pending tasks to obtain the target processing results. On the one hand, this exemplary embodiment proposes a new task processing method, which can first execute the first stage processing process and then execute the second stage processing process based on the data volume information of the task to be processed. Through the two stages, the processing process related to the task data volume information and the processing process unrelated to the task data volume information are respectively executed. Compared with directly processing the task to be processed, this exemplary embodiment reasonably plans the task processing flow and improves the effectiveness and efficiency of task processing; on the other hand, this exemplary embodiment takes the data volume information of the task to be processed as a consideration for task processing, and determines how to perform the first stage processing on the task to be processed by detecting whether the data volume information of the task to be processed meets the preset conditions, thereby improving the targeted processing of the task to be processed in the first stage and further ensuring the accuracy and efficiency of task processing; on the other hand, this exemplary embodiment can add the task to be processed to the corresponding target processing batch when performing batch processing, and fully combine the data volume information of the task to be processed to execute a reasonable task processing process, which is conducive to task management according to actual needs in batch processing, improving task processing speed, and reducing unnecessary time cost consumption.

[0048] In an exemplary embodiment, Figure 2 As shown, in the above step S110, adding the to-be-processed tasks to the target processing batch of the task processing model may include the following steps:

[0049] Step S210, obtaining load status information and performance configuration information of the current system;

[0050] Step S220, determining a target processing batch of the task processing model based on the load status information and the performance status information;

[0051] Step S230: Add the task to be processed to the target processing batch of the task processing model.

[0052] Among them, the load status information may include the load status information of the system and the load status information of each batch in the system, such as the occupancy status of the batches running in the system, or the processing status of tasks in the running batches, etc. The performance configuration information may include the performance status information of the system and the performance status information of each batch in the system, such as the maximum number of batches that can be accommodated in the system, or the maximum number of tasks that can be accommodated by each batch in the system, etc. In this exemplary embodiment, the performance configuration information can be customized as needed, for example, it can be manually configured or specified when the system is initialized, etc., and the present disclosure does not make specific limitations on this.

[0053] In this exemplary embodiment, the target processing batch of the task processing model to which the pending task is to be added can be determined based on the load status information of the current system and the performance configuration information of the batches being processed by the current system. The current system may refer to a system running task processing, and the batches being processed by the current system refer to batches being processed or already existing in the current system. For example, if the system can accommodate 50 batches for task processing, and the current system includes 20 batches being run or tasks for 20 batches have been sequentially input for processing, then these 20 batches can be considered as batches being processed or batches already processed by the current system.

[0054] According to different load status information and performance status information, a target processing batch for adding tasks to be processed may be determined in the system, and the tasks to be processed may be added to the target processing batch of the task processing model.

[0055] In an exemplary embodiment, the load status information includes the number of unfinished tasks in the batch currently being processed in the system; the performance configuration information includes the maximum number of tasks that can be accommodated in the batch currently being processed in the system; then the above step S220 may include:

[0056] Detect whether the current system includes a candidate processing batch in which the number of unfinished tasks in the processing batch is less than the maximum number of tasks that can be accommodated in the processing batch;

[0057] If a candidate processing batch is detected, a target processing batch of the task processing model is determined based on the candidate processing batch.

[0058] The candidate processing batch refers to a batch in the current system that can be selected as a target processing batch. This exemplary embodiment first determines a candidate processing batch from multiple batches in process by detecting whether there is a batch that meets the conditions in the current system, and then determines the target processing batch based on the candidate processing batches. Specifically, for example, the maximum number of tasks that can be accommodated in the batch b in the current system is set to B. After pulling a new task to be processed t, if there are still R number of unfinished user-requested tasks in the batch b in the current system, b <B, then the processing batch b can be used as the target processing batch, and the to-be-processed task t can be inserted into the processing batch b.

[0059] It should be noted that if there are multiple candidate processing batches that meet the conditions in the current system, the target processing batch can be randomly determined from the multiple candidate processing batches, or it can be determined based on the calculation status or identification information of the candidate processing batches. For example, the batch with the least amount of tasks being executed can be used as the target processing batch, or the earliest or last generated batch can be used as the target processing batch based on the timestamp identification information of the batch generation, etc. The present disclosure does not make specific restrictions on this.

[0060] In an exemplary embodiment, the task processing method may further include:

[0061] If no candidate processing batch is detected, a new batch is created in the current system as the target processing batch of the task processing model.

[0062] If no candidate processing batches are detected within the current system, a new batch is created within the current system as the target processing batch, and the pending tasks are added to the target processing batch. In this exemplary embodiment, when creating a new batch within the system, a total of pending tasks not exceeding the maximum number of tasks that can be accommodated within the batch are pulled to create the new batch for calculation. For example, if the maximum number of tasks that can be accommodated within a batch is B = 4, when creating a new batch, a total of 4 user-requested tasks can be continuously pulled to create one batch.

[0063] In an exemplary embodiment, the load status information further includes: the number of batches currently being processed in the current system; the performance configuration information further includes: the maximum number of batches that can be accommodated by the current system; before creating a new batch in the current system as a target processing batch of the task processing model, the task processing method may further include:

[0064] When it is detected that the number of batches being processed in the current system is not less than the maximum number of batches that can be accommodated by the current system, the processing of the pending tasks is canceled.

[0065] In this exemplary embodiment, when no candidate processing batch is detected and it is detected that the number of batches being processed in the current system is not less than the maximum number of batches that the current system can accommodate, the processing of the pending task can be canceled. For example, when there are no idle candidate processing batches in the current system and the number of batches being processed in the current system L = the maximum number of batches that the current system can accommodate C, it means that the batches in the current system are saturated, and new pending tasks cannot be inserted, nor can new batches be created to process pending tasks. At this time, the processing of the pending task can be rejected.

[0066] In an exemplary embodiment, the task processing method may further include:

[0067] When it is detected that the tasks in each batch being processed in the current system have been completed, the tasks that have been completed will be removed from the batch being processed.

[0068] It should be noted that in this exemplary embodiment, in each batch being processed in the current system, when the task execution is completed, the task exit can be executed. For example, after a task completes the generation of a large model text sequence, the current batch can be exited without waiting for the calculation of other tasks in the batch to be completed.

[0069] In an exemplary embodiment, the target processing batch includes multiple tasks to be processed, and the step S140 may include:

[0070] If the target processing batch includes multiple pending tasks whose data volume information meets the preset conditions, batch computing is used to perform the first-stage processing on the multiple pending tasks to obtain the first-stage processing results;

[0071] If the target processing batch includes tasks to be processed whose data volume information does not meet the preset conditions, an independent calculation method is used to perform the first stage processing on the tasks to be processed to obtain the first stage processing results.

[0072] In this exemplary embodiment, the first-stage processing results can be processed using different methods depending on whether the data volume information of the pending tasks meets the preset conditions. Specifically, when there are multiple pending tasks in the target processing batch whose data volumes meet the preset conditions, batch calculation methods, such as batch attention calculation, can be used to execute the first-stage processing for these multiple pending tasks, resulting in the first-stage processing process. When there are no pending tasks in the target processing batch whose data volume information meets the preset conditions, independent calculation methods, such as standard attention calculation, can be used to execute the first-stage processing for these pending tasks. This avoids the problem of pending tasks with different data volume information interfering with each other during the same-stage processing. For example, in traditional batch task processing technology, the text sequence lengths of tasks requested by different users in the same batch may vary. However, when processing tasks in the same batch, regardless of their length, all tasks must wait until all tasks in the batch have been processed before a result can be returned. This results in unnecessary waiting time for tasks with shorter text sequences and prevents them from exiting the batch processing as needed. This exemplary embodiment can provide an effective and targeted processing method based on the data volume information of the pending tasks in the target processing batch, resulting in high processing efficiency. In this exemplary embodiment, the pending tasks processed in an independent computing manner can be exited as needed according to the actual computing status or demand.

[0073] In an exemplary embodiment, the data volume information of the task to be processed includes a first data length of the task to be processed and / or a second data length of reference information determined based on the task to be processed; and detecting whether the data volume information of the task to be processed meets a preset condition includes any one or more of the following combinations:

[0074] Detecting whether a length difference of first data lengths of a plurality of tasks to be processed is less than a first preset length threshold;

[0075] Detecting whether a length difference of the second data lengths of the plurality of tasks to be processed is less than a second preset length threshold;

[0076] It is detected whether a length difference of a third data length of a plurality of tasks to be processed is less than a third preset length threshold, where the third data length is determined by the first data length and the second data length.

[0077] In this exemplary embodiment, the data volume of the task to be processed can be the first data length of the task to be processed. The first data length can refer to the data length of the task to be processed itself. For example, when the task to be processed is a text sequence, the first data length can be the length of the text sequence. The data volume of the task to be processed can also be the second data length of reference information determined based on the task to be processed. The reference information can be a parameter matrix in the attention mechanism calculated based on the input task to be processed, such as the Q, K, and V matrices. The second data length is the data length of the reference data, such as the cache length of the Q, K, and V matrices. The third data length refers to the data length determined based on the first data length and the second data length, such as the length of the input data of the task to be processed plus the length of the Q, K, and V matrices determined based on the input data.

[0078] The first preset length threshold refers to a judgment threshold for determining the first data length difference, the second preset length threshold refers to a judgment threshold for determining the second data length difference, and the third preset length threshold refers to a judgment threshold for determining the third data length difference. The first preset length threshold, the second preset length threshold, and the third preset length threshold can be the same or different. The specific settings can be customized according to actual conditions. For example, in this exemplary embodiment, the first preset length threshold, the second preset length threshold, and the third preset length threshold can be set to the same value, and a smaller value can be set.

[0079] In particular, when the above-mentioned preset length threshold is set to 0, detecting whether the data volume information of multiple tasks to be processed meets the preset conditions essentially means detecting whether the first data length, second data length, and third data length of multiple tasks to be processed are the same. If there are multiple tasks to be processed with the same first data length, second data length, or third data length in the current system, these multiple tasks to be processed can be batch calculated; if there are tasks to be processed with a different first data length, second data length, or third data length from other tasks to be processed in the current system, the tasks to be processed can be independently calculated.

[0080] This exemplary embodiment may adopt one or more of the above-mentioned combinations to determine whether the data volume information of the task to be processed meets the preset conditions. For example, it may determine whether the input lengths of multiple tasks to be processed are the same; it may determine whether the lengths of the reference matrices determined by multiple tasks to be processed are the same; it may determine whether the lengths of the inputs plus the reference matrices of multiple tasks to be processed are the same; it may also first determine whether the input lengths of multiple tasks to be processed are the same, and when the input lengths are the same, further determine whether the lengths of the reference matrices corresponding to the multiple tasks to be processed are the same; and when the input lengths and reference matrices of multiple tasks to be processed are the same, it is determined that the data volume information of the task to be processed meets the preset conditions.

[0081] In an exemplary embodiment, the above step S140 may include:

[0082] The first-stage processing results of each task to be processed in the target processing batch are merged, and the merged first-stage processing results are processed in the second stage to obtain the target processing results.

[0083] Finally, the first-stage processing results of multiple pending tasks in the target processing batch can be merged, and the second-stage processing can be further performed to obtain the target processing result. The merging can be done by concatenating the first-stage processing results. For example, when the first-stage processing results are in the form of matrices or vectors, the matrices or vectors can be merged by concatenation, and then the second-stage processing can be performed on the merged matrices or vectors.

[0084] Figure 3 A schematic diagram of a system architecture in this exemplary embodiment is shown, which may specifically include an inference system service interface 310, a task input queue 320, a batch scheduling component 330, processing batches 340 included in the system, a heterogeneous dimensional matrix calculation component 350, a tensor merging and shaping component 360, a general computing component 370, and a task output queue 380.

[0085] Among them, the inference system server interface component 310 is used to provide an API interface for users or other software to call. After receiving the user request task, the inference system server interface component sends the user request task to the task input queue 320 for caching. The task input queue 320 is the preset task queue. According to the actual framework settings, the task input queue 320 and the task output queue 380 can be set separately.

[0086] The batch scheduling component 330 is used to pull new pending tasks from the task input queue 320 and generate a scheduling decision for each pending task based on the system's load status information and performance configuration information. For newly arrived pending tasks, the batch scheduling component can choose to create a new batch 330 in the system for processing, or insert the system's processing batch 330 for processing. The scheduling strategy may include: detecting whether the current system includes a candidate processing batch in which the number of unfinished tasks in the processing batch is less than the maximum number of tasks that can be accommodated in the processing batch; if a candidate processing batch is detected, determining the target processing batch of the task processing model based on the candidate processing batch; if no candidate processing batch is detected, creating a new batch in the current system as the target processing batch of the task processing model; adding the pending tasks to the target processing batch of the task processing model, which target processing batch belongs to the processing batches 340 included in the system.

[0087] The heterogeneous dimension matrix calculation component 350 may refer to a heterogeneous dimension matrix GEMM (GEneral Matrix to Matrix Multiplication, general matrix matrix multiplication) calculation component. The heterogeneous dimension matrix GEMM calculation component may include a batch attention calculation module and a normal attention calculation module. Among them, the batch attention calculation module is used to calculate the data volume information of the tasks to be processed that meet the preset conditions, such as the length of the text sequence of the tasks to be processed and / or the Q, K, and V matrix cache lengths of the Transformer are equal to multiple processing tasks; the normal attention calculation module only calculates a single task, such as the length of the text sequence of other processing tasks, or the processing task that is different from the Q, K, and V matrix cache lengths of the Transformer.

[0088] For example, when using the batch attention computation module, the heterogeneous dimensional matrix GEMM computation component first calculates new Q, K, and V matrices based on the pending tasks and caches them. It then sorts the input data lengths of each pending task within the target processing batch. Among tasks with the same input data length, the Transformer's Q, K, and V matrix cache lengths are sorted. After sorting, tasks with the same input data length and Q, K, and V matrix lengths are sent to the batch attention computation module for processing, improving computational efficiency. Tasks with different input data lengths or Q, K, and V matrix cache lengths are sent to the standard attention computation module for independent computation, ensuring that tasks can exit or join the batch as needed. The heterogeneous dimensional matrix GEMM computation component maximizes the efficiency advantages of batch processing while ensuring that tasks with different sequence generation lengths can exit and join the batch as needed.

[0089] The tensor merging and shaping component 360 is used to merge and reshape the calculation results of the heterogeneous dimensional matrix calculation component 350. After completing the Attention calculation of the tasks to be processed with different data volume information, it can further perform LayerNorm, Linear, GeLU, Add and other calculations that are not related to the data volume information of the tasks to be processed. Therefore, before performing the calculation, the output results of the above-mentioned heterogeneous dimensional matrix calculation component 350 can be tensor merged and shaped. Specifically, the tensor merging and shaping component can use the flatten function to reshape the calculation results of the previous component, and merge them into a tensor to be sent to the next component for calculation.

[0090] The ordinary GEMM calculation component 370 is used to calculate the results after merging and shaping. The ordinary GEMM calculation component performs ordinary GEMM calculations such as LayerNorm, Linear, GeLU, Add of Transformer on the results of tensor merging and shaping components, which are not related to the data volume information of the task to be processed, generates the target processing result, and returns the target processing result through the task output queue 380 for the next round of iteration.

[0091] This exemplary embodiment can perform computational segmentation on the Transformer neural network in a large model, dividing it into computational tasks related to text sequence length, such as Attention computation, and computational tasks unrelated to text sequence length, such as LayerNorm, Linear, GeLU, and Add computations. Specifically, based on the text sequence length of the task to be processed, computational tasks related to text sequence length can be batch processed using the heterogeneous dimensional matrix GEMM computation component; computational tasks unrelated to text sequence length can be batch processed using the standard GEMM computation component.

[0092] For example, the number of batches being processed in the current system is 0, and the maximum number of tasks that can be accommodated in each batch in the system is B = 4. Figure 4 A flow chart of a batch scheduling component scheduling pending tasks is shown, which may specifically include: extracting four pending tasks 411, 412, 413, and 414 from a task input queue 410, wherein the sequence length of pending task 411 is [1, H], the sequence length of pending task 412 is [1, H], the sequence length of pending task 413 is [2, H], and the sequence length of pending task 414 is [3, H]. H represents the hidden layer dimension. This is a schematic example, and the specific example can be determined according to actual conditions. After receiving each pending task, the batch scheduling component 420 detects that the number of batches being processed in the current system 430 is 0, and then the above four pending tasks can be pulled to create a new target processing batch. After the batch is created, the system 440 includes 1 batch.

[0093] Figure 5A flowchart of a calculation process of a heterogeneous dimensional matrix calculation component is shown, which may specifically include: for pending tasks 411, 412, 413, and 414, the pre-processing module 510 can first calculate the data volume information of the pending tasks and / or reference matrices, such as the input of the pending tasks and the cache length of the Q, K, and V matrices, and then sort them to obtain the sorted results 520 of each pending task; using the above length example to explain, the input lengths of pending tasks 411 and 412 are the same, both 1, and the Q, K, and V cache lengths are all 1, so they are merged into one tensor with the same length, and are calculated using the batch attention calculation module 530 to obtain the first-stage processing result 531; the input lengths of pending tasks 413 and 414 are 2 and 3 respectively, which are different from other pending tasks, so they are independently calculated using the ordinary attention calculation module 540 to obtain the first-stage processing results 541 and the first-stage processing results 542 respectively.

[0094] Figure 6 A schematic diagram of the processing flow of a tensor merging and shaping component is shown, which may specifically include: merging and shaping the first-stage processing result [2, 1, H] 531 calculated by the above-mentioned batch Attention calculation module 530, the second-stage processing result [2, H] 541 calculated by the above-mentioned ordinary Attention calculation module 540, and the second-stage processing result [3, H] 542 through the tensor merging and shaping component 610 to obtain a tensor 620 with a dimension of [7, H]. Further, a second processing process can be performed based on the tensor 620 to obtain the target processing result.

[0095] The exemplary embodiments of the present disclosure also provide a task processing device. Figure 7 The device 700 may include a task adding module 710 for acquiring the pending tasks of the task processing model and adding the pending tasks to the target processing batch of the task processing model; an information determining module 720 for determining the data volume information of the pending tasks in the target processing batch; a condition detecting module 730 for detecting whether the data volume information of the pending tasks meets a preset condition; a first processing module 740 for performing a first-stage processing on the pending tasks in the target processing batch according to the detection result of whether the data volume information of the pending tasks meets the preset condition to obtain a first-stage processing result; and a second processing module 750 for performing a second-stage processing on the first-stage processing result of the pending tasks to obtain a target processing result.

[0096] In an exemplary embodiment, the task adding module 710 includes: a task storage unit for receiving a user request task input by a user and sending the user request task to a preset task queue for storage; a task extraction unit for extracting the user request task from the preset task queue as a to-be-processed task of the task processing model.

[0097] In an exemplary embodiment, the task adding module 710 includes: a status information acquisition unit, used to obtain the load status information and performance configuration information of the current system; a target batch determination unit, used to determine the target processing batch of the task processing model based on the load status information and performance status information; and a task adding unit, used to add the task to be processed to the target processing batch of the task processing model.

[0098] In an exemplary embodiment, the load status information includes the number of unfinished tasks in the batch being processed in the current system; the performance configuration information includes the maximum number of tasks that can be accommodated in the batch being processed in the current system; the first processing module 740 includes: a first detection unit, used to detect whether the current system includes a candidate processing batch in which the number of unfinished tasks in the batch being processed is less than the maximum number of tasks that can be accommodated in the batch being processed; and if a candidate processing batch is detected, determining the target processing batch of the task processing model based on the candidate processing batch.

[0099] In an exemplary embodiment, the task processing apparatus may further include: a second detection unit, configured to create a new batch in the current system as a target processing batch of the task processing model if no candidate processing batch is detected.

[0100] In an exemplary embodiment, the load status information also includes: the number of batches being processed in the current system, and the performance configuration information also includes: the maximum number of batches that the current system can accommodate; before creating a new batch in the current system as the target processing batch of the task processing model, the above-mentioned task processing device may also include: a third detection unit, which is used to cancel the processing of the pending task when it detects that the number of batches being processed in the current system is not less than the maximum number of batches that the current system can accommodate.

[0101] In an exemplary embodiment, the target processing batch includes multiple tasks to be processed; the first processing module 740 includes: a first calculation unit, which is used to use a batch calculation method to perform first-stage processing on the multiple tasks to be processed if the target processing batch includes multiple tasks to be processed whose data volume information meets the preset conditions, and obtain the first-stage processing results; a second calculation unit, which is used to use an independent calculation method to perform first-stage processing on the tasks to be processed if the target processing batch includes tasks to be processed whose data volume information does not meet the preset conditions, and obtain the first-stage processing results.

[0102] In an exemplary embodiment, the data volume information of the task to be processed includes the first data length of the task to be processed, and / or the second data length of the reference information determined based on the task to be processed; the condition detection module 730 includes any one or more of the following combinations: detecting whether the length difference of the first data lengths of multiple tasks to be processed is less than a first preset length threshold; detecting whether the length difference of the second data lengths of multiple tasks to be processed is less than a second preset length threshold; detecting whether the length difference of the third data lengths of multiple tasks to be processed is less than a third preset length threshold, and the third data length is determined by the first data length and the second data length.

[0103] In an exemplary embodiment, the second processing module 750 includes: a merging unit for merging the first-stage processing results of each task to be processed in the target processing batch, and performing second-stage processing on the merged first-stage processing results to obtain the target processing results.

[0104] The specific details of each module / unit in the above device have been described in detail in the embodiments of the method part. For undisclosed details, please refer to the embodiments of the method part, so they will not be repeated here.

[0105] Exemplary embodiments of the present disclosure also provide an electronic device capable of implementing the above method.

[0106] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods, or program products. Therefore, various aspects of the present disclosure may be implemented in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "circuits," "modules," or "systems."

[0107] Refer to the following Figure 8 800 according to this exemplary embodiment of the present disclosure will be described. Figure 8 The electronic device 800 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0108] like Figure 8 As shown, electronic device 800 is implemented as a general-purpose computing device. Components of electronic device 800 may include, but are not limited to, the aforementioned at least one processing unit 810, the aforementioned at least one storage unit 820, a bus 830 connecting various system components (including storage unit 820 and processing unit 810), and a display unit 840.

[0109] The storage unit stores program codes, which can be executed by the processing unit 810, so that the processing unit 810 performs the steps described in the "Exemplary Method" section of this specification according to various exemplary embodiments of the present disclosure. For example, the processing unit 810 can execute Figure 1 or Figure 2 Steps shown, etc.

[0110] The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 821 and / or a cache memory unit 822 , and may further include a read-only memory unit (ROM) 823 .

[0111] The storage unit 820 may also include a program / utility 824 having a set (at least one) of program modules 825, such program modules 825 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0112] Bus 830 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0113] The electronic device 800 can also communicate with one or more external devices 900 (e.g., a keyboard, a pointing device, a Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 800, and / or any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., a router, a modem, etc.). Such communication can occur via an input / output (I / O) interface 850. Furthermore, the electronic device 800 can also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via a network adapter 860. As shown, the network adapter 860 communicates with other modules of the electronic device 800 via a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 800, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0114] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the exemplary embodiment of the present disclosure.

[0115] The exemplary embodiments of the present disclosure further provide a computer-readable storage medium having stored thereon a program product capable of implementing the methods described above in this specification. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product comprising program code that, when executed on a terminal device, causes the terminal device to execute the steps described in the "Exemplary Methods" section above according to various exemplary embodiments of the present disclosure.

[0116] The exemplary embodiments of the present disclosure further provide a program product for implementing the above-mentioned method, which can be a portable compact disc read-only memory (CD-ROM) and includes program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0117] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0118] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0119] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0120] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, and the like, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0121] Furthermore, the figures above are merely illustrative of the processes included in the methods according to exemplary embodiments of the present disclosure and are not intended to be limiting. It is readily understood that the processes illustrated in the figures above do not indicate or limit the temporal order of these processes. Furthermore, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.

[0122] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.

[0123] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow from the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the claims.

[0124] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A task processing method, characterized in that: include: Acquire pending tasks of a task processing model, and add the pending tasks to a target processing batch of the task processing model; Determine the data volume information of the tasks to be processed in the target processing batch; Detecting whether the data volume information of the task to be processed meets the preset conditions; According to the detection result of whether the data volume information of the to-be-processed tasks meets the preset conditions, the to-be-processed tasks in the target processing batch are processed in the first stage to obtain the first stage processing results; The second stage processing is performed on the first stage processing result of the task to be processed to obtain the target processing result.

2. The method according to claim 1, characterized in that The obtaining of the pending tasks of the task processing model includes: Receive a user request task input by a user, and send the user request task to a preset task queue for storage; A user requested task is extracted from the preset task queue as a task to be processed by the task processing model.

3. The method according to claim 1, characterized in that The step of adding the to-be-processed task to a target processing batch of the task processing model includes: Obtain the current system load status information and performance configuration information; Determining a target processing batch of the task processing model according to the load status information and the performance status information; The to-be-processed tasks are added to a target processing batch of the task processing model.

4. The method according to claim 3, characterized in that The load status information includes the number of unfinished tasks in the batch being processed in the current system; the performance configuration information includes the maximum number of tasks that can be accommodated in the batch being processed in the current system; The step of determining a target processing batch of the task processing model according to the load status information and the performance configuration information includes: Detecting whether the current system includes a candidate processing batch in which the number of unfinished tasks in the processing batch is less than the maximum number of tasks that can be accommodated in the processing batch; If the candidate processing batch is detected, the target processing batch of the task processing model is determined according to the candidate processing batch.

5. The method according to claim 4, characterized in that The method further comprises: If the candidate processing batch is not detected, a new batch is created in the current system as the target processing batch of the task processing model.

6. The method according to claim 5, characterized in that The load status information further includes: the number of batches being processed in the current system, and the performance configuration information further includes the maximum number of batches that can be accommodated by the current system; before creating a new batch in the current system as the target processing batch of the task processing model, the method further includes: When it is detected that the number of batches being processed in the current system is not less than the maximum number of batches that can be accommodated by the current system, the processing of the pending tasks is canceled.

7. The method according to claim 1, characterized in that The target processing batch includes a plurality of tasks to be processed; and according to the detection result of whether the data volume information of the tasks to be processed meets the preset conditions, the tasks to be processed in the target processing batch are processed in the first stage to obtain the first stage processing results, including: If the target processing batch includes multiple tasks to be processed whose data volume information meets the preset conditions, a batch calculation method is used to perform the first stage processing on the multiple tasks to be processed to obtain the first stage processing results; If the target processing batch includes pending tasks whose data volume information does not meet the preset conditions, the pending tasks are processed in the first stage by adopting an independent calculation method to obtain the first stage processing results.

8. The method according to claim 7, characterized in that The data volume information of the task to be processed includes a first data length of the task to be processed, and / or a second data length of the reference information determined according to the task to be processed; and the detecting whether the data volume information of the task to be processed meets the preset condition includes any one or more of the following combinations: Detecting whether a length difference of the first data lengths of the plurality of tasks to be processed is less than a first preset length threshold; Detecting whether a length difference of the second data lengths of the plurality of tasks to be processed is less than a second preset length threshold; It is detected whether a length difference of a third data length of the plurality of tasks to be processed is less than a third preset length threshold, the third data length being determined by the first data length and the second data length.

9. The method according to claim 8, characterized in that The second-stage processing of the first-stage processing result of the task to be processed to obtain the target processing result includes: The first-stage processing results of each of the tasks to be processed in the target processing batch are merged, and the merged first-stage processing results are subjected to second-stage processing to obtain the target processing results.

10. A task processing device, characterized in that: include: A task adding module, used for acquiring pending tasks of a task processing model, and adding the pending tasks to a target processing batch of the task processing model; An information determination module, used to determine the data volume information of the tasks to be processed in the target processing batch; A condition detection module is used to detect whether the data volume information of the task to be processed meets the preset conditions; A first processing module, configured to perform first-stage processing on the tasks to be processed in the target processing batch according to a detection result of whether the data volume information of the tasks to be processed meets a preset condition, and obtain first-stage processing results; The second processing module is used to perform second-stage processing on the first-stage processing result of the task to be processed to obtain a target processing result.

11. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 9 by executing the executable instructions.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

Citation Information

Cited By

  • Model deployment method, data processing method and electronic equipment

    CN119862915A

  • Target detection and identification task processing method and device, electronic equipment and storage medium

    CN121053369A