A low latency communication system based on non-full interconnected multi-machine multi-card set

By employing a multi-layered interconnect topology in a non-fully interconnected multi-machine, multi-card set, the communication efficiency bottleneck caused by the ring algorithm is solved, and efficient data communication between GPU chips is achieved.

CN123164530APending Publication Date: 2026-11-24MUXI INTEGRATED CIRCUIT (WUHAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510673683.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-23
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In scenarios involving multiple machines and multiple SIM cards that are not fully interconnected, the multiple data synchronizations introduced by the ring algorithm in existing technologies become a bottleneck for communication efficiency, resulting in low data communication efficiency.

Method used

A multi-layered connection topology is used for data communication between GPU chips, avoiding multiple data synchronizations in the ring algorithm. By dividing large amounts of data into multiple data to be communicated and executing them in parallel, communication is achieved using a multi-layered connection structure.

Benefits of technology

It improves data communication efficiency and reduces the number of data synchronizations, especially in the case of small data volumes where synchronization through the first-layer connection is unnecessary, further improving communication efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164530A_ABST
    Figure CN123164530A_ABST
Patent Text Reader

Abstract

This application relates to the field of data communication technology, and in particular to a low-latency communication system based on a non-fully interconnected multi-machine, multi-card set. This system enables data communication between multiple GPU chips through a topology structure containing multiple layers of connections, eliminating the need for data communication via the ring algorithm. This avoids the numerous data synchronizations required by the ring algorithm, reduces the number of data synchronizations, and improves the efficiency of data communication. Furthermore, by redundantly transmitting small amounts of second data to be communicated, data synchronization is not required through the first layer of connections, further reducing the number of data synchronizations and thus improving the efficiency of data communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data communication technology, and in particular to a low-latency communication system based on a non-fully interconnected multi-machine, multi-card set. Background Technology

[0002] Currently, the demand for computing power is exploding in many fields such as scientific research, artificial intelligence, and big data analysis. However, a single GPU chip is increasingly unable to meet the growing demand for computing power. Therefore, existing technologies propose to form GPU clusters composed of multiple GPU chips to provide more powerful computing power to cope with increasingly complex and large-scale computing tasks.

[0003] In GPU clusters, there is a need for communication between GPU chips. In existing technologies, in scenarios with non-fully interconnected multi-machine and multi-card sets, the ring algorithm is usually used for data transmission when communicating data between multiple GPU chips.

[0004] However, the multiple data synchronizations introduced by the ring algorithm can become a bottleneck for communication efficiency when the amount of data corresponding to a single GPU chip is small, resulting in low data communication efficiency in scenarios with non-fully interconnected multi-machine and multi-card sets.

[0005] Therefore, how to improve the data communication efficiency in scenarios involving multiple machines and multiple cards that are not fully interconnected has become an urgent problem to be solved. Summary of the Invention

[0006] To address the aforementioned technical problems, the technical solution adopted by this invention is as follows:

[0007] A low-latency communication system based on a non-fully interconnected multi-machine, multi-card set, the system comprising: M GPU chips {a0, a1, ..., a...} m , ..., a M-1}, processor and memory storing computer programs, wherein, a m Let m be the (m+1)th GPU chip, where m is an integer in the range [0, M-1]. M GPU chips form M / k interconnected GPU sets, where k is the number of GPU chips in a single interconnected GPU set. m It belongs to the N-level connection relationship, N = (log2(M / k)) + 1, a m It has a first-level connection with other GPU chips in its interconnected GPU set, a m There is a layer q connection with the (m+p×k)mod(2p×k)+(2p×k)×f(m / (2p×k))+1th GPU chip, where p=2 q-2 q is an integer in the range [2, N], f() is the floor function, mod is the modulo function, and a mCorresponding to the second data to be communicated, each second data to be communicated includes M sub-data. When the computer program is executed by the processor, the following steps are implemented:

