Artificial intelligence device, operation method thereof, and machine readable storage medium

By using a switch chip and multiple artificial intelligence chips in an artificial intelligence device, and using the multicast address protocol type request mechanism, the communication problem between different artificial intelligence chips is solved, efficient computing task execution and data transmission are achieved, and the system is improved. efficiency.

CN118585482AActive Publication Date: 2024-09-03北京壁仞科技开发有限公司 +1

Patent Information

Application Number
CN202411068290.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-09-03
Estimated Expiration
2044-08-06

AI Technical Summary

Technical Problem

During the training process of large models, existing technology is difficult to achieve efficient communication between different artificial intelligence chips, resulting in greater obstacles in the efficiency of computing tasks and data transmission.

Method used

By designing an artificial intelligence device, including a switch chip and multiple artificial intelligence chips, the protocol type request mechanism of the multicast address is used to realize communication between different artificial intelligence chips. The switch chip multicasts the protocol type request to multiple artificial intelligence chips. chips, and these chips convert the multicast address into an internal memory physical address to return the target data.

Benefits of technology

It achieves efficient communication between different artificial intelligence chips, avoids additional public storage space copy operations, and improves the execution efficiency and data transmission speed of computing tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118585482A
    Figure CN118585482A
Patent Text Reader

Abstract

The invention provides an artificial intelligence (AI) device and an operation method of the AI device. The artificial intelligence (AI) device and the operation method of the AI device are provided. The artificial intelligence device comprises a switch chip and a plurality of artificial intelligence chips. The artificial intelligence chips are used for jointly executing a calculation task. One of the plurality of artificial intelligence chips serves as a request initiation chip based on a communication operator of a calculation task. And the request initiating chip sends a protocol type request with a multicast address to the switch chip based on the communication operator. And the switch chip multicasts the protocol type request to a plurality of artificial intelligence chips which jointly execute the calculation task. Any one of the plurality of artificial intelligence chips responds to the protocol type request to convert the multicast address into an internal memory physical address so as to return target data corresponding to the internal memory physical address to the switch chip. And the switch chip performs protocol operation on the target data returned by the plurality of artificial intelligence chips to generate protocol data. And the switch chip returns the stipulated data to the request initiating chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an artificial intelligence device and an operating method thereof, a machine-readable storage medium, and a computer program product. Background Art

[0002] In the process of large model training, a large number of artificial intelligence chips are needed to perform parallel operations to jointly perform computing tasks. In order to jointly perform computing tasks, the computing data of different artificial intelligence chips need to communicate with each other. How to realize the communication operator between different artificial intelligence chips is one of the many technical issues in this field. Summary of the invention

[0003] The present invention is directed to an artificial intelligence (AI) device and an operation method thereof, a machine-readable storage medium and a computer program product to implement communication operators between different artificial intelligence chips.

[0004] In an embodiment according to the present invention, the artificial intelligence device includes a switch chip and a plurality of artificial intelligence chips. The plurality of artificial intelligence chips are used to jointly perform computing tasks, wherein the plurality of artificial intelligence chips are coupled to the switch chip. One of the plurality of artificial intelligence chips serves as a request initiating chip based on a communication operator of the computing task. The request initiating chip issues a protocol type request with a multicast address to the switch chip based on the communication operator. The switch chip multicasts the protocol type request to the plurality of artificial intelligence chips that jointly perform the computing task. Any one of the plurality of artificial intelligence chips converts the multicast address into an internal memory physical address in response to the protocol type request to return the target data corresponding to the internal memory physical address to the switch chip.

[0005] In an embodiment of the present invention, the operating method includes: multiple artificial intelligence chips of an artificial intelligence device jointly execute a computing task, wherein the multiple artificial intelligence chips are coupled to a switch chip of the artificial intelligence device; one of the multiple artificial intelligence chips serves as a request initiating chip based on a communication operator of the computing task; the request initiating chip issues a protocol type request with a multicast address to the switch chip based on the communication operator; the switch chip multicasts the protocol type request to the multiple artificial intelligence chips that jointly execute the computing task; and any one of the multiple artificial intelligence chips converts the multicast address into an internal memory physical address in response to the protocol type request to return the target data corresponding to the internal memory physical address to the switch chip.

