Data processing method, device, chip, system and equipment based on many-core chip

By dividing the core of the many-core chip into core groups and the model parameters into parameter groups, flexible resource allocation is achieved, solving the speed and power consumption problems of traditional chips when processing large-scale model parameters, and improving resource utilization and processing efficiency.

CN117634571BActive Publication Date: 2026-11-20LYNXI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311662576.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-06
Publication Date
2026-11-20
Estimated Expiration
2043-12-06

AI Technical Summary

Technical Problem

In existing technologies, traditional chips cannot meet the requirements in terms of processing speed and power consumption when processing large-scale model parameters, resulting in low resource utilization and failing to effectively meet the data processing needs of neural network models.

Method used

The multiple cores of the many-core chip are divided into core groups, and the model parameters of the preset neural network model are divided into parameter groups. The core groups process the parameter groups to achieve flexible resource allocation and matching, thereby improving resource utilization.

Benefits of technology

It improved data processing speed, reduced power consumption, and ensured the smooth implementation of data processing and full utilization of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117634571B_ABST
    Figure CN117634571B_ABST
Patent Text Reader

Abstract

The present disclosure provides a data processing method and device based on a many-core chip, a chip, a system and equipment, and belongs to the technical field of computers. The data processing method comprises: obtaining at least one parameter group, the parameter group comprising a plurality of model parameters of a preset neural network model after decompression processing by the many-core chip; determining a core group corresponding to each parameter group, the core group comprising at least one core; performing data processing by the core group according to the corresponding parameter group to obtain a grouped processing result corresponding to the parameter group; and obtaining a model processing result of the preset neural network model according to at least one grouped processing result. According to the embodiments of the present disclosure, the resource utilization rate can be improved, and the data processing efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a data processing method, data processing device, many-core computing chip, processing system, electronic device and computer-readable storage medium based on many-core chip. Background Technology

[0002] The model can be used to perform corresponding data processing tasks, and the model parameters play a crucial role in the data processing process. In related technologies, it is typically necessary to load all the raw data of the data processing task (e.g., model parameters) into a corresponding chip, which then performs the corresponding data operations to obtain the calculation results. However, as the number of parameters involved in the calculation increases, the processing speed and power consumption of the above methods may no longer meet the usage requirements. Summary of the Invention

[0003] This disclosure provides a data processing method, data processing device, many-core computing chip, data processing system, electronic device, and computer-readable storage medium based on many-core chips.

[0004] In a first aspect, this disclosure provides a data processing method based on a many-core chip, the many-core chip including multiple cores, the data processing method comprising: acquiring at least one parameter group, the parameter group including multiple model parameters of a preset neural network model that have been decompressed by the many-core chip; determining a core group corresponding to each parameter group, the core group including at least one core; having the core group perform data processing according to the corresponding parameter group to obtain a grouping processing result corresponding to the parameter group; and obtaining a model processing result of the preset neural network model based on at least one grouping processing result.

[0005] Secondly, this disclosure provides a data processing device based on a many-core chip. The processing device can be applied to a many-core chip, and the many-core chip includes multiple cores. The data processing device includes: an acquisition module for acquiring at least one parameter group, the parameter group including multiple model parameters of a preset neural network model that have been decompressed by the many-core chip; a correspondence module for determining a core group corresponding to each parameter group, the core group including at least one core; an execution module for the core group to perform data processing according to the corresponding parameter group to obtain a grouping processing result corresponding to the parameter group; and a processing module for obtaining a model processing result of the preset neural network model based on at least one grouping processing result.

[0006] Thirdly, this disclosure provides a many-core computing chip for executing the data processing method based on a many-core chip as described in any one of the embodiments of this disclosure.

[0007] Fourthly, this disclosure provides a processing system, which includes: a preset processor and at least one many-core chip; wherein the preset processor and the many-core chip are connected via a bus, the preset processor is used to send control flow instructions to the many-core chip, and the many-core chip is used to execute the many-core chip-based data processing method according to any one of the embodiments of this disclosure based on the control flow instructions.

[0008] Fifthly, this application provides an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores one or more computer programs executable by the at least one processor, the one or more computer programs being executed by the at least one processor to enable the at least one processor to perform the many-core chip-based data processing method according to any one of the embodiments of this disclosure.

[0009] In a sixth aspect, this application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor / processor core, implements the many-core chip-based data processing method described in any one of the embodiments of this disclosure.

[0010] In this embodiment of the disclosure, the many-core chip includes multiple cores, and the corresponding data processing method includes: acquiring at least one parameter group, the parameter group including multiple model parameters of a preset neural network model that have been decompressed by the many-core chip; determining a core group corresponding to each parameter group, the core group including at least one core; the core group performing data processing according to the corresponding parameter group to obtain a grouping processing result corresponding to the parameter group; and obtaining a model processing result of the preset neural network model based on at least one grouping processing result. Therefore, considering that the overall performance of the many-core chip may not match the overall requirements of the preset neural network model, and that this mismatch may lead to insufficient utilization of the many-core chip's resources or failure to effectively meet the data processing requirements of the preset neural network model, in this embodiment, the multiple cores of the many-core chip are divided into at least one core group, so that each core group has certain core group resources. Similarly, the model parameters of the preset neural network model are also divided into at least one parameter group, thereby splitting the entire data processing process into multiple parameter groups with smaller data processing scales. Data processing is performed on the corresponding parameter groups by each core group, so that the resources of the core group and the data processing scale of the parameter group are more compatible. This allows full utilization of the core group's processing resources, improves processing speed, and improves the overall resource utilization of the many-core chip by effectively utilizing the processing resources of each core group, reducing wasted resources and power consumption. In addition, the group processing results of each parameter group can be obtained based on the core group, and the model processing results can be further obtained based on the corresponding group processing results, thereby ensuring the smooth implementation of data processing.

[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0012] The accompanying drawings are provided to further illustrate the present disclosure and form part of the specification. They are used together with the embodiments of the present disclosure to explain the disclosure and do not constitute a limitation thereof. The above and other features and advantages will become more apparent to those skilled in the art from the detailed example embodiments described below with reference to the accompanying drawings.

[0013] Figure 1 A schematic diagram of a data processing method provided for related technologies.

[0014] Figure 2 A flowchart illustrating a data processing method based on a many-core chip, provided as an embodiment of this disclosure.

[0015] Figure 3This is a schematic diagram of a data processing method based on a many-core chip provided in an embodiment of this disclosure.

[0016] Figure 4 This is a schematic diagram of a compression process provided in an embodiment of the present disclosure.

[0017] Figure 5 This is a schematic diagram of a roofline model of a many-core chip provided in an embodiment of this disclosure.

[0018] Figure 6 This is a schematic diagram of a roofline model of a many-core chip provided in an embodiment of this disclosure.

[0019] Figure 7 This is a schematic diagram of a core group provided in an embodiment of the present disclosure.

[0020] Figure 8 This is a schematic diagram of a model parameter grouping provided in an embodiment of the present disclosure.

[0021] Figure 9 This is a schematic diagram of a data processing method based on a many-core chip provided in an embodiment of this disclosure.

[0022] Figure 10 This is a schematic diagram of a data processing method based on a many-core chip provided in an embodiment of this disclosure.

[0023] Figure 11 This is a schematic diagram of a data processing method based on a many-core chip provided in an embodiment of this disclosure.

[0024] Figure 12 This is a flowchart illustrating a data processing method based on a many-core chip, provided as an embodiment of this disclosure.

[0025] Figure 13 This is a block diagram of a data processing apparatus provided in an embodiment of the present disclosure.

[0026] Figure 14 This is a schematic diagram of a many-core computing chip provided in an embodiment of this disclosure.

[0027] Figure 15 This is a block diagram of a processing system provided in an embodiment of the present disclosure.

[0028] Figure 16 This is a block diagram of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation

[0029] To enable those skilled in the art to better understand the technical solutions of this disclosure, exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments of this disclosure to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0030] Where there is no conflict, the various embodiments of this disclosure and the features thereof in the embodiments may be combined with each other.

[0031] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.

[0032] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. As used herein, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded. Words such as “connected” or “linked” are not limited to physical or mechanical connections but can include electrical connections, whether direct or indirect.

[0033] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning, unless expressly so defined herein.

[0034] With the development of technologies such as Artificial Intelligence (AI), an increasing number of large models are being developed to achieve more accurate, efficient, and intelligent information processing. Existing large models typically involve large computational demands and large amounts of data for parameters such as weights. Therefore, traditional edge chips (e.g., AI chips) may not be able to meet the storage requirements of the aforementioned information processing. For example, the Generative Pre-Trained Transformer 3 (GPT3) includes 6 billion model parameters, and the SegmentAnything Model (SAM) includes 636 million model parameters.

