Data processing method and device based on acceleration chip, equipment and storage medium

By splitting data processing tasks into operator tasks and deploying them to multiple acceleration chips, the problem of insufficient performance of storage and computing integrated chips in processing computing tasks is solved, and the processing effect of data processing tasks is improved.

CN118819631APending Publication Date: 2024-10-22CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311387791.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-24
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

When processing computing tasks, the integrated storage and computing chip may not be enough to meet the operator requirements, resulting in poor completion of computing tasks and a lack of effective solutions.

Method used

By obtaining data processing tasks, operator tasks are split based on the chip information of the acceleration chip, matched and deployed to different acceleration chips, and the calculation graph is optimized to improve the processing effect.

Benefits of technology

It effectively overcomes the problem of insufficient performance of a single storage and computing integrated chip, improves the processing effect of data processing tasks, and meets performance and energy consumption requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118819631A_ABST
    Figure CN118819631A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device based on an acceleration chip, equipment and a storage medium. The method comprises the steps of obtaining a data processing task; based on the chip information of the managed acceleration chip, operator task splitting is carried out on the data processing task, and a splitting result is obtained; based on the splitting result, the split operator tasks are deployed to different acceleration chips; obtaining a result of the data processing task based on the operation result of each acceleration chip; wherein the managed acceleration chip at least comprises a storage and calculation integrated chip. Therefore, operator task splitting can be performed on the data processing task based on the chip information of the managed acceleration chip, the split operator tasks are deployed to different acceleration chips, and the result of the data processing task is obtained based on the operation result of each acceleration chip, so that the defect of insufficient performance of a single storage and calculation integrated chip can be overcome, and the performance of the storage and calculation integrated chip is improved. And the processing effect of the data processing task is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, device, equipment and storage medium based on an acceleration chip. Background Art

[0002] With the development and application of data processing technologies such as deep learning and cloud computing, storage and computing integrated chips have come into being to solve problems such as frequent data movement, slow transfer, and high energy consumption between computing units and storage units.

[0003] The integrated storage and computing chip transforms the computing-centric architecture into a data-centric architecture, that is, directly using storage units for data processing to achieve the organic integration of storage and computing functions. The integrated storage and computing chip fundamentally solves the "storage wall" and "power consumption wall" problems of traditional von Neumann architecture chips, greatly improving data parallelism and energy efficiency.

[0004] In the related art, storage-computing integrated chips can be applied to computing tasks such as model training and / or reasoning. However, when the storage-computing integrated chips are not sufficient to process the operator requirements of the related computing tasks, the computing tasks will be completed poorly. There is currently no effective solution to this problem. Summary of the invention

[0005] In view of this, the embodiments of the present application provide a data processing method, apparatus, device and storage medium based on an acceleration chip, aiming to improve the processing effect of data processing tasks.

[0006] The technical solution of the embodiment of the present application is implemented as follows:

[0007] In a first aspect, an embodiment of the present application provides a data processing method based on an acceleration chip, comprising:

[0008] Get data processing tasks;

[0009] Based on the chip information of the managed acceleration chip, the data processing task is split into operator tasks to obtain a split result;

[0010] Based on the splitting result, deploying the split operator tasks to different acceleration chips;

[0011] Based on the operation results of each acceleration chip, the result of the data processing task is obtained;

[0012] Among them, the managed acceleration chip includes at least a storage and computing integrated chip.

[0013] In the above solution, the chip information at least includes: chip type, and the chip information based on the managed acceleration chip is used to split the data processing task into operator tasks to obtain a split result, including:

[0014] Based on the chip type, each operator task of the data processing task is matched with the managed acceleration chip to obtain a target chip corresponding to each operator task;

[0015] Determine the data interaction sequence between the target chips based on the data flow between the operator tasks;

[0016] Based on the target chip corresponding to each operator task and the data interaction sequence between the target chip, the splitting result of the data processing task is obtained.