[0006] In an embodiment of the present invention, the machine-readable storage medium is used to store non-transitory machine-readable instructions. When the non-transitory machine-readable instructions are executed by a computer, the operation method can be implemented.

[0007] In an embodiment according to the present invention, the computer program product comprises a computer program. When the computer program is executed by a processor, the operation method can be implemented.

[0008] Based on the above, the AI ​​chip converts the multicast address of the load instruction from the switch chip into the physical address of the internal memory and gives it to the internal memory. Therefore, although the switch chip cannot address the internal memory of the AI ​​chip, the AI ​​chip can feed back the corresponding target data of the multicast address to the switch chip based on the multicast address of the load instruction of the switch chip, thereby realizing the communication operator between different AI chips. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 The figure is a schematic diagram of a circuit block of an artificial intelligence (AI) device according to an embodiment.

[0010] Figure 2 FIG. 1 is a circuit block diagram of an AI chip according to an embodiment.

[0011] Figure 3 It is a flowchart of an operating method of an AI chip according to an embodiment of the present invention.

[0012] Figure 4 FIG. 1 is a schematic diagram of different AI chips executing communication operators according to an embodiment of the present invention.

[0013] Figure 5 4 is a circuit block diagram of an AI chip according to an embodiment of the present invention.

[0014] Figure 6 is a circuit block diagram of an interface circuit according to an embodiment of the present invention.

[0015] Description of Reference Numerals 100: Artificial Intelligence (AI) Device 110, 210, 510: switch chips 120_1, 120_2, 120_3, 120_4, 120_n, 220_1, 220_n, 520_1, 520_n: AI chips 221, 521_1, 521_n: Interface circuit 222, 522_1, 522_n: Network on chip 223, 523_1, 523_n: Internal memory 224, 524_1, 524_n: Computational core A1, A2, A3, A4, B1, B2, B3, B4, C1, C2, C3, C4, D1, D2, D3, D4: Target data S310~S350: Steps DETAILED DESCRIPTION

[0016] Reference will now be made in detail to exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Whenever possible, the same reference numerals are used in the drawings and the description to refer to the same or like parts.

[0017] The term "coupled (or connected)" used in the entire specification of this case (including the claims) may refer to any direct or indirect means of connection. For example, if the text describes a first device coupled (or connected) to a second device, it should be interpreted that the first device can be directly connected to the second device, or the first device can be indirectly connected to the second device through other devices or some means of connection. The terms "first", "second", etc. mentioned in the entire specification of this case (including the claims) are used to name the components (element) or to distinguish different embodiments or ranges, and are not used to limit the upper or lower limit of the number of components, nor to limit the order of components. In addition, wherever possible, components / components / steps with the same number in the drawings and embodiments represent the same or similar parts. Components / components / steps with the same number or the same terminology in different embodiments can refer to the relevant descriptions of each other.

[0018] Figure 1 FIG. 1 is a circuit block diagram of an artificial intelligence (AI) device 100 according to an embodiment. Figure 1 The AI ​​device 100 shown includes a switch chip 110 and multiple AI chips 120_1, ..., 120_n. For example (but not limited to this), any one or more (or all) of the AI ​​chips 120_1~120_n may include a graphics processing unit (GPU), a general-purpose graphics processing unit (GPGPU) or other processing circuits. The specific number n of AI chips 120_1~120_n in the AI ​​device 100 can be determined according to the actual design. Large model training requires a large number of AI chips for parallel computing. The AI ​​chips 120_1~120_n are coupled to the switch chip 110 via a bus. Different AI chips 120_1~120_n can communicate with each other through the switch chip 110.

