Artificial-intelligence computing system and method

Data transmission in the artificial intelligence computing system through the optical switching network solves the problem of low communication efficiency caused by hash conflicts and traffic imbalance, achieves efficient communication between computing nodes, and improves system performance.

WO2024183460A1PCT designated stage expired Publication Date: 2024-09-12HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/071665
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-06
Filing Date
2024-01-10
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

In existing artificial intelligence computing systems, communication efficiency is low due to hash conflicts and traffic imbalance, which increases the communication time between computing nodes and wastes computing resources.

Method used

Optical switching network is used to transmit data through optical switching components, avoiding the use of hash algorithms, achieving strict non-blocking point-to-point switching, reducing communication time, and improving communication efficiency between computing nodes.

Benefits of technology

It effectively avoids hash conflicts and traffic imbalance problems, improves communication efficiency between computing nodes, reduces waiting time for computing resources, and improves system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024071665_12092024_PF_FP_ABST
    Figure CN2024071665_12092024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of optical communications. Disclosed are an artificial-intelligence computing system and method, which are used for solving the problem of relatively low communication efficiency due to hash conflicts and traffic imbalance. In the embodiments of the present application, link communication between computing nodes during the implementation of an AI data computing task is realized by means of an optical switching network. Compared with using an electrical switching device, a communication link can be determined without a hash algorithm, such that there will be no hash conflict, and the problem of traffic imbalance due to a hash conflict also does not occur, so as to avoid packet loss caused by congestion, thereby further reducing the time for communication between computing nodes and improving the communication efficiency. Each computing node supports the control of cross-links between input ports and output ports of optical switch switching assemblies in an optical switching network. During the process of a computing node performing a computing task, the switching of a link is performed according to a requirement of the computing node by means of a control unit of the computing node.
Need to check novelty before this filing date? Find Prior Art

Description

Artificial intelligence computing system and method

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on March 6, 2023, with application number 202310244351.6 and application name "An Artificial Intelligence Computing System and Method", the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The embodiments of the present application relate to the field of artificial intelligence technology, and in particular to an artificial intelligence computing system and method. Background Art

[0004] Faced with the development of various artificial intelligence scenarios and digital businesses, the demand for artificial intelligence (AI) computing power is growing exponentially. To improve the efficiency of AI model training, a parallel training method is currently adopted, that is, a method of parallel training using multiple computing nodes. In the parallel computing method, different data / models are assigned to each computing node, and the calculation of the AI ​​model is completed in parallel on multiple computing nodes, and then the results are integrated within / between computing nodes. The training completed by each computing node is only part of the task, and communication is required between computing nodes to exchange data and aggregate calculation results. Only by coordinating computing and communication in the cluster can the advantages of the high computing power of the AI ​​cluster be fully utilized. Therefore, the acceleration effect and scalability of parallel training are largely affected by the efficiency of communication between computing nodes.

[0005] Currently, a multi-level CLOS fat-tree networking architecture with electrical switching is used to implement communication between computing nodes. Specifically, the electrical switches employ a hop-by-hop store-and-forward approach. This approach uses a hash algorithm for data forwarding, which inevitably leads to hash conflicts and traffic imbalances, resulting in congestion and packet loss, and thus increased communication time between computing nodes. This increased communication time means waiting for computing resources, leading to wasted computing resources.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide an AI computing system and method to solve the problem of low communication efficiency caused by hash conflicts and traffic imbalance.

[0008] In a first aspect, an embodiment of the present application provides an artificial intelligence computing system, comprising a computing node cluster, an optical switching network, and a control device. The computing node cluster comprises K computing node clusters, each computing node cluster comprises M computing nodes, and each computing node comprises an input port and an output port. The optical switching network comprises K first optical switch switching components, K second optical switch switching components, and F optical switching components. Each of the K first optical switch switching components comprises M input ports and P output ports. Each of the K second optical switch switching components comprises P input ports and M output ports. Each of the F optical switching components comprises N input ports and N output ports. Wherein, K, M, F, and P are all positive integers; K*P=F*N. F≤P.

[0009] The M*K output ports of the M*K computing nodes in the computing node cluster are connected in a one-to-one correspondence with the M*K input ports of the K first optical switch switching components. The M*K input ports of the M*K computing nodes are connected in a one-to-one correspondence with the M*K output ports of the K second optical switch switching components.

[0010] The P*K output ports included in the K first optical switch switching assemblies are connected in a one-to-one correspondence with the F*N input ports included in the F optical switch switching assemblies, and at least the F output ports in each of the K first optical switch switching assemblies are connected to different optical switch assemblies. The F*N output ports included in the F optical switch assemblies are connected in a one-to-one correspondence with the P*K input ports included in the K second optical switch switching assemblies, and at least the F input ports in each of the K second optical switch switching assemblies are connected to different optical switch assemblies.

[0011] The control device is configured to configure, in an optical switching network, communication links between K first optical switch switching components including P*K input ports and K second optical switch switching components including P*K output ports, according to a communication mode adopted by the M*K computing nodes to complete an artificial intelligence (AI) data computing task.

[0012] The computing node cluster in this application may also be referred to as a computing node cluster, or other names may be used, and this is not limited in the embodiments of this application. In the embodiments of this application, two layers of optical switching components are deployed in an optical switching network, wherein the first switch switching component and the second optical switch switching component serve as one layer of switching components, and F optical switching components serve as another layer of optical switching components. The control device uses the communication mode of the AI ​​data computing task to configure the communication link. Compared to the use of electrical switching devices, there is no need to use a hash algorithm to determine the communication link, so there will be no hash conflict, and there will be no traffic imbalance due to hash conflicts, thereby avoiding congestion and packet loss, thereby reducing the communication time between computing nodes and improving communication efficiency.

[0013] In one possible embodiment, the first computing node cluster further includes a control unit, which is used to control the switching of the cross-link between the input port and the output port of the first optical switch switching component connected to the first computing node cluster, and / or control the switching of the cross-link between the input port and the output port of the second optical switch switching component connected to the first computing node cluster; the first computing node cluster is any computing node cluster among the K computing node clusters.

[0014] The optical switch is a fast optical switching component that supports strictly non-blocking point-to-point switching with switching speeds in the nanosecond to microsecond range. In some scenarios, during the execution of computing tasks, individual compute nodes may need to switch links to target compute nodes. The control unit of the compute node can switch links based on the needs of the compute node, thereby increasing the flexibility of the system application scenarios. Furthermore, the optical switch has switching speeds in the nanosecond to microsecond range, further improving communication efficiency between compute nodes.

[0015] In a possible implementation manner, the output port j of the first optical switch component i is connected to the input port n of the optical switch component with an index of m.

[0016] I represents the index of the first optical switch component, and j represents the output port index of the first optical switch component. i=1...K, j=1...P.

[0017] in, n=((j-1)*K+i)%N+1.

[0018] Indicates a floor operation. It can also be expressed as floor(). A%B means A modulo B.

[0019] In one possible implementation, the input port b of the ath intermediate optical switching component is connected to the output port r of the first optical switch switching component h of the input stage. a=1…F represents the index of the ath intermediate optical switching component. b=1…N represents the index of the input port of the intermediate optical switching component.

[0020] in, h=((a-1)*N+b)%K+1.

[0021] In one possible implementation, the input port b of the ath intermediate optical switching component is connected to the output port g of the second optical switch switching component 1 of the output stage. a=1…F represents the index of the ath intermediate optical switching component. b=1…N represents the index of the input port of the intermediate optical switching component.