[0017] In the above scheme, the splitting result includes: mapping parameters characterizing the corresponding relationship between the split operator tasks and the target chips and data flow parameters characterizing the data interaction sequence between the target chips. Based on the splitting result, the split operator tasks are deployed to different acceleration chips, including:

[0018] Deploying the split operator tasks to corresponding target chips based on the mapping parameters;

[0019] The data interaction sequence between the target chips is determined based on the data flow parameters.

[0020] In the above scheme, the method further includes:

[0021] Obtain chip information of each managed acceleration chip;

[0022] The chip information includes at least one of the following: chip location, calculation accuracy, operation method, manufacturer information and chip type.

[0023] In the above solution, the data processing task is split into operator tasks based on the chip information of the managed acceleration chip to obtain the split result, and further includes:

[0024] Obtaining a computational graph of the data processing task;

[0025] Based on the computational graph, the data processing task is divided into operators to obtain operator tasks of the data processing task.

[0026] In the above solution, before dividing the data processing task into operators based on the computation graph, the method further includes:

[0027] Based on the chip information of the managed acceleration chip and the set optimization strategy, the calculation graph is optimized and updated to obtain an updated calculation graph;

[0028] The setting optimization strategy includes at least one of the following: a performance optimization strategy and an energy consumption optimization strategy.

[0029] In the above scheme, the data processing task is a model reasoning task.

[0030] In a second aspect, an embodiment of the present application provides a data processing device based on an acceleration chip, comprising:

[0031] An acquisition module is used to acquire data processing tasks;

[0032] An operator splitting module, used to split the data processing task into operator tasks based on the chip information of the managed acceleration chip, and obtain a splitting result;

[0033] A deployment module, used to deploy the split operator tasks to different acceleration chips based on the split results;

[0034] A processing module, used to obtain the result of the data processing task based on the operation results of each acceleration chip;

[0035] Among them, the managed acceleration chip includes at least a storage and computing integrated chip.

[0036] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein the processor, when used to run the computer program, executes the steps of the method described in the first aspect of the embodiment of the present application.

[0037] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the first aspect of the embodiment of the present application are implemented.

[0038] The technical solution provided by the embodiment of the present application obtains a data processing task; based on the chip information of the managed acceleration chip, the data processing task is split into operator tasks to obtain the split result; based on the split result, the split operator tasks are deployed to different acceleration chips; based on the operation results of each acceleration chip, the result of the data processing task is obtained; wherein the managed acceleration chip includes at least a storage-computing integrated chip. In this way, the data processing task can be split into operator tasks based on the chip information of the managed acceleration chip, and the split operator tasks are deployed to different acceleration chips, and the result of the data processing task is obtained based on the operation results of each acceleration chip, which can overcome the defect of insufficient performance of a single storage-computing integrated chip and effectively improve the processing effect of the data processing task. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 This is a flow chart of a data processing method based on an acceleration chip according to an embodiment of the present application;

[0040] Figure 2 This is a schematic diagram of the principle of in-memory computing in a CIM chip according to an embodiment of the present application;

[0041] Figure 3 This is a schematic diagram of the principle of analog in-memory computing based on memristors according to an embodiment of the present application;

[0042] Figure 4 This is a schematic diagram of the principle of chip collaborative processing based on an acceleration chip in an application embodiment of the present application;

[0043] Figure 5 This is a schematic diagram of the structure of a data processing device based on an acceleration chip according to an embodiment of the present application;

[0044] Figure 6 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0045] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0046] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0047] The embodiment of the present application provides a data processing method based on an acceleration chip, which can be applied to a control device that can manage multiple acceleration chips including a storage-computing integrated chip. For example, the control device can be a data center platform or a server. Figure 1 As shown, the method includes:

[0048] Step 101, obtaining a data processing task.

[0049] Here, the data processing task may be a model reasoning task input to the control device, such as a training or prediction task of an AI (artificial intelligence) model, which is not limited in the embodiments of the present application.

[0050] Step 102: split the data processing task into operator tasks based on the chip information of the managed acceleration chip to obtain a split result.