[0019] Figure 2 FIG. 2 is a circuit block diagram of an AI chip 220_1 according to an embodiment. Figure 2 The switch chip 210 and the AI ​​chips 220_1, ..., 220_n shown in the figure can be used as Figure 1 The switch chip 110 and the AI ​​chips 120_1 to 120_n are one of many implementation examples. That is, Figure 2 The switch chip 210 and the AI ​​chips 220_1 to 220_n shown in FIG. Figure 1 The switch chip 110 and the AI ​​chips 120_1 to 120_n are described in detail and can be deduced by analogy. Figure 2 In the illustrated embodiment, the AI ​​chip 220_1 includes an interface circuit 221, an internal memory 223, and a plurality of computing cores (CUs, or computing units) 224. The computing core 224 retrieves data from the internal memory 223 through the on-chip network 222 to perform various computing tasks, and stores the computing results of the computing tasks in the internal storage space of the internal memory 223 through the on-chip network 222. The internal storage space of the internal memory 223 is dedicated to the AI ​​chip 220_1. Other chips (such as the switch chip 210) cannot address the internal storage space of the internal memory 223 of the AI ​​chip 220_1. Figure 2 The other AI chips shown (eg, AI chip 220_n) may refer to the relevant description of AI chip 220_1 and be deduced by analogy, so they are not described in detail here.

[0020] In order to allow other chips (such as the switch chip 210) to access the target data of the internal memory 223 of the AI ​​chip 220_1, the public storage space is set in the internal memory 223. The physical address space of the public storage space of the internal memory 223 is well known, so the switch chip 210 or other chips can address the public storage space of the AI ​​chip 220_1. The target data to be communicated is first copied from the internal storage space of the internal memory 223 to the public storage space of the internal memory 223. When other chips (such as the switch chip 210) send an access instruction with an intermediate physical address (Intermediate Physical Address, such as a multicast address) to the AI ​​chip 220_1, the interface circuit 221 obtains the target data from the public storage space of the internal memory 223 through the on-chip network 222, and feeds this target data back to other chips (such as the switch chip 210). Therefore, although other chips cannot address the internal storage space of the internal memory 223 of the AI ​​chip 220_1, other chips (such as the switch chip 210) can still obtain target data (the same as the target data of the internal memory 223) from the public storage space of the AI ​​chip 220_1. Figure 2 The disadvantage of the illustrated embodiment is that redundant public storage space is added to store the copied data, thereby increasing a large amount of overhead.

[0021] Figure 3 is a flowchart of an operation method of an AI chip according to an embodiment of the present invention. Each step in the flowchart or a combination of steps in the flowchart can be implemented by various means, such as hardware, one or more computer-readable media storing a computer program, or a computer program product. In some embodiments, Figure 3 The operation method shown can be implemented in firmware or software. Figure 3 The related operations of the operation method shown can be implemented as non-transitory machine-readable instructions (code or program), and the non-transitory machine-readable instructions can be stored in a "non-transitory machine-readable storage medium". When the non-transitory machine-readable instructions are executed by a computer, the following operations can be implemented: Figure 3 In some other embodiments, Figure 3 The operation method shown can be implemented in hardware, for example, Figure 5The AI ​​device shown (described in detail later). In some other embodiments, one or more steps in the flowchart may be embodied by a computer program of a computer program product. The computer program product may be stored by one or more memory devices in a computing device and executed by a processor in the computing device. The computer program product may be implemented on a computer or other programmable device to generate a machine so that the computer program product generates a function for implementing the functions specified in the steps of the flowchart. The computer program product may include one or more computer-readable memories (the memory may store computer program instructions), or the computer program instructions of one or more computer program products may also be loaded onto a computer or other programmable device.