[0035] In related technologies, it is usually necessary to load all the raw data of the AI ​​task into the AI ​​chip, and then the AI ​​chip performs the corresponding data operations to obtain the corresponding calculation results.

[0036] Figure 1 A schematic diagram illustrating a data processing method provided for related technologies. (Refer to...) Figure 1 The Central Processing Unit (CPU), AI chip, main memory (e.g., Double Data Rate (DDR) memory), and external storage (e.g., Flash Memory, Solid State Drive (SSD)) are connected via a bus. The AI ​​chip can be considered an edge chip. During data processing, raw data from external storage is loaded into main memory, and then all raw data is read from main memory into the AI ​​chip. The AI ​​chip then performs calculations based on the read data to generate the corresponding processing results.

[0037] As the number of parameters involved in the computation increases, the processing speed and power consumption of the methods described above may no longer meet the requirements. Therefore, how to enable chips to run large models efficiently, improve processing speed, and reduce power consumption has become an urgent problem to be solved.

[0038] In view of the above, embodiments of this disclosure provide a data processing method, a data processing apparatus, a many-core computing chip, a processing system, an electronic device, and a computer-readable storage medium based on many-core chips.

[0039] In this embodiment of the disclosure, the many-core chip includes multiple cores, and the corresponding data processing method includes: acquiring at least one parameter group, the parameter group including multiple model parameters of a preset neural network model that have been decompressed by the many-core chip; determining a core group corresponding to each parameter group, the core group including at least one core; the core group performing data processing according to the corresponding parameter group to obtain a grouping processing result corresponding to the parameter group; and obtaining a model processing result of the preset neural network model based on at least one grouping processing result. Therefore, considering that the overall performance of the many-core chip may not match the overall requirements of the preset neural network model, and that this mismatch may lead to insufficient utilization of the many-core chip's resources or failure to effectively meet the data processing requirements of the preset neural network model, in this embodiment, the multiple cores of the many-core chip are divided into at least one core group, so that each core group has certain core group resources. Similarly, the model parameters of the preset neural network model are also divided into at least one parameter group, thereby splitting the entire data processing process into multiple parameter groups with smaller data processing scales. Data processing is performed on the corresponding parameter groups by each core group, so that the resources of the core group and the data processing scale of the parameter group are more compatible. This allows full utilization of the core group's processing resources, improves processing speed, and improves the overall resource utilization of the many-core chip by effectively utilizing the processing resources of each core group, reducing wasted resources and power consumption. In addition, the group processing results of each parameter group can be obtained based on the core group, and the model processing results can be further obtained based on the corresponding group processing results, thereby ensuring the smooth implementation of data processing.

[0040] The first aspect of this disclosure provides a data processing method based on a many-core chip.

[0041] Figure 2 A flowchart illustrating a data processing method based on a many-core chip, provided as an embodiment of this disclosure, is shown below. The many-core chip includes multiple cores. (Refer to...) Figure 2 The data processing method may include the following steps.

[0042] Step S21: Obtain at least one parameter group.

[0043] Step S22: Determine the kernel group corresponding to each parameter group.

[0044] Step S23: The core group performs data processing according to the corresponding parameter group to obtain the grouping processing result corresponding to the parameter group.

[0045] Step S24: Based on at least one grouping processing result, obtain the model processing result of the preset neural network model.

[0046] Typically, the operation of a model depends on a computing platform, requiring the platform to provide computing power and storage support. In this embodiment, data processing is performed using a many-core chip and a preset neural network model. Essentially, this involves scheduling or allocating the resources of the many-core chip to the preset neural network model to leverage its processing capabilities, perform corresponding mathematical operations and other data processing, and thus obtain the model's processing results.

[0047] In related technologies, during data processing via a model using a chip, regardless of whether the chip is single-core or many-core, the chip is typically treated as a whole, as is the model. Consequently, the chip's resources are also considered as holistic resources, and the model's processing is also considered as a holistic processing process. Based on this, the allocation of chip resources during data processing is relatively fixed and lacks flexibility. This can manifest in several ways: if the chip's overall resources exceed the model's processing requirements, some chip resources may not be effectively utilized, resulting in low resource utilization; conversely, if the chip's overall resources cannot meet the model's processing requirements, the model may be unable to perform data processing, or it may need to perform data processing using traditional serial methods, resulting in low operating speed and data throughput, leading to longer data processing times (this situation is more pronounced in the domain of large models).

[0048] Considering the aforementioned issues, in this embodiment, leveraging the multi-core structure of the many-core chip, the multiple cores are divided into at least one core group, thereby reducing the granularity of allocable chip resources (from chip-level to core group-level), providing a foundation for more flexible resource allocation. Simultaneously, the model parameters of the preset neural network model are also divided into multiple parameter groups, further reducing the granularity of data processing. This allows the core group to execute data processing for the corresponding parameter group, achieving finer-grained and more flexible resource allocation and data processing. In this way, even when the overall performance of the many-core chip does not match the overall requirements of the preset neural network model, a relative dynamic balance can still be maintained between the resources of the many-core chip and the data processing needs of the preset neural network model through "grouping." This enables the many-core chip to run the preset neural network model efficiently, with minimal perception of computing power and / or bandwidth limitations, improving the resource utilization of the many-core chip, reducing data processing time, and increasing data processing efficiency.

[0049] Figure 3 This is a schematic diagram illustrating a data processing method based on a many-core chip, provided as an embodiment of this disclosure. (Refer to...) Figure 3The CPU, many-core chip, memory (e.g., DDR), and external memory (e.g., Flash Memory, SSD) are connected via a bus. The external memory stores n parameter sets (parameter set 1, parameter set 2, ..., parameter set n, where n is an integer greater than or equal to 1) for a preset neural network model. The multiple cores of the many-core chip are divided into m core groups (e.g., core group 1, core group 2, ..., core group m, where m is an integer greater than or equal to 1).

[0050] In some optional implementations, in response to a preset instruction or the triggering of a preset execution condition, the memory loads at least one parameter group (e.g., parameter group i, 1≤i≤n) from external memory and reads this parameter group into the many-core chip. For any read parameter group, if the model parameters in that parameter group are in a compressed state, the many-core chip decompresses the parameter group to obtain a decompressed parameter group, determines the core group corresponding to the parameter group, and the corresponding core group performs data processing based on the parameter group to obtain the grouped processing result corresponding to the parameter group. Finally, data processing is performed based on at least one grouped processing result to obtain the model processing result of the preset neural network model. Therefore, in the above data processing process, it is not necessary to load all data into the many-core chip. Instead, one or more parameter groups can be selectively loaded according to the current processing progress, processing requirements, etc. This keeps the resources of the many-core chip in a "busy" state, improving resource utilization, and alleviates the pressure on the bandwidth of the many-core chip caused by loading excessive data at once, or the impact of the bandwidth limitation of the many-core chip on the data processing progress.

[0051] In summary, in this embodiment of the disclosure, the many-core chip includes multiple cores, and the corresponding data processing method includes: obtaining at least one parameter group, the parameter group including multiple model parameters of a preset neural network model that have been decompressed by the many-core chip; determining a core group corresponding to each parameter group, the core group including at least one core; the core group performing data processing according to the corresponding parameter group to obtain a grouping processing result corresponding to the parameter group; and obtaining a model processing result of the preset neural network model based on at least one grouping processing result. Therefore, considering that the overall performance of the many-core chip may not match the overall requirements of the preset neural network model, and that this mismatch may lead to insufficient utilization of the many-core chip's resources or failure to effectively meet the data processing requirements of the preset neural network model, in this embodiment, the multiple cores of the many-core chip are divided into at least one core group, so that each core group has certain core group resources. Similarly, the model parameters of the preset neural network model are also divided into at least one parameter group, thereby splitting the entire data processing process into multiple parameter groups with smaller data processing scales. Data processing is performed on the corresponding parameter groups by each core group, so that the resources of the core group and the data processing scale of the parameter group are more compatible. This allows full utilization of the core group's processing resources, improves processing speed, and improves the overall resource utilization of the many-core chip by effectively utilizing the processing resources of each core group, reducing wasted resources and power consumption. In addition, the group processing results of each parameter group can be obtained based on the core group, and the model processing results can be further obtained based on the corresponding group processing results, thereby ensuring the smooth implementation of data processing.

[0052] In some optional implementations, the preset neural network model includes a model built on a neural network that can perform preset functions. These preset functions include text processing functions (e.g., text recognition, text classification), audio processing functions (e.g., speech recognition, speech detection), image processing functions (e.g., image classification, image detection), and video processing functions, etc.