[0022] in, l=((a-1)*N+b)%K+1.

[0023] In a possible implementation manner, the first optical switch switching assembly is an optical switch switching matrix composed of M first optical switch switching devices, each of which includes an input port and F output ports, where F*M=P.

[0024] Each first optical switch includes F output ports connected to input ports of different optical switching components.

[0025] In one possible design, the second optical switch switching assembly is an optical switch switching matrix composed of M second optical switch switching devices, each second optical switch switching device includes F input ports and one output port, and F*M=P.

[0026] Each second optical switch includes F input ports connected to output ports of different optical switching components.

[0027] In one possible implementation, the first optical switch switching assembly includes an optical switch switching matrix composed of M first optical switch switching devices and a third optical switch switching device including M input ports and M output ports. Each optical switch switching device includes one input port and F output ports, where F*M=P. The M output ports of the third optical switch switching device are connected in a one-to-one correspondence with the M input ports of the optical switch switching matrix, and the M input ports of the third optical switch switching device are connected in a one-to-one correspondence with the M output ports of the M computing nodes of the computing node cluster connected to the first optical switch switching assembly.

[0028] In one possible design, the second optical switch switching assembly includes an optical switch switching matrix composed of M second optical switch switching devices and a fourth optical switch switching device including M input ports and M output ports. Each of the second optical switch switching devices includes one input port and F output ports, where F*M=P. The M input ports of the fourth optical switch switching device are connected in a one-to-one correspondence with the M output ports of the optical switch switching matrix, and the M output ports of the fourth optical switch switching device are connected in a one-to-one correspondence with the M input ports of the M computing nodes of the computing node cluster connected to the second optical switch switching assembly.

[0029] In one possible design, each of the F optical switching components is a micromechanical optical switching device.

[0030] In one possible design, each of the F optical switching components includes H micromechanical optical switching devices, each micromechanical optical switching device includes E input ports and E output ports, and H*E=N.

[0031] In one possible design, the optical switching network is deployed using a leaf-spine network structure or a Clos network structure. The first optical switch switching component serves as an input-level optical switching component, the second optical switch switching component serves as an output-level optical switching component, and F optical switching components serve as intermediate-level optical switching components.

[0032] In a second aspect, an artificial intelligence computing method provided by an embodiment of the present application is applied to an artificial intelligence computing system, the system comprising a computing node cluster, an optical switching network, and a control device; the computing node cluster comprises K computing node clusters, each computing node cluster comprises M computing nodes, and each computing node comprises an input port and an output port;

[0033] The optical switching network includes K first optical switch switching components, K second optical switch switching components, and F optical switching components; each of the K first optical switch switching components includes M input ports and P output ports; each of the K second optical switch switching components includes P input ports and M output ports; each of the F optical switching components includes N input ports and N output ports; wherein K, M, F, and P are all positive integers; K*P=F*N;

[0034] The M*K output ports of the M*K computing nodes in the computing node cluster are connected in a one-to-one correspondence with the M*K input ports of the K first optical switch switching components; the M*K input ports of the M*K computing nodes are connected in a one-to-one correspondence with the M*K output ports of the K second optical switch switching components;

[0035] The P*K output ports included in the K first optical switch switching components are connected to the F*N input ports included in the F optical switch switching components in a one-to-one correspondence, and at least the F output ports of each of the K first optical switch switching components are connected to different optical switch components; the F*N output ports included in the F optical switch components are connected to the P*K input ports included in the K second optical switch switching components in a one-to-one correspondence, and at least the F input ports of each of the K second optical switch switching components are connected to different optical switch components;

[0036] The method comprises:

[0037] Obtain artificial intelligence AI data computing tasks;

[0038] Splitting the AI ​​data computing task and deploying it to the M*K computing nodes respectively;

[0039] According to the communication mode adopted by the M*K computing nodes to complete the artificial intelligence AI data computing task, communication links between K first optical switch switching components including P*K input ports and K second optical switch switching components including P*K output ports in the optical switching network are configured.

[0040] In one possible embodiment, the method further includes: after the first computing node sends the first computing data to the second computing node via a first communication link in the optical switching network, controlling the cross-link between the input port and the first output port of the first optical switch switching component to which the first computing node is connected to switch to a cross-link with the second output port, so that the first computing node sends the second computing data to the third computing node via the second communication link in the optical switching network; the first computing node, the second computing node, and the third computing node are any three computing nodes in the computing node cluster. The first communication link includes the cross-link between the input port and the first output port of the first optical switch switching component to which the first computing node is connected. The second communication link includes the cross-link between the input port and the second output port of the first optical switch switching component to which the first computing node is connected.

[0041] In the above design, the data sent by the computing node is controlled to reach different target computing nodes by controlling the cross links between the input port and the output port of the first optical switch switching component of the input stage.

[0042] In a possible implementation, controlling the cross-link between the input port and the first output port of the first optical switch component connected to the first computing node to be switched to a cross-link with the second output port includes:

[0043] The control unit in the first computing node controls the cross link between the input port and the first output port of the first optical switch switching component connected to the first computing node to be switched to a cross link with the second output port.

[0044] In one possible implementation, the method further includes:

[0045] After the first computing node receives the third computing data from the second computing node through the third communication link in the optical switching network, controlling the cross-link between the output port and the first input port of the second optical switch switching component connected to the first computing node to be switched to a cross-link with the second input port, so that the first computing node receives the fourth computing data from the third computing node through the fourth communication link in the optical switching network;

[0046] The first computing node, the second computing node, and the third computing node are any three computing nodes in the computing node cluster.

[0047] In the above design, the computing node is controlled to receive data from different target computing nodes by controlling the cross links between the input port and the output port of the first optical switch switching component of the output stage. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 is a schematic diagram of a possible Clos network structure;

[0049] Figure 2 is a schematic diagram of a possible leaf-spine network structure;

[0050] FIG3 is a schematic diagram of a possible data integration process;

[0051] FIG4 is a schematic diagram of a possible full exchange method flow chart;

[0052] FIG5 is a schematic diagram of the principle of a MEMS OXC device;

[0053] FIG6 is a schematic diagram of the structure of an AI computing system provided in an embodiment of the present application;

[0054] FIG7 is a schematic diagram of another AI computing system structure provided in an embodiment of the present application;

[0055] FIG8 is a schematic diagram of another possible AI computing system structure provided in an embodiment of the present application;

[0056] FIG9 is a schematic diagram of a computing node controlling an input-stage optical switch component to switch a cross-link according to an embodiment of the application;

[0057] FIG10 is another schematic diagram of a computing node controlling an input-stage optical switch component to switch a cross-link provided by an embodiment of the application;

[0058] FIG11 is a schematic diagram of the structure of an AI computing system with a leaf-spine network structure provided by an embodiment of the application;

[0059] FIG12 is a schematic diagram of the structure of another AI computing system provided in an embodiment of the present application;

[0060] FIG13 is a schematic diagram of the structure of another AI computing system provided in an embodiment of the present application;

[0061] FIG14 is a schematic diagram of the structure of another AI computing system provided in an embodiment of the present application;

[0062] FIG15 is another schematic diagram of a computing node controlling an input-level optical switch component to switch a cross-link provided by an embodiment of the application;

[0063] FIG16 is a schematic diagram of the structure of another AI computing system provided in an embodiment of the present application;

[0064] FIG17 is a flow chart of an AI calculation method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0066] The technical concepts involved in this application are first described as follows.