[0022] Please refer to Figure 1 and Figure 3 , in step S310, the AI ​​chips 120_1~120_n jointly perform the computing task. In step S320, one of the AI ​​chips 120_1~120_n acts as a request initiating chip based on the communication operator of the computing task. Based on the actual application scenario, the communication operator may include a switch in-network computing (switch sharp) communication operator or other communication operators, wherein the Switch sharp communication operator is a collective communication optimization technology used in high-performance computing (HPC) and large-scale data center environments, which is used to optimize and accelerate cluster communications in high-performance computing and large-scale data center environments. In step S330, the request initiating chip sends a protocol type request with a multicast address to the switch chip 110 based on the communication operator. For example, based on the communication operator of the computing task, the AI ​​chip 120_1 can serve as the first request initiator chip to issue a first protocol type request with a first multicast address to the switch chip 110. Similarly, the AI ​​chip 120_n can serve as the nth request initiator chip to issue an nth protocol type request with an nth multicast address to the switch chip 110.

[0023] In step S340, the switch chip 110 multicasts the protocol type request to the AI ​​chips that jointly execute the computing task (the AI ​​chips corresponding to the communication operators, such as AI chips 120_1 to 120_n). The specific implementation of the protocol type request can be set according to the actual application scenario. For example, in some embodiments, the protocol type request comes with a multicast group identifier (Multicast Group Identifier). The switch chip 110 determines the multicast object of the protocol type request based on the multicast group identifier.

[0024] In some embodiments, the protocol type request carries identification information in addition to its own multicast address. For example, when the AI ​​chip 120_1 executes a communication operator (such as a switch sharp communication operator) in a computing task, the AI ​​chip 120_1 sets the base address (Base Address) of the target data into the lookup table of the AI ​​chip 120_1. Other AI chips (such as the AI ​​chip 120_n) can refer to the relevant description of the AI ​​chip 120_1 and make analogies, so they are not repeated here. The AI ​​chip 120_1 retrieves the base address of the target data from the lookup table based on the identification information of the protocol type request from the switch chip 110. According to the actual application scenario, the identification information may include a multicast group identification number, a tensor identification number or other identification information. After taking out the base address of the target data from the lookup table, the AI ​​chip 120_1 converts the multicast address into an internal memory physical address. For example, any one of the AI ​​chips 120_1 to 120_n adds the multicast address requested by the protocol type to the base address to generate a virtual address, and then converts the virtual address to the internal memory physical address. According to the actual application scenario, the multicast address can be an offset value, and the virtual address can be the base address taken from the lookup table of the AI ​​chip 120_1 plus the offset value (multicast address).

[0025] In step S350, any one of the AI ​​chips that receives the protocol type request converts the multicast address into an internal memory physical address in response to the protocol type request, so as to return the target data corresponding to the internal memory physical address to the switch chip 110. For example, it is assumed that the AI ​​chips corresponding to the communication operator are 120_1 to 120_n. When the AI ​​chip 120_1 executes the switch sharp communication operator, the AI ​​chip 120_1, as a request initiator chip, issues a protocol type request to the switch chip 110. The switch chip 110 multicasts the protocol type request of the AI ​​chip 120_1 to the AI ​​chips 120_1 to 120_n that jointly execute the computing task. Any one of the AI ​​chips 120_1 to 120_n that receives the protocol type request converts the multicast address into an internal memory physical address in response to the protocol type request, so as to return the target data corresponding to the internal memory physical address to the switch chip 110. For example, the AI ​​chip 120_1 converts the multicast address into the internal memory physical address of the AI ​​chip 120_1 in response to the protocol type request from the switch chip 110, and then returns the target data corresponding to the internal memory physical address to the switch chip 110. Similarly, the AI ​​chip 120_n converts the multicast address into the internal memory physical address of the AI ​​chip 120_n in response to the protocol type request from the switch chip 110, and then returns the target data corresponding to the internal memory physical address to the switch chip 110.