[0051] In the embodiment of the present application, the managed acceleration chip at least includes a memory-computing integrated chip, which is also called a computing in memory (CIM) chip.

[0052] It should be noted that during the chip design process, CIM chips no longer distinguish between storage units and computing units, truly realizing storage and computing integration. Figure 2 In-memory computing is a research hotspot for the new computing paradigm. Its essence is to use the physical properties of different storage media to redesign the storage circuit so that it has both computing and storage capabilities, directly eliminating the boundary between "storage" and "computing" and achieving the goal of increasing computing energy efficiency by an order of magnitude.

[0053] Taking analog in-memory computing as an example, analog in-memory computing is mainly based on physical laws (Ohm's law and Kirchhoff's law) to implement multiplication and addition operations on the memory array. For example, taking Resistive Random Access Memory (RRAM, also known as memristor), one of the in-memory computing medium materials, as an example, we describe how in-memory computing can achieve calculations while writing data.

[0054] like Figure 3 As shown, taking matrix multiplication and addition as an example, the input data of the model is set to matrix [V], the parameters of the model are set to matrix [G], and the output data after the operation is set to matrix [I]. For example, matrix [V] can be expressed as Figure 3 The [V1, V2, V3, …, V h ], the matrix [G] can be expressed as Figure 3 shown The matrix [I] can be expressed as Figure 3 The [I1, I2, I3, …, I w ]. Before the operation, the model parameter matrix (i.e., matrix [G]) is first stored in the memristor array (i.e., resistive switching array) according to the row and column positions. Different voltage values ​​are given at the input end to represent the input vector (i.e., matrix [V]). According to Ohm's law (current = voltage / resistance), the corresponding current vector can be obtained at the output end. Then, according to Kirchhoff's law, the currents are added to obtain the output result (i.e., matrix [I]). Multiple storage and calculation arrays can be used in parallel to complete multiple matrix multiplication and addition calculations.

[0055] It should be noted that since the entire operation process does not need to repeatedly read a large number of model parameters from the memory, the bottleneck of the von Neumann architecture is bypassed, and the energy efficiency ratio is significantly improved. In addition, in addition to the memristor array, other storage media can also meet the same parallel computing requirements through different physical mechanisms, and the embodiments of this application do not limit this.

[0056] In some application examples, the embodiments of the present application can perform operator task splitting on data processing tasks based on the chip information of multiple CIM chips, that is, realizing a multi-chip collaborative processing solution based on CIM chips. In other application examples, if the CIM chip does not support the operator of the AI ​​model, other types of acceleration chips can be introduced to cooperate with the CIM chip to realize accelerated processing of the AI ​​model. Exemplarily, the managed acceleration chips can be dynamically managed based on the AI ​​model, thereby improving the flexibility of task processing. The other types of acceleration chips include, but are not limited to: GPU (graphics processing unit), dedicated codec hardware FPGA (Field Programmable Gate Array) codec card, DSP (Digital Signal Processor), NPU (Neural Processing Unit), etc.

[0057] It should be noted that before splitting the data processing task into operator tasks, the control device needs to pre-manage the acceleration chip. Exemplarily, the method further includes:

[0058] Obtain chip information of each managed acceleration chip;

[0059] The chip information includes at least one of the following: chip location, calculation accuracy, operation method, manufacturer information and chip type.

[0060] It is understandable that the control device can manage new acceleration chips based on the needs of data processing tasks (e.g., AI models), thereby improving the flexibility of task processing.

[0061] Exemplarily, the splitting of the data processing task into operator tasks based on the chip information of the managed acceleration chip to obtain the splitting result includes:

[0062] Obtaining a computational graph of the data processing task;

[0063] Based on the computational graph, the data processing task is divided into operators to obtain operator tasks of the data processing task.

[0064] It is understandable that the control device can obtain the representation information describing the computing node corresponding to the data processing task, and convert the data processing task into a computing graph based on the representation information, or the control device obtains a pre-generated computing graph corresponding to the data processing task. Among them, the data processing task can be composed of multiple computing nodes, and multiple computing nodes with dependencies are interconnected. The computing node can include code for performing a certain computing function and can perform the corresponding computing task in the network processing task.