[0008] S201, for the m-th GPU chip a m , through a m The connection relationship of the f-th level will be a m The corresponding second sub-data to be communicated and a m The second data to be communicated by the other GPU chip in the f-th layer connection relationship communicates with each other. The initial value of f is N, and f is an integer in the range [2, N].

[0009] S202, when a m When the corresponding second data to be communicated is completed through the f-th layer connection relationship, update f = f-1, return to execute step S201, until f = 1, and complete the mutual communication between the second data to be communicated corresponding to the M GPU chips respectively.

[0010] Compared with the prior art, the present invention has significant advantages. Through the above technical solution, the low-latency communication system based on a non-fully interconnected multi-machine multi-card set provided by the present invention achieves considerable technological progress and practicality, and has broad industrial application value. It has at least the following advantages:

[0011] This invention enables data communication between multiple GPU chips through a topology structure containing multiple layers of connections. This eliminates the need for data communication via the ring algorithm, avoiding the numerous data synchronizations required by the ring algorithm, thus reducing the number of data synchronizations and improving data communication efficiency. Furthermore, by redundantly transmitting small amounts of second data to be communicated without needing to synchronize data through the first layer of connections, the number of data synchronizations is further reduced, thereby improving data communication efficiency. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 This is a flowchart illustrating the execution of a computer program by a processor in a high-bandwidth communication system based on a non-fully interconnected multi-machine, multi-card set, according to Embodiment 1 of the present invention.

[0014] Figure 2This is a flowchart illustrating the execution of a computer program by a processor in a low-latency communication system based on a non-fully interconnected multi-machine, multi-card set, as provided in Embodiment 2 of the present invention. Detailed Implementation

[0015] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0016] This embodiment provides a high-bandwidth communication system based on a non-fully interconnected multi-machine, multi-card aggregation system. (See also...) Figure 1 This is a flowchart illustrating the execution of a computer program by a processor in a high-bandwidth communication system based on a non-fully interconnected multi-machine, multi-card set, according to Embodiment 1 of the present invention. The system includes: M GPU chips {a0, a1, ..., a...} m , ..., a M-1}, processor and memory storing computer programs, wherein, a m Let m be the (m+1)th GPU chip, where m is an integer in the range [0, M-1]. M GPU chips form M / k interconnected GPU sets, where k is the number of GPU chips in a single interconnected GPU set. m It belongs to the N-level connection relationship, N = (log2(M / k)) + 1, a m It has a first-level connection with other GPU chips in its interconnected GPU set, a m There is a layer q connection with the (m+p×k)mod(2p×k)+(2p×k)×f(m / (2p×k))+1th GPU chip, where p=2 q-2 q is an integer in the range [2, N], f() is the floor function, mod is the modulo function, and a m Corresponding to R first data to be communicated, each first data to be communicated includes M sub-data. When the computer program is executed by the processor, the following steps are implemented:

[0017] S101, for the m-th GPU chip a m , through a m The connection relationship of the i-th level will be a m The corresponding sub-data of the j-th first data to be communicated and a m The sub-data of the j-th first data to be communicated in the i-th layer connection relationship of other GPU chips communicate with each other. The initial value of i is N, the initial value of j is 1, i is an integer in the range [1, N], and j is an integer in the range [1, R].

[0018] S102, when a m When the j-th first data to be communicated is completed through the i-th layer connection relationship, the current i value is obtained, and steps S103 and S104 are executed simultaneously.

[0019] S103, if the current value of i is N, then update j = j + 1, return to step S101, and continue until j = R + 1;

[0020] S104, update i = i-1, return to step S101, until i = 0, and complete the mutual communication between the j-th first data to be communicated corresponding to the M GPU chips.

[0021] In this system, the k GPU chips in a single interconnected GPU set are interconnected at the first layer, and each GPU chip is interconnected at the qth layer with only one other GPU chip.