[0053] For example, the preset neural network model can include various large models. A large model refers to a learning model with a large network size, which may be characterized by a large number of parameters. Generally, there is a strong correlation between the model's performance (e.g., accuracy) and the size of its parameters; the larger the model's parameter size, the stronger its learning ability and the better its final performance. The size of the model parameters can be determined based on processing requirements, experience, statistical data, simulation data, etc., and this embodiment does not impose any limitations on this.

[0054] It should be noted that the above examples of preset neural network models are merely illustrative and are not intended to limit the scope of this disclosure.

[0055] In some optional implementations, the model parameters can be parameters learned during the training of a pre-defined neural network model to minimize the error between the model's predictions and the actual results. For example, for a pre-defined neural network model for image classification, during model training, iterative updates to the model parameters can gradually reduce the gap between the model's predicted classification results and the actual classification results, thereby improving the image classification performance of the pre-defined neural network model. In other words, the initial model parameters can be continuously adjusted and updated during training to enable the model to predict new data more accurately. After training, the obtained model parameters are considered relatively accurate and can be used for prediction, allowing the pre-defined neural network model to generate and output corresponding processing results based on the input data.

[0056] In some optional implementations, model parameters include variables used within the pre-defined neural network model to describe the data. These can be weights, biases, or other adjustable parameters. Model parameters define the basic structure and feature representation capabilities of the model. Typically, model parameters can be represented using numerical values ​​in a specific format.

[0057] For example, if the preset neural network model is a spiking neural network model, the model parameters include the weights and biases of the neurons.

[0058] For example, if the preset neural network model is a linear regression neural network model, the model parameters include regression coefficients and intercepts.

[0059] For example, if the preset neural network model is a support vector machine-based neural network model, the model parameters include the decision boundary and support vectors.

[0060] It should be noted that the above examples of model parameters are merely illustrative and are not intended to limit the scope of this disclosure.

[0061] In some alternative implementations, the parameter set includes multiple model parameters related to a preset neural network model, which have been decompressed by a many-core chip. The parameter set can be determined by grouping the model parameters, and this disclosure does not impose any limitations on this approach.

[0062] In some alternative implementations, the default neural network model may correspond to one or more parameter groups, and each parameter group may include multiple model parameters.

[0063] In some optional implementations, obtaining at least one parameter set in step S21 may include: loading at least one initial parameter set from a first preset memory into the many-core chip, the initial parameter set including multiple compressed model parameters; and decompressing the initial parameter set to obtain the parameter set. The first preset memory may be a memory memory (e.g., DDR memory) or other types of memory, and this disclosure does not limit this type of memory.

[0064] Normally, during data processing, the model cannot directly use the compressed model parameters. Therefore, in some implementations, when obtaining the parameter set, the many-core chip can directly obtain the initial parameter set that has not been decompressed (i.e., the parameter set that has been compressed). After loading the initial parameter set into the many-core chip, the many-core chip performs the corresponding decompression process to obtain the parameter set.

[0065] It should be noted that since the amount of data in the compressed model parameters can be effectively reduced compared to the uncompressed ones, loading the initial parameter set from outside the many-core chip into the many-core chip can effectively reduce the bandwidth required compared to loading the parameter set from outside the many-core chip into the many-core chip.

[0066] In some optional implementations, obtaining at least one parameter group in step S21 may include: obtaining at least one parameter group from a first preset memory, wherein the parameter group is obtained by decompressing an initial parameter group through a preset decompressor. The preset decompressor may be located between the first preset memory and the many-core chip, or inside the first preset memory, or in other locations. This disclosure does not limit this.

[0067] In other words, besides loading the initial parameter set without decompression and then decompressing it within the many-core chip, it is also possible to directly load a parameter set that has already been decompressed. Loading a decompressed parameter set typically requires more bandwidth than loading a compressed parameter set, but the many-core chip does not need to perform decompression and can directly process data based on the model parameters within it.

[0068] In summary, when acquiring parameter sets, one can either acquire the initial parameter set in a compressed state and then decompress it within the many-core chip, or load the decompressed parameter set off-chip. This disclosure does not limit the specific method used.

[0069] In some optional implementations, there are multiple ways to compress the model parameters, and correspondingly, there are also multiple ways to decompress the model parameters.

[0070] In some optional implementations, the initial parameter set is obtained by performing a first compression process and / or a second compression process on multiple model parameters, and the parameter set is obtained by performing a first decompression process and / or a second decompression process on the initial parameter set; wherein, the first compression process is a neural network-based compression process, the second compression process is a general compression process, the first decompression process is a neural network-based decompression process, and the second decompression process is a general decompression process.

[0071] Therefore, the compression process in this embodiment can include two processing methods: a first compression process based on a neural network, and a second compression process that is conventional compression without relying on a neural network. Correspondingly, the decompression process also includes two processing methods: a first decompression process corresponding to the first compression process, used to decompress the data processed by the first compression process; and a second decompression process corresponding to the second compression process, used to decompress the data processed by the second compression process. Furthermore, only one compression processing method can be used in a single compression process, or two compression processing methods can be used simultaneously; this embodiment does not impose any limitations on this.

[0072] In some alternative implementations, the first compression process includes at least one of model pruning, low-rank factorization, data quantization, and network parsing.

[0073] Figure 4 This is a schematic diagram illustrating a compression process provided in an embodiment of this disclosure. (Refer to...) Figure 4 First, a preset neural network model is obtained, and it is determined whether to decompose tensors. If tensor decomposition is determined, tensor decomposition is performed for compression. If tensor decomposition is not determined, it is determined whether to perform data quantization. If data quantization is performed, data quantization is performed for compression. If data quantization is not performed, it is determined whether to perform network sparsification. If network sparsification is performed, network sparsification is performed for compression. If network sparsification is not performed, the process ends. Obtaining the preset neural network model includes either creating a new neural network model or modifying an existing neural network model.

[0074] It should be noted that the above descriptions of compression and decompression are merely illustrative examples, and the embodiments disclosed herein are not intended to limit the scope of the invention.

[0075] Furthermore, in some optional implementations, it can be determined whether it is necessary to obtain the parameter group based on the operating status of each core group in the many-core chip, or it can be triggered by certain preset instructions to perform the operation of obtaining the parameter group. This disclosure does not limit this.

[0076] For example, when core groups G1 and G2 in the many-core chip are about to be in an idle state (e.g., the current processing task completion rate of core groups G1 and G2 exceeds a preset threshold) or are in an idle state, the parameter group corresponding to core group G1 and the parameter group corresponding to core group G2 can be obtained.

[0077] For example, the CPU sends a preset processing instruction to the many-core chip, and the many-core chip obtains the corresponding parameter set based on the preset processing instruction.

[0078] After obtaining the parameter groups, step S22 can be used to determine the core groups corresponding to each parameter group, so that the corresponding core groups can perform data processing. Each core group includes at least one core, and the number of cores in a core group can be the same or different; this embodiment does not impose any limitation on this.

[0079] It should be noted that, considering that the processing power (or performance) of a core group is usually positively correlated with the number of cores, the computational load of the parameter group corresponding to a core group with more cores is usually greater than that of the parameter group corresponding to a core group with fewer cores, in order to make the core group and parameter group more matched.

[0080] Therefore, in this embodiment, since the model parameters of the preset neural network model are divided into at least one parameter group, the overall processing requirements of the preset neural network model are broken down into multiple small-granular parameter group processing requirements. This, in turn, breaks down the overall performance requirements of the preset neural network model into multiple small-granular group performance requirements. Based on this, to better utilize chip resources, it is necessary to determine the core group corresponding to the parameter group, so that data processing of the corresponding parameter group can be executed based on that core group. The correspondence between the parameter group and the core group means that the resource overhead required to execute data processing based on that parameter group is compatible with the resources of the core group. This compatibility ensures smooth execution of data processing while effectively reducing resource waste.

[0081] In some optional implementations, the core group corresponding to each parameter group can be determined based on the first group performance index of the core group and the second group performance requirements of the parameter group. The first group performance index of the core group can be determined based on the first performance index of the core and many-core chips within the core group. The second group performance requirements of the parameter group can be determined based on the model parameters in the parameter group and the second performance requirements of a preset neural network model. Furthermore, the first group performance index of the core group and the corresponding second group performance requirements of the parameter group satisfy a preset matching condition. This preset matching condition indicates that the first group performance index exactly meets the second group performance requirements. Performance requirements refer to performance-related requirements, which may include computing power requirements, bandwidth requirements, and storage requirements, etc., and this disclosure does not limit these requirements.

[0082] For example, the first group performance metrics include one or more metrics that can reflect the processing performance of the core group, while the second group performance requirements are used to characterize the various performance requirements required when performing data processing based on the parameter group.