[0065] It should be noted that the computational graph is a "language" used to describe data processing tasks. It can be understood as a directed acyclic graph (DAG) that describes operations. It has two main elements: nodes and edges. Nodes represent data, such as vectors, matrices, tensors, etc.; edges represent specific operations performed, such as addition, subtraction, multiplication, division, and convolution.

[0066] Specifically, the computational graph is slightly different in the AI ​​framework. The basic components of the computational graph are two main elements: 1) the basic data structure tensor and 2) the basic computing unit operator. For example, the node represents the specific computing operation of the Operator (i.e., the operator), and the edge represents the Tensor tensor. The entire computational graph can effectively express the computing logic and state of the neural network model.

[0067] Among them, the basic data structure tensor: the shape of the tensor is used to represent the specific shape of the tensor, which determines the element size in the memory and the specific shape of the element composition; its element type determines the number of bytes occupied by each element in the memory and the actual memory space size; the basic operation unit operator: the specific operation performed in the accelerator GPU / NPU is composed of the most basic algebraic operators, and in addition, complex operators are composed according to the deep learning structure. Each operator accepts different inputs and outputs, such as the Conv operator accepts 3 input Tensors and 1 output Tensor.

[0068] Exemplarily, the chip information includes at least: chip type. It can be understood that, based on the aforementioned operator splitting of the data processing task based on the calculation graph to obtain each operator task of the data processing task, the chip information of the managed acceleration chip is used to split the data processing task into operator tasks to obtain a split result, including:

[0069] Based on the chip type, each operator task of the data processing task is matched with the managed acceleration chip to obtain a target chip corresponding to each operator task;

[0070] Determine the data interaction sequence between the target chips based on the data flow between the operator tasks;

[0071] Based on the target chip corresponding to each operator task and the data interaction sequence between the target chip, the splitting result of the data processing task is obtained.

[0072] Here, the processing function corresponding to each acceleration chip can be determined based on the chip type, and then the processing function corresponding to the acceleration chip can be matched with the operator task, so that the operator task can be assigned to the target chip that matches its task; then, based on the data flow between the operator tasks in the calculation graph, the data interaction order between the target chips is determined; based on the target chip corresponding to each operator task and the data interaction order between the target chip, the splitting result of the data processing task is obtained.

[0073] For example, if an operator task matches more than one acceleration chip based on chip type, the acceleration chip closest to the target chip of the previous operator task can be selected as the current target chip based on the chip position of the acceleration chip, thereby optimizing the processing performance of the task.

[0074] It should be noted that the embodiment of the present application can make the processing task meet optimization goals such as performance requirements or energy consumption requirements by splitting the data processing task into operator tasks. In other words, the target chip can be selected based on indicators such as performance requirements or energy consumption requirements, and the embodiment of the present application does not limit this.

[0075] Exemplarily, before performing operator partitioning on the data processing task based on the computation graph, the method further includes:

[0076] Based on the chip information of the managed acceleration chip and the set optimization strategy, the calculation graph is optimized and updated to obtain an updated calculation graph.

[0077] It is understandable that the embodiments of the present application can also optimize and update the calculation graph based on the set optimization strategy based on at least one of the chip position, calculation accuracy, operation mode, manufacturer information and chip type of the acceleration chip of the nano-management, obtain an updated calculation graph, and divide the data processing task into operators based on the updated calculation graph to obtain each operator task of the data processing task. Among them, the set optimization strategy includes at least one of the following: performance optimization strategy and energy consumption optimization strategy. Among them, the performance optimization strategy refers to the strategy used to optimize the performance of the data processing task so that it meets the set performance index requirements, and the energy consumption optimization strategy refers to optimizing the resource consumption of each acceleration chip to meet the resource balancing requirements. For example, based on the performance optimization strategy, combined with the operation mode supported by the acceleration chip based on the nano-management, the operators in the calculation graph are merged and optimized, thereby reducing the links of data flow, improving the efficiency of data processing, and meeting the set performance index requirements. For example, based on the energy consumption optimization strategy, the current resource consumption of each acceleration chip can be obtained, and the resource utilization method of the computing nodes of the calculation graph can be optimized according to the current resource consumption, so that the resources consumed during the execution of the calculation graph can meet the proposed balance indicators or reach the optimal level, thereby making full use of the resources of each acceleration chip.