[0022] Each GPU chip corresponds to the target data that needs to be communicated. In this embodiment, the target data is large in volume. If a multi-layer connection relationship is used to communicate the target data directly, the communication result can only be obtained after the target data has been completely communicated, which takes a long time. In this embodiment, the target data is divided into R first data to be communicated, which reduces the amount of data to be communicated in a single communication. The communication result can be used directly after the communication of a single first data to be communicated is completed, which improves communication efficiency. Furthermore, the R first data to be communicated can communicate in parallel because the connection relationship used is at different levels, which further improves communication efficiency.

[0023] Specifically, when a m When the j-th first data to be communicated is completed through the i-th layer connection, steps S103 and S104 are executed in parallel. It should be noted that step S104 is not executed sequentially after step S103. For example, when a... m When the first piece of data to be communicated is completed through the Nth layer connection, in step S103, i = N, update j = 2, and return to step S101. At this time, through a m The Nth level connection relationship will be a m The corresponding second sub-data of the first data to be communicated and a m In the Nth layer connection relationship, the second first data to be communicated corresponding to other GPU chips communicate with each other. When executing step S104, update i = N-1, return to execute step S101. At this time, through a m The connection relationship of the (N-1)th layer will be a m The corresponding first sub-data of the first data to be communicated and a mThe first sub-data of the first data to be communicated to other GPU chips in the (N-1)th layer connection relationship communicate with each other.

[0024] Taking M=16 and k=4 as an example, the 16 GPU chips form 4 interconnected GPU sets. Each interconnected GPU set contains 4 interconnected GPU chips, and N=3. For the first GPU chip a0, there is a 3-level connection relationship. The first GPU chip has a first-level connection relationship with the second GPU chip a1, the third GPU chip a2, and the fourth GPU chip a3 in the same interconnected GPU set. When q=3, p=2, then (m+p×k)mod(2p×k)+(2p×k)×f(m / (2p×k))=(0+2×4)mod (2×2×4)+(2×2×4)×f(0 / (2×2×4))+1=8mod16+16×0+1=9, so the first GPU chip a0 and the ninth chip a8 have a third-level connection relationship. When q=2, p=1, so (m+p×k)mod(2p×k)+(2p×k)×f(m / (2p×k))+1=(0+1×4)mod(2×1×4)+(2×1×4)×f(0 / (2×1×4))+1=4mod8+8×0+1=5, so the 0th GPU chip a0 and the 5th chip a4 have a second-level connection relationship.

[0025] In one specific implementation, step S101 includes the following steps:

[0026] S1011, if i>1, then through a m The connection relationship of the i-th level will be a m The corresponding M / 2 sub-data in the j-th first data to be communicated and a m In the i-th layer connection relationship, the M / 2 sub-data in the j-th first data to be communicated by another GPU chip communicates with each other.

[0027] Where, when i>1, a m The i-th layer connection contains only one other GPU chip, therefore, through a m The connection relationship of the i-th level will be a m The corresponding M / 2 sub-data in the j-th first data to be communicated and a m In the i-th layer connection relationship, the M / 2 sub-data in the j-th first data to be communicated by another GPU chip communicates with each other.

[0028] Specifically, following the previous example and describing it with j=1, for the first GPU chip a0, when i=3, the 8 sub-data in the first first data to be communicated corresponding to a0 are communicated with the 8 sub-data in the first first data to be communicated corresponding to another GPU chip a8 in the third layer connection relationship to which a0 belongs through the third layer connection relationship. It should be noted that the sub-data in the first first data to be communicated corresponding to a0 can be represented as d. 0 0, d 0 1、…、d 0 15 The first sub-data in the first data to be communicated corresponding to a8 can be represented as d. 8 0, d 8 1、…、d 8 15 a0 will send 8 sub-data d from its first data to be communicated. 0 8. d 0 9、…、d 0 15 Send it to a8, a8 sends 8 parts of its first data to be communicated, d 8 0, d 8 1、…、d 8 7 is sent to a0. When i = 2, through the second-layer connection relationship to which the first GPU chip a0 belongs, the 8 sub-data in the first first data to be communicated corresponding to a0 are mutually communicated with the 8 sub-data in the first first data to be communicated corresponding to another GPU chip a4 in the second-layer connection relationship to which a0 belongs. It should be noted that, at this time, the sub-data in the first first data to be communicated corresponding to a0 can be represented as d. 0 0, d 0 1、…、d 0 7. d 8 0, d 8 1、…、d 8 7. The first sub-data in the first data to be communicated corresponding to a4 can be represented as d. 4 0, d 4 1、…、d 4 7. d 12 0, d 12 1、…、d 12 7, a0 will send 8 sub-data d from its first data to be communicated. 0 4. d 0 5. d 0 6. d 0 7. d 8 4. d 8 5. d 8 6. d 87 is sent to a4, and a4 sends 8 sub-data d from its first piece of data to be communicated. 4 0, d 4 1, d 4 2, d 4 3, d 12 0, d 12 1, d 12 2, d 12 3 is sent to a0.