[0067] (1) Clos architecture:

[0068] This article primarily describes the structure of a multi-stage circuit-switched network. The core of Clos is to use multiple small, low-cost units to construct complex, large-scale networks while providing a non-blocking network. As an example, the simplest Clos network is used. Figure 1 shows a schematic diagram of a possible Clos network structure. A Clos network has a three-stage interconnected architecture, consisting of an input stage, an intermediate stage, and an output stage. The input stage includes i forwarding units, each of which has a input ports and m output ports. The intermediate stage includes m forwarding units. Each intermediate stage forwarding unit has i input ports and o output ports. The output stage includes o forwarding units. Each output stage forwarding unit has m input ports and b output ports. With appropriate rearrangement, as long as m ≥ max(a, b) is satisfied, a non-blocking path can always be found from any input to any output (rearrangement is possible without blocking).

[0069] (2) Spine-leaf architecture:

[0070] The spine-leaf architecture is a data center network topology consisting of two layers of switches: the spine and leaf layers. The leaf layer consists of access switches, which aggregate traffic from servers. These switches connect directly to the spine layer switches or the network core. The spine layer switches interconnect with all leaf switches in a full mesh topology. The spine-leaf architecture is also a Clos architecture. Because network devices typically handle bidirectional traffic, with input devices also serving as output devices, this architecture is achieved by folding the three-level Clos architecture along the middle layer, as shown in Figure 2.

[0071] Combining Figure 2 with Figure 1, we can see that if the number of uplinks (i.e., uplink ports) per leaf switch (corresponding to a in Figure 1) equals the number of spine switches (i.e., m in Figure 1), and similarly, the number of downlinks (i.e., downlink ports) per spine switch (corresponding to b in Figure 1) equals the number of leaf switches, then this architecture is a rearrangeable, non-blocking Clos architecture. The Clos architecture has a 1:1 leaf-layer convergence ratio (i.e., convergence ratio = number of uplinks per leaf switch: number of downlinks), thus demonstrating the rearrangeable, non-blocking nature of the Clos architecture.

[0072] (3) AI training:

[0073] In AI training, multiple computing nodes can be used for parallel computing to improve training efficiency. Parallel computing can be performed using data parallelism, model parallelism, or a hybrid approach.

[0074] Data Parallelism:

[0075] When the training dataset is large, data parallelism can be used across multiple compute nodes to improve training efficiency. For example, multiple copies of the same model can be deployed on different compute nodes. Different subsets of training data can be assigned to different compute nodes. For example, assuming the total number of compute nodes is K, the training dataset can be divided into K training data subsets. Each of these K training data subsets can then be assigned to K compute nodes for iterative training. After completing parallel training, the compute nodes merge the computational results of the K compute nodes according to a specific algorithmic operation. This process is called data parallelism.

[0076] In data parallelism, the network model on each compute node is identical; the only difference is that they use different input data (i.e., different subsets of the training data). After all compute nodes have completed the gradient calculation and obtained the gradient data, the average of the gradient data needs to be calculated on each compute node. This operation is often called an all-reduce, which can also be called data integration or gradient reduction.

[0077] All-reduce can be understood as a type of algorithm that integrates (reduces) data from different computing nodes and then distributes the integrated results to each computing node. In AI applications, data is often a vector or matrix, and common integration methods include summing (Sum), taking the maximum value (Max), and taking the minimum value (Min).

[0078] In data-parallel training, an all-reduce operation is required for each iteration. A possible all-reduce algorithm involves forming K compute nodes into a logical ring. A logical ring can be understood as a ring-like arrangement of K compute nodes. Currently, the topology of these K compute nodes is not necessarily a ring. The all-reduce process is performed. Figure 3 illustrates a possible data integration process. Figure 3 uses four compute nodes, compute nodes 0-3, as an example. First, each compute node divides the data to be subjected to the all-reduce operation into K parts. These K parts are then sent K times along the logical ring, one hop at a time, to the next compute node on the ring, until each compute node has a copy of the data. After receiving the data from other nodes, each compute node performs data integration to obtain the all-reduce result. These K parts are then sent K times, one hop at a time, to the next compute node on the ring, until each compute node has a complete copy of the data.

[0079] Model Parallelism:

[0080] With the emergence of large models, a single large model cannot be accommodated within a single compute node. Therefore, a single large model needs to be split into multiple sub-models, each deployed on a different compute node. This computing method of splitting a single model into different sub-models and deploying them on different compute nodes is called model parallelism. In model parallelism, different compute nodes are responsible for different parts of the network model, jointly training the same batch of data, and intermediate data during the computation process is transferred between different compute nodes.

[0081] Hybrid Parallelism:

[0082] Hybrid parallelism combines data parallelism and model parallelism during model training. A network model can be sliced ​​into different sub-models. Different parameters are then selected for each sub-model. When training a model using a training dataset, each sample only trains a portion of the network model (e.g., a sub-model), meaning only a subset of parameters are trained. Other sub-models (e.g., other network layers) in the model are copies of the same network model. For example, the Mixture of Experts (MOE) model employs a hybrid parallel approach. For any input, the MOE model uses only a small portion of the network to compute its output. With multiple sets of weights, the network can select which set to use during inference through a gating mechanism, allowing for more parameters without increasing computational cost. Each set of weights is called an "expert." Ideally, the network learns to assign specialized computational tasks to each expert. Different experts can be hosted on different compute nodes. Data can be transferred between compute nodes using an all-to-all approach.

[0083] The all-to-all method is also known as the full exchange method. In this method, each compute node sends data to any other compute node, and each node also receives data from any other node. Each compute node's receive and send buffers are arrays of data blocks. The specific operation of the all-to-all method is: The jth data block in the send buffer of compute node i is sent to compute node j. Compute node j then places the data block received from node i at the ith position in its own receive buffer. See Figure 4.

[0084] (4) Optical switching:

[0085] The core function of an optical cross-connect (OXC) is to connect optical channels from one or more input fiber ports to multiple output fiber ports. Through various switching control mechanisms, an optical signal input to one fiber port can be switched from one fiber output port to another, effectively switching the optical signal between output ports. For example, optical cross-connect technologies can be categorized into two types: micro-electro-mechanical system (MEMS) OXC fiber port switching and switch port switching.

[0086] For example, see Figure 5, which shows a schematic diagram of the principle of a MEMS OXC device. As shown in Figure 5, the optical signal received by the MEMS OXC device is input through the optical input port, reflected twice by the MEMS micromirror array, and output through the optical output port. By adjusting the angle of the MEMS micromirrors, the optical signal can be deflected, allowing it to be output from different optical output ports, achieving optical path switching. MEMS OXC devices have a large number of optical switch ports. Using a two-dimensional array of MEMS micromirrors, the number of ports can reach on the order of 400-1000. The MEMS OXC device does not process the optical signal internally, introducing no additional latency and is transparent to the data rate.

[0087] Devices that rely on switch port switching are called optical switches. They support strictly non-blocking point-to-point switching and can achieve switching speeds in the nanosecond to microsecond range. They offer three optical cross-connect specifications: 1xN, NxN, and MxP (M≠P). Optical switches are implemented using multiple optical switches.

[0088] In the embodiments of the present application, "multiple" refers to two or more. "And / or" describes the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions and cannot be understood as indicating or implying relative importance or order.