[0026] In step S360, the switch chip 110 performs a reduction operation on the target data returned by different AI chips 120_1 to 120_n to generate reduced data. In step S370, the switch chip 110 returns the reduced data to the request initiating chip. For example, based on the communication operator of the computing task, the AI ​​chip 120_1 can be used as the first request initiating chip to issue a first protocol type request with a first multicast address to the switch chip 110. Similarly, the AI ​​chip 120_n can be used as the nth request initiating chip to issue an nth protocol type request with an nth multicast address to the switch chip 110. The switch chip 110 obtains different first target data from different AI chips 120_1 to 120_n in response to the first protocol type request of the first request initiating chip, and then the switch chip 110 performs a protocol operation on the first target data to generate the first protocol data, and then the switch chip 110 returns the first protocol data to the first request initiating chip (AI chip 120_1). Similarly, the switch chip 110 obtains different nth target data from different AI chips 120_1 to 120_n in response to the nth protocol type request of the nth request initiating chip, and then the switch chip 110 performs a protocol operation on the nth target data to generate the nth protocol data, and then the switch chip 110 returns the nth protocol data to the nth request initiating chip (AI chip 120_n).

[0027] Figure 4 FIG. 1 is a schematic diagram showing different AI chips 120_1 to 120_4 executing communication operators according to an embodiment of the present invention. Assume that the AI ​​chip corresponding to the communication operator is Figure 4The AI ​​chips 120_1, 120_2, 120_3 and 120_4 are shown. When the AI ​​chip 120_1 executes the switch sharp communication operator, the AI ​​chip 120_1, as a request initiator chip, issues a protocol type request with a multicast address to the switch chip 110. The switch chip 110 multicasts the protocol type request of the AI ​​chip 120_1 to the AI ​​chips 120_1 to 120_4 that jointly perform computing tasks. In response to the protocol type request from the switch chip 110, the AI ​​chip 120_1 converts the multicast address into an internal memory physical address, and returns the target data A1 corresponding to the internal memory physical address to the switch chip 110. Similarly, the AI ​​chips 120_2, 120_3 and 120_4 return the target data A2, A3 and A4 to the switch chip 110 in response to the protocol type request of the switch chip 110. The switch chip 110 performs a reduction operation on the target data A1-A4 returned by the AI ​​chips 120_1-120_4 to generate the reduced data "A1+A2+A3+A4". The switch chip 110 returns the reduced data "A1+A2+A3+A4" to the request initiating chip 120_1. The request initiating chip 120_1 stores the reduced data "A1+A2+A3+A4" in the internal memory (such as Figure 4 as shown).

[0028] Similarly, when the AI ​​chip 120_2 executes the switch sharp communication operator, the AI ​​chip 120_2, as a request initiator chip, issues a protocol type request with a multicast address to the switch chip 110. The switch chip 110 multicasts the protocol type request of the AI ​​chip 120_2 to the AI ​​chips 120_1 to 120_4 that jointly perform the computing task, and the AI ​​chips 120_1 to 120_4 return the target data B1, B2, B3, and B4 to the switch chip 110 in response to the protocol type request from the switch chip 110. The switch chip 110 performs a protocol operation on the target data B1 to B4 returned by the AI ​​chips 120_1 to 120_4, and returns the reduced data "B1 + B2 + B3 + B4" to the request initiator chip 120_2. As a request initiating chip, AI chip 120_3 issues a protocol type request with a multicast address to switch chip 110. Switch chip 110 multicasts the protocol type request of AI chip 120_3 to AI chips 120_1 to 120_4 that jointly perform computing tasks. In response to the protocol type request from switch chip 110, AI chips 120_1 to 120_4 return target data C1, C2, C3, and C4 to switch chip 110. Switch chip 110 performs a protocol operation on target data C1 to C4 returned by AI chips 120_1 to 120_4, and returns the reduced data "C1 + C2 + C3 + C4" to request initiating chip 120_3. As a request initiating chip, AI chip 120_4 issues a protocol type request with a multicast address to switch chip 110. Switch chip 110 multicasts the protocol type request of AI chip 120_4 to AI chips 120_1 to 120_4 that jointly perform computing tasks. In response to the protocol type request from switch chip 110, AI chips 120_1 to 120_4 return target data D1, D2, D3, and D4 to switch chip 110. Switch chip 110 performs a protocol operation on target data D1 to D4 returned by AI chips 120_1 to 120_4, and returns the reduced data "D1 + D2 + D3 + D4" to request initiating chip 120_4.