[0083] In some optional implementations, the first performance metric includes the computing power (also known as computing speed, operation speed, etc.) and bandwidth of the many-core chip; the first group performance metric includes the core group computing power and core group bandwidth; the second performance requirement includes the computational load and memory access load of the preset neural network model; the second group performance requirement includes the group computational load and group memory access load; the preset matching conditions include: the first difference between the core group computing power of the core group and the group computational load of the parameter group is less than or equal to a first preset threshold, and / or, the second difference between the core group bandwidth of the core group and the group memory access load of the parameter group is less than or equal to a second preset threshold. Here, computing power can reflect the number of operations that the many-core chip can complete per unit time, and its unit can be FLOPs / s (Floating-point Operations per second), Operations / s (operations per second, which can include various operation types), etc.; bandwidth can characterize the amount of memory reads that the many-core chip can complete per unit time, and its unit can be Byte / s (bytes per second), bit / s (bits per second), etc.

[0084] For example, the computing power of a many-core chip is π, and its bandwidth is β. Each core has the same configuration. If cores are divided into groups using a uniform grouping method, the computing power of each core group is π / n, and the bandwidth is β / n, where n is the number of core groups. The computational cost of a preset neural network model is C, and its memory access is M. Its model parameters are uniformly divided into k parameter groups, so the computational cost of each parameter group is C / k, and the memory access is M / k. Correspondingly, the preset matching conditions include: |(π / n)-(C / k)|≤thr1, and / or |(β / n)-(M / k)|≤thr2, where || represents absolute value operation, thr1 represents the first preset threshold, and thr2 represents the second preset threshold.

[0085] The above illustrates an example of preset matching conditions under a uniform grouping method. If the core configurations in a many-core chip differ, leading to different performance metrics among the cores, then even if each core group contains the same number of cores, the first grouping performance metrics of the core groups may be different. In this case, the first grouping performance metrics of each core group can still be determined using the methods of this disclosure, and parameter groups matching its first grouping performance metrics can be assigned to it, so that the performance of each core group is balanced with the performance requirements of its parameter groups. Similarly, if the model parameters cannot be evenly divided into parameter groups due to factors such as operation type and data precision, resulting in inconsistent second grouping performance requirements among parameter groups, a similar method can be used to determine the core groups matching the second grouping performance requirements of the parameter groups, achieving a balance between the performance requirements of the parameter groups and the performance of the core groups. In other words, even when the core groups and / or parameter groups are not uniformly grouped, it is still possible to obtain the core group computing power and core group bandwidth of each core group, as well as the group computing volume and group memory access volume of each parameter group, and determine the core groups and their corresponding parameter groups that meet the preset matching conditions, which will not be described in detail here.

[0086] Therefore, for a core group and its corresponding parameter group, the computing power of the former is well matched with the computational load of the latter, or the bandwidth of the former is well matched with the memory access load of the latter, or the computing power and bandwidth of the former are respectively matched with the computational load and memory access load of the latter.

[0087] For example, if the many-core chip contains a core dedicated to sparse data processing, the first performance metric may further include a sparsity capability metric, and the first grouping performance metric includes a core group sparse capability metric. Correspondingly, the second performance requirement includes a sparse processing requirement, and the second grouping performance requirement includes a group sparse processing requirement. Accordingly, the preset matching conditions include: a first difference between the core group's computing power and the parameter group's computational volume is less than or equal to a first preset threshold; and / or, a second difference between the core group's bandwidth and the parameter group's memory access volume is less than or equal to a second preset threshold; and / or, a third difference between the core group's sparse capability metric and the parameter group's group sparse processing requirement is less than or equal to a third preset threshold.

[0088] It should be noted that the above descriptions of the first performance indicator, the second performance requirement, and the preset matching conditions are all illustrative examples, and the embodiments disclosed herein do not impose any limitations on them.

[0089] In some optional implementations, the correspondence between kernel groups and parameter groups can be determined, and the kernel group corresponding to the parameter group can be determined based on this correspondence. Specifically, the first grouping performance index of the corresponding kernel group and the second grouping performance requirement of the parameter group satisfy a preset matching condition. In other words, before obtaining the parameter group, the division and balancing operations of kernel groups and parameter groups can be performed for later use. Here, balancing refers to reasonably dividing the kernels and model parameters to ensure that the kernel group and the corresponding parameter group satisfy the preset matching condition.

[0090] In some optional implementations, the correspondence between core groups and parameter groups can be determined based on pre-set configuration information or configured in real time; this disclosure does not impose any limitations on this. Determining the correspondence based on pre-set configuration information essentially reuses a previous balancing scheme, while real-time configuration generates the current balancing scheme in real time. The balancing scheme includes the division method of core groups, the division method of parameter groups, and the correspondence between core groups and parameter groups.

[0091] In some optional implementations, before obtaining at least one parameter group, the method may further include: obtaining first grouping information, second grouping information, and correspondence information from a preset processor, wherein the correspondence information is information used to characterize the correspondence between core groups and parameter groups; determining each core group in the many-core chip according to the first grouping information, determining each parameter group of the preset neural network model according to the second grouping information, and determining the correspondence between core groups and parameter groups according to the correspondence information; or, according to a first performance index of the many-core chip and a second performance requirement of the preset neural network model, dividing multiple cores into at least one core group, dividing the model parameters of the preset neural network model into at least one parameter group, and determining the correspondence between core groups and parameter groups.

[0092] The preset processor includes a first processor independent of the many-core chip or a second processor located within the many-core chip. For example, the first processor includes an off-chip central processing unit (CPU) of the many-core chip, and the second processor includes an open-source instruction set architecture (RiscV, RV) within the many-core chip. This can be considered a special type of CPU, or it can be an on-chip ARM (Advanced RISC Machines) processor. This disclosure does not limit the specific implementation of the embodiments.

[0093] Therefore, the first grouping information, the second grouping information, and the corresponding relationship information obtained from the preset processor are equivalent to reusing the previous balancing scheme. This method eliminates the need for real-time configuration and can quickly determine the information of the core group, the parameter group, and the correspondence between the core group and the parameter group. However, considering that the performance indicators of many-core chips and / or the performance requirements of the preset neural network model may change, the performance indicators and / or performance requirements used to determine the preset configuration information may not be consistent with the current situation. That is, the pre-set configuration information may no longer be applicable to the current situation. Therefore, real-time configuration can be performed to determine a new balancing scheme based on the current performance indicators and performance requirements. This real-time (or near-real-time) configuration method mainly excels in its high accuracy. The choice of which method to perform the division and balancing of core groups and parameter groups can be determined based on accuracy requirements, network status, application scenarios, and empirical data. This disclosure does not impose any restrictions on this.

[0094] For example, when performing data processing offline, the kernel group, parameter group, and the correspondence between kernel groups and parameter groups can be determined by reusing previous configuration information.

[0095] For example, when performing data processing online, in order to improve accuracy, the current first performance index of the many-core chip and the current second performance requirement of the preset neural network model can be retrieved again, and grouping and balancing can be re-executed (or the previous configuration information can be directly reused).

[0096] In some optional implementations, whether reusing configuration information or configuring in real time, the balancing of kernel groups and parameter groups can be achieved in two ways: The first way is to first group the model parameters, then group the kernels according to the parameter groups, and balance the kernel groups with the parameter groups during kernel grouping; the second way is to first group the kernels, then group the model parameters according to the kernel groups, and balance the parameter groups with the kernel groups during model parameter grouping. In other words, during balancing, kernel partitioning can be performed based on parameter groups to match kernel groups, or model parameter partitioning can be performed based on kernel groups to match parameter groups.

[0097] In some optional implementations, based on the first performance metric of the many-core chip and the second performance requirement of the preset neural network model, multiple cores are divided into at least one core group, and the model parameters of the preset neural network model are divided into at least one parameter group. The correspondence between the core groups and parameter groups is then determined, including: dividing the model parameters of the preset neural network model into at least one parameter group; determining the second grouping performance requirement of each parameter group based on the model parameters and the second grouping performance requirement of each parameter group; and for any given parameter group, based on the first performance metric and the second grouping performance requirement of the parameter group, selecting at least one core from the multiple cores to construct a core group corresponding to the parameter group, such that the first performance metric of the core group... The group performance index and the second group performance requirement of the parameter group meet the preset matching conditions. The first group performance index is determined based on the cores within the core group and the first performance index. Alternatively, multiple cores are divided into at least one core group. Based on the cores within each core group and the first performance index, the first group performance index of each core group is determined. For any core group, based on the second performance requirement and the first group performance index of the core group, at least some model parameters are selected to construct a parameter group corresponding to the core group, such that the second group performance requirement of the parameter group and the first group performance index of the core group meet the preset matching conditions. The second group performance requirement is determined based on the model parameters in the parameter group and the second performance requirement.