[0078] Step 103: Based on the splitting result, the split operator tasks are deployed to different acceleration chips.

[0079] Exemplarily, the splitting result includes: a mapping parameter characterizing a corresponding relationship between the split operator task and the target chip and a data flow parameter characterizing a data interaction sequence between the target chips. Based on the splitting result, the split operator task is deployed to different acceleration chips, including:

[0080] Deploying the split operator tasks to corresponding target chips based on the mapping parameters;

[0081] The data interaction sequence between the target chips is determined based on the data flow parameters.

[0082] It can be understood that the control device deploys the split operator tasks to the corresponding target chip based on the mapping parameters, and associates the data interaction sequence between the target chips based on the data flow parameters. In this way, the purpose of scheduling the acceleration chips to coordinate the processing of data processing tasks is achieved.

[0083] Step 104: obtaining the result of the data processing task based on the operation results of each acceleration chip.

[0084] It should be noted that, based on the aforementioned data interaction between the target chips, the control device can obtain the result of the data processing task and can output the result, so as to meet the algorithm function, performance and energy consumption index requirements of the data processing task.

[0085] It can be understood that the method of the embodiment of the present application can split the data processing task into operator tasks based on the chip information of the managed acceleration chip, deploy the split operator tasks to different acceleration chips, and obtain the results of the data processing task based on the operation results of each acceleration chip. This can overcome the defect of insufficient performance of a single storage and computing chip and effectively improve the processing effect of the data processing task.

[0086] The present application is further described in detail below in conjunction with an application example.

[0087] like Figure 4 As shown, the control logic in this application embodiment can identify the chip type, manage different types of underlying acceleration chips, support the splitting of AI model algorithms, and collaborate with the underlying acceleration chips. That is, the control logic has the function of managing the underlying acceleration chips and scheduling the acceleration chips to perform data processing tasks.

[0088] The control logic can be deployed in other acceleration chips such as CPU or storage-computing integrated chip, or it can be composed of a separate chip, or it can be a separate management software, which is not limited in this application embodiment. When there are multiple acceleration chips including storage-computing integrated chip, the control logic is used for scheduling, wherein the acceleration chip may include but is not limited to: GPU, dedicated codec hardware FPGA codec card, DSP, NPU, etc.

[0089] When the control logic receives a data processing task, it is responsible for splitting the AI ​​model algorithm and coordinating with the underlying acceleration chip according to the performance requirements and other goals to be achieved by the data processing task. The splitting mainly involves the control logic splitting the AI ​​model according to the processing functions corresponding to the managed chip type, and controlling the data flow to achieve other goals such as optimal performance. For example, operator a can be split into operators b, c, and d by the control logic according to the types of calculations that different chips are good at processing. Among them,

[0090] - Operator b can be processed by a storage-computation integrated chip B suitable for the operation of operator b (matrix multiplication and addition);

[0091] - Operator c can be processed by a chip C suitable for running operator c;

[0092] - Operator d can be processed by a chip D suitable for running operator d.

[0093] For example: matrix multiplication and addition operations (operators) can be implemented by a storage and computing integrated chip, and light and shadow tracing operations can be implemented by a GPU.

[0094] The control logic determines whether there is data interaction between chips and the order of data interaction based on the results of the AI ​​model operator splitting. The control logic sends the split operators to the corresponding chips for processing according to the operator splitting results, and associates the corresponding chips based on the order of data interaction. The control logic processes the results after chip processing and outputs the final result.