[0029] Based on the above, AI chips 120_1-120_4 convert the multicast address of the protocol type request from the switch chip 110 into the physical address of their own local internal memory. Although the switch chip 110 cannot address the internal memory of AI chips 120_1-120_4, AI chips 120_1-120_4 can feed back the corresponding target data of the multicast address to the switch chip 110 according to the multicast address of the protocol type request of the switch chip 110. Therefore, the AI ​​device 100 can realize the communication operator between different AI chips 120_1-120_n.

[0030] Figure 5 1 is a circuit block diagram of an AI chip 520_1 - 520_n according to an embodiment of the present invention. Figure 5 The AI ​​device shown includes a switch chip 510 and AI chips 520_1 , . . . , 520 — n. The AI ​​chips 520_1 ˜ 520 — n are coupled to the switch chip 510 . Figure 5 The switch chip 510 and the AI ​​chips 520_1 to 520_n shown in the figure can be used as Figure 1 The switch chip 110 and the AI ​​chips 120_1 to 120_n are one of many implementation examples. That is, Figure 5 The switch chip 510 and the AI ​​chips 520_1 to 520_n shown in FIG. Figure 1 The switch chip 110 and the AI ​​chips 120_1 to 120_n are described above and can be deduced by analogy. Figure 5 The AI ​​chips 520_1 to 520_n shown can be exempted Figure 2 In response to other chips (such as the switch chip 510) sending access instructions with multicast addresses to the AI ​​chips 520_1 to 520_n, the AI ​​chips 520_1 to 520_n convert the multicast addresses into internal memory physical addresses of the internal memory spaces dedicated to the AI ​​chips 520_1 to 520_n. The present invention does not limit the address conversion method of the AI ​​chips 520_1 to 520_n. For example (but not limited to this), the AI ​​chips 520_1 to 520_n can run Figure 3 The operation method is shown to convert the multicast address into an internal memory physical address. The AI ​​chips 520_1 to 520_n access their own internal memory according to the converted internal memory physical address to execute the access instruction of other chips (such as the switch chip 510).

[0031] exist Figure 5In the illustrated embodiment, the AI ​​chip 520_1 includes an interface circuit 521_1, an on-chip network 522_1, an internal memory 523_1, and a computing core 524_1. Similarly, the AI ​​chip 520_n includes an interface circuit 521_n, an on-chip network 522_n, an internal memory 523_n, and a computing core 524_n. The AI ​​chip 520_n can refer to the relevant description of the AI ​​chip 520_1 and make analogies. Figure 2 The AI ​​chip 220_1 shown is characterized in that: Figure 5 The AI ​​chip 520_1 shown does not have Figure 2 The copy operation is shown. Figure 5 The internal memory 523_1 and the computing core 524_1 shown can refer to Figure 2 The relevant description of the internal memory 223 and the computing core 224 is similar to that shown in the figure, so it is not repeated here. The internal memory 523_1 is dedicated to the AI ​​chip 520_1. The switch chip 510 or other chips cannot address the internal memory 523_1 of the AI ​​chip 520_1.

[0032] The interface circuit 521_1 is used to establish a communication interface with the switch chip 510. The internal memory 523_1 is coupled to the interface circuit 521_1 through the on-chip network 522_1. The computing core 524_1 is coupled to the interface circuit 521_1 and the internal memory 523_1 through the on-chip network 522_1. The interface circuit 521_1 obtains the multicast address of the protocol type request from the switch chip 510. The interface circuit 521_1 converts the multicast address into an internal memory physical address to the internal memory 523_1 to obtain the target data. For example (but not limited to this), the interface circuit 521_1 can run Figure 3 The operation method is shown to convert the multicast address into the internal memory physical address. The internal memory 523_1 is accessed according to the internal memory physical address to output the target data corresponding to the internal memory physical address to the interface circuit 521_1. The interface circuit 521_1 feeds the target data back to the switch chip 510.