[0098] For example, the model parameters of the preset neural network model correspond to n parameter groups, where n is an integer greater than or equal to 1, and the difference between the performance requirements of each second group is less than the second group threshold; correspondingly, for any parameter group, based on the first performance index and the performance requirements of the second group of the parameter group, at least one core is selected from multiple cores to construct a core group corresponding to the parameter group, including: determining the second preset benchmark requirement according to the performance requirements of the second group of the n parameter groups; dividing the multiple cores into m core groups according to the first performance index and the second preset benchmark requirement, where m is an integer greater than or equal to 1, and the first group performance index and the second preset benchmark requirement satisfy a preset matching condition.

[0099] For example, if the second performance requirement of a preset neural network model is PR, the model parameters of the preset neural network model are uniformly divided into n parameter groups par_1, par_2, ..., par_n, corresponding to the second group performance requirements PR_1, PR_2, ..., PR_n respectively, and |PR_i - PR_j| ≤ Gthr2, where Gthr2 is the second group threshold, 1 ≤ i ≤ n, 1 ≤ j ≤ n, and i ≠ j. The second preset baseline requirement BPR can be determined by averaging: BPR = (PR_1 + PR_2 + ... + PR_n) / n. Assuming the first performance indicator of a many-core chip is PI, and the number of cores is t, then the single-core performance indicator for each core is PI / t. Further, the first ratio BPR / (PI / t) between the second preset baseline requirement BPR and the single-core performance index is calculated. By rounding BPR / (PI / t), the number of core groups m can be obtained, that is, m = round1{BPR / (PI / t)}, where round1{} represents the first rounding function.

[0100] Correspondingly, the first group performance index of each core group is m×PI / t, and its value is the same as or close to the second preset baseline requirement BPR. Therefore, the resources of the core group are well matched with the processing requirements of the parameter group, so that resources are not wasted and the processing task cannot be completed.

[0101] It should be noted that if the primary performance metric includes computing power and bandwidth, and the number of cores determined based on computing power is different from the number of cores determined based on bandwidth, a new number of cores can be determined by selecting the minimum value, selecting the maximum value, or calculating the intermediate value.

[0102] The preceding section described the process of dividing and balancing kernel groups after determining the parameter groups. In some optional implementations, the kernels can be grouped first, and then parameter groups can be divided based on the kernel groups, and the balancing operation between the kernel groups and parameter groups can be completed.

[0103] For example, multiple cores correspond to p core groups, where p is an integer greater than or equal to 1, and the difference between the performance indicators of each first group is less than the threshold of the first group; correspondingly, for any core group, based on the second performance requirements and the performance indicators of the first group of the core group, at least some model parameters are selected to construct a parameter group corresponding to the core group, including: determining a first preset benchmark indicator based on the first group performance indicators of the p core groups; dividing the model parameters into q parameter groups based on the second performance requirements and the first preset benchmark indicator, where q is an integer greater than or equal to 1, and the second group performance requirements and the first preset benchmark indicator satisfy a preset matching condition.

[0104] For example, the first performance indicator of a many-core chip is PI, and the number of cores is t. These t cores are evenly divided into p core groups cg_1, cg_2, ..., cg_t, corresponding to the first group performance indicators PI_1, PI_2, ..., PI_t, respectively, where |PI_w - PI_v| ≤ Gthr1, and Gthr1 is the first group threshold, 1 ≤ w ≤ t, 1 ≤ v ≤ t, and w ≠ v. The first preset benchmark indicator BPI = (PI_1 + PI_2 + ... + PI_t) / t can be determined by averaging.

[0105] Assuming the second performance requirement of the preset neural network model is PR, the second ratio PR / BPI between the second performance requirement PR and the first preset benchmark index BPI is calculated. By rounding PR / BPI, the number of parameter groups q can be obtained, i.e., q = round2{PR / BPI}, where round2{} represents the second rounding function.

[0106] Correspondingly, the second group performance requirement for each parameter group is PR / q, and its value is the same as or close to the first preset benchmark index. Therefore, the resources of the core group and the processing requirements of the parameter group can be well matched, so as not to waste resources or cause the processing task to fail.

[0107] It should be noted that if the performance requirements of the second group include group computation and group memory access, and the number of parameter groups determined based on the group computation is different from the number of parameter groups determined based on the group memory access, a new number of parameter groups can be determined by selecting the minimum value, selecting the maximum value, or calculating the intermediate value.

[0108] It should also be noted that, considering that the decompression of the parameter group may be performed by a many-core chip or not, and that the decompression process requires a certain amount of computing power, and the difference in data volume before and after decompression is also large, it is necessary to determine the corresponding performance indicators and performance requirements for different subjects performing the decompression process.

[0109] In some alternative implementations, when it is determined that the decompression processing of the parameter group is performed by the many-core chip, the group computation of the parameter group includes a first computation for performing the parameter group operation and a second computation for performing the parameter group decompression processing, and the group memory access of the parameter group is determined based on the amount of data before the parameter group decompression processing; when it is determined that the decompression processing of the parameter group is not performed by the many-core chip, the group computation of the parameter group includes a first computation for performing the parameter group operation, and the group memory access of the parameter group is determined based on the amount of data in the parameter group.

[0110] The following is combined Figures 5 to 8 The balancing process of the core group and parameter group is explained in detail.

[0111] To facilitate the description of the balancing process, we first introduce the concept of a performance model, and then explain in detail how to perform the balancing operation based on the performance model. The performance model primarily refers to the performance model used to characterize many-core chips.

[0112] For example, the Roofline Model is a performance model that characterizes the performance of many-core chips. As mentioned earlier, there are two important performance indicators for many-core chips: computing power (π) and bandwidth (β). Since computing power reflects the number of operations a many-core chip can complete per unit time, and bandwidth represents the amount of memory reads a many-core chip can complete per unit time, the ratio of computing power to bandwidth reflects the computational density (I) of the many-core chip, which characterizes the number of operations a many-core chip can complete per unit of memory swap. The unit of computational density can be FLOPs / Byte, Operations / Byte, etc., and the maximum computational density Imax = π / β. The Roofline Model is a model plotted with computational density on the x-axis and computing power on the y-axis.

[0113] Figure 5 This is a schematic diagram of a roofline model for a many-core chip provided in an embodiment of this disclosure. Figure 5 As shown, the horizontal axis of the roofline model represents computational density, and the vertical axis represents computing power. The shape of the line is roof-like. In other words, the horizontal axis of each point in the line represents computational density, and the vertical axis represents the corresponding computing power. When the computational density of a program running on a many-core chip (e.g., a pre-defined neural network model) is low, the program accesses memory more and performs less computation, and its performance is limited by memory bandwidth. This is called a memory-intensive region, corresponding to the diagonally filled area in the figure. Conversely, if the computational density is high, the program's performance is limited by the hardware's maximum computational peak (i.e., computing power limitation), which is called a computationally intensive region, corresponding to the dotted filled area in the figure. The boundary between the memory-intensive region and the computationally intensive region corresponds to a corner point. This corner point indicates that computing power and bandwidth reach their maximum values ​​simultaneously, which can be understood as the optimal performance point.

[0114] Figure 6 This is a schematic diagram of a roofline model for a many-core chip provided in an embodiment of this disclosure. Figure 6 As shown in the diagram, the roofline model indicates that the computing power of this many-core chip is 48 TOperations / s (abbreviated as TOps / s), and the peak bandwidth is 25.6 GB / s (corresponding to the slope).

[0115] Furthermore, as mentioned earlier, during leveling, the core can be partitioned based on the parameter set to match the parameter set. Figure 7This paper demonstrates a method for grouping cores to achieve core group and parameter group balancing.

[0116] Figure 7 This is a schematic diagram of a core group provided in an embodiment of this disclosure. For example... Figure 7 As shown, the second performance requirement of the preset neural network model includes computational cost C, and the model parameters of the preset neural network model are uniformly divided into n parameter groups, including parameter group 1, parameter group 2, ..., parameter group n. Based on this, the computational cost of each parameter group can be determined to be C / n. On this basis, kernel group partitioning can be performed, and the first group performance index of the kernel group and the group computational cost of the parameter groups can be evenly distributed through this partitioning. The first group performance index includes kernel group computing power.