[0095] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a data processing device based on an acceleration chip. The data processing device based on an acceleration chip corresponds to the above-mentioned data processing method based on an acceleration chip, and each step in the above-mentioned data processing method based on an acceleration chip embodiment is also fully applicable to the present data processing device based on an acceleration chip embodiment.

[0096] like Figure 5 As shown, the data processing device based on the acceleration chip includes: an acquisition module 501, an operator splitting module 502, a deployment module 503 and a processing module 504. The acquisition module 501 is used to acquire data processing tasks; the operator splitting module 502 is used to split the data processing tasks into operator tasks based on the chip information of the managed acceleration chip to obtain the splitting results; the deployment module 503 is used to deploy the split operator tasks to different acceleration chips based on the splitting results; the processing module 504 is used to obtain the results of the data processing tasks based on the running results of each acceleration chip; wherein the managed acceleration chip includes at least a storage-computing integrated chip.

[0097] In some embodiments, the chip information includes at least: chip type. The operator splitting module 502 splits the data processing task into operator tasks based on the chip information of the managed acceleration chip, and obtains a splitting result including:

[0098] Based on the chip type, each operator task of the data processing task is matched with the managed acceleration chip to obtain a target chip corresponding to each operator task;

[0099] Determine the data interaction sequence between the target chips based on the data flow between the operator tasks;

[0100] Based on the target chip corresponding to each operator task and the data interaction sequence between the target chip, the splitting result of the data processing task is obtained.

[0101] In some embodiments, the splitting result includes: mapping parameters characterizing the corresponding relationship between the split operator tasks and the target chips and data flow parameters characterizing the data interaction sequence between the target chips. The deployment module 503 deploys the split operator tasks to different acceleration chips based on the splitting result, including:

[0102] Deploying the split operator tasks to corresponding target chips based on the mapping parameters;

[0103] The data interaction sequence between the target chips is determined based on the data flow parameters.

[0104] In some embodiments, the data processing device based on the acceleration chip also includes: a management module 505, which is used to obtain chip information of each managed acceleration chip; wherein the chip information includes at least one of the following: chip location, calculation accuracy, operation method, manufacturer information and chip type.

[0105] In some embodiments, the operator splitting module 502 is further configured to:

[0106] Obtaining a computational graph of the data processing task;

[0107] Based on the computational graph, the data processing task is divided into operators to obtain operator tasks of the data processing task.

[0108] In some embodiments, before the operator splitting module 502 performs operator division on the data processing task based on the computation graph, it is further configured to:

[0109] Based on the chip information of the managed acceleration chip and the set optimization strategy, the calculation graph is optimized and updated to obtain an updated calculation graph;

[0110] The setting optimization strategy includes at least one of the following: a performance optimization strategy and an energy consumption optimization strategy.

[0111] In some embodiments, the data processing task is a model reasoning task.

[0112] In actual application, the acquisition module 501, the operator splitting module 502, the deployment module 503, the processing module 504 and the management module 505 can be implemented by a processor in a data processing device based on an acceleration chip. Of course, the processor needs to run a computer program in a memory to implement its functions.

[0113] It should be noted that: the data processing device based on the acceleration chip provided in the above embodiment only uses the division of the above program modules as an example when performing data processing based on the acceleration chip. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the data processing device based on the acceleration chip provided in the above embodiment and the data processing method embodiment based on the acceleration chip belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0114] Based on the hardware implementation of the above program modules and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides an electronic device. Figure 6 Only an exemplary structure of the electronic device is shown, not all structures, and it can be implemented as needed. Figure 6 Partial or complete structure shown.

[0115] like Figure 6 As shown, the electronic device 600 provided in the embodiment of the present application includes: at least one processor 601, a memory 602, a user interface 603 and at least one network interface 604. The various components in the electronic device 600 are coupled together through a bus system 605. It can be understood that the bus system 605 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 605 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Figure 6 Various buses are labeled as bus system 605 .

[0116] The user interface 603 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.

[0117] The memory 602 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program used to operate on the electronic device.