[0033] Figure 6 is a circuit block diagram of an interface circuit 610 according to an embodiment of the present invention. Figure 6 The interface circuit 610 shown can be used as Figure 5 The interface circuit 521_1 shown in FIG. 5 is one of many implementation examples, and can also be used as Figure 5 One of many implementation examples of the interface circuit 521_n shown. That is, Figure 6 The switch chip 510, the interface circuit 610, the on-chip network 620, the internal memory 630 and the computing core 640 shown in FIG. Figure 1The switch chip 510, the interface circuit 521_1, the on-chip network 522_1, the internal memory 523_1 and the computing core 524_1 are described and analogously, and can also be referred to Figure 1 The switch chip 510, interface circuit 521_n, on-chip network 522_n, internal memory 523_n and computing core 524_n are described and analogous thereto.

[0034] Figure 6 The interface circuit 610 shown includes a base address memory 611, an address calculation circuit 612 and a memory management circuit 613. The address calculation circuit 612 is coupled to the base address memory 611. The address calculation circuit 612 obtains the multicast address of the protocol type request from the switch chip 510. The address calculation circuit 612 obtains the base address of the target data from the base address memory 611 (lookup table) based on the protocol type request. The address calculation circuit 612 adds the multicast address (offset value) to the base address to generate a virtual address. The memory management circuit 613 is coupled to the address calculation circuit 612 to receive the virtual address. The memory management circuit 613 is coupled to the internal memory 630 through the on-chip network 620. The memory management circuit 613 converts the virtual address into an internal memory physical address to the internal memory 630 to obtain the target data. The memory management circuit 613 feeds the target data back to the switch chip 510.

[0035] Based on the above, the interface circuit 610 converts the multicast address of the protocol type request from the switch chip 510 into an internal memory physical address to the internal memory 630. Therefore, although the switch chip 510 cannot address the internal memory 630 of the AI ​​chip, the interface circuit 610 of the AI ​​chip can feed back the corresponding target data of the multicast address to the switch chip 510 according to the multicast address of the protocol type request of the switch chip 510, thereby realizing the communication operator between different AI chips 520_1~520_n.

[0036] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An artificial intelligence device, characterized in that: The artificial intelligence device comprises: Switch chips; and A plurality of artificial intelligence chips are used to jointly execute computing tasks, wherein the plurality of artificial intelligence chips are coupled to the switch chip, one of the plurality of artificial intelligence chips serves as a request initiating chip based on a communication operator of the computing task, the request initiating chip issues a protocol type request with a multicast address to the switch chip based on the communication operator, the switch chip multicasts the protocol type request to the plurality of artificial intelligence chips that jointly execute the computing task, and any one of the plurality of artificial intelligence chips converts the multicast address into an internal memory physical address in response to the protocol type request to return target data corresponding to the internal memory physical address to the switch chip.

2. The artificial intelligence device according to claim 1, characterized in that: The switch chip performs a reduction operation on the target data returned by the multiple artificial intelligence chips to generate reduced data, and the switch chip returns the reduced data to the request initiating chip.

3. The artificial intelligence device according to claim 1, characterized in that: The communication operator includes a switch sharp communication operator for network computing.

4. The artificial intelligence device according to claim 1, characterized in that: The protocol type request also carries a multicast group identification number, and the switch chip determines the multicast object of the protocol type request based on the multicast group identification number.

5. The artificial intelligence device according to claim 1, characterized in that: The protocol type request also carries identification information, and any one of the multiple artificial intelligence chips retrieves the base address of the target data from the lookup table based on the identification information to convert the multicast address into the internal memory physical address.

6. The artificial intelligence device according to claim 5, characterized in that: Any one of the plurality of artificial intelligence chips adds the multicast address to the base address to generate a virtual address, and any one of the plurality of artificial intelligence chips converts the virtual address into the internal memory physical address.

7. The artificial intelligence device according to claim 5, characterized in that: When executing the communication operator in the computing task, the multiple artificial intelligence chips each set the base address of the target data into the lookup table.