[0089] Based on the background technology, we know that the current multi-level CLOS fat-tree networking architecture used for electrical switching enables communication between computing nodes. Specifically, the electrical switches use a hop-by-hop store-and-forward approach. However, this approach inevitably leads to hash conflicts and traffic imbalance, resulting in congestion and packet loss, which in turn increases communication time between computing nodes.

[0090] Based on this, an embodiment of the present application provides an AI computing system and method to avoid hash conflicts and traffic imbalance problems, thereby improving the communication time between computing nodes.

[0091] Figure 6 shows a schematic diagram of the structure of an AI computing system provided in an embodiment of the present application. The AI ​​computing system includes a computing node cluster 100 and an optical switching network 200. The computing node cluster includes K computing node clusters, namely computing node cluster 1 to computing node cluster K. A computing node cluster may also be referred to as a computing node cluster. Each computing node cluster includes M computing nodes, namely computing node 1 to computing node M. Each computing node includes an input port and an output port.

[0092] Each computing node may include one or more processing units. A processing unit may be, for example, an application-specific integrated circuit (ASIC), such as a central processing unit (CPU), a Tensor Processing Unit (TPU) for machine learning computing tasks, a graphics processing unit (GPU), a neural-network processing unit (NPU), or other types of processing units.

[0093] For example, a compute node cluster can be a single-GPU server, a multi-GPU server, a multi-server group, or a supernode. Servers / supernodes are the core of AI infrastructure. A server can host one or more GPUs, which are the actual backbone of AI computing.

[0094] The optical switching network includes K first optical switch switching components, K second optical switch switching components, and F optical switching components. In some scenarios, the deployment method of the optical switching network can adopt a Clos network architecture or a leaf-spine network architecture. The first optical switch switching component can be understood as an input-level optical switch switching component, and the second optical switch switching component can be understood as an output-level optical switch switching component. The optical switch switching component can adopt one or more optical switch switching devices with switching speeds in the order of ns-μs. The optical switch switching component can also be called a fast optical switching block, or a fast optical switching block based on an optical switch. Of course, other names can also be used. The embodiments of the present application do not specifically limit this. All optical switch switching devices with switching speeds in the order of ns-μs (or faster switching speeds) are applicable to the present application. However, it should be noted that in some scenarios, when the switching speed requirement is lower, the optical switch switching component can also adopt other optical switch switching devices with lower speeds, or there is no limit on the switching speed of the optical switch switching component. The optical switch switching component can also be understood as an intermediate-level optical switching component. For example, the optical switching component may be a port MEMS OXC optical cross-connect, a fast optical switch switching device, or a wavelength selection OXC, etc.

[0095] For ease of description, the quantity and specifications of each component (or device) are described in Table 1 below.

[0096] Table 1

[0097] As shown in Table 1, each of the K first optical switch assemblies includes M input ports and P output ports. The specifications of the first optical switch assemblies are M×P. Each of the K second optical switch assemblies includes P input ports and M output ports. The specifications of the second optical switch assemblies are P×M. Each of the F optical switch assemblies includes N input ports and N output ports. The specifications of each optical switch assembly are N×N. K, M, F, and P are all positive integers. K, M, F, and P satisfy K*P=F*N.

[0098] The M*K output ports included in the M*K computing nodes in the computing node cluster are connected in a one-to-one correspondence with the M*K input ports included in the K first optical switch switching components. The M*K input ports included in the M*K computing nodes are connected in a one-to-one correspondence with the M*K output ports included in the K second optical switch switching components. For example, the M output ports included in the M computing nodes in computing node cluster 1 are connected in a one-to-one correspondence with the M input ports of the first optical switch switching component 1. The M input ports included in the M computing nodes in computing node cluster 1 are connected in a one-to-one correspondence with the M output ports of the second optical switch switching component 1. In some embodiments, the connection between the computing node and the first optical switch switching component or the second optical switch switching component can be an optical connection. The computing node supports input optical signals, for example, the computing node includes an optoelectronic converter and an electro-optical converter.

[0099] The P*K output ports included in the K first optical switch switching components are connected to the F*N input ports included in the F optical switching components in a one-to-one correspondence. The F*N output ports included in the F optical switching components are connected to the P*K input ports included in the K second optical switch switching components in a one-to-one correspondence. Exemplarily, F and P may satisfy F <= P. For example, when F = P, different output ports in each first optical switch switching component are connected to different optical switching components at the intermediate stage. Different input ports in each second optical switch switching component are connected to different optical switching components at the intermediate stage. Again, for example, when F < P, at least F output ports in each first optical switch switching component are connected to different optical switching components, and at least F output ports in each second optical switch switching component are connected to different optical switching components. Exemplarily, when F = P / 2, among the P output ports included in each first optical switch switching component, every two output ports can be taken as a group. The output ports belonging to different groups in each first optical switch switching component are connected to different optical switching components at the intermediate stage. The output ports belonging to the same group in each first optical switch switching component are connected to the same optical switching component at the intermediate stage. Exemplarily, when F = P / 2, among the P input ports included in each second optical switch switching component, every two input ports can be taken as a group. The input ports belonging to different groups in each second optical switch switching component are connected to different optical switching components at the intermediate stage. The input ports belonging to the same group in each second optical switch switching component are connected to the same optical switching component at the intermediate stage.

[0100] In some embodiments, the P output ports included in each first optical switch switching component may be evenly connected to the F optical switching components at the intermediate stage.

[0101] As an example, the connection of the P*K output ports of the K first optical switch switching components to the F*N input ports included in the F optical switching components may satisfy the following condition 1.

[0102] Condition 1: Let i represent the index of the first optical switch switching component, and j represent the index of the output port of the first optical switch switching component (index). i = 1...K, j = 1...P. The output port j of the first optical switch switching component i is connected to the input port n of the optical switching component with index m.

[0103] Where, n = ((j - 1)*K + i) % N + 1.

[0104] represents the floor operation. It can also be represented as floor(). A % B represents the modulo operation of A with respect to B.

[0105] In some other embodiments, the F intermediate-stage optical switching components include N input ports and N output ports. The N input ports are evenly distributed and connected to the M×P first optical switch switching components of the K input stages. The N output ports are evenly distributed and connected to the P×M second optical switch switching components of the K output stages.

[0106] As an example, the N input ports of each optical switching component of the intermediate stage are evenly connected to the K first optical switch components of the input stage, which can meet the following condition 2.

[0107] Condition 2:

[0108] a=1...F represents the index of the ath intermediate optical switching component. b=1...N represents the index of the input port of the intermediate optical switching component. The input port b of the ath intermediate optical switching component is connected to the output port r of the first optical switch switching component h of the input stage.

[0109] in, h=((a-1)*N+b)%K+1.

[0110] As another example, the N output ports of each optical switching component of the intermediate stage are evenly connected to the K second optical switch components of the output stage, which can meet the following condition 3.

[0111] Condition 3:

[0112] a=1...F represents the index of the ath intermediate optical switching component. b=1...N represents the index of the input port of the intermediate optical switching component. The input port b of the ath intermediate optical switching component is connected to the output port g of the second optical switch component l of the output stage.

[0113] in, l=((a-1)*N+b)%K+1.