[0029] In one specific implementation, step S101 further includes the following steps:

[0030] S1012, if i = 1, then through a m The connection relationship of the i-th level will be a m The corresponding M / k element data in the j-th first data to be communicated and a m In the i-th layer connection relationship, the M / k sub-data of the j-th first data to be communicated to each other are respectively communicated to each other.

[0031] When i = 1, a m The i-th layer connection contains k-1 other GPU chips; therefore, through a m The connection relationship of the i-th level will be a m The corresponding M / k element data in the j-th first data to be communicated and a m In the i-th layer connection relationship, the M / k sub-data of the j-th first data to be communicated to each other are respectively communicated to each other.

[0032] Specifically, following the previous example, the four sub-data points in the first first data to be communicated corresponding to the first GPU chip a0 are communicated with the four sub-data points in the first first data to be communicated corresponding to the other GPU chip a1 in the first layer of the connection relationship to which a0 belongs, through the first layer connection relationship. At this time, the sub-data points in the first first data to be communicated corresponding to a0 can be represented as d. 0 0, d 0 1, d 0 2, d 0 3, d 4 0, d 4 1, d 4 2, d 4 3, d 8 0, d 8 1, d 8 2, d 8 3, d 12 0, d 12 1, d 12 2, d12 3. The first sub-data in the first data to be communicated corresponding to a1 can be represented as d. 1 0, d 1 1, d 1 2, d 1 3, d 5 0, d 5 1, d 5 2, d 5 3, d 9 0, d 9 1, d 9 2, d 9 3, d 13 0, d 13 1, d 13 2, d 13 3, a0 will send 4 sub-data d from its first data to be communicated. 0 1, d 4 1, d 8 1, d 12 1 sends to a1, and a1 sends four sub-data d from its first piece of data to be communicated. 1 0, d 5 0, d 9 0, d 13 0 is sent to a0, and similarly, a0 sends four sub-data d from its first data to be communicated. 0 2, d 4 2, d 8 2, d 12 2 sends to a2, and a2 sends four sub-data d from its first piece of data to be communicated. 2 0, d 6 0, d 10 0, d 14 0 sends to a0, and a0 sends four sub-data d from its first piece of data to be communicated. 0 3, d 4 3, d 8 3, d 12 3 sends to a3, and a3 sends four sub-data d from its first piece of data to be communicated. 3 0, d 7 0, d 11 0, d 15 0 is sent to a0. Therefore, when the first piece of data to be communicated corresponding to a0 is completed through the first layer connection, the 16 sub-data in a0 are d. 0 0, d 1 0、…、d 15 0. Similarly, the 16 sub-data in a1 are d. 0 1, d 1 1、…、d 15 1, and so on.

[0033] In one specific implementation, communication between GPU chips is achieved through a set communication algorithm.

[0034] In this embodiment, the set communication algorithm can refer to an algorithm for performing data set operations and communication between GPU chips.

[0035] In one specific implementation, the set communication algorithm includes at least: a full reduction algorithm, a full collection algorithm, a reduction scattering algorithm, and a full interconnection algorithm.