[0118] The data processing method based on the acceleration chip disclosed in the embodiment of the present application can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the data processing method based on the acceleration chip can be completed by the hardware integrated logic circuit or software instructions in the processor 601. The above-mentioned processor 601 can be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 601 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 602, and the processor 601 reads the information in the memory 602, and completes the steps of the data processing method based on the acceleration chip provided in the embodiment of the present application in combination with its hardware.

[0119] In an exemplary embodiment, the electronic device may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.

[0120] It can be understood that the memory 602 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0121] In an exemplary embodiment, the present application also provides a computer storage medium, which can be a computer-readable storage medium, for example, a memory 602 storing a computer program, and the computer program can be executed by a processor 601 of an electronic device to complete the steps described in the method of the present application embodiment. The computer-readable storage medium can be a memory such as a ROM, a PROM, an EPROM, an EEPROM, a Flash Memory, a magnetic surface memory, an optical disk, or a CD-ROM.

[0122] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0123] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0124] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A data processing method based on an acceleration chip, characterized in that: include: Get data processing tasks; Based on the chip information of the managed acceleration chip, the data processing task is split into operator tasks to obtain a split result; Based on the splitting result, deploying the split operator tasks to different acceleration chips; Based on the operation results of each acceleration chip, the result of the data processing task is obtained; Among them, the managed acceleration chip includes at least a storage and computing integrated chip.

2. The method according to claim 1, characterized in that The chip information at least includes: a chip type; the chip information based on the managed acceleration chip, performing operator task splitting on the data processing task, and obtaining a splitting result, including: Based on the chip type, each operator task of the data processing task is matched with the managed acceleration chip to obtain a target chip corresponding to each operator task; Determine the data interaction sequence between the target chips based on the data flow between the operator tasks; Based on the target chip corresponding to each operator task and the data interaction sequence between the target chip, the splitting result of the data processing task is obtained.

3. The method according to claim 1, characterized in that The splitting result includes: mapping parameters characterizing the corresponding relationship between the split operator tasks and the target chips and data flow parameters characterizing the data interaction sequence between the target chips. Based on the splitting result, the split operator tasks are deployed to different acceleration chips, including: Deploying the split operator tasks to corresponding target chips based on the mapping parameters; The data interaction sequence between the target chips is determined based on the data flow parameters.

4. The method according to claim 1, characterized in that: The method further comprises: Obtain chip information of each managed acceleration chip; The chip information includes at least one of the following: chip location, calculation accuracy, operation method, manufacturer information and chip type.

5. The method according to claim 2, characterized in that: The step of performing operator task splitting on the data processing task based on the chip information of the managed acceleration chip to obtain a split result further includes: Obtaining a computational graph of the data processing task; Based on the computational graph, the data processing task is divided into operators to obtain operator tasks of the data processing task.

6. The method according to claim 5, characterized in that Before dividing the data processing task into operators based on the computation graph, the method further includes: Based on the chip information of the managed acceleration chip and the set optimization strategy, the calculation graph is optimized and updated to obtain an updated calculation graph; The setting optimization strategy includes at least one of the following: a performance optimization strategy and an energy consumption optimization strategy.

7. The method according to claim 1, characterized in that The data processing task is a model reasoning task.

8. A data processing device based on an acceleration chip, characterized in that: include: An acquisition module is used to acquire data processing tasks; An operator splitting module, used to split the data processing task into operator tasks based on the chip information of the managed acceleration chip, and obtain a splitting result; A deployment module, used to deploy the split operator tasks to different acceleration chips based on the split results; A processing module, used to obtain the result of the data processing task based on the operation results of each acceleration chip; Among them, the managed acceleration chip includes at least a storage and computing integrated chip.

9. An electronic device, characterized in that: include: A processor and a memory for storing a computer program that can be executed on the processor, wherein: The processor is used to execute the steps of the method according to any one of claims 1 to 7 when running a computer program.

10. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Model inference method, and terminal device and program product

    WO2026200226A1