[0114] In some possible implementations, the AI ​​computing system may further include a control device 300. Referring to FIG7 , another schematic diagram of the structure of an AI computing system provided in an embodiment of the present application is shown. The control device 300 is used to configure the communication links between the K first optical switch switching components including P*K input ports and the K second optical switch switching components including P*K output ports in the optical switching network according to the communication mode adopted by the M*K computing nodes to complete the AI ​​data computing task. Exemplarily, the control device 300 may configure the cross-links between the input ports and output ports of the F optical switch components belonging to the intermediate level in the optical switching network according to the communication mode. In some possible scenarios, after the initial configuration, the cross-links between the input ports and output ports of the F optical switch components belonging to the intermediate level in the optical switching network may not be switched unless in a specific scenario. Specific scenarios may include, for example, tasks that are not sensitive to switching time or fault operation and maintenance scenarios.

[0115] For example, the control device 300 obtains an AI data computing task and can split the AI ​​data computing task into multiple subtasks and deploy them to each computing node. Since AI data computing tasks are likely to be tasks with large amounts of computation and data, the splitting here can be done by first splitting the AI ​​data computing task to obtain subtasks. The specific splitting method is not limited here. For example, the task can be split in a way that adapts the AI ​​data computing task to the number or performance of computing nodes in the AI ​​computing system.

[0116] The communication mode of AI data computing tasks may include one or more of the following: the parallel mode of computing nodes, the mode of data (or traffic) transmission between computing nodes, etc. The parallel mode can be a data parallel mode, a model parallel mode, or a hybrid parallel mode. In the model parallel mode, a horizontal split network model or a vertical split network model can be used. The mode of data (or traffic) transmission between computing nodes can be determined based on different collective communication operators. For example, collective communication operators can be all-to-all, all reduce, etc.

[0117] Communication traffic or data in AI scenarios can exhibit certain regularity or periodicity through clearly defined collective communication operators and parallel patterns. For example, the communication pattern in each iteration of AI network model training is the same.

[0118] In some possible application scenarios, a user can generate an AI data computing task on a user device and send it to the AI ​​computing system. The AI ​​computing system can receive the AI ​​data computing task sent by the user device via a communication network. The communication network can be, for example, a local area network, a wide area network, the Internet, a mobile network, or a combination thereof. The AI ​​data computing task can be a task to train a network model or a task to use a network model. The size of the computing node cluster required for the AI ​​data computing task can also be specified by the user. In this application, the size of the computing node cluster required for the AI ​​data computing task is M*K.

[0119] The aforementioned control device can be understood as a centralized controller, serving as a dispatch center to schedule resources on the control plane. In some embodiments, the control device can store information such as the interconnection topology of the AI ​​computing system's components, resource usage status, and so on.

[0120] The control device may include one or more processors. The processor may be a general-purpose processor or a dedicated processor. For example, it may be a baseband processor or a central processing unit. The baseband processor may be used to process communication protocols and communication data, while the central processing unit may execute software programs and process data from the software programs. The control device may include a transceiver to implement signal input (reception) and output (transmission).

[0121] The control device may include one or more processors, which may implement resource scheduling, control, or configuration of the optical switching network. Optionally, in addition to implementing the methods of the embodiments shown above, the processor may also implement other functions. Optionally, in one design, the processor may execute instructions so that the control device performs resource scheduling, control, or configuration of the optical switching network. The instructions may be stored in whole or in part within the processor, or in whole or in part in a memory coupled to the processor. In another possible design, the control device may also include circuits, which may implement resource scheduling, control, or configuration of the optical switching network.

[0122] In another possible design, the control device may include one or more memories storing instructions that can be executed on a processor, enabling the control device to schedule resources and control or configure the optical switching network. Optionally, the memory may also store data. The optional processor may also store instructions and / or data. For example, one or more memories may store information such as the interconnection topology of components of the AI ​​computing system, resource occupancy status, and so on. The processor and memory may be provided separately or integrated.

[0123] It should be noted that the processor in the embodiments of the present application can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above-mentioned method embodiment can be completed by hardware integrated logic circuits in the processor or by software instructions. The above-mentioned processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above-mentioned method.

[0124] It will be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that memory of the systems and methods described herein is intended to comprise, but not be limited to, these and any other suitable types of memory.

[0125] In some possible embodiments, each of the K computing node clusters may include a control unit. Referring to FIG8 , a schematic diagram of another possible AI computing system structure provided in an embodiment of the present application is shown. Taking the first computing node cluster as an example, the first computing node cluster is any computing node cluster among the K computing node clusters. The first computing node cluster includes a control unit. In one possible manner, the control unit may control the switching of the cross-link between the input port and the output port of the first optical switch switching component to which the first computing node cluster is connected. In this manner, the data of each computing node may be controlled to go to different other computing nodes. Referring to FIG8 , taking computing node 1 in computing node cluster 1 as an example, the control unit in computing node 1 in computing node cluster 1 may control the destination computing node of the data sent by computing node 1 by controlling the cross-link between the input port and the output port of the first optical switch switching component 1.

[0126] For example, see Figure 9, which illustrates a schematic diagram of a computing node controlling an input-level optical switch component switching cross-links according to an embodiment of the present invention. After computing node 1 in computing node cluster 1 sends computing data 1 to computing node 2 in computing node cluster 2 via a first communication link in the optical switching network, computing node 1 in computing node cluster 1 needs to continue sending computing data 2 to computing node 1 in computing node cluster 3. Computing node 1 in computing node cluster 1 then uses a control unit to control the switching of cross-links between the input port and output port of the first optical switch component 1, thereby enabling computing node 1's data to be sent to different destination computing nodes. For example, the input port in the first optical switch component 1 connected to computing node 1 in computing node cluster 1 is the first input port. The cross-link between the first input port and the first output port corresponds to the first communication link, meaning that the destination computing node in the optical switching network is computing node 2 in computing node cluster 2. The cross-link between the first input port and the second output port corresponds to the second communication link, meaning that the destination computing node in the optical switching network is computing node 1 in computing node cluster 3. Based on this, the control unit sends a control signal to first optical switch component 1, causing first optical switch component 1 to switch the switching link between the first input port and the first output port and the cross-link between the first input port and the second output port. Computing node 1 in computing node cluster 1 thus sends computing data 2 to computing node 1 in computing node cluster 3 via the second communication link.

[0127] In another possible approach, the control unit can control the switching of crosslinks between the input and output ports of the second optical switch assembly to which the first computing node cluster is connected. In this approach, each computing node can be controlled to receive data from different computing nodes. As shown in Figure 8 , taking computing node 1 in computing node cluster 1 as an example, the control unit in computing node 1 in computing node cluster 1 can control which other computing node computing node 1 receives data from by controlling the crosslink between the input and output ports of the second optical switch assembly 1.

[0128] For example, see Figure 10, which shows another schematic diagram of a computing node controlling an input-level optical switch component switching cross-links according to an embodiment of the present invention. After computing node 1 in computing node cluster 1 receives computing data a from computing node 2 in computing node cluster 2 via the third communication link in the optical switching network, computing node 1 in computing node cluster 1 needs to continue receiving computing data b from computing node 1 in computing node cluster 3. Computing node 1 in computing node cluster 1 then uses a control unit to control the switching of cross-links between the input port and output port of the second optical switch component 1, enabling computing node 1 to receive computing data from different source computing nodes. For example, the input port of the second optical switch component 1 connected to computing node 1 in computing node cluster 1 is the second input port. The cross-link between the second input port and the third output port corresponds to the third communication link, meaning that the source computing node in the optical switching network is computing node 2 in computing node cluster 2. The cross-link between the second input port and the fourth output port corresponds to the fourth communication link, meaning that the source computing node in the optical switching network is computing node 1 in computing node cluster 3. Based on this, the control unit sends a control signal to second optical switch component 1, causing second optical switch component 1 to switch the switching link between the second input port and the third output port to a cross-link between the second input port and the fourth output port. Computing node 1 in computing node cluster 1 thus receives computing data b from computing node 1 in computing node cluster 3 via the fourth communication link.