[0036] Among them, ensemble communication algorithms can include all-reduce algorithms, all-gather algorithms, reduce-scatter algorithms, all-to-all algorithms, etc.

[0037] In one specific implementation, the GPU chip includes S ports.

[0038] Ports can be used to support the establishment of connections between GPU chips.

[0039] In one specific implementation, S, k, and N satisfy the condition: N + k - 2 ≤ S.

[0040] For a single GPU chip, k-1 ports are needed to build the first layer of connections, and N-1 ports are needed to build the second to Nth layer connections. Therefore, N+k-2≤S must be satisfied.

[0041] In one specific implementation, the total data volume of the R first data to be communicated is greater than a preset first data volume threshold.

[0042] The total data volume of the R first data to be communicated, which is also the data volume of the target data, should be greater than the preset first data volume threshold. This indicates that directly communicating with the target data would result in the communication results being unusable for a long time. Therefore, the target data is divided into R first data to be communicated for transmission.

[0043] In this first embodiment, a topology structure with multiple interconnected layers enables data communication between multiple GPU chips. The interconnections can all be constructed through preset connections, eliminating the need for data communication via the CPU. This avoids the bandwidth bottleneck of the path provided by the CPU, improving the efficiency of data communication. Furthermore, by dividing large amounts of data into multiple first data to be communicated, the parallel execution of these multiple first data to be communicated effectively improves the bandwidth utilization of different interconnected layers, thereby further enhancing the efficiency of data communication.

[0044] This second embodiment provides a low-latency communication system based on a non-fully interconnected multi-machine, multi-card aggregation system. See [link to documentation]. Figure 2 This is a flowchart illustrating the execution of a computer program by a processor in a low-latency communication system based on a non-fully interconnected multi-machine, multi-card set, according to Embodiment 2 of the present invention. The system includes: M GPU chips {a0, a1, ..., a...} m , ..., a M-1}, processor and memory storing computer programs, wherein, a m Let m be the (m+1)th GPU chip, where m is an integer in the range [0, M-1]. M GPU chips form M / k interconnected GPU sets, where k is the number of GPU chips in a single interconnected GPU set. m It belongs to the N-level connection relationship, N = (log2(M / k)) + 1, a m It has a first-level connection with other GPU chips in its interconnected GPU set, a m There is a layer q connection with the (m+p×k)mod(2p×k)+(2p×k)×f(m / (2p×k))+1th GPU chip, where p=2 q-2 q is an integer in the range [2, N], f() is the floor function, mod is the modulo function, and a m Corresponding to the second data to be communicated, each second data to be communicated includes M sub-data. When the computer program is executed by the processor, the following steps are implemented:

[0045] S201, for the m-th GPU chip a m , through a m The connection relationship of the f-th level will be a m The corresponding second sub-data to be communicated and a m The second data to be communicated by the other GPU chip in the f-th layer connection relationship communicates with each other. The initial value of f is N, and f is an integer in the range [2, N].

[0046] S202, when a m When the corresponding second data to be communicated is completed through the f-th layer connection relationship, update f = f-1, return to execute step S201, until f = 1, and complete the mutual communication between the second data to be communicated corresponding to the M GPU chips respectively.

[0047] In this embodiment, a single GPU chip corresponds to the second data to be communicated, and the amount of the second data to be communicated is relatively small.

[0048] Specifically, when the amount of data to be communicated is small, the bottleneck in communication efficiency lies in the number of data synchronizations. Compared to the traditional ring algorithm communication, communication through multi-layer connections can effectively reduce the number of synchronizations. For example, in a scenario where H GPU chips communicate using the All-Gather algorithm, the ring algorithm requires H-1 synchronizations, while communication through multi-layer connections only requires N = (log2(H / k)) + 1 synchronizations. For example, in a scenario where 8 GPU chips communicate using the All-Gather algorithm, the ring algorithm requires 7 synchronizations, while when k is 4, communication through multi-layer connections only requires 2 synchronizations, effectively reducing the number of synchronizations. Furthermore, in this embodiment, a... m The corresponding second data to be communicated only through the Nth layer connection to the 2nd layer connection, without having to go through the first layer connection, which further reduces the number of synchronizations and improves communication efficiency.