[0117] Assuming the computing power of a many-core chip is π, if multiple cores are evenly divided into m1 core groups, then the computing power of each core group is π / m1, corresponding to... Figure 6 The distance between two adjacent dotted lines. For example... Figure 7 As shown, the difference between π / m1 and C / n is significant, and π / m1 is greater than C / n, indicating that the core group's computing power exceeds the group's computing power. Therefore, the number of core groups can be increased to reduce the core group's computing power, making it the same as or close to the group's computing power. After x-1 adjustments, the number of core groups is determined to be mx, and the core group's computing power π / mx is basically the same as or has a small difference from C / n. Therefore, the number of core groups can be determined to be mx, and the number of cores in each core group is t / mx, where t is the number of cores in the many-core chip. Here, x≥1, and when x=1, it indicates that the core group's computing power and the group's computing power are matched in the first division, so no adjustment is needed.

[0118] Furthermore, during leveling, the model parameters can be partitioned based on the kernel group to match the parameter group with the kernel group. Figure 8 This paper demonstrates a method for grouping model parameters to achieve parameter group and kernel group balancing.

[0119] Figure 8 This is a schematic diagram illustrating a model parameter grouping provided in an embodiment of this disclosure. For example... Figure 8 As shown, the bandwidth of the many-core chip is characterized by the slope β in the roofline model, i.e., the bandwidth of the many-core chip is β. Furthermore, the multiple cores of the many-core chip are uniformly divided into m core groups, and the bandwidth of each core group is β / m (not shown in the figure).

[0120] Assuming the second performance requirement of the preset neural network model includes memory access M, if the model parameters of the preset neural network model are evenly divided into n1 parts, then the memory access of each part of the model parameters is M / n1, corresponding to... Figure 8 The corresponding diagonal dashed line in the diagram.

[0121] like Figure 8 As shown, the angle between β and M / n1 is large, and β is greater than M / n1, indicating that the chip bandwidth exceeds the memory access volume of a single model parameter. Therefore, the number of model parameter partitions can be reduced to increase the memory access volume of a single model parameter, making it the same as or close to the bandwidth β. After y-1 adjustments, the number of partitions is determined to be ny (at this time, the memory access volume of each model parameter is M / ny). That is, the current memory access volume of a single model parameter is basically the same as or close to the bandwidth β of the many-core chip. Based on this, each model parameter is further divided into m smaller parts, so that each smaller part corresponds to a parameter group, and each parameter group corresponds to a core group. Where y≥1, and when y=1, it means that the group memory access volume of the parameter group determined based on the number of partitions in the first division matches the core group bandwidth, so no adjustment is needed.

[0122] In summary, it can be determined that the group access memory of the parameter group is M / ny / m, and M / ny / m is basically the same as or very close to the kernel group bandwidth β / m.

[0123] In some optional implementations, after determining the kernel group corresponding to the parameter group, the kernel group can perform data processing according to the corresponding parameter group to obtain the grouping processing result corresponding to the parameter group. The parameter group can be weight values, etc., and the corresponding data processing can include multiplication and addition operations, etc., which are not limited in this embodiment.

[0124] In some optional implementations, in order to further reduce data processing time and improve data processing efficiency, the predicted set of parameters to be executed can be moved to a first preset memory for later use.

[0125] In some optional implementations, before the core group performs data processing according to the corresponding parameter group to obtain the grouping processing result corresponding to the parameter group, the method further includes: sending a start operation message to a preset processor, wherein the start operation message is used to instruct the preset processor to predict at least one parameter group to be executed based on the parameter group currently running in the many-core chip, and to transfer the initial parameter group corresponding to the parameter group to a first preset memory. The preset processor includes a first processor independent of the many-core chip or a second processor disposed in the many-core chip.

[0126] Therefore, when a many-core chip acquires at least one parameter set and determines the core group corresponding to that parameter set, and is about to execute data processing related to that parameter set, it can predict the parameter sets that may be used subsequently and move the predicted parameter sets to the first preset memory for later use. In this way, the problem of long processing times due to parameter set transmission can be reduced, data processing time can be shortened, and data processing efficiency can be improved.

[0127] In some optional implementations, after the kernel group performs data processing according to the corresponding parameter group to obtain the grouping processing result corresponding to the parameter group, the method may further include: compressing at least one grouping processing result to obtain a compressed result, and transmitting the compressed result to a second preset memory; or, sending at least one grouping processing result to a preset compressor for the preset compressor to compress the grouping processing result to obtain a compressed result, and transmitting the compressed result to the second preset memory.

[0128] Therefore, after obtaining the grouping processing results, in order to reduce storage pressure, the grouping processing results can be compressed before storage. The compression of the grouping processing results can be performed by a many-core chip or by a preset compressor; this embodiment does not impose any limitations on this.

[0129] Figure 9 This is a schematic diagram illustrating a data processing method based on a many-core chip, provided as an embodiment of this disclosure. Figure 9 As shown, the preset processor, many-core chip, DDR and external memory are connected via a bus. The preset processor can be a processor independent of the many-core chip or a processor set in the many-core chip. Direct Memory Access (DMA) is the memory storage of the preset processor.

[0130] like Figure 9 As shown, the preset processor divides multiple cores into at least one core group and the model parameters of the preset neural network model into at least one parameter group according to the first performance index of the many-core chip and the second performance requirements of the preset neural network model, and determines the correspondence between the core group and the parameter group for later use.

[0131] During data processing, in the initial stage, the preset processor first determines the corresponding parameter groups for each core group. These parameter groups are then transferred to DDR via memory addresses in DMA. The many-core chip reads the parameter groups from DDR to the corresponding core group. Each core group performs decompression processing on its own parameter groups and performs data processing based on the decompressed parameter groups to obtain the grouping processing results corresponding to those parameter groups. Furthermore, when a core group is about to use the corresponding parameter group for data processing, it can send a start operation message to the preset processor, or send a prediction reminder message during data processing. In response to the received start operation message or prediction reminder message, the preset processor predicts the parameter groups to be executed based on the currently running parameter groups and, using the memory addresses of the predicted parameter groups, moves them from external memory to DDR in advance, allowing for quick and convenient subsequent reading of the predicted parameter groups into the corresponding core group of the many-core chip. This process is repeated until all data processing is complete.

[0132] For example, such as Figure 9 As shown, the many-core chip performs data processing based on the currently loaded parameter group. Simultaneously, the preset processor predicts the parameter group to be executed as Group5 based on the start-of-operation message and pre-fetches Group5 from external memory into DDR based on its memory address. Once the core group corresponding to Group5 completes its data processing for the current parameter group, it can quickly read Group5 from DDR, decompress it, and then perform data processing based on the decompressed Group5 to obtain the corresponding grouping processing result. The processing of other parameter groups or core groups is similar and will not be described further here.

[0133] Figure 10 This is a schematic diagram illustrating a data processing method based on a many-core chip, provided as an embodiment of this disclosure. Figure 10 As shown, it is in Figure 9 An additional preset decompressor has been added to the existing system, located between the many-core chip and the DDR. Figure 10 In the process, the parameter set in DDR is first decompressed by a preset decompressor before being transmitted to the many-core chip. In other words, the parameter set read by the many-core chip is the decompressed parameter set. Therefore, the many-core chip does not need to perform decompression processing, which can reduce the computing power overhead of the many-core chip to a certain extent.

[0134] It should be noted that the preset decompressor may also be located inside the DDR, between the DDR and the external memory, or inside the external memory; this disclosure does not limit this.

[0135] Figure 11This is a schematic diagram illustrating a data processing method based on a many-core chip, provided as an embodiment of this disclosure. Figure 11 As shown, it is in Figure 9 An additional preset compressor is added to the existing one. This preset compressor is located between the many-core chip and the external memory. It can compress the output data of the many-core chip, such as the group processing results, to obtain the compressed result, and then store the compressed result in the external memory.

[0136] It should be noted that the preset compressor can also be located inside external memory, or the compression processing of output data such as the packet processing results can be performed by many-core chips (e.g., core groups). In particular, if the compression processing of the packet processing results is performed by many-core chips, the bandwidth occupied by the output data of many-core chips can be reduced, thereby alleviating the bandwidth pressure on many-core chips.

[0137] Figure 12 This is a flowchart illustrating a data processing method based on a many-core chip, provided as an embodiment of this disclosure. (Refer to...) Figure 12 The data processing method may include the following steps.

[0138] Step S1201: Obtain the first performance index of the many-core chip.

[0139] Step S1202: Compress the preset neural network model to obtain multiple compressed model parameters, and determine the second performance requirement of the preset neural network model.

[0140] Step S1203: Based on the first performance index of the many-core chip and the second performance requirements of the preset neural network model, the multiple cores are divided into at least one core group, the model parameters of the preset neural network model are divided into at least one parameter group, and the correspondence between the core group and the parameter group is determined.

[0141] In step S1204, the many-core chip retrieves at least one parameter set from the memory, which is transferred from the external memory to the memory.

[0142] Step S1205: Determine the kernel group corresponding to the parameter group based on the correspondence relationship.

