AI training inference server, system and method
By using AI chips and topology management modules in the AI training inference server, the problems of low computing power, high power consumption and high cost in traditional AI computing are solved, efficient and low-latency AI computing is achieved, and the need for cloud dependence is reduced. .
Patent Information
- Application Number
- CN201910784753.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-23
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2039-08-23
AI Technical Summary
Traditional AI algorithms rely on CPU and GPU for calculation, resulting in low computing power, high power consumption and high cost. The algorithm and data need to be uploaded to the cloud server to achieve sufficient computing power and response time, but this has high power consumption, high cost High and latency issues.
An AI training inference server is designed, which adopts a mainboard and backplane structure, connects to the AI inference blade through the CPCI-Express backplane, and uses the AI chip to perform calculations. The AI chip has dedicated instructions for AI algorithms, with higher computing power, power consumption and cost. Lower, and the number of AI inference and training blades can be flexibly configured through the topology management module to adapt to computing needs.
It improves the computing power of AI computing, reduces power consumption and costs, shortens information transmission delays, and improves the flexibility and reliability of the system.
Smart Images

Figure CN110413564B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of artificial intelligence technology, and specifically to an AI training inference server, system and method. Background Art
[0002] AI (Artificial Intelligence) technology is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. AI algorithms can intelligently identify information such as faces, sounds and text from videos or pictures. AI technology is mainly composed of servers such as reasoning, training, control and communication.
[0003] In the process of implementing the embodiments of the present invention, the inventors found that traditional AI algorithms are generally calculated by CPU (Central Processing Unit) and GPU (Graphics Processing Unit). However, traditional CPUs and GPUs have many irrelevant instructions, and there are no dedicated instructions for AI algorithms, which leads to low computing power, high power consumption and high cost of traditional AI technical solutions. Therefore, most of the current AI technologies upload algorithms and data to cloud servers, and use the cloud server's super computing power and massive storage technologies to achieve the computing power and response time required by AI technology. However, this method has disadvantages such as high power consumption, high cost and large delay. Summary of the invention
[0004] In view of the above problems, embodiments of the present invention provide an AI training inference server, system and method, which overcome the above problems or at least partially solve the above problems.
[0005] According to one aspect of an embodiment of the present invention, there is provided an AI training inference server, the server comprising: a mainboard, a backplane and at least one AI inference blade, wherein: the mainboard is mainly composed of a CPU, the mainboard is connected to the backplane, and is used to send AI software algorithms and data through the backplane; the backplane is provided with a slot; the AI inference blade is plugged into the slot, the AI inference blade is mainly composed of at least one first programmable chip, and each of the first programmable chips is connected to at least one AI chip; the AI inference blade is used to receive the AI software algorithm and data, and obtain calculation results based on the AI software algorithm and data, and send the calculation results to the mainboard through the backplane; the mainboard is also used to receive the calculation results through the backplane, and obtain inference results based on the calculation results.
[0006] In an optional manner, the backplane is a CPCI-Express backplane, which has a hot-swappable function; the CPU is used to configure the mainboard as a master device, the first programmable chip is used to configure the AI inference blade as a slave device, and the CPCI-Express backplane is used to enable the master device and the slave device to communicate with each other.
[0007] In an optional manner, the server also includes: at least one AI training blade, which is plugged into the slot and is used to receive the AI software algorithm and data sent by the motherboard, obtain training results based on the AI software algorithm and data, and transmit the training results to the AI reasoning blade through the backplane.
[0008] In an optional manner, the AI training blade is mainly composed of at least one second programmable chip, and each of the second programmable chips is connected to at least one memory storage chip; the second programmable chip is used to configure the AI training blade as a master device when the AI training blade obtains the training result.
[0009] In an optional manner, the number of the mainboards is at least 2, and data is transmitted between the mainboards via the CPCI-Express backplane.
[0010] In an optional manner, the server further includes a power blade and a redundant power blade, and the power blade and the redundant power blade are plugged into the slot.
[0011] In an optional manner, the server also includes a topology management module, which is plugged into the slot and is used to configure the mainboard, AI inference blade and AI training blade as a master device or a slave device, and to configure the topological relationship between the mainboard, AI inference blade and AI training blade.
[0012] According to another aspect of an embodiment of the present invention, there is provided an AI training and reasoning service system, comprising: a network switch, a general server and at least one AI reasoning server; the network switch is respectively connected to the general server and the AI reasoning server for mutual communication, the general server is used to send AI software algorithms and data to the AI reasoning server through the network switch, the AI reasoning server is used to obtain calculation results through the AI software algorithms and data, and return the calculation results to the general server through the network switch, and the general server is also used to obtain reasoning results based on the calculation results.
[0013] In an optional manner, the system also includes at least one AI training server, which is communicatively connected to the network switch and is used to receive the AI software algorithm and data sent by the general server through the network switch, obtain training results based on the AI software algorithm and data, and transmit the training results to the AI inference server through the network switch.
[0014] In an optional manner, the system also includes a supercomputer, which is communicatively connected to the network switch, and is used to receive the AI software algorithm and data sent by the general server through the network switch, obtain training results based on the AI software algorithm and data, and transmit the training results to the AI inference server through the network switch.
[0015] According to another aspect of an embodiment of the present invention, there is provided an AI training and reasoning method, which is applied to the AI training and reasoning server as described above, and comprises: the main board sends AI software algorithms and data through the backplane; the AI reasoning blade receives the AI software algorithms and data through the backplane, and obtains calculation results according to the AI software algorithms and data; the main board receives the calculation results through the backplane, and obtains reasoning results according to the calculation results.
[0016] The AI training inference server of the embodiment of the present invention includes a mainboard, a backplane and at least one AI inference blade, wherein the mainboard is connected to the backplane, the backplane is provided with a slot, the AI inference blade is inserted into the slot, and the AI inference blade is mainly composed of at least one first programmable chip, and each first programmable chip is connected to at least one AI chip. When the AI software in the mainboard is running, the mainboard will send the AI software algorithm and data to the AI inference blade through the backplane according to the instructions executed on the AI software, and each AI chip in the AI inference blade will obtain the calculation result according to the AI software algorithm and data, and then the first programmable chip in the AI inference blade will summarize the calculation results obtained by each AI chip and return them to the mainboard through the backplane, and the mainboard will finally obtain the inference result according to each calculation result, that is, the running result of the instruction executed on the AI software. Compared with directly calculating the AI algorithm through the CPU and GPU, the embodiment of the present invention sends the algorithm and data to the AI chip for calculation, and the AI chip has special instructions for the AI algorithm, which has higher computing power, lower power consumption and lower cost. In addition, the embodiment of the present invention can also increase or decrease the AI chips in the AI reasoning blade according to the calculation amount of the algorithm in the AI software, or increase or decrease the number of AI reasoning blades inserted into the slot, which is more flexible. Compared with using a cloud server to perform AI algorithm calculations, the embodiment of the present invention directly connects the motherboard and the AI reasoning blade through a backplane, and its information transmission speed is faster, the delay is lower, and the cost and power consumption are also lower.
[0017] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0019] Figure 1 A schematic diagram of the structure of an AI training and inference server provided by an embodiment of the present invention is shown;
[0020] Figure 2 A schematic diagram of an AI reasoning blade in an embodiment of the present invention is shown;
[0021] Figure 3 A schematic diagram of an AI training and reasoning server in an embodiment of the present invention is shown;
[0022] Figure 4 A schematic diagram of an AI training blade in an embodiment of the present invention is shown;
[0023] Figure 5 A schematic diagram of an AI training and reasoning server in a second embodiment of the present invention is shown;
[0024] Figure 6 A schematic diagram of an AI training and reasoning server in a third embodiment of the present invention is shown;
[0025] Figure 7 A schematic diagram of an AI training and reasoning server in a fourth embodiment of the present invention is shown;
[0026] Figure 8 A schematic diagram of an AI training and reasoning server in a fifth embodiment of the present invention is shown;
[0027] Fig. 9 A schematic diagram of the structure of an AI training and inference server provided by another embodiment of the present invention is shown;
[0028] Fig.10 A schematic diagram of an AI training reasoning service system provided by an embodiment of the present invention is shown;
[0029] Fig.11 A flowchart of an AI training and reasoning method provided by an embodiment of the present invention is shown;
[0030] Fig.12 A flowchart of an AI training reasoning service method provided by another embodiment of the present invention is shown. DETAILED DESCRIPTION
[0031] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0032] AI technology is mainly used in AI software for face, voice and text recognition, etc., which mainly includes training and reasoning. Among them, the training part mainly refers to training an initial module through a training data set, so that it can continuously optimize its own parameters to obtain an optimized model. For example, if you want to train a model that can distinguish between apples and oranges, you need to search for some pictures of apples and oranges as a training data set. The data in the training data set are all set with labels. The label of the apple picture is apple, and the label of the orange is also orange. The initial neural network model may start with 10 photos of apples, only 5 of which are considered apples by the network, and the other 5 are misidentified. But after the continuous parameter optimization process, the neural network model can recognize the other 5 misidentified pictures correctly. This whole process is called training. And reasoning is to directly input the on-site data, such as the apple photos taken directly on the spot, into the trained model to obtain the label to which the photo belongs. This process is called reasoning.
[0033] See also Figure 1 , Figure 1 A schematic diagram of the structure of an AI training and inference server provided by an embodiment of the present invention is shown. The AI training and inference server 100 includes a mainboard 10, a backplane 20 and at least one AI inference blade 30. Among them, the backplane 20 is provided with a plurality of slots 21, which are used to provide channels for data exchange and transmission, that is, the devices plugged into each slot 21 can communicate directly with each other. The mainboard 10 is mainly composed of a CPU, which is used to coordinate and control the operating system of the terminal (mobile phone or computer, etc.), and to process the encoding and decoding of the AI algorithm of the AI software on the operating system. At the same time, the mainboard 10 is also provided with a plurality of network ports for communication, which are used to send AI software algorithms and data according to the instructions executed on the AI software. In addition, the structure of the mainboard 10 can be designed in the form of a blade, which is plugged into the slot 21. The AI inference blade 30 is plugged into the slot 21, and is used to receive the AI software algorithm and data sent by the mainboard 10 through the backplane 20. As Figure 2As shown, it shows a schematic diagram of an AI reasoning blade in an embodiment of the present invention. The AI reasoning blade 30 is mainly composed of at least one first programmable chip 31, and each first programmable chip 31 is connected to at least one AI chip 32. The first programmable chip 31 can be an FPGA (Field-Programmable Gate Array) or an ASIC chip (Application Specific Integrated Circuit, a chip designed for a specific purpose), which has a programmable characteristic, that is, the corresponding code can be burned into the chip according to the specific function to be implemented. The AI chip 32 is a chip dedicated to AI calculation, which contains special instructions for AI calculation, and has fast computing power and low power consumption for special instructions. In the AI reasoning blade 30, the first programmable chip 31 is mainly used to receive the AI software algorithm and data issued by the mainboard 10, and forward it to the AI chip 32, so that the AI chip 32 obtains the calculation result according to the AI software algorithm and data. When the calculation of each AI chip 32 is completed, the first programmable chip 31 will also summarize the calculation results of each AI chip 32 and return them to the mainboard 10 through the backplane 20.
[0034] like Figure 3 As shown, it shows a schematic diagram of an AI training and reasoning server in an embodiment of the present invention. The server in the embodiment of the present invention is only used for AI reasoning of AI software. In the process of AI reasoning, the mainboard 10 will first obtain the training results from the training server. Specifically, the mainboard 10 can obtain the training results from the training server through communication methods such as WIFI, Bluetooth or the Internet of Things. Among them, the training server refers to a server used for the AI training process. When it receives the AI software algorithm and data sent by the mainboard 10, it will generate corresponding training results. After that, the mainboard 10 will send the training results and the AI software algorithm to each AI reasoning blade 30 through the backplane 20. Each AI reasoning blade 30 will share the calculation amount of the AI software algorithm and obtain the corresponding calculation results. After that, each AI reasoning blade 30 will return its calculation results to the mainboard 10 through the backplane 20. Finally, the mainboard 10 will obtain the reasoning results of the AI software based on these calculation results and complete the AI reasoning process.
[0035] It can be understood that: in the embodiment of the present invention, the server can also perform the AI reasoning process of multiple AI software at the same time, that is, different AI software algorithms are sent to different AI reasoning blades 30, and different AI reasoning blades 30 obtain the calculation results corresponding to different AI software algorithms and return them to the mainboard 10. For example, if the server in this embodiment includes 4 AI reasoning blades 30, which are numbered a1, a2, a3 and a4, and two AI software are running on the mainboard 10, namely B and C. At this time, the mainboard 10 can send the algorithm of AI software B to a1 and a2, and send the algorithm of AI software C to a3 and a4, so that the AI reasoning process of the two AI software can be performed at the same time. Of course, if the computing power of the AI reasoning blade 30 is high enough, that is, it contains enough AI chips 32, one AI reasoning blade 30 can also perform the AI reasoning calculation process of multiple AI software at the same time. For example, the algorithms of AI software B and C can be sent to different first programmable chips 31 on the same AI reasoning blade 30 respectively, and the calculation results are obtained by the AI chip 32 connected to the corresponding first programmable chip 31.
[0036] The embodiment of the present invention sends the algorithm and data to the AI chip 32 for calculation, so that the calculation process of the algorithm is completed by multiple AI chips 32, thereby improving the computing power. At the same time, under the same computing power, the AI chip 32 has lower power consumption and cost. In addition, the embodiment of the present invention can also increase or decrease the AI chip 32 in the AI reasoning blade 30 according to the calculation amount of the algorithm in the AI software, or increase or decrease the number of AI reasoning blades 30 inserted into the slot 21, which is more flexible.
[0037] For the above-mentioned backplane 20, it can be a CPCI-Express (Compact peripheral component interconnect express, high-speed serial computer expansion bus standard) backplane 20, the CPCI-Express backplane 20 is mainly composed of a PCIe (peripheral component interconnect express, high-speed serial bus) switching chip, and the slot 21 on the backplane 20 is a standard PCIe slot. Among them, the PCIe slot belongs to a high-speed serial point-to-point dual-channel high-bandwidth transmission, and the connected device is allocated with an exclusive channel bandwidth and does not share the bus bandwidth. Therefore, the transmission between the devices plugged into the slot 21 of the backplane 20 is fast and the delay is low. In addition, the CPCI-Express backplane 20 also has a hot-swap function. Hot-swap refers to inserting or unplugging a module or board into or out of the system without turning off the system power without affecting the normal operation of the system, thereby improving the reliability, rapid maintainability, redundancy and timely recovery capability of the system from disasters. Specifically, when a blade (AI reasoning blade 30 or AI training blade 40) is inserted into slot 21, the pin on the blade will pass information to the operating system, so that it loads the driver of the corresponding blade so that it can use the blade. When the blade is pulled out from slot 21, the operating system will also receive the corresponding information and uninstall the corresponding driver. At the same time, if the application is accessing this blade in real time and the blade is suddenly pulled out, the PCIe backplane 20 chip will return a 0xff data by default to prevent the OS from running away and crashing due to the inability to access the blade.
[0038] During the data exchange between the mainboard 10 and the AI inference blade 30 via the CPCI-Express backplane, the mainboard 10 is configured as a master device via its CPU, while the AI inference blade 30 is configured as a slave device via its first programmable chip 31. Afterwards, the switching chip in the CPCI-Express backplane identifies the master device and the slave device, allowing the master device and the slave device to communicate with each other, but the slave devices and the master devices will not communicate with each other. For example, each AI inference blade 30 is a slave device, so they will not communicate with each other.
[0039] It can be understood that the types of backplane 20 are not limited to the above description. It can be other backplanes 20 that have the function of allowing devices plugged into each slot 21 to communicate directly with each other and have a hot-swap function. For example, the backplane can also be a backplane composed of a network switching chip. The way this backplane realizes communication between devices plugged into each slot 21 is to configure different IP addresses for each device, rather than setting up master and slave devices.
[0040] Continue reading Figure 1The AI training and reasoning server 100 further includes at least one AI training blade 40, which is also plugged into the slot 21 and is used to receive the AI software algorithm and data sent by the motherboard 10, obtain training results according to the AI software algorithm and data, and transmit the training results to the AI reasoning blade 30 through the backplane 20. Specifically, Figure 4 As shown, it is a schematic diagram of an AI training blade in an embodiment of the present invention. The AI training blade 40 is mainly composed of at least one second programmable chip 41, and each of the second programmable chips 41 is connected to at least one memory storage chip 42. Because the amount of data required for AI training is large, the AI training blade 40 requires multiple memory storage chips 42 to store these data. Among them, the second programmable chip 41 can be an FPGA or ASIC chip, which has a programmable function. In the AI training blade 40, the second programmable chip 41 is mainly used to receive the AI software algorithm and data issued by the mainboard 10, and store the data in the memory storage chip 42, and call the data in the memory storage chip 42 according to the AI software algorithm for calculation, obtain the training results and return them to the AI reasoning blade 30 through the backplane 20.
[0041] During the data exchange between the AI training blade 40 and the mainboard 10 and the AI reasoning blade 30 through the CPCI-Express backplane, the AI training blade 40 is first configured as a slave device through its second programmable chip 41 so that it can receive data from the mainboard 10. Afterwards, when the AI training blade 40 obtains the training result, its second programmable chip 41 configures the AI training blade 40 as a master device so that it can send the training result to the AI reasoning blade 30.
[0042] Compared with the above embodiment, the AI training and reasoning server 100 in this embodiment adds an AI training blade 40, so that the AI training and reasoning server 100 can have the functions of AI training and AI reasoning at the same time. In addition, the AI training blade 40 and the AI reasoning blade 30 can directly communicate data through the point-to-point technology of the PCIe switching chip. The bandwidth is very high, the delay is small, and the motherboard 10 does not need to participate. The performance requirements of the motherboard 10 can be reduced, and the high delay problem caused by data transmission to the motherboard 10 can also be reduced.
[0043] It is understandable that: in other embodiments, the AI training and reasoning server 100 may also include only the AI training blade 40 but not the AI reasoning blade 30, that is, the AI training and reasoning server 100 may only perform the AI training process, and perform the AI reasoning process through other servers. In addition, the structure of the AI training blade 40 is not limited to the structure described above, and may also be other structures, which will not be repeated here.
[0044] See also Figure 5, which shows a schematic diagram of an AI training and inference server in the second embodiment of the present invention, wherein the AI training and inference server 100 includes an AI training blade 40 and multiple AI inference blades 30. In the process of AI training and inference, the mainboard 10 first sends the AI software algorithm and data to the AI training blade 40 through the backplane 20. The AI training blade 40 obtains the training results according to the AI software algorithm and data and splits the training results and sends them to each AI inference blade 30 through the backplane 20. At the same time, the mainboard 10 also sends the AI software algorithm and data to each AI inference blade 30 through the backplane 20. At this time, each AI inference blade 30 obtains the calculation results according to the received training results and AI software algorithms and data, and returns the calculation results to the mainboard 10 through the backplane 20, and the mainboard 10 obtains the final inference results.
[0045] It is understandable that if the training amount of the AI software is large, the present embodiment may also increase the AI training blade 40, so that the training amount of the same AI software is shared by multiple AI training blades 40.
[0046] See also Figure 6 , which shows a schematic diagram of an AI training and inference server in a third embodiment of the present invention. In this embodiment, the number of AI training blades 40 and AI inference blades 30 is the same, and each AI training blade 40 and AI inference blade 30 forms a training and inference group. In the process of AI training and inference, the mainboard 10 divides the AI software algorithm and data and sends them to each training and inference group respectively. The AI training blades 40 in the training and inference group obtain the training results and send them to the AI inference blades 30 in the training and inference group through the backplane 20 so that the AI inference blades 30 obtain the calculation results, and return the calculation results to the mainboard 10 through the backplane 20. The mainboard 10 then obtains the final inference results based on the calculation results of each training and inference group.
[0047] It is understandable that: depending on the different computational complexity of the actual AI software algorithm and the amount of data, the number of AI training blades 40 and AI reasoning blades 30 in a training reasoning group may also be different, that is, multiple AI training blades 40 and AI reasoning blades 30 may form a training reasoning group.
[0048] In some embodiments, the number of the mainboards 10 is at least 2, and the mainboards 10 transmit data to each other through the backplane 20. Since the mainboard 10 can also provide general computing functions, the computing power of multiple mainboards 10 is stronger. Each mainboard 10 can perform different calculations and transmit the calculation results to each other through the backplane 20.
[0049] See also Figure 7, which shows a schematic diagram of an AI training and reasoning server in a fourth embodiment of the present invention, wherein the AI training and reasoning server 100 includes at least two mainboards 10, an AI training blade 40 and a plurality of AI reasoning blades 30, and different AI software runs on each mainboard 10. During the AI training and reasoning process, each mainboard 10 sends the algorithm and data of its corresponding AI software to the same AI training blade 40 through the backplane 20, and the same AI training blade 40 obtains the training results corresponding to each AI software. During the AI reasoning process, the AI training blade 40 sends these training results to different AI reasoning blades 30 through the backplane 20, and at the same time, each mainboard 10 also sends the algorithm and data of its corresponding AI software to the AI reasoning blade 30 through the backplane 20, so that the AI reasoning blade 30 obtains the calculation results corresponding to each AI software, and returns the calculation results to the corresponding mainboard 10 through the backplane 20, and each mainboard 10 obtains the corresponding reasoning results according to the calculation results obtained.
[0050] It can be understood that: each motherboard 10 can also jointly execute the training and reasoning operations of the same AI software, that is, the motherboard 10 running the AI software distributes the computing workload of the AI software algorithm to other motherboards 10 through the backplane 20, and each motherboard 10 only sends its allocated AI software algorithm and data part to the AI training blade 40 and the AI reasoning blade 30, and each obtains an inference result through the calculation results obtained from different AI reasoning blades 30. These inferences will eventually be summarized on the motherboard 10 running the AI software through the backplane 20 to form the final inference result.
[0051] See also Figure 8 , which shows a schematic diagram of an AI training inference server in a fifth embodiment of the present invention, and Figure 6The present embodiment also forms a training and reasoning group with an AI training blade 40 and an AI reasoning blade 30. The difference is that the AI training and reasoning server 100 in the present embodiment includes at least two mainboards 10, and each mainboard 10 can jointly execute the training and reasoning process of an AI software or respectively execute the training and reasoning process of different AI software. When jointly executing the training and reasoning process of an AI software, each mainboard 10 jointly divides the AI software algorithm and data and sends them to each training and reasoning group respectively. The AI training blade 40 in the training and reasoning group obtains the training result and sends it to the AI reasoning blade 30 in the training and reasoning group through the backplane 20 so that the AI reasoning blade 30 obtains the calculation result, and returns the calculation result to each mainboard 10 through the backplane 20. Each mainboard 10 then obtains the reasoning result based on the calculation result received by each mainboard, and summarizes them on the same mainboard 10 to obtain the final reasoning result. During the training and reasoning processes of executing different AI software respectively, each mainboard 10 sends its corresponding AI software algorithm and data to different training and reasoning groups through the backplane 20, and each training and reasoning group returns the corresponding calculation results to each mainboard 10, so that each mainboard 10 can obtain the reasoning results of its corresponding AI software.
[0052] Continue reading Figure 1 The AI training and inference server 100 further includes a power blade 50 and a redundant power blade 60, which are also plugged into the slot 21. The power blade 50 is used to directly supply power to the mainboard 10, the AI training blade 40, and the AI inference blade 30. The redundant power blade 60 is used as a backup power supply when the power blade 50 fails.
[0053] It is understandable that the power blade 50 and the redundant power blade 60 may also be omitted, and the AI training and inference server 100 may be powered directly by an external power supply.
[0054] Continue reading Figure 1, the AI training and reasoning server 100 also includes a topology management module 70, which can also be made into a blade form and plugged into the slot 21, for configuring the topological relationship between the mainboard 10, the AI reasoning blade 30 and the AI training blade 40. Among them, the topological relationship refers to the connection relationship between the mainboard 10, the AI reasoning blade 30 and the AI training blade 40. Since the algorithm complexity and data volume of different AI software are different, the AI reasoning blade 30 and the AI training blade 40 required for different AI software will also be different. Therefore, when different AI software is executed on the mainboard 10, the topology management module 70 needs to adjust the topological relationship between the mainboard 10, the AI reasoning blade 30 and the AI training blade 40 to adapt to the corresponding AI software. For example, if the AI training and reasoning server 100 includes mainboards c1 and c2, AI training blades a1 and a2, and AI reasoning blades b1, b2, b3 and b4. When the motherboard c1 executes the AI software A1, the AI training blade a1 and the AI reasoning blades b1 and b2 connected to the backplane 20, that is, the training and reasoning process of the AI software A1 is completed by the AI training blade a1 and the AI reasoning blades b1 and b2. When the motherboard c1 executes the AI software A2 with a higher algorithm complexity, it needs more AI reasoning blades 30. Therefore, the topology management module 70 can be used to enable the motherboard c1 to connect to the AI training blade a1 and the AI reasoning blades b1, b2 and b3 connected to the backplane 20.
[0055] In addition, the topology management module 70 can also be used to configure the mainboard 10, the AI reasoning blade 30, and the AI training blade 40 as a master device or a slave device. For example, when data is transmitted between the mainboards, the topology management module 70 can configure some mainboards as slave devices, and when the mainboard sends AI software algorithms and data, the topology management module 70 can reconfigure these mainboards as master devices. Compared with directly configuring the master device and the slave device through the CPU of each mainboard 10, it is simpler and more convenient to switch these mainboards 10 between the master device and the slave device through the topology management module 70.
[0056] See also Fig. 9 , Fig. 9 A schematic diagram of the structure of an AI training and inference server provided by another embodiment of the present invention is shown. The AI training and inference server 100 in this embodiment is a rack-type or tower server, that is, a host similar to a desktop computer. Among them, the AI training and inference server 100 is provided with a host composed of a CPU and a memory bar and a PCLe switching chip electrically connected to the CUP, and the AI training and inference server 100 is provided with a PCLe slot outside, which is electrically connected to the PCLe switching chip. The AI inference blade 30 and the AI training blade 40 can be designed as a PCIe card structure and plugged into the PCLe slot, so that the AI training and inference process of the server can be realized.
[0057] The AI training inference server 100 of the embodiment of the present invention includes a mainboard 10, a backplane 20 and at least one AI inference blade 30, wherein the mainboard 10 is connected to the backplane 20, the backplane 20 is provided with a slot 21, the AI inference blade 30 is inserted into the slot 21, and the AI inference blade 30 is mainly composed of at least one first programmable chip 31, and each first programmable chip 31 is connected to at least one AI chip 32. When the AI software in the mainboard 10 is running, the mainboard 10 will send the AI software algorithm and data to the AI inference blade 30 through the backplane 20 according to the instructions executed on the AI software, and each AI chip 32 in the AI inference blade 30 obtains a calculation result according to the AI software algorithm and data, and then the first programmable chip 31 in the AI inference blade 30 summarizes the calculation results obtained by each AI chip 32 and returns them to the mainboard 10 through the backplane 20, and the mainboard 10 finally obtains the inference result according to each calculation result, that is, the running result of the instruction executed on the AI software. Compared with directly calculating the AI algorithm through the CPU and GPU, the embodiment of the present invention sends the algorithm and data to the AI chip 32 for calculation. The AI chip 32 has special instructions for the AI algorithm, which has higher computing power, lower power consumption and cost. In addition, the embodiment of the present invention can also increase or decrease the AI chip 32 in the AI reasoning blade 30 according to the amount of calculation of the algorithm in the AI software, or increase or decrease the number of AI reasoning blades 30 inserted into the slot 21, which is more flexible. Compared with using a cloud server to calculate the AI algorithm, the embodiment of the present invention directly connects the mainboard 10 and the AI reasoning blade 30 through the backplane 20, and the information transmission speed is faster, the delay is lower, and the cost and power consumption are also lower.
[0058] Fig.10 FIG. 1 is a schematic diagram of an AI training and reasoning service system provided by an embodiment of the present invention.
[0059] Fig.10 As shown, the AI training reasoning service system 200 includes a network switch 201, a general server 202 and at least one AI reasoning server 203. Among them, the network switch 201 is respectively connected to the general server 202 and the AI reasoning server 203 for mutual communication. Specifically, the communication connection method can adopt a communication method such as Bluetooth, WIFI or the Internet of Things. The general server 202 is used to send AI software algorithms and data to the AI reasoning server 203 through the network switch 201. The AI reasoning server 203 is used to obtain calculation results through AI software algorithms and data, and return the calculation results to the general server 202 through the network switch 201. The general server 202 is also used to obtain reasoning results based on the calculation results.
[0060] Continue reading Fig.10The AI training and reasoning service system 200 also includes at least one AI training server 204, which is in communication with the network switch 201 and is used to receive the AI software algorithm and data sent by the general server 202 through the network switch 201, obtain training results based on the AI software algorithm and data, and transmit the training results to the AI reasoning server 203 through the network switch 201.
[0061] In some embodiments, the AI training server 204 in the AI training and reasoning service system 200 can also be replaced by a supercomputer, which is in communication with the network switch 201 and is used to receive the AI software algorithm and data sent by the general server 202 through the network switch 201, obtain training results based on the AI software algorithm and data, and transmit the training results to the AI reasoning server 203 through the network switch 201. The supercomputer has greater computing power, and it is faster to obtain training results through the supercomputer.
[0062] Continue reading Fig.10 The AI training and reasoning service system 200 also includes a topology management server 205, which is communicatively connected to the network switch 201 and is used to configure the topological relationship between the general server 202, the AI reasoning server 203 and the AI training server 204.
[0063] The AI training and reasoning system of the embodiment of the present invention includes a network switch 201, a general server 202 and at least one AI reasoning server 203. Among them, the network switch 201 is respectively connected to the general server 202 and the AI reasoning server 203 for mutual communication, and the general server 202 can pass the computing amount required by the AI software algorithm to multiple AI reasoning servers 203 through the network switch 201, thereby speeding up the calculation process of the AI software algorithm. In addition, the embodiment of the present invention can also increase or decrease the number of AI reasoning servers 203 that are connected to the switch for communication according to the computing amount of the algorithm in the AI software, and its flexibility is higher. At the same time, the network switch 201 is used to transmit information, and its transmission speed is faster, the delay is lower, and the cost and power consumption are also lower.
[0064] Fig.11 FIG. 1 is a flowchart of an AI training and reasoning method provided by an embodiment of the present invention. Fig.11 As shown, the AI training reasoning service method includes:
[0065] Step S110: The mainboard sends AI software algorithms and data through the backplane.
[0066] Step S120: The AI reasoning blade receives the AI software algorithm and data through the backplane, and obtains calculation results based on the AI software algorithm and data.
[0067] Step S130: the mainboard receives the calculation result through the backplane, and obtains an inference result according to the calculation result.
[0068] Fig.12 FIG. 2 shows a flow chart of an AI training reasoning service method provided by another embodiment of the present invention. Fig.12 As shown, before step S120, the method further includes:
[0069] Step S210: The AI training blade receives the AI software algorithm and data through the backplane, and obtains training results based on the AI software algorithm and data.
[0070] Step S220: the AI training blade returns the training result to the AI reasoning blade through the backplane.
[0071] In the embodiment of the present invention, the motherboard distributes the computational load to multiple AI reasoning blades, so that each AI reasoning blade calculates a calculation result and returns it to the motherboard, so that the motherboard obtains the final reasoning result, thereby making the calculation of the AI software in the motherboard faster, because its calculation process is executed by multiple AI reasoning blades at the same time. In addition, the backplane can enable the devices plugged into its slots to communicate directly with each other, so that the communication between the motherboard, AI reasoning blades and AI training blades is faster and has less delay.
[0072] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description made to specific languages above is for disclosing the best mode of the present invention.
[0073] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0074] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0075] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0076] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0077] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. An AI training and reasoning server, characterized in that: It includes a mainboard, a backplane, at least one AI training blade and at least one AI reasoning blade, wherein: The mainboard is mainly composed of a CPU, and the mainboard is connected to the backplane, and is used to send AI software algorithms and data through the backplane; The backplane is provided with a slot; the backplane is a CPCI-Express backplane, which has a hot-swap function; The AI training blade is plugged into the slot, and the AI training blade is mainly composed of at least one second programmable chip, and each of the second programmable chips is connected to at least one memory storage chip; the AI training blade is used to receive the AI software algorithm and data sent by the mainboard, obtain training results according to the AI software algorithm and data, and transmit the training results to the AI reasoning blade through the backplane; the second programmable chip is used to configure the AI training blade as a master device when the AI training blade obtains the training results; The AI inference blade is plugged into the slot, and the AI inference blade is mainly composed of at least one first programmable chip, and each first programmable chip is connected to at least one AI chip; the CPU is used to configure the mainboard as a master device, and the first programmable chip is used to configure the AI inference blade as a slave device, and the backplane is used to enable the master device and the slave device to communicate with each other; the AI inference blade is used to receive the AI software algorithm and data and the training results, and obtain calculation results according to the AI software algorithm and data and the training results, and send the calculation results to the mainboard through the backplane; The mainboard is also used to receive the calculation result through the backplane and obtain an inference result based on the calculation result.
2. The server according to claim 1, characterized in that The number of the main boards is at least 2, and data is transmitted between the main boards via the CPCI-Express backplane.
3. The server according to claim 1, characterized in that The server further comprises a power supply blade and a redundant power supply blade, and the power supply blade and the redundant power supply blade are plugged into the slot.
4. The server according to claim 2, characterized in that The server also includes a topology management module, which is plugged into the slot and is used to configure the mainboard, AI reasoning blade and AI training blade as a master device or a slave device, and to configure the topological relationship between the mainboard, AI reasoning blade and AI training blade.
5. An AI training and reasoning system, characterized in that: include: A network switch, a general server, at least one AI training server and at least one AI inference server; the network switch is respectively connected to the general server and the AI inference server for mutual communication; the general server is used to send AI software algorithms and data to the AI training server and the AI inference server through the network switch; the AI training server is connected to the network switch for communication for receiving the AI software algorithms and data sent by the general server through the network switch, obtaining training results according to the AI software algorithms and data, and transmitting the training results to the AI inference server through the network switch; the AI inference server is used to obtain calculation results according to the AI software algorithms and data and the training results, and return the calculation results to the general server through the network switch; the general server is also used to obtain inference results according to the calculation results.
6. The system according to claim 5, characterized in that The system also includes a supercomputer, which is communicatively connected to the network switch and is used to receive the AI software algorithm and data sent by the general server through the network switch, obtain training results based on the AI software algorithm and data, and transmit the training results to the AI inference server through the network switch.
7. An AI training and reasoning method, applied to the AI training and reasoning server according to any one of claims 1 to 4, characterized in that: The method comprises: The mainboard sends AI software algorithms and data through the backplane; the backplane is a CPCI-Express backplane with hot-swap function; The AI training blade receives the AI software algorithm and data through the backplane, and obtains training results according to the AI software algorithm and data; The AI training blade returns the training result to the AI reasoning blade through the backplane; The AI reasoning blade receives the AI software algorithm and data and the training result through the backplane, and obtains a calculation result according to the AI software algorithm and data and the training result; The mainboard receives the calculation result through the backplane, and obtains an inference result according to the calculation result.