[0129] In another possible embodiment, the control unit can control the switching of the cross-link between the input port and the output port of the first optical switch switching component to which the first computing node cluster is connected, and control the switching of the cross-link between the input port and the output port of the second optical switch switching component to which the first computing node cluster is connected. In this embodiment, the data of each computing node can be controlled to go to different other computing nodes. As shown in Figure 8, taking computing node 1 in computing node cluster 1 as an example, the control unit in computing node 1 in computing node cluster 1 can control which other computing node computing node 1 receives data from by controlling the cross-link between the input port and the output port of the first optical switch switching component 1. The control unit in computing node 1 in computing node cluster 1 can also control which other computing node computing node 1 receives data from by controlling the cross-link between the input port and the output port of the second optical switch switching component 1.

[0130] In some possible application scenarios, the first optical switch optical switching component and the second optical switch switching component connecting the same computing node cluster can be deployed in the same optical switch or in different optical switches. Different optical switching components can also be deployed in different optical switches. In some embodiments, the first optical switch optical switching component and the second optical switch switching component connecting the same computing node cluster are deployed in the same optical switch, and different optical switching components are deployed in different optical switches. These optical switches can be deployed according to the leaf-spine network structure, as shown in Figure 11. The optical switches deploying the first optical switch switching component and the second optical switch component belong to the leaf-layer optical switches, and the optical switches deploying the optical switching components belong to the spine-layer optical switches.

[0131] In the embodiments of the present application, the first optical switch assembly and / or the second optical switch assembly can be implemented by a single M×P optical switch component, or by multiple optical switch components of smaller specifications. The intermediate N×N optical switch assembly can be implemented by a single N×N optical switch component, or by multiple optical switch components of smaller specifications.

[0132] Referring to FIG12 , another schematic diagram of the structure of an AI computing system provided in an embodiment of the present application is shown. In FIG12 , the first optical switch switching component and the second optical switch switching component are each taken as an example to include multiple optical switch switching devices. For example, the K first optical switch switching components each include M optical switch switching devices with a specification of 1×F. The K second optical switch switching components each include M optical switch switching devices with a specification of F×1. For ease of distinction, the optical switch switching device included in the first optical switch switching component is referred to as the first optical switch switching device, and the optical switch switching device included in the second optical switch switching component is referred to as the second optical switch switching device. The first optical switch switching device includes 1 input port and F output ports. The second optical switch switching device includes F input ports and 1 output port. Wherein, M and F satisfy M*F=P.

[0133] As shown in Figure 12, the M×P input-stage first optical switch assembly is an input-stage optical switch matrix composed of M 1×F first optical switch components. The M input-stage first optical switch components correspond one-to-one to the M compute nodes in the compute node cluster. That is, each compute node is connected to a single input port of a 1×F input-stage first optical switch component. The F output ports of each 1×F input-stage first optical switch component are connected to F N×N optical switch components in the intermediate stage. M*K=N is satisfied between M and K.

[0134] The P×M output-stage second optical switch assembly is an output-stage optical switch matrix consisting of M F×1 first optical switch components. Each of the M output-stage second optical switch components corresponds one-to-one to the M compute nodes in the compute node cluster. That is, the output port of each compute node is connected to the only output port of a second optical switch component in an F×1 output stage. The F input ports of each F×1 output-stage second optical switch component are connected to F N×N optical switch components in the intermediate stage. M*K=N is satisfied between M and K.

[0135] Referring to FIG13 , another schematic diagram of the AI ​​computing system structure provided by an embodiment of the present application is shown. In FIG13 , the intermediate-level N×N optical switching component is implemented by multiple optical switching devices of smaller specifications. Take the optical switching device as an example using a micromechanical optical switching device (MEMS OXC). Each N×N optical switching component includes H micromechanical optical switching devices of specifications E×E. H*E=N. Wherein, 1≤H≤M. In FIG13 , the first optical switch switching component uses an M×P first optical switch switching device, and the second optical switch switching component uses a P×M second optical switch switching device as an example. The P output ports of each first optical switch switching device are evenly connected to H*F micromechanical optical switching devices. F<=P. Optionally, H*F=P, then the P output ports of each first optical switch switching device are connected to different micromechanical optical switching devices. In addition, it should be noted that the specifications of the number of optical switching devices included in different intermediate-level optical switching components can be the same or different, and the embodiment of the present application does not specifically limit this. In the optical switching network shown in FIG13 , a computing node can support fast switching communications with a maximum of F*M-1 computing nodes.

[0136] Referring to FIG14 , another schematic diagram of the structure of an AI computing system provided in an embodiment of the present application is shown. In FIG14 , the intermediate-level N×N optical switching component is implemented by a plurality of optical switching devices of smaller specifications. Take the optical switching device using a micromechanical optical switching device (MEMS OXC) as an example. Each N×N optical switching component includes H micromechanical optical switching devices of specifications E×E. H*E=N. In FIG14 , the first optical switch switching component of the M×P input stage uses M 1×F first optical switch switching devices, and the second optical switch switching component of the P×M output stage uses M F×1 second optical switch switching devices as an example.

[0137] The first optical switch components of the M 1×F input stages correspond one-to-one with the M computing nodes of the computing node cluster. That is, one computing node is connected to the only input port of the first optical switch component of a 1×F input stage. The F output ports of the first optical switch component of each 1×F input stage are connected to the F optical switching components of the intermediate stage. One output port of the first optical switch component is connected to a micromechanical optical switch component in an intermediate stage optical switching component. Each intermediate stage optical switching component contains H micromechanical optical switches, where 1≤H≤M, and each micromechanical optical switch component has E input ports and E output ports. The F output ports of the first optical switch component of each input stage are connected to micromechanical optical switches in optical switching components belonging to different intermediate stages. The F input ports of the second optical switch component of each output stage are connected to micromechanical switches in optical switching components belonging to different intermediate stages.

[0138] As an example, i=1…K represents the first optical switch switching component i of the i-th input stage, j=1…M represents the first 1×F optical switch switching device of the j-th input stage within the first optical switch switching component, and q represents the q-th output port of the first 1×F optical switch switching device of the input stage. Then, the q-th output port of the first optical switch switching device j of the j-th 1×F input stage of the first optical switch switching component i of the i-th input stage is connected to the ((j-1)*K+i)%E-th input port of the micromechanical optical switch device of the floor(((j-1)*K) / E)+1th intermediate stage of the q-th intermediate stage optical switch component.

[0139] The output port of the intermediate-stage micromechanical optical switching device is interconnected with the first optical switch switching assembly of the output stage. The F input ports of each F×1 first optical switch switching device are connected to the output ports of the F optical switch components of the intermediate stage, and one of the F input ports of the first optical switch switching device is interconnected with a micromechanical optical switching device in one of the intermediate-stage optical switch components.

[0140] As an example, x=1…K represents the second optical switch switching component x of the x-th output stage, y=1…M represents the F×1 second optical switch switching device of the y-th output stage within the second optical switch switching component x, and z represents the z-th output port of the second optical switch switching device of the output stage F×1. Then, the z-th input port of the second optical switch switching device of the y-th F×1 output stage of the second optical switch switching component of the x-th output stage is connected to the ((y-1)*K+×)%N-th output port of the micromechanical optical switch device of the floor(((y-1)*K) / N)+1th intermediate stage of the z-th intermediate stage optical switch component.

