Data transmission method and device and distributed training method and device
By splitting and merging data in the distributed computing system and using high-speed NVLink links and RDMA protocols, the problem of communication delay and low efficiency between nodes is solved, and the overall efficiency of the distributed training system is improved.
Patent Information
- Application Number
- CN202410672174.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-10
AI Technical Summary
In large-scale model training, high-bandwidth communication links within nodes cannot be fully utilized, resulting in large communication delays and low efficiency between nodes, especially in multi-node distributed training scenarios.
In a distributed computing system, the data in the initial computing unit is split to multiple computing units of the same computing node through high-speed NVLink links, and is transmitted to the target computing unit through a communication link based on the RDMA protocol, and finally at the target Data is merged within the computing unit to improve the utilization of communication links between nodes.
It significantly reduces system communication delays, improves the overall operating efficiency of the distributed training system, and improves data processing efficiency.
Smart Images

Figure CN118626286A
Abstract
Description
Technical Field
[0001] The present application relates to the field of distributed computing technology, and specifically to a data transmission method and device, and a distributed training method and device. Background Art
[0002] With the development of artificial intelligence technology, especially the rapid rise of large language models (LLM), the scale of neural network models continues to expand. These models increasingly rely on distributed training methods to improve training efficiency. When multiple GPU nodes are used for distributed training, the communication speed between nodes and between multiple GPUs within a node becomes particularly critical.
[0003] The description of the background technology is intended to help understand the relevant technology in the relevant field, and does not constitute an admission that the content of the background technology belongs to the prior art. Summary of the invention
[0004] Therefore, the application embodiments themselves aim to provide a data transmission method and device, a distributed training method and device, which can reduce system communication delays, improve the utilization rate of communication links between nodes, and significantly improve the overall operating efficiency of the distributed training system.
[0005] In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a distributed computing system, wherein the distributed computing system includes multiple computing nodes, each computing node includes multiple computing units, and the computing units in the same computing node are connected to each other through a first communication link. The distributed computing system includes a first layer switch, and the first layer switch includes multiple first switches corresponding to the multiple computing units of each computing node. Each first switch is connected to the corresponding computing unit of each computing node through a second communication link, and the transmission speed of the first communication link is greater than the transmission speed of the second communication link;
[0006] In some embodiments of the present application, the data transmission method includes:
[0007] Splitting the data to be transmitted in the initial computing unit to multiple computing units of the same computing node through the first communication link;
[0008] Transmitting the split data from the plurality of computing units having the split data to the corresponding computing units in the computing node where the target computing unit is located through the respective corresponding second communication links, wherein the initial computing unit and the target computing unit are located in different computing nodes;
[0009] The split data is merged from the corresponding computing unit into the target computing unit through a first communication link in the computing node where the target computing unit is located.
[0010] In some embodiments of the present application, splitting the data in the initial computing unit to multiple computing units of the same computing node through the first communication link includes:
[0011] The data is evenly split among the plurality of computing units.
[0012] In some embodiments of the present application, splitting the data in the initial computing unit to multiple computing units of the same computing node through the first communication link includes:
[0013] The data is evenly split to all computing units of the same computing node.
[0014] In some embodiments of the present application, the initial computing unit is a single unit, the target computing unit is a single unit, and the data transmission is point-to-point transmission.
[0015] In some embodiments of the present application, there are multiple initial calculation units.
[0016] In some embodiments of the present application, the plurality of initial calculation units include a first initial calculation unit and a second initial calculation unit;
[0017] The step of splitting the data in the initial computing unit to multiple computing units of the same computing node through the first communication link includes:
[0018] Splitting the data to be transmitted in the first initial computing unit to multiple first computing units of the same computing node, and
[0019] The data to be transmitted in the second initial computing unit is split into multiple second computing units of the same computing node, wherein the first switches corresponding to the multiple first computing units do not overlap with the first switches corresponding to the multiple second computing units.
[0020] In some embodiments of the present application, splitting the data in the initial computing unit to multiple computing units of the same computing node through the first communication link further includes:
[0021] The number of the plurality of first computing units and the plurality of second computing units is determined based on the size ratio of the data to be transmitted in the first initial computing unit to the data to be transmitted in the second initial computing unit.
[0022] In some embodiments of the present application, there are multiple target computing units;
[0023] The method of transmitting the split data from the computing units having the split data to the corresponding computing units in the computing node where the target computing unit is located through the respective corresponding second communication links includes:
[0024] The split data is broadcasted from the computing unit having the split data to corresponding computing units in the plurality of computing nodes where the plurality of target computing units are located.
[0025] In some embodiments of the present application, the computing unit includes a GPU, the first communication link includes an NVLink link within a computing node, and the second communication link includes at least one of the communication links based on the RDMA protocol.
[0026] In some embodiments of the present application, the distributed computing system includes a second layer switch, and the second layer switch includes a second switch connected to the plurality of first switches through a third communication link.
[0027] In a second aspect, an embodiment of the present application provides a distributed training method for a neural network model, wherein the distributed training of the neural network model is implemented in a distributed computing system, wherein the distributed computing system includes multiple computing nodes, each computing node includes multiple computing units, and the computing units in the same computing node are connected to each other through a first communication link. The distributed computing system includes a first-layer switch, wherein the first-layer switch includes multiple first switches corresponding to the multiple computing units of each computing node, each first switch is connected to the corresponding computing unit of each computing node through a second communication link, and the transmission speed of the first communication link is greater than the transmission speed of the second communication link.
[0028] In some embodiments of the present application, the distributed training method includes:
[0029] Performing a first training on at least one computing node to update at least part of the parameters of the neural network model, wherein at least one computing node performing the first training includes an initial computing unit;
[0030] Splitting the update parameter data in the initial computing unit to multiple computing units in the same computing node via the first communication link;
[0031] Transmitting the split parameter data from the computing units having the split parameter data to the corresponding computing units in the computing node where the target computing unit is located through the respective corresponding second communication links, wherein the initial computing unit and the target computing unit are located in different computing nodes;
[0032] The split parameter data is merged from the corresponding computing unit into the target computing unit through a first communication link in the computing node where the target computing unit is located.
[0033] In some embodiments of the present application, the distributed training method further includes:
[0034] A second training is performed on at least one computing node to further update at least part of the parameters of the neural network model, and at least one computing node performing the second training includes the target computing unit having the updated parameter data, and the target computing unit performs the second training based on the updated parameter data.
[0035] In some embodiments of the present application, splitting the update parameter data in the initial computing unit to multiple computing units in the same computing node through the first communication link includes:
[0036] The update parameter data is evenly split into the plurality of computing units.
[0037] In some embodiments of the present application, splitting the data in the initial computing unit to multiple computing units of the same computing node through the first communication link includes:
[0038] The update parameter data is evenly split to all computing units of the same computing node.
[0039] In some embodiments of the present application, the computing unit includes a GPU, the first communication link includes an NVLink link within a computing node, and the second communication link includes at least one of the communication links based on the RDMA protocol.
[0040] In a third aspect, a data transmission device is provided, the data transmission device being applied to a distributed computing system, the distributed computing system comprising a plurality of computing nodes, each computing node comprising a plurality of computing units, the computing units in the same computing node being connected to each other via a first communication link, the distributed computing system comprising a first layer switch, the first layer switch comprising a plurality of first switches corresponding to the plurality of computing units of each computing node, each first switch being connected to the corresponding computing unit of each computing node via a second communication link, the transmission speed of the first communication link being greater than the transmission speed of the second communication link;
[0041] The data transmission device comprises:
[0042] A splitting unit, configured to split the data to be transmitted in the initial computing unit to multiple computing units of the same computing node through the first communication link;
[0043] a transmission unit configured to transmit the split data from the plurality of computing units having the split data to corresponding computing units in the computing node where the target computing unit is located through the respective corresponding second communication links, wherein the initial computing unit and the target computing unit are located in different computing nodes;
[0044] The merging unit is configured to merge the split data from the corresponding computing unit into the target computing unit through a first communication link in the computing node where the target computing unit is located.
[0045] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory for storing instructions executable by the processor, wherein the processor implements the steps of the above method when executing the instructions.
[0046] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program / instruction stored thereon, which implements the steps of the above method when the computer program / instruction is executed by a processor.
[0047] The data transmission method of the embodiment of the present application splits the data to be transmitted in the initial computing unit to multiple computing units of the same computing node through the first communication link, transmits the split data from the multiple computing units having the split data to the corresponding computing units in the computing node where the target computing unit is located through their respective corresponding second communication links, and merges the split data from the corresponding computing units to the target computing unit through the first communication link in the computing node where the target computing unit is located. This can improve the utilization rate of the communication link between nodes, reduce system data transmission and communication delays, improve data processing efficiency, and significantly improve the overall operating efficiency of the distributed training system.
[0048] Other optional features and technical effects of the embodiments of the present application are partially described below, and partially can be understood by reading this document. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use are briefly introduced below. It should be clear that the drawings in the following description only cover some embodiments of the present application, and ordinary technicians in this field can obtain other drawings based on these drawings without performing creative work. The purpose of these drawings is to better illustrate the technical details to help understand the implementation methods of the present application, among which:
[0050] Figure 1 A schematic architecture diagram showing a distributed computing system according to an embodiment of the present application;
[0051] Figure 2 A schematic structural diagram of a network communication for distributed training is shown;
[0052] Figure 3 A schematic flow chart showing a data transmission method according to an embodiment of the present application;
[0053] Figure 4 A schematic data transmission structure diagram of an embodiment of the present application is shown;
[0054] Figure 5 A schematic flow chart showing a data transmission method according to an embodiment of the present application;
[0055] Figure 6 A schematic data transmission structure diagram of an embodiment of the present application is shown;
[0056] Figure 7 A schematic data transmission structure diagram of an embodiment of the present application is shown;
[0057] Figure 8 A schematic data transmission structure diagram of an embodiment of the present application is shown;
[0058] Fig. 9 A schematic flow chart showing a distributed training method according to an embodiment of the present application is shown;
[0059] Fig.10 A schematic diagram showing a structure of performing distributed training using the distributed training method according to an embodiment of the present application;
[0060] Fig.11 A schematic diagram showing the structure of a data transmission device implementing an embodiment of the present application; and
[0061] Fig.12 An exemplary structural diagram of an electronic device according to a method according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0062] The exemplary embodiments of the present application will be described in detail below, and the illustrations of the examples have been shown in the accompanying drawings. When referring to the drawings, unless otherwise specified, the same numbers or marks in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with one or more embodiments of this specification. Instead, they are only examples of some aspects of the devices and methods covered by one or more embodiments of this specification as detailed in the claims of this application.
[0063] The term "including" and its variations used in this specification are all intended to be broadly inclusive, i.e., "including but not limited to" the items listed. Unless otherwise stated, the term "or" means "and / or", the term "based on" means relying on, or at least partially relying on, the terms "an example embodiment" and "an embodiment" refer to at least one example embodiment, and the term "another embodiment" means at least one different embodiment. The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0064] Currently, distributed computing systems are widely used in scenarios that require high performance, large computing volume, and large amounts of data, such as distributed training of neural networks. In these systems, multiple computing nodes are connected through a network, and computing units such as GPUs are often used to perform most of the computing tasks. In distributed training scenarios, the number of computing units such as GPUs that can usually be accommodated in a node is limited. For example, in some cases, a node can accommodate up to 8 GPUs, such as 8 NVIDIA A100 cards. In addition, there are currently proposals for fast communication between computing units located within the node, such as GPUs. For example, NVIDIA proposes the use of NVLink technology, which can achieve intra-node GPU interconnection with a total bandwidth of up to 600GB / s and a point-to-point communication bandwidth of up to 300GB / s between any two cards. However, the number of GPUs required for large-scale model training far exceeds the number of GPUs that a single node can provide.
[0065] Although the inter-GPU communication within a node has the above-mentioned high bandwidth, in actual distributed training scenarios, such as the large amount of point-to-point communication involved in all-to-all operations, there is not only inter-GPU communication within a node, but also communication activities between GPUs in dense nodes are triggered. Although there are currently many schemes proposed to try to increase the GPU network communication speed between nodes. For example, the current commission uses RoCE communication technology, the total bandwidth between nodes can reach 100GB / s, and the point-to-point communication bandwidth can reach 25GB / s. However, due to the huge difference in communication speeds between nodes and within nodes, the heterogeneous communication topology leads to performance bottlenecks, making it impossible to fully utilize the high-bandwidth communication links within the node.
[0066] Combined with reference Figure 1 and Figure 2 , describes a network communication scheme that the inventors have noticed can be applied to an exemplary distributed computing system, such as for distributed training. For example, Figure 1 The exemplary distributed structure shown has two layers of switches, and the GPUs of the same sequence number of each node are connected to the switches of the same sequence number. For example, the first GPU of the eight computing nodes Node0 to Node7, i.e., GPU0, is connected to the first switch Switch of the bottom layer (also called the first layer Layer1 switch), i.e., Switch0. GPU7 of Node0 to Node7 is connected to Switch7 of the bottom layer, and the uplink channels of the first layer switches are all connected to the downlink channels of the second layer Layer2 switch Switch0. Figure 2 Combined with Figure 1For example, under this architecture, if GPU0 in node Node0 wants to communicate with GPU7 in the same node Node0 in point-to-point communication, data can be transmitted through the high-speed communication link NVLink with a bandwidth of 300GB / s; however, if GPU0 in node Node0 wants to communicate with GPU7 in other node Node1 in point-to-point communication, the transmission path is as follows: Node0_GPU0->Layer1_Switch0->Layer2_Switch0->Layer1_Switch7->Node1_GPU7. In particular, all-to-all communication often requires all point-to-point communications to be synchronized before continuing the subsequent process. Therefore, the communication between Node0_GPU0 and Node1_GPU7 will switch the communication link, such as the bandwidth of the RoCE network, and further cause a longer delay.
[0067] In this regard, the inventors of this application have found that the following problems are currently faced in the process of large-scale model training: Due to physical limitations, the number of GPUs that can be deployed on a single computing node is limited. In large-scale model training, especially in the scenario of multi-node distributed training, although multiple GPUs in a node can achieve high-speed interconnection with each other through high-bandwidth communication links, such as NVLink links, the communication between different GPU units in different GPU nodes must rely on network switches with lower bandwidth. The bandwidth imbalance of this heterogeneous communication environment greatly limits the full utilization of high-speed NVLink links, increases data transmission time, causes unacceptable communication delays and performance bottlenecks, and greatly reduces the efficiency of large-scale model training, especially the efficiency of large-scale model training in multi-node distributed training scenarios.
[0068] Therefore, the present application provides a data transmission method and device, which can reduce system communication delay, improve the utilization rate of communication links between nodes, and significantly improve the overall operating efficiency of the distributed training system. Furthermore, the present application also provides a distributed training method and device, which can greatly improve the efficiency of distributed training.
[0069] In some embodiments, the implementation of these devices can be completed by software, hardware or a combination of software and hardware. In some embodiments, the electronic device or computer can be implemented by the computer described herein or other electronic devices capable of performing corresponding functions.
[0070] In an embodiment of the present application, a data transmission method is provided, which can be applied to machine learning (ML) and its training tasks, especially distributed training tasks for large-scale models. The method is also suitable for other computing-intensive scenarios that require high-speed data transmission and low-latency processing, such as HPC applications High-Performance Computing (HPC) and other scenarios.
[0071] In the examples of this application, refer to Figure 1 The schematic diagram of the architecture of the distributed computing system to which the data transmission method of the embodiment of the present application can be applied is shown. The distributed computing system may include multiple computing nodes, such as Node0 to Node7 in the figure, each of which includes multiple GPU computing units (such as GPU0 to GPU7), and the computing units in the same computing node communicate with each other via a first communication link (such as Figure 4 The NVlink link shown in the figure is connected, the distributed computing system includes a first layer switch (Switch Layer 1), the first layer switch includes multiple first switches (for example, Switch0 to Switch7) corresponding to multiple computing units of each computing node, each first switch is connected to the corresponding computing unit of each computing node through a second communication link, and the transmission speed of the first communication link is greater than the transmission speed of the second communication link.
[0072] In the embodiment of the present application, the computing node (Node) refers to an independent computing node in a distributed computing system. Each computing node includes a processor (CPU or GPU), memory and storage resources, and can independently process data and run programs.
[0073] In the embodiment of the present application, the switch refers to a network switch for inter-node communication. In the embodiment of the present application, the switch can be used to connect computing nodes (such as GPU nodes), storage devices and other network devices in a distributed training environment.
[0074] In some embodiments of the present application, the computing unit may include a GPU (Graphics Processing Unit), which is particularly suitable for training and running large neural network models, such as large language models, in machine learning and deep learning.
[0075] In some embodiments of the present application, the first communication link includes an NVLink link within a computing node. The NVLink is a high-speed data transmission interface provided by NVIDIA, which can support high-bandwidth, high-energy-efficiency, low-latency and lossless interconnection communication between multiple GPU computing nodes, but the first communication link of the present application is not limited thereto, as long as its transmission speed (bandwidth) has a significant gain compared to the second communication link of the switch.
[0076] In some embodiments of the present application, the second communication link includes at least one of the communication links based on the RDMA (Remote Direct Memory Access) protocol. The RDMA-based communication link includes but is not limited to a communication link based on technologies such as RoCE (RDMA over Converged Ethernet) and InfiniBand.
[0077] In some embodiments of the present application, Figure 1 As schematically shown, the distributed computing system may optionally include a second layer switch (Switch Layer 2), and the second layer switch may include a second switch, such as Switch0, connected to the plurality of first switches via a third communication link. Figure 1 A two-layer architecture switch is shown, but the application is not so limited.
[0078] refer to Figure 3 , describing the data transmission method according to the embodiment of the present application, which may include:
[0079] S310: Split the data to be transmitted in the initial computing unit to multiple computing units of the same computing node through the first communication link.
[0080] S320: Transmit the split data from the multiple computing units having the split data to the corresponding computing units in the computing node where the target computing unit is located through the respective corresponding second communication links, wherein the initial computing unit and the target computing unit are located in different computing nodes.
[0081] S330: Merge the split data from the corresponding computing unit to the target computing unit through the first communication link in the computing node where the target computing unit is located.
[0082] In the embodiment of the present application, the initial computing unit refers to the computing unit where the data to be transmitted is initially stored and sent during the data transmission process, and is also the starting point of the data transmission. It is located at a different computing node from the target computing unit.
[0083] In the embodiments of the present application, the split is interpreted broadly, covering the following two situations: after the split is transmitted to multiple computing units of the same node, the initial computing unit has or does not have the split data (part). For example, the data to be transmitted in GPU0 can be split to GPU0 to GPU7, that is, GPU0 has a part of the split data; or the data to be transmitted in GPU7 can be split to GPU1 to GPU7, that is, GPU0 does not have a part of the split data, which falls within the scope of the present application.
[0084] In some embodiments of the present application, for example, in the above step S310, the data may be evenly split into all computing units of the same computing node.
[0085] In other embodiments of the present application, for example, in the above step S310, the data may be evenly split into some computing units of the same computing node.
[0086] The data transmission method of the present application will be further described below in combination with multiple exemplary embodiments of the present application.
[0087] In some embodiments of the present application, the initial computing unit may be a single unit, the target computing unit may be a single unit, and the data transmission may be point-to-point transmission.
[0088] In a specific embodiment of the present application, refer to Figure 4 Combined with Figure 1 , Figure 4 The computing nodes Node0 and Node1 are schematically shown, and each of them may include M, such as 8, computing units (GPU0 to GPU7).
[0089] When the data to be transmitted (for example, the size is N) is transmitted point-to-point between the initial computing unit GPU0 and the target computing unit GPU7, the data can first be split into multiple, such as M, for example, 8 data fragments of equal size (such as N / 8), and transmitted to the GPU1 to GPU7 of the Node0 through NVLink. Subsequently, GPU0 to GPU7 transmit the split data fragments in their respective GPUs (such as in the video memory) in parallel through their respective corresponding switches to the computing node where the target computing unit is located, such as the corresponding computing unit in Node1. For example, GPU1 of Node0 transmits the data fragments assigned to it to GPU1 of Node1, and so on. Finally, all the transmitted data fragments will be merged into the target computing unit GPU7 via the NVLink link in Node1 to complete the data transmission. Similarly, when the initial computing unit is Node0GPU0 and the target computing unit is Node1 GPU0, that is, the GPUs are connected to the same switch, the data to be transmitted of the initial computing unit is still split and transmitted to the computing units of the same node through the high-speed link, and transmitted to the corresponding computing unit of the node where the target computing unit is located through the corresponding second communication link, and then merged.
[0090] In this embodiment, the above splitting can be performed using the Scatter instruction, and the above merging can be performed using the Gather instruction, but the present application is not limited thereto. Scatter and Gather are known instructions for GPU data transmission, which can be implemented, for example, by NVIDIA's NCCL library (NVIDIA Collective Communications Library), and will not be described in detail here.
[0091] Take this example as an example for comparison Figure 2 , to determine the example compared to the theoretical analysis Figure 2 The optimization efficiency of the solution:
[0092] Assuming the point-to-point communication volume is N GB, case 1 stipulates the use of internal high-speed interconnect links such as NVLink. The theoretical time consumption T1 is:
[0093] T1=300 / N
[0094] Case 2 specifies data transmission between GPUs with the same sequence number between nodes (i.e., connected to the same first-layer switch), such as a communication link based on RoCE.
[0095] Case 3 specifies data transmission between GPUs with different serial numbers between nodes (i.e., connected to the same first-layer switch), such as a communication link based on RoCE.
[0096] by Figure 2For example, the communication time of case 2 and case 3 before optimization. The theoretical communication time for case 2 is:
[0097] T2=T3=N / 25=12T1
[0098] Therefore, before optimization, the overall point-to-point communication delay is:
[0099] T=max{T1,T2,T3}=12T1
[0100] In this example, the communication time of Case 2 and Case 3 after optimization is:
[0101] After optimization, ignoring the delay of the switch itself, the communication time of Case 2 and Case 3 is composed of the following parts:
[0102] Scatter operation time:
[0103] T scatter =7 / 8×N / 300=7 / 8×T1
[0104] The second communication link (RoCE communication) takes time
[0105] T RoCE =N / 8 / 25=2 / 3×T1
[0106] Gather operation time:
[0107] T gather =7 / 8×N / 300=7 / 8×T1
[0108] Therefore, the optimized communication time is:
[0109] T2=T3=T scatter +T RoCE +T gather =24 / 29×T1
[0110] In this example, after optimization, the overall point-to-point communication delay is:
[0111] T=max{T1,T2,T3}=24 / 29×T1
[0112] It can be seen that the communication delay saves about 80% of the time compared to before optimization. At the same time, for situation 3, the optimization solution also bypasses the communication of the second-layer switch, avoiding the uncontrollable delay introduced by the second-layer switch itself.
[0113] Referring to Table 1 below, the optimization effect according to the above-mentioned example is shown under different transmission data amounts.
[0114] Table 1
[0115] Data volume Time consumption for intra-node communication Inter-node communication time (before optimization) Inter-node communication time (after optimization) 32MB 256.9us 1663.5us 353.2us 128MB 847.0us 6730.3us 1391.2us 512MB 2858.9us 26976.2us 5451.9us 2GB 11158.9us 107515.5us 21793.3us 8GB 44254.1us 430203.2us 87357.6us
[0116] The solution of the embodiment of the present application can reduce system communication delays, improve the utilization rate of communication links between nodes, and significantly improve the overall operating efficiency of the distributed training system.
[0117] Furthermore, a number of different embodiments are conceivable that utilize the inventive concept.
[0118] Continuing with the above example, in another specific embodiment of the present application, differently, the data to be transmitted of the initial computing unit GPU0 may be evenly split only into a part of the computing units in the computing node Node0. For example, the data to be transmitted of size N is evenly split into 4 data fragments of size N / 4, and the data fragments are distributed to the 4 computing units (e.g., GPU 0 to GPU 3) included in Node0 through NVLink for data transmission.
[0119] Continuing with the above example, in another specific embodiment of the present application, the data to be transmitted of the initial computing unit GPU0 can be evenly split into other computing units in the computing node Node0 except the initial computing unit GPU0. For example, the data to be transmitted of size N is evenly split into 4 data segments of size N / 4, and the data segments are distributed through NVLink to the other 4 computing units (for example, GPU1 to GPU4) in Node0 except the initial computing unit GPU0 for data transmission.
[0120] In some embodiments of the present application, there may be multiple initial calculation units.
[0121] In some embodiments of the present application, the plurality of initial calculation units may include a first initial calculation unit and a second initial calculation unit.
[0122] In some embodiments of the present application, Figure 5 As shown, the above step S310 may further include the following steps:
[0123] S311: Split the data to be transmitted in the first initial computing unit into multiple first computing units of the same computing node.
[0124] S312: Split the data to be transmitted in the second initial computing unit into multiple second computing units of the same computing node.
[0125] Preferably, the first switches corresponding to the plurality of first computing units do not overlap with the first switches corresponding to the plurality of second computing units.
[0126] In some embodiments of the present application, when there are multiple initial computing units, they can be split according to the size of the data. Preferably, the above step S310 may also include the following steps: based on the size ratio of the data to be transmitted in the first initial computing unit to the data to be transmitted in the second initial computing unit, determine the number of the multiple first computing units and the multiple second computing units.
[0127] In some embodiments of the present application, when data is transmitted from multiple initial computing units to a single target computing unit, the multiple initial computing units may be multiple initial computing units located in the same computing node or multiple initial computing units located in different computing nodes.
[0128] In a specific embodiment of the present application, the multiple initial computing units may be multiple initial computing units located in the same computing node.
[0129] refer to Figure 6 , which exemplarily shows two computing nodes Node0 and Node1 in a computing system, each of which includes multiple, for example, 8 computing units (GPU0 to GPU7). Figure 6 In the example shown, it is assumed that the computing node Node0 includes a first initial computing unit GPU0 and a second initial computing unit GPU7, and another computing node Node1 includes a target computing unit GPU7. That is, in this embodiment, the target node is single.
[0130] When the data to be transmitted of the first initial computing unit GPU0 and the second initial computing unit GPU7 in Node0 needs to be transmitted to the target computing unit GPU7 in Node1, the data to be transmitted in the first initial computing unit GPU0 can be split and distributed to multiple first computing units of Node0 (such as Figure 6 In the "split 1" in the figure), the data to be transmitted in the second initial computing unit GPU7 is split and distributed to multiple second computing units of Node0 (such as Figure 6In the embodiment of the present invention, the first computing units may be a plurality of GPU0, GPU1, GPU2, GPU3 and GPU4 of Node0; the second computing units may be GPU5, GPU6 and GPU7 of Node0. At this time, the first switches (Switch0 to Switch4) corresponding to the first computing units (GPU0 to GPU4 of Node0) and the first switches (Switch5 to Switch7) corresponding to the second computing units (GPU5 to GPU7 of Node0) do not overlap.
[0131] In a preferred embodiment, when there are multiple initial computing units, they can be split according to the amount of data, so as to determine the number of the multiple first computing units and the multiple second computing units based on the size ratio of the data to be transmitted in the first initial computing unit and the data to be transmitted in the second initial computing unit. More preferably, especially when multiple initial computing units evenly split their data to be transmitted, it is hoped that among multiple even splitting schemes, a splitting scheme with the smallest maximum data amount obtained after evenly splitting the multiple data is selected. The above technical solution of the embodiment of the present application can maximize the amount of data processed by the computing node Node0 per unit time, so that all the transmission data contained in the multiple initial computing units can be processed with maximum efficiency, thereby improving the performance of the overall system.
[0132] Continue to refer Figure 6 For example, the number of the plurality of first computing units and the plurality of second computing units may be determined based on the size ratio of the data to be transmitted in the first initial computing unit GPU0 of the computing node Node0 to the data to be transmitted in the second initial computing unit GPU7. Figure 6, when the size ratio of the data to be transmitted between the first initial computing unit GPU0 and the second initial computing unit GPU7 is 3:2, the number of the multiple first computing units can be set to 8*(3 / 5) and the number of the multiple second computing units can be set to 8*(2 / 5) after calculation according to the proportional relationship. At this time, the first computing unit can be configured to include 5 computing units of the computing node Node0 (for example, GPU0 to GPU4), and the multiple second computing units can include 3 computing units of the computing node Node0 (for example, GPU5 to GPU7). Assuming that the size of the data to be transmitted in the first initial computing unit GPU0 is 3M, and the size of the data to be transmitted in the second initial computing unit GPU7 is 2M, the data split in GPU5 to GPU7 is 2M / 3, which is the maximum amount of data after splitting. Compared to the allocation scheme in which the first computing unit includes 4 computing units (e.g., GPU0 to GPU3) of the computing node Node0, and the multiple second computing units include 4 computing units (e.g., GPU4 to GPU7) of the computing node Node0, the maximum data volume after splitting is 3M / 4, and the maximum data volume of the first allocation scheme is smaller. Compared to the allocation scheme in which the first computing unit includes 6 computing units (e.g., GPU0 to GPU5) of the computing node Node0, and the multiple second computing units include 2 computing units (e.g., GPU6 to GPU7) of the computing node Node0, the maximum data volume after splitting is M, and the maximum data volume of the first allocation scheme is still smaller.
[0133] Subsequently, the split data in the first computing unit (GPU0 to GPU4 of Node0) and the second computing unit (GPU5 to GPU7 of Node0) can be transmitted to the computing units with corresponding serial numbers of the computing node (such as Node1) where the target computing unit is located, such as GPU0 to GPU4 of Node1 and GPU5 to GPU7 of Node1, through the second communication link of the corresponding first switch, and then these data can be merged into the target computing unit such as GPU7 of Node1.
[0134] In a specific embodiment of the present application, the multiple initial computing units may be multiple initial computing units located in different computing nodes.
[0135] refer to Figure 7 , which exemplarily shows three computing nodes Node0, Node1 and Node2 in the computing system, each of which includes 8 computing units (GPU0 to GPU7). The first initial target computing unit Node0_GPU0 is located at the computing node Node0, the second initial computing unit Node2_GPU7 is located at the computing node Node2, and the target computing unit Node1_GPU2 is located at the computing node Node1.
[0136] When the data to be transmitted of the first initial computing unit GPU0 in Node0 and the second initial computing unit GPU7 in Node2 need to be transmitted to the target computing unit GPU2 in Node1, the data to be transmitted in the first initial computing unit GPU0 can be split and distributed to multiple first computing units of Node0 (such as Figure 7 The data to be transmitted in the second initial computing unit GPU7 is split and distributed to multiple second computing units of Node2 (such as Figure 7 In the "Split 2" in the figure, the first switches corresponding to the first computing units do not overlap with the first switches corresponding to the second computing units. For example, the first computing units of Node0 may be GPU0, GPU1, and GPU2 of Node0, and the second computing units of Node2 may be GPU3 to GPU7 of Node2. At this time, the first switches (Switch0 to Switch2) corresponding to the first computing units (GPU0 to GPU2 of Node0) do not overlap with the first switches (Switch3 to Switch7) corresponding to the second computing units (GPU3 to GPU7 of Node2).
[0137] exist Figure 7 In the example shown, the number of the plurality of first computing units and the plurality of second computing units may also be determined based on the size ratio of the data to be transmitted in the first initial computing unit to the data to be transmitted in the second initial computing unit.
[0138] Subsequently, the split data in the first computing unit (GPU0 to GPU2 of Node0) and the second computing unit (GPU3 to GPU7 of Node2) can be transmitted to the computing units of corresponding serial numbers of the computing node (such as Node1) where the target computing unit is located, such as GPU0 to GPU2 of Node1 and GPU3 to GPU7 of Node1, through the second communication link of the corresponding first switch, and then these data can be merged into the target computing unit such as GPU2 of Node1.
[0139] It is understandable that, although the above embodiment only depicts a situation of two initial computing units, a similar strategy can also be used in a scenario where the number of initial computing units to transmit data is greater than 2, and no limitation is made here.
[0140] In some embodiments of the present application, there may be multiple target computing units.
[0141] In some embodiments of the present application, when data is transmitted from a single initial computing unit to multiple target computing units located in different computing units, the aforementioned step S320 may further include: broadcasting the split data from the computing unit having the split data to corresponding computing units in multiple computing nodes where the multiple target computing units are located. The broadcast is a known instruction for GPU data transmission, which can be implemented, for example, by NVIDIA's NCCL library (NVIDIA Collective Communications Library), and is not described in detail here. .
[0142] In a specific embodiment of the present application, reference Figure 8 , which exemplarily shows three computing nodes Node0, Node1 and Node2 in a computing system, each of which includes 8 computing units (GPU0 to GPU7). The computing node Node1 includes an initial computing unit GPU7, the computing node Node0 includes a target computing unit GPU0, and the computing node Node2 includes a target computing unit GPU1.
[0143] In this example, the splitting described in step S310 is performed for the initial computing unit Node1_GPU7, for example, evenly splitting it into all computing units GPU0 to GPU7 of the same node Node1 through the first communication link.
[0144] Then, the computing unit with split data, here the data of computing units GPU0 to GPU7 in the computing node Node1 where the initial computing unit is located, can be broadcasted to the corresponding computing units of the computing node where the target computing unit is located through the second communication link, for example, the data of Node1_GPU0 can be broadcasted to Node0_GPU0 and Node2_GPU0, and the same is true for other GPUs in Node1. Subsequently, the merge operation described in step S330 can be performed on the node with the target computing unit accordingly, for example, the merge operation is performed on Node0 and Node2 respectively.
[0145] This embodiment of the present invention can make full use of the topological structure of the switch to achieve multi-computing unit broadcasting without mutual interference, and although Figure 8 The example shown shows broadcasting to GPUs with the same serial number, but the embodiment of the present application still has a similar optimization effect for broadcasting to GPUs with other serial numbers, which is difficult to achieve with current technology.
[0146] It is understandable that the number of computing nodes in the embodiment of the present application may be greater than or equal to 2. At the same time, in the embodiment of the present application, the number of computing units contained in each computing node and the number of multiple initial computing units therein are not limited to the values in the above embodiment, and the present application does not limit this. At the same time, the data transmission methods in the above embodiments in the embodiment of the present application can be combined with each other in a non-contradictory manner to obtain a new embodiment.
[0147] It is understandable that when data is transmitted from an initial computing unit in the same node to a target computing unit in the same computing unit, a high-bandwidth first communication link such as an NVlink link can be used as usual to directly transmit data without splitting and merging, which is not elaborated here.
[0148] The data transmission method of the embodiment of the present application is aimed at data transmission between nodes. It splits the data to be transmitted in the initial computing unit to multiple computing units of the same computing node through the first communication link, transmits the split data from the multiple computing units with the split data to the corresponding computing units in the computing node where the target computing unit is located through their respective corresponding second communication links, and merges the split data from the corresponding computing units to the target computing unit through the first communication link in the computing node where the target computing unit is located. This can improve the utilization rate of communication links between nodes, reduce system data transmission and communication delays, improve data processing efficiency, and significantly improve the overall operating efficiency of the distributed training system.
[0149] In an embodiment of the present application, a distributed training method for a neural network model is provided, and the distributed training method can be used for ultra-large-scale neural network models, such as distributed training of large language models, and can optimize the efficiency of distributed collaborative training among multiple clusters. Similarly, the distributed training method can be applied to a distributed computing system to which the data transmission method of the embodiment of the present application can be applied, and will not be described in detail here.
[0150] In the embodiments of the present application, Fig. 9 As shown, the distributed training method may include:
[0151] S910: Performing a first training on at least one computing node to update at least part of the parameters of the neural network model, wherein the at least one computing node performing the first training includes an initial computing unit;
[0152] S920: Split the update parameter data in the initial computing unit to multiple computing units in the same computing node through the first communication link.
[0153] S930: Transmit the split parameter data from the computing units having the split parameter data to the corresponding computing units in the computing node where the target computing unit is located through the respective corresponding second communication links, wherein the initial computing unit and the target computing unit are located in different computing nodes.
[0154] S940: Merge the split parameter data from the corresponding computing unit into the target computing unit through the first communication link in the computing node where the target computing unit is located.
[0155] In some embodiments of the present application, the distributed training method may further include: performing second training on at least one computing node to further update at least part of the parameters of the neural network model, at least one computing node performing the second training includes the target computing unit having the updated parameter data, and the target computing unit performs the second training based on the updated parameter data.
[0156] In an embodiment of the present application, the distributed training refers to training a machine learning model in parallel on multiple computing resources, which allows a large-scale model or a large-scale data set to be divided into smaller parts for processing on computing units (such as GPU units) in different computing nodes (Node), thereby accelerating the training process.
[0157] In some embodiments of the present application, distributed training may cover different forms, including but not limited to data parallelism, model parallelism, or a combination of the two. Accordingly, the first and second training may also cover different forms, for example, the first and second training may be different small batch trainings in data parallelism; and / or, the first and second training may be different stages of a single batch training, for example, the first training may be a forward calculation, and the second training may be back propagation. In an embodiment of the present application, the parameters of the neural network model may be partially interpreted broadly, for example, they may include parameters for iterative updates of the model, and may also include learning parameters for gradient descent.
[0158] In a specific embodiment of the present application, Fig.10As shown, four computing nodes are shown: Node 0, Node 1, Node 2 and Node 3, each of which includes 8 GPU units. The above-mentioned distributed training method can be executed in a distributed computing system including multiple computing units of multiple computing nodes, and parameter data can be transferred between the first and second trainings. For example, after GPU 0 of computing unit Node 0 updates and obtains the latest local parameters of the model, the above-mentioned steps can be used to transfer the latest parameters to GPU 20 of computing unit Node 2. Optionally, GPU 28 of computing unit Node 3 can use its corresponding Switch to transfer the latest parameters to GPU 12 of Node 1. At least part of these computing units can optionally use the received updated parameters to perform subsequent second training.
[0159] In some embodiments of the present application, the distributed training method may refer to and combine the steps, sub-steps and features of the data transmission method.
[0160] For example, in the above step S910, the update parameter data may be evenly split to the multiple computing units. Furthermore, for example, in the above step S910, the update parameter data may also be evenly split to all computing units of the same computing node.
[0161] In some embodiments of the present application, the initial computing unit in the above training method is single, the target computing unit is single, and the data transmission is point-to-point transmission.
[0162] In some embodiments of the present application, there are multiple initial computing units. Furthermore, the multiple initial computing units include a first initial computing unit and a second initial computing unit. In some embodiments of the present application, the above step S920 may include: splitting the update parameter data in the first initial computing unit to multiple first computing units of the same computing node, and splitting the update parameter data in the second initial computing unit to multiple second computing units of the same computing node, wherein the first switches corresponding to the multiple first computing units do not overlap with the first switches corresponding to the multiple second computing units. Furthermore, the above step S920 also includes: determining the number of the multiple first computing units and the multiple second computing units based on the size ratio of the update parameter data in the first initial computing unit to the update parameter data in the second initial computing unit.
[0163] In some embodiments of the present application, there are multiple target computing units. Furthermore, the above step S930 may include: broadcasting the split parameter data from the computing unit having the split parameter data to corresponding computing units in multiple computing nodes where the multiple target computing units are located.
[0164] Through the distributed training method of the embodiment of the present application, the training tasks of large-scale models can be effectively processed in parallel on multiple computing nodes, significantly improving the training speed and efficiency. At the same time, by optimizing the parameter data transmission across nodes, the delay caused by data transmission is reduced, ensuring the continuity and consistency of model training.
[0165] In a preferred embodiment, steps, sub-steps and features of the data transmission method may be incorporated into the training method and vice versa in a non-incompatible manner.
[0166] The present application also provides a data transmission device. The data transmission device is applied to a distributed computing system, which can refer to the distributed computing system described above and will not be described in detail here. Fig.11 As shown, the data transmission device 1100 includes:
[0167] A splitting unit 1110 is configured to split the data to be transmitted in the initial computing unit to multiple computing units of the same computing node through the first communication link;
[0168] The transmission unit 1120 is configured to transmit the split data from the plurality of computing units having the split data to the corresponding computing units in the computing node where the target computing unit is located through the respective corresponding second communication links, wherein the initial computing unit and the target computing unit are located in different computing nodes;
[0169] The merging unit 1130 is configured to merge the split data from the corresponding computing unit into the target computing unit through the first communication link in the computing node where the target computing unit is located.
[0170] The method and its steps, sub-steps and features in the embodiments of the present application can be combined with the device of the embodiments of the present application in a non-contradictory manner, and the device and its components, modules, units and features in the embodiments of the present application can be combined with the method of the embodiments of the present application in a non-contradictory manner.
[0171] Optionally, an embodiment of the present application also provides a training device.
[0172] In some embodiments of the present application, an electronic device is provided, which includes a processor and a memory storing a computer program, and the processor is configured to implement any method of the embodiments of the present application when running the computer program.
[0173] Fig.12A schematic diagram of an electronic device 1200 that can be used to implement the method of an embodiment of the present application or to implement an embodiment of the present application is shown. In some embodiments, the number of electronic devices may be more or less than the number shown. In some embodiments, a single or multiple electronic devices may be used for implementation. In some embodiments, cloud or distributed electronic devices may also be used for implementation.
[0174] like Fig.12 As shown, the electronic device 1200 includes a processor 1210 and a memory 1220. The processor is used to execute programs stored in the memory, which can implement the methods, steps or functions described in the above embodiments when executed by the computer. The processor 1210 may include various types of processors, such as a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), a digital signal processor (DSP), etc. The processor 1210 and the memory 1220 are interconnected via a bus 1230. The bus 1230 can also be connected to an input / output (I / O) interface, etc.
[0175] Although not shown in the figure, the embodiments of the present application further provide a storage medium, which stores computer programs, and these computer programs are configured to execute any method of the embodiments of the present application when running.
[0176] It should be understood that all operations in the method described above are merely exemplary, and the present disclosure is not limited to any operation in the method or the order of these operations, but should cover all other equivalent transformations under the same or similar concept.
[0177] It should also be understood that all modules in the above described device can be implemented in various ways. These modules can be implemented as hardware, software, or a combination thereof. In addition, any module in these modules can be further divided into submodules or combined together functionally.
[0178] Processors have been described in conjunction with various devices and methods. These processors can be implemented using electronic hardware, computer software or any combination thereof. Whether these processors are implemented as hardware or software will depend on specific application and the overall design constraints imposed on the system. As an example, the processor provided in the present disclosure, any part of the processor or any combination of processors can be implemented as a microprocessor, a microcontroller, a digital signal processor (DSP), a field programmable gate array (FPGA), a programmable logic device (PLD), a state machine, a gate logic, a discrete hardware circuit, and other suitable processing components configured to perform the various functions described in the present disclosure. The function of the processor provided in the present disclosure, any part of the processor or any combination of processors can be implemented as software performed by a microprocessor, a microcontroller, a DSP or other suitable platforms.
[0179] Software should be broadly considered to represent instructions, instruction sets, codes, code segments, program codes, programs, subroutines, software modules, applications, software applications, software packages, routines, subroutines, objects, running threads, processes, functions, etc. Software can reside in a computer-readable medium. A computer-readable medium can include, for example, a memory, which can be, for example, a magnetic storage device (e.g., a hard disk, a floppy disk, a magnetic stripe), an optical disk, a smart card, a flash memory device, a random access memory (RAM), a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), a register, or a removable disk. Although the memory is shown as being separated from the processor in the various aspects provided in the present disclosure, the memory can also be located inside the processor (e.g., a cache or a register).
[0180] The above description is provided to enable any person skilled in the art to implement the various aspects described herein. Various modifications to these aspects are apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects. Therefore, the claims are not intended to be limited to the aspects shown herein. All structural and functional equivalents of elements of various aspects described in this disclosure that are known or to be known to those skilled in the art will be expressly included herein by reference and are intended to be covered by the claims.
Claims
1. A data transmission method, characterized in that: The data transmission method is applied to a distributed computing system, the distributed computing system includes a plurality of computing nodes, each computing node includes a plurality of computing units, the computing units in the same computing node are connected to each other via a first communication link, the distributed computing system includes a first layer switch, the first layer switch includes a plurality of first switches corresponding to the plurality of computing units of each computing node, each first switch is connected to the corresponding computing unit of each computing node via a second communication link, and the transmission speed of the first communication link is greater than the transmission speed of the second communication link; The data transmission method comprises: Splitting the data to be transmitted in the initial computing unit to multiple computing units of the same computing node through the first communication link; Transmitting the split data from the plurality of computing units having the split data to the corresponding computing units in the computing node where the target computing unit is located through the respective corresponding second communication links, wherein the initial computing unit and the target computing unit are located in different computing nodes; The split data is merged from the corresponding computing unit into the target computing unit through a first communication link in the computing node where the target computing unit is located.
2. The data transmission method according to claim 1, characterized in that: The step of splitting the data in the initial computing unit to multiple computing units of the same computing node through the first communication link includes: The data is evenly split among the plurality of computing units.
3. The data transmission method according to claim 2, characterized in that: The step of splitting the data in the initial computing unit to multiple computing units of the same computing node through the first communication link includes: The data is evenly split to all computing units of the same computing node.
4. The data transmission method according to any one of claims 1 to 3, characterized in that: The initial computing unit is single, the target computing unit is single, and the data transmission is point-to-point transmission.
5. The data transmission method according to any one of claims 1 to 3, characterized in that: There are multiple initial calculation units.
6. The data transmission method according to claim 5, characterized in that: The plurality of initial calculation units include a first initial calculation unit and a second initial calculation unit; The step of splitting the data in the initial computing unit to multiple computing units of the same computing node through the first communication link includes: Splitting the data to be transmitted in the first initial computing unit to multiple first computing units of the same computing node, and The data to be transmitted in the second initial computing unit is split into multiple second computing units of the same computing node, wherein the first switches corresponding to the multiple first computing units do not overlap with the first switches corresponding to the multiple second computing units.
7. The data transmission method according to claim 6, characterized in that: The step of splitting the data in the initial computing unit to multiple computing units of the same computing node through the first communication link further includes: The number of the plurality of first computing units and the plurality of second computing units is determined based on the size ratio of the data to be transmitted in the first initial computing unit to the data to be transmitted in the second initial computing unit.
8. The data transmission method according to any one of claims 1 to 3, characterized in that: There are multiple target computing units; The method of transmitting the split data from the computing units having the split data to the corresponding computing units in the computing node where the target computing unit is located through the respective corresponding second communication links includes: The split data is broadcasted from the computing unit having the split data to corresponding computing units in the plurality of computing nodes where the plurality of target computing units are located.
9. The data transmission method according to any one of claims 1 to 3, characterized in that: The computing unit includes a GPU, the first communication link includes an NVLink link within a computing node, and the second communication link includes at least one of communication links based on an RDMA protocol.
10. The data transmission method according to any one of claims 1 to 3, characterized in that: The distributed computing system further includes a second layer switch including a second switch connected to the plurality of first switches via a third communication link.
11. A distributed training method for a neural network model, characterized in that: The distributed training of the neural network model is implemented in a distributed computing system, the distributed computing system includes a plurality of computing nodes, each computing node includes a plurality of computing units, the computing units in the same computing node are connected to each other through a first communication link, the distributed computing system includes a first layer switch, the first layer switch includes a plurality of first switches corresponding to the plurality of computing units of each computing node, each first switch is connected to the corresponding computing unit of each computing node through a second communication link, and the transmission speed of the first communication link is greater than the transmission speed of the second communication link; The distributed training method comprises: Performing a first training on at least one computing node to update at least part of the parameters of the neural network model, wherein at least one computing node performing the first training includes an initial computing unit; Splitting the update parameter data in the initial computing unit to multiple computing units in the same computing node via the first communication link; Transmitting the split parameter data from the computing units having the split parameter data to the corresponding computing units in the computing node where the target computing unit is located through the respective corresponding second communication links, wherein the initial computing unit and the target computing unit are located in different computing nodes; The split parameter data is merged from the corresponding computing unit into the target computing unit through a first communication link in the computing node where the target computing unit is located.
12. The distributed training method according to claim 11, characterized in that: The distributed training method further includes: A second training is performed on at least one computing node to further update at least part of the parameters of the neural network model, and at least one computing node performing the second training includes the target computing unit having the updated parameter data, and the target computing unit performs the second training based on the updated parameter data.
13. The distributed training method according to claim 11 or 12, characterized in that: The step of splitting the update parameter data in the initial computing unit to multiple computing units in the same computing node through the first communication link includes: The update parameter data is evenly split into the plurality of computing units.
14. The distributed training method according to claim 13, characterized in that: The step of splitting the data in the initial computing unit to multiple computing units of the same computing node through the first communication link includes: The update parameter data is evenly split to all computing units of the same computing node.
15. The distributed training method according to claim 11 or 12, characterized in that: The computing unit includes a GPU, the first communication link includes an NVLink link within a computing node, and the second communication link includes at least one of communication links based on an RDMA protocol.
16. A data transmission device, characterized in that: The data transmission device is applied to a distributed computing system, the distributed computing system includes a plurality of computing nodes, each computing node includes a plurality of computing units, the computing units in the same computing node are connected to each other via a first communication link, the distributed computing system includes a first layer switch, the first layer switch includes a plurality of first switches corresponding to the plurality of computing units of each computing node, each first switch is connected to the corresponding computing unit of each computing node via a second communication link, and the transmission speed of the first communication link is greater than the transmission speed of the second communication link; The data transmission device comprises: A splitting unit, configured to split the data to be transmitted in the initial computing unit to multiple computing units of the same computing node through the first communication link; a transmission unit configured to transmit the split data from the plurality of computing units having the split data to corresponding computing units in the computing node where the target computing unit is located through the respective corresponding second communication links, wherein the initial computing unit and the target computing unit are located in different computing nodes; The merging unit is configured to merge the split data from the corresponding computing unit into the target computing unit through a first communication link in the computing node where the target computing unit is located.
Citation Information
Patent Citations
Data processing method and device, electronic equipment and storage medium
CN115292044A
Communication method, apparatus and device, and computer readable storage medium
CN115687233A
Method, device and system for optimizing machine learning model training
CN115860148A
Distributed model training method and device, equipment, storage medium and program product
CN115906983A
Distributed system communication scheduling method and distributed machine learning system
CN116204327A
Cited By
Integrated communication method, device, storage medium, and computer program product
WO2026098187A1