8. The artificial intelligence device according to claim 1, characterized in that: Any one of the plurality of artificial intelligence chips includes: An interface circuit, used to establish a communication interface with the switch chip; an internal memory coupled to the interface circuit via an on-chip network; and a computing core coupled to the interface circuit and the internal memory via the on-chip network, The interface circuit obtains the multicast address of the protocol type request from the switch chip, converts the multicast address into the internal memory physical address to the internal memory to obtain the target data, and returns the target data to the switch chip.

9. The artificial intelligence device according to claim 8, characterized in that: The interface circuit comprises: Base address memory; an address calculation circuit coupled to the base address memory, wherein the address calculation circuit obtains the multicast address of the protocol type request from the switch chip, the address calculation circuit obtains the base address of the target data by querying from the base address memory based on the protocol type request, and the address calculation circuit adds the multicast address to the base address to generate a virtual address; and A memory management circuit is coupled to the address calculation circuit and is coupled to the internal memory through the on-chip network, wherein the memory management circuit converts the virtual address into the internal memory physical address to obtain the target data from the internal memory, and the memory management circuit feeds the target data back to the switch chip.

10. A method for operating an artificial intelligence device, characterized in that: The operation method comprises: A plurality of artificial intelligence chips of the artificial intelligence device jointly perform a computing task, wherein the plurality of artificial intelligence chips are coupled to a switch chip of the artificial intelligence device; One of the plurality of artificial intelligence chips serves as a request initiating chip based on a communication operator of the computing task; The request initiating chip sends a protocol type request with a multicast address to the switch chip based on the communication operator; The switch chip multicasts the protocol type request to the multiple artificial intelligence chips that jointly execute the computing task; and In response to the protocol type request, any one of the plurality of artificial intelligence chips converts the multicast address into an internal memory physical address to return target data corresponding to the internal memory physical address to the switch chip.

11. The operating method according to claim 10, characterized in that: The operation method also includes: The switch chip performs a reduction operation on the target data returned by the plurality of artificial intelligence chips to generate reduced data; and The switch chip returns the reduced data to the request initiating chip.

12. The operating method according to claim 10, characterized in that: The communication operator includes a switch sharp communication operator.

13. The operating method according to claim 10, characterized in that: The protocol type request also carries a multicast group identification number, and the operation method further includes: The switch chip determines the multicast object of the protocol type request based on the multicast group identification number.

14. The operating method according to claim 10, characterized in that: The protocol type request also carries identification information, and the operation method further includes: Any one of the plurality of artificial intelligence chips retrieves the base address of the target data from a lookup table based on the identification information to convert the multicast address into the internal memory physical address.

15. The operating method according to claim 14, characterized in that: The operation method also includes: generating a virtual address by any one of the plurality of artificial intelligence chips by adding the multicast address to the base address; and The virtual address is converted into the internal memory physical address by any one of the plurality of artificial intelligence chips.

16. The operating method according to claim 14, characterized in that: The operation method also includes: When the communication operator in the computing task is executed, each of the multiple artificial intelligence chips sets the base address of the target data into the lookup table.

17. A machine-readable storage medium for storing non-transitory machine-readable instructions, characterized in that: When the non-transitory machine-readable instructions are executed by a computer, the operating method according to any one of claims 10 to 16 can be implemented.

18. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the operating method described in any one of claims 10 to 16 is implemented.

Citation Information

Patent Citations

  • Computing chip starting method and device and computer system

    CN111767082A

  • Artificial intelligence chip and operation method thereof

    CN113297111A

  • Compiling method for converting neural network model running on artificial intelligence chip and related product thereof

    CN115543328A

  • Artificial intelligence chip, method and device for flexibly accessing data and medium

    CN117435547A

  • Multicast data distribution method and device, electronic equipment and storage medium

    CN117527458A

Cited By

  • Multicast device and method of switch chip

    CN121078006A

  • Multicast apparatus and method for a switch chip

    CN121078006B