[0141] One output port of the F×1 second optical switch switching device of the output stage is connected to one computing node, that is, the M output stage second optical switch switching devices in the second optical switch switching assembly are connected one-to-one to the M computing nodes of the computing node cluster.

[0142] The AI ​​computing system shown in FIG14 above supports a computing node to quickly switch communications with up to F-1 computing nodes in the other computing node cluster.

[0143] For example, see Figure 15, which shows another schematic diagram of a computing node controlling an input-level optical switch component switching cross-links provided in an embodiment of the application. After computing node 1 in computing node cluster 1 sends computing data 1 to computing node 2 in computing node cluster 2 via communication link 1 in the optical switching network, computing node 1 in computing node cluster 1 needs to continue sending computing data 2 to computing node 3 in computing node cluster 3. Computing node 1 in computing node cluster 1 then uses a control unit to control the switching of cross-links between the input port and the output port of the first optical switch switching device 1 in the first optical switch switching component 1, thereby enabling computing node 1's data to be sent to different destination computing nodes. For example, the input port of the first optical switch switching device 1 included in the first optical switch switching component 1, which is connected to computing node 1 in computing node cluster 1, is input port a. The cross-link between input port a and output port a of the first optical switch switching device 1 included in the first optical switch switching component 1 corresponds to communication link 1, meaning that the destination computing node in the optical switching network is computing node 2 in computing node cluster 2. The crosslink between input port a and output port b of the first optical switch switching device 1 included in the first optical switch switching assembly 1 corresponds to communication link 2. That is, the destination computing node of the optical switching network is computing node 3 in computing node cluster 3. Based on this, the control unit sends a control signal to the first optical switch switching assembly 1, causing it to switch the switching link between input port a and output port a to a crosslink between input port a and output port b. Computing node 1 in computing node cluster 1 thus sends computing data 2 to computing node 3 in computing node cluster 3 via communication link 2.

[0144] Referring to Figure 16, another schematic diagram of the structure of an AI computing system provided for an embodiment of the present application. In Figure 16, the intermediate-level N×N optical switching component is implemented by a plurality of smaller-sized optical switching devices. Take the optical switching device as an example using a micromechanical optical switching device (MEMS OXC). Each N×N optical switching component includes H micromechanical optical switching devices of specifications E×E. H*E=N. In Figure 16, the first optical switch switching component of the M×P input stage includes a first optical switch switching matrix composed of M 1×F first optical switch switching devices and an M×M third optical switch switching device, and the second optical switch switching component of the P×M output stage includes a second optical switch switching matrix composed of M F×1 second optical switch switching devices and an M×M third optical switch switching device.

[0145] The M output ports of the third optical switch switching device are connected in a one-to-one correspondence with the M input ports of the first optical switch switching matrix, and the M input ports of the third optical switch switching device are connected in a one-to-one correspondence with the M output ports of the M computing nodes of the computing node cluster connected to the first optical switch switching assembly. The M input ports of the fourth optical switch switching device are connected in a one-to-one correspondence with the M output ports of the second optical switch switching matrix, and the M output ports of the fourth optical switch switching device are connected in a one-to-one correspondence with the M input ports of the M computing nodes of the computing node cluster connected to the second optical switch switching assembly.

[0146] The connection relationship between the first optical switch switching component of the input stage, the second optical switch switching component of the output stage and the optical switching component of the intermediate stage can be referred to the relevant description of FIG14 and will not be repeated here.

[0147] In Figure 16, based on Figure 14, M×M optical switch components are added to the first optical switch assembly and the second optical switch assembly, respectively. Compared to Figure 14, the number of switching objects can be expanded by a factor of M. The AI ​​computing system provided in Figure 16 supports fast switching communication between a computing node and up to F*M-1 other computing nodes.

[0148] FIG17 is a flow chart of an artificial intelligence computing method provided in an embodiment of the present application. The method is applied to an artificial intelligence computing system. The AI ​​computing system is as described above and will not be further described here.

[0149] 1701, obtaining an artificial intelligence (AI) data computing task. The AI ​​computing system may receive the AI ​​data computing task sent by the user equipment via the communication network.

[0150] 1702. Split the AI ​​data computing task and deploy it to the M*K computing nodes respectively.

[0151] 1703. Configure communication links between K first optical switch switching components including P*K input ports and K second optical switch switching components including P*K output ports in the optical switching network according to the communication mode adopted by the M*K computing nodes to complete the artificial intelligence (AI) data computing task.

[0152] In one possible embodiment, the method further includes: after the first computing node sends the first computing data to the second computing node via a first communication link in the optical switching network, controlling the cross-link between the input port and the first output port of the first optical switch switching component to which the first computing node is connected to switch to a cross-link with the second output port, so that the first computing node sends the second computing data to the third computing node via the second communication link in the optical switching network; the first computing node, the second computing node, and the third computing node are any three computing nodes in the computing node cluster. The first communication link includes the cross-link between the input port and the first output port of the first optical switch switching component to which the first computing node is connected. The second communication link includes the cross-link between the input port and the second output port of the first optical switch switching component to which the first computing node is connected.

[0153] In the above design, the data sent by the computing node is controlled to reach different target computing nodes by controlling the cross links between the input port and the output port of the first optical switch switching component of the input stage.

[0154] In a possible implementation, controlling the cross-link between the input port and the first output port of the first optical switch component connected to the first computing node to be switched to a cross-link with the second output port includes:

[0155] The control unit in the first computing node controls the cross link between the input port and the first output port of the first optical switch switching component connected to the first computing node to be switched to a cross link with the second output port.

[0156] In one possible implementation, the method further includes:

[0157] After the first computing node receives the third computing data from the second computing node through the third communication link in the optical switching network, controlling the cross-link between the output port and the first input port of the second optical switch switching component connected to the first computing node to be switched to a cross-link with the second input port, so that the first computing node receives the fourth computing data from the third computing node through the fourth communication link in the optical switching network;

[0158] The first computing node, the second computing node, and the third computing node are any three computing nodes in the computing node cluster.

[0159] In the above design, the computing node is controlled to receive data from different target computing nodes by controlling the cross links between the input port and the output port of the first optical switch switching component of the output stage.

[0160] The embodiment of the present application provides a large-scale all-optical switching computing power cluster built based on two slow / fast switching devices: large-capacity port MEMS optical switching and fast optical switching devices (optical switch switching components). The two optical switches meet specific connection methods, enabling large-port MEMS optical switching to support larger computing cluster scales (number of NPUs / GPUs), such as 100k+ nodes. The fast optical switching device supports fast switching response to ensure network communication flexibility. The scheduling control mechanism uses application communication feature extraction (communication mode), pre-configured connection paths for the input and output ports of large-capacity port MEMS optical switching, to build high-speed channels in advance, and local computing nodes to control fast optical switching routing in real time. Through the collaboration of the above three, an end-to-end high-speed path is quickly established to support application congestion-free and ultra-low latency communication, significantly improving cluster computing power. In addition, the cluster system is an all-optical switching network with protocol independence, supporting smooth evolution of bandwidth 400G / 800G / 1.6T, without the need to upgrade and replace network equipment (computing nodes), to build the next generation of more competitive cluster networks.

[0161] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0162] The present application is described with reference to the flow chart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart flow or multiple flows and / or one box or multiple boxes of the block diagram.

[0163] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0164] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0165] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application also intends to include these modifications and variations.