[0049] In one specific implementation, step S201 includes the following steps:

[0050] S2011, via a m The connection relationship of the f-th level will be a m All sub-data in the corresponding second data to be communicated and a m All sub-data in the second data to be communicated in the f-th layer connection relationship of another GPU chip can communicate with each other.

[0051] In this embodiment, since the amount of the second data to be communicated is relatively small, even if redundant communication of M sub-data is performed, the bandwidth bottleneck will not be reached. Due to the redundant communication method, after the GPU chip has completed communication through the Nth layer connection to the 2nd layer connection, it does not need to synchronize through the 1st layer connection. Instead, it can directly perform preset processing on the redundant data obtained from the redundant communication within the GPU chip. The preset processing can include summation calculation, mean calculation, etc., thereby avoiding synchronization through the 1st layer connection and further reducing the number of synchronizations. It should be noted that, under normal circumstances, the method of this embodiment is more effective when applied to the Reduce-Scatter algorithm. The Reduce-Scatter algorithm requires synchronization again after the data has been preset processed, while this embodiment does not require synchronization again after the data has been preset processed.

[0052] In one specific implementation, communication between GPU chips is achieved through a set communication algorithm.

[0053] In this embodiment, the set communication algorithm can refer to an algorithm for performing data set operations and communication between GPU chips.

[0054] In a specific implementation, the collective communication algorithms include at least All-Reduce algorithm, All-Gather algorithm, Reduce-Scatter algorithm, and All-to-All algorithm.

[0055] Wherein, the collective communication algorithms may include All-Reduce algorithm, All-Gather algorithm, Reduce-Scatter algorithm, All-to-All algorithm, etc.

[0056] In a specific implementation, the GPU chip includes S ports.

[0057] Wherein, the ports may be used to support the construction of connection relationships between GPU chips.

[0058] In a specific implementation, S, k, and N satisfy the condition: N+k-2≤S.

[0059] Wherein, for a single GPU chip, k-1 ports are required for constructing the first-layer connection relationship, and N-1 ports are required for constructing the connection relationships from the second layer to the Nth layer, so N+k-2≤S needs to be satisfied.

[0060] In a specific implementation, the data volume T of the second data to be communicated satisfies the condition: T×(N-1)<W, where W is a preset second data volume threshold.

[0061] Wherein, due to redundant transmission, the communication of each layer of connection relationship will double the data volume required for communication of the next layer of connection relationship. When the data volume communicated by the second-layer connection relationship is less than the second data volume threshold, it can be considered that the redundant transmission will not reach the bandwidth bottleneck, that is, T should satisfy the condition: T×2 N-1 <W.

[0062] In a specific implementation, the a m corresponds to U pieces of second data to be communicated;

[0063] Correspondingly, step S202 includes:

[0064] S2021, when the u-th second data to be communicated corresponding to a m has been communicated through the f-th layer connection relationship, obtain the current f value, and simultaneously execute step S2022 and step S2023, where the initial value of u is 1;

[0065] S2022, if the current f value is N, update u=u+1, and return to execute step S201 until u=U+1;

[0066] S2023, update f = f-1, return to step S201, until f = 1, and complete the mutual communication between the u-th second data to be communicated corresponding to the M GPU chips.

[0067] In the low-latency communication system of this embodiment two, communication efficiency can also be improved by using the parallel communication method in embodiment one. For a detailed description of parallel communication, please refer to embodiment one.

[0068] In this second embodiment, multiple GPU chips communicate with each other through a topology structure containing multiple layers of connections. This eliminates the need for data communication via the ring algorithm, avoiding the numerous data synchronizations required by the ring algorithm, thus reducing the number of data synchronizations and improving the efficiency of data communication. Furthermore, the redundant transmission of the second data to be communicated, which has a small amount of data, eliminates the need for data synchronization via the first layer of connections, further reducing the number of data synchronizations and thus improving the efficiency of data communication.