[0143] Step S1206: Send a start operation message to the preset processor so that the preset processor predicts the parameter group to be executed based on the start operation message and moves the predicted parameter group to the memory storage.

[0144] In step S1207, the core group performs data processing according to the corresponding parameter group to obtain the grouping processing result corresponding to the parameter group, and compresses the grouping processing result to obtain the compressed result.

[0145] Step S1208: Transfer the compression result to an external storage device.

[0146] In step S1209, the many-core chip obtains the model processing result of the preset neural network model based on at least one group processing result.

[0147] The execution order of steps S1208 and S1209 is not restricted.

[0148] It is understood that the various embodiments mentioned above in this disclosure can be combined with each other to form combined embodiments without violating the principle and logic. Due to space limitations, this disclosure will not elaborate further. Those skilled in the art will understand that in the above methods of specific implementation, the specific execution order of each step and the setting of functional modules should be determined by their functions and possible internal logic.

[0149] The second aspect of this disclosure provides a data processing apparatus.

[0150] Figure 13 This is a block diagram of a data processing apparatus provided in an embodiment of the present disclosure. The data processing apparatus can be applied to a many-core chip, and the many-core chip includes multiple cores. (Refer to...) Figure 13 The data processing device 1300 may include the following modules.

[0151] The acquisition module 1301 is used to acquire at least one parameter group, which includes multiple model parameters about a preset neural network model that have been decompressed by the many-core chip.

[0152] The corresponding module 1302 is used to determine the core group corresponding to each parameter group, and the core group includes at least one core;

[0153] The execution module 1303 is used by the core group to perform data processing according to the corresponding parameter group to obtain the grouping processing result corresponding to the parameter group.

[0154] The processing module 1304 is used to obtain the model processing result of the preset neural network model based on at least one group processing result.

[0155] In this embodiment of the disclosure, the data processing device can be applied to a many-core chip, which includes multiple cores. Correspondingly, an acquisition module acquires at least one parameter group, which includes multiple model parameters of a preset neural network model that have been decompressed by the many-core chip. A corresponding module determines a core group corresponding to each parameter group, which includes at least one core. An execution module performs data processing on the core group according to the corresponding parameter group to obtain a grouping processing result corresponding to the parameter group. A processing module obtains the model processing result of the preset neural network model based on at least one grouping processing result. Therefore, considering that the overall performance of the many-core chip may not match the overall requirements of the preset neural network model, and that this mismatch may lead to insufficient utilization of the many-core chip's resources or failure to effectively meet the data processing requirements of the preset neural network model, in this embodiment, the multiple cores of the many-core chip are divided into at least one core group, so that each core group has certain core group resources. Similarly, the model parameters of the preset neural network model are also divided into at least one parameter group, thereby splitting the entire data processing process into multiple parameter groups with smaller data processing scales. Data processing is performed on the corresponding parameter groups by each core group, so that the resources of the core group and the data processing scale of the parameter group are more compatible. This allows full utilization of the core group's processing resources, improves processing speed, and improves the overall resource utilization of the many-core chip by effectively utilizing the processing resources of each core group, reducing wasted resources and power consumption. In addition, the group processing results of each parameter group can be obtained based on the core group, and the model processing results can be further obtained based on the corresponding group processing results, thereby ensuring the smooth implementation of data processing.

[0156] The third aspect of this disclosure provides a many-core computing chip.

[0157] Figure 14 This is a schematic diagram of a many-core computing chip provided in an embodiment of this disclosure. (Refer to...) Figure 14 The many-core computing chip 1400 includes multiple cores 1401.

[0158] In some alternative implementations, the many-core computing chip 1400 can be used to perform the data processing method described in any of the embodiments of this disclosure.

[0159] In this embodiment, considering that the overall performance of the many-core computing chip may not match the overall requirements of the preset neural network model, and that this mismatch may lead to insufficient utilization of the resources of the many-core computing chip or failure to effectively meet the data processing requirements of the preset neural network model, in this embodiment, the multiple cores of the many-core computing chip are divided into at least one core group, so that each core group has certain core group resources. Similarly, the model parameters of the preset neural network model are also divided into at least one parameter group, thereby splitting the entire data processing process into multiple parameter groups with smaller data processing scales. Data processing is performed on the corresponding parameter groups by each core group, so that the resources of the core group and the data processing scale of the parameter group are more compatible. This allows full utilization of the processing resources of the core group, improves the processing speed, and improves the overall resource utilization of the many-core computing chip by effectively utilizing the processing resources of each core group, reducing wasted resources and power consumption. In addition, the group processing results of each parameter group can be obtained based on the core group, and the model processing results can be further obtained based on the corresponding group processing results, thereby ensuring the smooth implementation of data processing.

[0160] A fourth aspect of this disclosure provides a processing system.

[0161] Figure 15 This is a block diagram of a processing system provided in an embodiment of this disclosure. (Refer to...) Figure 15 The processing system 1500 may include: a preset processor 1501 and at least one many-core chip 1502; wherein the preset processor 1501 and the many-core chip 1502 are connected via a bus 1503, the preset processor 1501 is used to send control flow instructions to the many-core chip 1502, and the many-core chip 1502 is used to execute the data processing method based on the many-core chip according to any one of the embodiments of this disclosure according to the control flow instructions.

[0162] In some alternative implementations, the default processor includes a first processor independent of the many-core chip or a second processor located within the many-core chip.

[0163] In this embodiment of the disclosure, the coordination and scheduling capabilities of a preset processor are used to send control flow instructions to the many-core chip. The many-core chip then uses its own resources to perform corresponding data processing based on a preset neural network model according to the control flow instructions, and obtains the corresponding model processing results. Furthermore, during data processing, considering that the overall performance of the many-core chip may not match the overall requirements of the preset neural network model, and that this mismatch may lead to insufficient utilization of the many-core chip's resources or failure to effectively meet the data processing needs of the preset neural network model, in this embodiment, the multiple cores of the many-core chip are divided into at least one core group, so that each core group has certain core group resources. Similarly, the model parameters of the preset neural network model are also divided into at least one parameter group, thereby splitting the entire data processing process into multiple parameter groups with smaller data processing scales. Data processing is performed on the corresponding parameter groups by each core group, making the resources of the core group and the data processing scale of the parameter group more compatible. This allows for full utilization of the core group's processing resources, improving processing speed. Since the processing resources of each core group are effectively utilized, the overall resource utilization of the many-core chip is improved, reducing wasted resources and power consumption. In addition, the group processing results of each parameter group can be obtained based on the core group, and the model processing results can be further obtained based on the corresponding group processing results, thereby ensuring the smooth implementation of data processing.

[0164] In addition, this disclosure also provides electronic devices and computer-readable storage media.

[0165] Figure 16 This is a block diagram of an electronic device provided in an embodiment of the present disclosure.

[0166] Reference Figure 16 This disclosure provides an electronic device that includes multiple processing cores 1601 and an on-chip network 1602. The multiple processing cores 1601 are all connected to the on-chip network 1602, and the on-chip network 1602 is used to exchange data between the multiple processing cores and external data.

[0167] One or more processing cores 1601 store one or more instructions, and the one or more instructions are executed by one or more processing cores 1601 to enable one or more processing cores 1601 to perform the data processing method based on many-core chips according to any one of the embodiments of this disclosure.

[0168] In some embodiments, the electronic device may be a neuromorphic chip. Since neuromorphic chips can employ vectorized computation and require external memory, such as Double Data Rate (DDR) synchronous dynamic random access memory, to load parameters such as weights of the neural network model, the batch processing method used in this embodiment offers higher computational efficiency.

[0169] This disclosure also provides a computer-readable storage medium storing a computer program thereon, wherein the computer program, when executed by a processor / processing core, performs various tasks to be processed. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium.

[0170] This disclosure also provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code, wherein when the computer-readable code is run in a processor of an electronic device, the processor in the electronic device performs various tasks to be processed.

[0171] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable storage medium, which may include computer storage media (or non-transitory media) and communication media (or transient media).

[0172] As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable program instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable program instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0173] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0174] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.

[0175] The computer program product described herein can be implemented specifically through hardware, software, or a combination thereof. In one alternative embodiment, the computer program product is specifically embodied in a computer storage medium; in another alternative embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.

[0176] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.

[0177] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0178] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0179] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0180] Example embodiments have been disclosed herein, and while specific terminology has been used, it is for illustrative purposes only and should be construed as such, and is not intended to be limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in connection with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in connection with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of this disclosure as set forth by the appended claims.

Claims