Claims

1. An artificial intelligence computing system, characterized in that: Includes computing node clusters, optical switching networks, and control equipment; The computing node cluster includes K computing node clusters, each computing node cluster includes M computing nodes, and each computing node includes an input port and an output port; The optical switching network includes K first optical switch switching components, K second optical switch switching components and F optical switch components; each of the K first optical switch switching components includes M input ports and P output ports; each of the K second optical switch switching components includes P input ports and M output ports; each of the F optical switch components includes N input ports and N output ports; wherein K, M, F and P are all positive integers; K*P=F*N; The M*K output ports included in the M*K computing nodes in the computing node cluster are connected to the M*K input ports included in the K first optical switch switching components in a one-to-one correspondence; the M*K input ports included in the M*K computing nodes are connected to the M*K output ports included in the K second optical switch switching components in a one-to-one correspondence; The P*K output ports included in the K first optical switch switching components are connected to the F*N input ports included in the F optical switch switching components in a one-to-one correspondence, and at least the F output ports in each of the K first optical switch switching components are connected to different optical switch components; the F*N output ports included in the F optical switch components are connected to the P*K input ports included in the K second optical switch switching components in a one-to-one correspondence, and at least the F input ports in each of the K second optical switch switching components are connected to different optical switch components; The control device is used to configure the communication links between K first optical switch switching components including P*K input ports and K second optical switch switching components including P*K output ports in the optical switching network according to the communication mode adopted by the M*K computing nodes to complete the artificial intelligence AI data computing task.

2. The system according to claim 1, characterized in that The first computing node cluster further includes a control unit, the control unit being used to control switching of a cross link between an input port and an output port of a first optical switch switching component connected to the first computing node cluster, and / or controlling switching of a cross link between an input port and an output port of a second optical switch switching component connected to the first computing node cluster; The first computing node cluster is any computing node cluster among the K computing node clusters.

3. The system according to claim 1 or 2, characterized in that: The first optical switch switching component is an optical switch switching matrix composed of M first optical switch switching devices, each of which includes an input port and F output ports, where F*M=P.

4. The system according to any one of claims 1 to 3, characterized in that: The second optical switch switching assembly is an optical switch switching matrix composed of M second optical switch switching devices, each of which includes F input ports and one output port, where F*M=P.

5. The system according to claim 1 or 2, characterized in that: The first optical switch switching component includes an optical switch switching matrix composed of M first optical switch switching devices and a third optical switch switching device including M input ports and M output ports, each optical switch switching device includes an input port and F output ports, F*M=P, the M output ports included in the third optical switch switching device are connected to the M input ports of the optical switch switching matrix in a one-to-one correspondence, and the M input ports included in the third optical switch switching device are connected to the M output ports included in the M computing nodes of the computing node cluster corresponding to the first optical switch switching component in a one-to-one correspondence.

6. The system according to any one of claims 1 to 2 and 5, characterized in that: The second optical switch switching component includes an optical switch switching matrix composed of M second optical switch switching devices and a fourth optical switch switching device including M input ports and M output ports, each of the second optical switch switching devices includes an input port and F output ports, F*M=P, the M input ports included in the fourth optical switch switching device are connected one-to-one with the M output ports of the optical switch switching matrix, and the M output ports included in the fourth optical switch switching device are connected one-to-one with the M input ports included in the M computing nodes of the computing node cluster corresponding to the second optical switch switching component.

7. The system according to any one of claims 1 to 6, characterized in that: Each of the F optical switching components is a micromechanical optical switching device.

8. The system according to any one of claims 1 to 6, characterized in that: Each of the F optical switching components includes H micromechanical optical switching devices, each micromechanical optical switching device includes E input ports and E output ports, and H*E=N.

9. The system according to any one of claims 1 to 8, characterized in that: The optical switching network is deployed using a leaf-spine network structure.

10. An artificial intelligence computing method, characterized in that: Applied to an artificial intelligence computing system, the system includes a computing node cluster, an optical switching network, and a control device; the computing node cluster includes K computing node clusters, each computing node cluster includes M computing nodes, and each computing node includes an input port and an output port; The optical switching network includes K first optical switch switching components, K second optical switch switching components and F optical switch components; each of the K first optical switch switching components includes M input ports and P output ports; each of the K second optical switch switching components includes P input ports and M output ports; each of the F optical switch components includes N input ports and N output ports; wherein K, M, F and P are all positive integers; K*P=F*N; The M*K output ports included in the M*K computing nodes in the computing node cluster are connected to the M*K input ports included in the K first optical switch switching components in a one-to-one correspondence; the M*K input ports included in the M*K computing nodes are connected to the M*K output ports included in the K second optical switch switching components in a one-to-one correspondence; The P*K output ports included in the K first optical switch switching components are connected to the F*N input ports included in the F optical switch switching components in a one-to-one correspondence, and at least the F output ports in each of the K first optical switch switching components are connected to different optical switch components; the F*N output ports included in the F optical switch components are connected to the P*K input ports included in the K second optical switch switching components in a one-to-one correspondence, and at least the F input ports in each of the K second optical switch switching components are connected to different optical switch components; The method comprises: Obtain artificial intelligence AI data computing tasks; Splitting the AI ​​data computing task and deploying them to the M*K computing nodes respectively; According to the communication mode adopted by the M*K computing nodes to complete the artificial intelligence AI data computing task, the communication links between the K first optical switch switching components including P*K input ports and the K second optical switch switching components including P*K output ports in the optical switching network are configured.

11. The method according to claim 10, characterized in that The method further comprises: After the first computing node sends the first computing data to the second computing node through the first communication link in the optical switching network, control the cross link between the input port and the first output port of the first optical switch switching component connected to the first computing node to switch to a cross link with the second output port, so that the first computing node sends the second computing data to the third computing node through the second communication link in the optical switching network; The first computing node, the second computing node, and the third computing node are any three computing nodes in the computing node cluster.

12. The method according to claim 11, characterized in that Controlling the cross link between the input port of the first optical switch switching component connected to the first computing node and the first output port to be switched to a cross link with the second output port, comprising: The control unit in the first computing node controls the cross link between the input port and the first output port of the first optical switch switching component connected to the first computing node to be switched to a cross link with the second output port.

13. The method according to any one of claims 10 to 12, characterized in that: The method further comprises: After the first computing node receives the third computing data from the second computing node through the third communication link in the optical switching network, control the cross link between the output port of the second optical switch switching component connected to the first computing node and the first input port to be switched to a cross link with the second input port, so that the first computing node receives the fourth computing data from the third computing node through the fourth communication link in the optical switching network; The first computing node, the second computing node, and the third computing node are any three computing nodes in the computing node cluster.

Citation Information

Patent Citations

  • Large-scale strict non-blockage light-crossing connection matrix structure and control method thereof

    CN101277547A

  • Particle model faced multi-tier direct-connection cluster paralleling computing system

    CN101311917A

  • Optical interconnection network system and communication method in supercomputer

    CN106851442A

  • Technique for computing pathways in a multi-stage switch fabric through exploitation of symmetrical links

    EP1326384A2

  • Efficiently interconnecting a plurality of computing nodes to form a circuit-switched network

    US20220140934A1

Cited By

  • Calculation method and device for assisting networking of intelligent calculation center

    CN119892658A

  • Optical circuit switching method, lightpath control method, and optical interconnect system

    WO2026158032A1

  • Channel allocation method and related apparatus

    WO2026187245A1