[0069] While specific embodiments of the invention have been described in detail by way of example, those skilled in the art should understand that the examples are for illustrative purposes only and not intended to limit the scope of the invention. It should also be understood that various modifications can be made to the embodiments without departing from the scope and spirit of the invention. The scope of this invention is defined by the appended claims.

Claims

1. A low-latency communication system based on a non-fully interconnected multi-machine, multi-card set, characterized in that, The system includes: M GPU chips {a0, a1, ..., a...} m , ..., a M-1 }, processor and memory storing computer programs, wherein, a m Let m be the (m+1)th GPU chip, where m is an integer in the range [0, M-1]. The M GPU chips form M / k interconnected GPU sets, where k is the number of GPU chips in a single interconnected GPU set. m It belongs to the N-level connection relationship, N = (log2(M / k)) + 1, a m It has a first-level connection with other GPU chips in its interconnected GPU set, a m There is a layer q connection with the (m+p×k)mod(2p×k)+(2p×k)×f(m / (2p×k))+1th GPU chip, where p=2 q-2 q is an integer in the range [2, N], f() is the floor function, mod is the modulo function, and a m Corresponding to the second data to be communicated, each second data to be communicated includes M sub-data. When the computer program is executed by the processor, the following steps are implemented: S201, for the m-th GPU chip a m , through a m The connection relationship of the f-th level will be a m The corresponding second sub-data to be communicated and a m The second data to be communicated by the other GPU chip in the f-th layer connection relationship communicates with each other. The initial value of f is N, and f is an integer in the range [2, N]. S202, when a m When the corresponding second data to be communicated is completed through the f-th layer connection relationship, update f = f-1, return to execute step S201, until f = 1, and complete the mutual communication between the second data to be communicated corresponding to the M GPU chips respectively.

2. The low-latency communication system based on a non-fully interconnected multi-machine, multi-card set according to claim 1, characterized in that, Step S201 includes the following steps: S2011, via a m The connection relationship of the f-th level will be a m All sub-data in the corresponding second data to be communicated and a m All sub-data in the second data to be communicated corresponding to another GPU chip in the f-th layer connection relationship communicate with each other.

3. The low-latency communication system based on a non-fully interconnected multi-machine, multi-card set according to claim 1, characterized in that, Communication between GPU chips is implemented via collective communication algorithms.

4. The low-latency communication system based on a non-fully interconnected multi-machine, multi-card set according to claim 3, characterized in that, The collective communication algorithms include at least: all-reduce algorithm, all-gather algorithm, reduce-scatter algorithm, and all-to-all algorithm.

5. The low-latency communication system based on a non-fully interconnected multi-machine, multi-card set according to claim 1, characterized in that, The GPU chips include S ports.

6. The low-latency communication system based on a non-fully interconnected multi-machine, multi-card set according to claim 5, characterized in that, S, k, and N satisfy the condition: N+k-2≤S.

7. The low-latency communication system based on a non-fully interconnected multi-machine, multi-card set according to claim 1, characterized in that, The data volume T of the second data to be communicated satisfies the condition: T×(N-1)<W, where W is a preset second data volume threshold.

8. The low-latency communication system based on a non-fully interconnected multi-machine, multi-card set according to claim 1, characterized in that, The a m Corresponding to U second data to be communicated; Correspondingly, step S202 includes: S2021, when a m When the u-th second data to be communicated is completed through the f-th layer connection relationship, the current f value is obtained, and steps S2022 and S2023 are executed simultaneously. The initial value of u is 1. S2022, if the current f value is N, update u=u+1, return to execute step S201 until u=U+1; S2023, update f=f-1, return to execute step S201 until f=1, completing mutual communication between the u-th second data to be communicated corresponding to each of the M GPU chips.