1. A data processing method based on many-core chips, characterized in that, The many-core chip includes multiple cores, and the method includes: Obtain at least one parameter set, which includes multiple model parameters of a preset neural network model that have been decompressed by the many-core chip. The model parameters are learned by the preset neural network model during training and are used to characterize the error between the model prediction result and the actual result. Determine the core group corresponding to each of the parameter groups, the core group including at least one of the cores; The kernel group performs data processing according to the corresponding parameter group to obtain the grouping processing result corresponding to the parameter group; Based on at least one of the grouping processing results, the model processing result of the preset neural network model is obtained; The first group performance index of the core group and the second group performance requirement of the corresponding parameter group meet a preset matching condition. Before obtaining at least one parameter group, the method further includes: Obtain the first group information, the second group information, and the corresponding relationship information from the preset processor; Each core group in the many-core chip is determined according to the first grouping information, each parameter group of the preset neural network model is determined according to the second grouping information, and the correspondence between the core group and the parameter group is determined according to the correspondence information.

2. The data processing method according to claim 1, characterized in that, The step of obtaining at least one parameter group includes: At least one initial parameter set is loaded into the many-core chip from a first preset memory, the initial parameter set including multiple model parameters after compression; The initial parameter set is decompressed to obtain the parameter set.

3. The data processing method according to claim 2, characterized in that, Before the kernel group performs data processing according to the corresponding parameter group to obtain the grouping processing result corresponding to the parameter group, the method further includes: A start operation message is sent to a preset processor, wherein the start operation message is used to instruct the preset processor to predict at least one parameter group to be executed based on the parameter group currently running by the many-core chip, and to transmit the initial parameter group corresponding to the parameter group to the first preset memory.

4. The data processing method according to claim 2 or 3, characterized in that, The initial parameter set is obtained by performing a first compression process and / or a second compression process on a plurality of model parameters, and the parameter set is obtained by performing a first decompression process and / or a second decompression process on the initial parameter set; The first compression process is a neural network-based compression process, the second compression process is a general compression process, the first decompression process is a neural network-based decompression process, and the second decompression process is a general decompression process.

5. The data processing method according to claim 1, characterized in that, Before obtaining at least one parameter group, the method further includes: Based on the first performance index of the many-core chip and the second performance requirement of the preset neural network model, the multiple cores are divided into at least one core group, the model parameters of the preset neural network model are divided into at least one parameter group, and the correspondence between the core group and the parameter group is determined. Among them, the first group performance index of the corresponding core group and the second group performance requirement of the parameter group meet the preset matching conditions.

6. The data processing method according to claim 5, characterized in that, The step of dividing the multiple cores into at least one core group and the model parameters of the preset neural network model into at least one parameter group based on the first performance index of the many-core chip and the second performance requirements of the preset neural network model, and determining the correspondence between the core groups and the parameter groups, includes: The model parameters of the preset neural network model are divided into at least one parameter group; Based on the model parameters in each parameter group and the second performance requirement, determine the second grouping performance requirement for each parameter group; For any one of the parameter groups, based on the first performance index and the second grouping performance requirements of the parameter group, at least one core is selected from the plurality of cores to construct a core group corresponding to the parameter group, such that the first grouping performance index of the core group and the second grouping performance requirements of the parameter group satisfy the preset matching condition, wherein the first grouping performance index is determined based on the cores in the core group and the first performance index; or, The multiple cores are divided into at least one core group; Based on the cores within each core group and the first performance index, determine the first grouping performance index for each core group; For any of the core groups, based on the second performance requirement and the first grouping performance index of the core group, at least some of the model parameters are selected to construct a parameter group corresponding to the core group, such that the second grouping performance requirement of the parameter group and the first grouping performance index of the core group satisfy the preset matching condition, wherein the second grouping performance requirement is determined based on the model parameters in the parameter group and the second performance requirement.

7. The data processing method according to claim 6, characterized in that, The model parameters of the preset neural network model correspond to n parameter groups, where n is an integer greater than or equal to 1, and the difference between the performance requirements of each second group is less than the threshold of the second group. The step of selecting at least one core from the plurality of cores to construct a core group corresponding to the parameter group, based on the first performance index and the second grouping performance requirements of the parameter group, for any one of the parameter groups, includes: Based on the second grouping performance requirements of the n parameter groups, determine the second preset benchmark requirements; Based on the first performance index and the second preset benchmark requirement, the multiple cores are divided into m core groups, where m is an integer greater than or equal to 1, and the first group performance index and the second preset benchmark requirement satisfy the preset matching condition.

8. The data processing method according to claim 6, characterized in that, The multiple cores correspond to p core groups, where p is an integer greater than or equal to 1, and the difference between the performance indicators of each of the first groups is less than the first group threshold. For any one of the core groups, based on the second performance requirement and the first grouping performance index of the core group, at least a portion of the model parameters are selected to construct a parameter group corresponding to the core group, including: Based on the first grouping performance index of the p core groups, a first preset benchmark index is determined; Based on the second performance requirement and the first preset benchmark index, the model parameters are divided into q parameter groups, where q is an integer greater than or equal to 1, and the second group performance requirement and the first preset benchmark index satisfy the preset matching condition.

9. The data processing method according to any one of claims 5-8, characterized in that, The first performance metric includes the computing power and bandwidth of the many-core chip, and the first group performance metric includes the core group computing power and core group bandwidth. The second performance requirement includes the computational and memory access requirements of the preset neural network model, and the second group performance requirement includes the group computational and memory access requirements. The preset matching conditions include: the first difference between the core group computing power of the core group and the group computing power of the parameter group is less than or equal to a first preset threshold, and / or the second difference between the core group bandwidth of the core group and the group memory access of the parameter group is less than or equal to a second preset threshold.

10. The data processing method according to claim 9, characterized in that, When it is determined that the decompression process of the parameter group is performed by the many-core chip, the group computation of the parameter group includes a first computation for performing the operation of the parameter group and a second computation for performing the decompression process of the parameter group, and the group memory access of the parameter group is determined based on the amount of data before the parameter group decompression process; If it is determined that the decompression process of the parameter group is not performed by the many-core chip, the group computation of the parameter group includes a first computation for performing the operation process of the parameter group, and the group memory access of the parameter group is determined based on the data volume of the parameter group.

11. The data processing method according to claim 3 or 5, characterized in that, The preset processor includes a first processor independent of the many-core chip or a second processor disposed in the many-core chip.

12. The data processing method according to claim 1, characterized in that, After the kernel group performs data processing according to the corresponding parameter group to obtain the grouping processing result corresponding to the parameter group, the method further includes: At least one of the grouping processing results is compressed to obtain a compressed result, and the compressed result is transmitted to a second preset memory; Alternatively, at least one of the packet processing results may be sent to a preset compressor for compression to obtain the compressed result, and the compressed result may be transmitted to the second preset memory.

13. A data processing apparatus, characterized in that, The data processing device is applied to a many-core chip, and the many-core chip includes multiple cores. The data processing device includes: The acquisition module is used to acquire at least one parameter group, which includes multiple model parameters of the preset neural network model that have been decompressed by the many-core chip. The model parameters are learned by the preset neural network model during training and are used to characterize the error between the model prediction result and the actual result. The corresponding module is used to determine the core group corresponding to each of the parameter groups, wherein the core group includes at least one of the cores; The execution module is used to perform data processing by the core group according to the corresponding parameter group to obtain the grouping processing result corresponding to the parameter group; A processing module is used to obtain the model processing result of the preset neural network model based on at least one of the grouping processing results; The first group performance index of the core group and the second group performance requirement of the corresponding parameter group meet a preset matching condition. Before acquiring at least one parameter group, the acquisition module is further configured to acquire first grouping information, second grouping information, and correspondence information from a preset processor; determine each core group in the many-core chip according to the first grouping information, determine each parameter group of the preset neural network model according to the second grouping information, and determine the correspondence between the core group and the parameter group according to the correspondence information.

14. A many-core computing chip, characterized in that, The many-core computing chip is used to execute the data processing method based on the many-core chip as described in any one of claims 1-12.

15. A processing system, characterized in that, The processing system includes a preset processor and at least one many-core chip; The preset processor and the many-core chip are connected via a bus. The preset processor is used to send control flow instructions to the many-core chip, and the many-core chip is used to execute the data processing method based on the many-core chip as described in any one of claims 1-12 according to the control flow instructions.

16. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores one or more computer programs that can be executed by the at least one processor, and the one or more computer programs are executed by the at least one processor to enable the at least one processor to perform the many-core chip-based data processing method as described in any one of claims 1-12.

17. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the data processing method based on a many-core chip as described in any one of claims 1-12.

Citation Information

Patent Citations

  • Neural network structure splitting method and device, mapping method, electronic equipment and medium

    CN115630674A

  • Data processing method and related equipment

    CN116663633A