Expert scaling method and system for dynamic load balancing and failover
The system addresses load balancing and fault response in AI inference clusters by dynamically adjusting expert loading and activation, ensuring stable and efficient resource utilization and continuous service availability in MoE models.
Patent Information
- Application Number
- PCT/KR2026/003431
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-21
- Filing Date
- 2026-03-04
- Publication Date
- 2026-11-26
AI Technical Summary
Existing systems fail to efficiently manage load balancing and fault response in AI inference clusters, particularly in Mixture-of-Experts (MoE) models, leading to instability and resource inefficiencies.
A method and system for dynamic load balancing and fault response that monitors and adjusts the loading and activation status of experts in AI inference clusters, using a cluster controller to partition AI accelerators, redistribute experts based on real-time performance and fault indicators, and maintain stable inference services.
Enables efficient resource utilization and continuous service availability by dynamically expanding or contracting computational resources and redeploying experts in response to failures, minimizing service interruptions.
Smart Images

Figure KR2026003431_26112026_PF_FP_ABST
Abstract
Description
Expert Scaling Method and System for Dynamic Load Balancing and Fault Response
[0001] The present invention relates to an expert scaling method and system for dynamic load balancing and fault response, and more specifically, to an expert scaling method and system for dynamic load balancing and fault response that loads AI model experts in partition units in a cluster environment composed of a plurality of AI accelerators and computation nodes, and dynamically scales partitions based on real-time performance and fault indicators or redeploys experts upon fault detection, thereby efficiently distributing the load of computational resources and providing stable inference services without service interruption even in the event of a failure.
[0002]
[0003] With the recent rapid advancement of Artificial Intelligence (AI) technology, inference operations for complex deep learning models, including Large Language Models (LLMs), are being utilized in real-time across various industries. These inference operations are often performed in cluster environments of computation nodes utilizing high-performance AI accelerators (GPUs, NPUs, etc.), and methods for partitioning and utilizing AI accelerator resources in advanced ways are gaining attention. In such environments, in addition to model parallelization and efficient distributed processing, infrastructure management technologies capable of proactively responding to load imbalances from user requests or performance degradation and failures in specific nodes, accelerators, or partitions are essential. In particular, in Mixture-of-Experts (MoE) AI models, multiple experts are managed at the partition level, and the quality of real-time inference and the stability of the entire system are significantly affected by the activation status, condition, and performance of each partition.
[0004] Therefore, to maximize the performance and stability of MoE-based inference systems, technology is required to continuously monitor the status of each partition and the resource situation within the cluster, and to flexibly adjust the loading location of experts accordingly. Such technology must be able to scale computational resources by immediately activating inactive partitions or loading experts into new partitions based on the load of real-time inference requests, while conversely, it must also be able to efficiently deactivate unnecessary partitions to prevent excessive resource consumption.
[0005] Prior to this, there is Korean Registered Patent No. 10-0576713 (Dynamic Load Balancing System and Method thereof), but it only provides a dynamic load balancing system and method that efficiently performs load balancing among multiple servers when servers servicing various types of business applications are configured into a cluster.
[0006] To address the aforementioned problems, the objective of the present invention is to provide an expert scaling method and system for dynamic load balancing and fault response, which monitors the status and load of each computational resource in real time within an AI inference cluster environment including a Mixture-of-Experts (MoE) structure, and dynamically adjusts the loading and activation status of experts based on this to efficiently distribute the load and maximize the utilization of computational resources, while simultaneously providing stable inference services without service interruption by rapidly redeploying experts to normal partitions or activating pre-loaded partitions in the event of a failure.
[0007] The expert scaling method for dynamic load balancing and fault response according to the present invention comprises: a cluster controller dividing a single AI accelerator into partitions of equal size and loading experts of equal size into each partition; an app proxy receiving an inference request from a client and distributing and delivering the inference request to a computation node containing a partition in a normal state among a plurality of computation nodes; an app proxy collecting and analyzing performance indicators and status indicators of each computation node's partition, AI accelerator, and computation unit to monitor the load status; a cluster controller activating an inactive partition or loading experts into a new partition based on the monitored indicators to dynamically expand or contract the computation capacity and update an expert-partition mapping table; a cluster controller detecting a failure of a partition, AI accelerator, or computation node based on a failure indicator; a cluster controller performing a response scenario according to the type and characteristics of the detected failure; and a cluster controller updating an expert-partition mapping table.
[0008] The expert scaling system for dynamic load balancing and fault response according to the present invention comprises a client that transmits an inference request to an inference server and receives a response, and an inference server that selects an appropriate partition among AI accelerators divided into a plurality of partitions in response to an inference request received from the client and performs inference through an expert loaded in the partition. The inference server includes an app proxy that receives an inference request from the client, distributes and transmits the inference request to a computation node containing a partition in a normal state among a plurality of computation nodes, and monitors the load status by collecting and analyzing performance indicators and status indicators of the partition, AI accelerator, and computation unit of each computation node; and a cluster controller that dynamically expands or shrinks computation capacity by activating inactive partitions or loading experts into new partitions based on the monitored indicators, updates an expert-partition mapping table, detects a failure of a partition, AI accelerator, or computation node based on a failure indicator, performs a response scenario according to the type and characteristics of the detected failure, and updates the expert-partition mapping table.
[0009]
[0010] According to the present invention, computational resources can be efficiently expanded and reduced through real-time load monitoring.
[0011] In addition, service continuity can be maintained by automatically redeploying experts in the event of a failure.
[0012] In addition, the utilization of the AI accelerator can be maximized through flexible scaling at the partition level.
[0013]
[0014] FIG. 1 is a flowchart illustrating an expert scaling method for dynamic load distribution and fault response according to an embodiment of the present invention.
[0015] FIG. 2 is a flowchart illustrating a method for performing a corresponding scenario according to an embodiment of the present invention.
[0016] FIG. 3 is a configuration diagram of an expert scaling system for dynamic load distribution and fault response according to an embodiment of the present invention.
[0017]
[0018] Specific structural or functional descriptions of embodiments according to the concept of the present invention disclosed herein are merely illustrative for the purpose of explaining embodiments according to the concept of the present invention, and embodiments according to the concept of the present invention may be implemented in various forms and are not limited to the embodiments described herein.
[0019] Since embodiments according to the concept of the present invention may be subject to various modifications and may take various forms, embodiments are illustrated in the drawings and described in detail in this specification. However, this is not intended to limit the embodiments according to the concept of the present invention to specific disclosed forms, and includes all modifications, equivalents, or substitutions that fall within the spirit and scope of the present invention.
[0020] The terms used herein are used merely to describe specific embodiments and are not intended to limit the invention. Singular expressions include plural expressions unless the context clearly indicates otherwise. In this specification, terms such as “comprising” or “having” are intended to indicate the existence of the features, numbers, steps, actions, components, parts, or combinations thereof described herein, and should not be understood as precluding the existence or addition of one or more other features, numbers, steps, actions, components, parts, or combinations thereof.
[0021] Although the deep learning models described in this specification refer to language models as primary examples, the techniques and systems of the present invention are applicable to all types of deep learning models composed of multiple neural network layers, each of which can be classified for pre-training and fine-tuning purposes, and are not limited to language models. Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings attached to this specification.
[0022]
[0023] FIG. 1 is a flowchart illustrating an expert scaling method for dynamic load distribution and fault response according to an embodiment of the present invention.
[0024] Referring to FIG. 1, a cluster controller (220) divides one AI accelerator (232) into partitions of equal size and loads experts of equal size into each partition (S101). The cluster controller (220) is a central control unit that oversees model configuration and resource management within the entire system, and can monitor the status of the app proxy (210) and computation nodes (230) in real time and perform control commands necessary for the deployment and operation of experts. The app proxy (210) receives an inference request from a client (100) and distributes and delivers the inference request to a computation node (230) containing a partition in a normal state among a plurality of computation nodes (S103). The app proxy (210) monitors the load status by collecting and analyzing performance indicators and status indicators of the partitions, AI accelerators (232), and computation units (233) of each computation node (230) (S105). The above load status may be monitored by statistically analyzing at least one of instantaneous values, periodic average values, periodic variance values, and cumulative values according to the characteristics of the partitions of each computation node (230), AI accelerator (232), and computation unit (233), or by comparing with preset threshold values for each model or by a machine learning-based prediction method, but is not necessarily limited thereto.
[0025] Based on the metrics monitored by the cluster controller (220), the computing capacity is dynamically expanded or reduced by activating inactive partitions or loading experts into new partitions, and the expert-partition mapping table is updated (S107). In one embodiment, if the cluster controller (220) determines that a load imbalance is occurring on a specific computing node (230) or AI accelerator, it may allocate the experts to more partitions or additionally activate inactive partitions that already have the experts loaded to expand traffic throughput with low latency.
[0026] The cluster controller (220) detects a failure of a partition, AI accelerator (232), or computation node (230) based on a failure indicator (S109). The failure indicator may be at least one of the cases where the AI accelerator (232) is not recognized at all on the PCI (Peripheral component Interconnect) bus, an ECC (Error correction code) memory error, or a specific operation fails due to repetition, but is not necessarily limited to these. Depending on the individual characteristics of the failure indicator, a failure may be determined only when the same error is repeated more than a predetermined number of times within a certain period, or when the cumulative value of the failure rate exceeds a threshold. Additionally, the failure indicator may be collected individually at each unit of the partition, AI accelerator (232), and computation node (230), and the collection method, comparison criteria, and judgment threshold may be applied separately according to the respective unit. The cluster controller (220) performs a response scenario according to the type and characteristics of the detected failure (S111), and the cluster controller (220) updates the expert-partition mapping table (S113).
[0027]
[0028] FIG. 2 is a flowchart illustrating a method for performing a corresponding scenario in an embodiment of the present invention.
[0029] Referring to FIG. 2, the cluster controller sets up a response scenario according to the type and characteristics of the failure (S201). The cluster controller (220) may set up a response scenario in which, upon detecting a failure, the expert assigned to the location where the failure occurred is reassigned to another normal partition, the partition where the expert is pre-loaded is activated, the AI accelerator (232) that failed is disabled, a soft reset such as unloading or reloading the driver of the AI accelerator (232) that failed is performed, or at least one of the following is performed: a system reboot of the computation node (233) that failed. The cluster controller (220) records the cause of the failure and the response details in the audit log database (S203), and checks the existing audit log; if the failure continues to occur, the response scenario is executed by disabling the corresponding computation node (230) or the corresponding AI accelerator (232) and displaying a notification that hardware inspection and replacement are required (S205). These failure response decisions are reflected through the process of updating the expert-partition mapping table. The cluster controller (220) can reflect the changes in the expert-partition mapping table and update it.
[0030]
[0031] FIG. 3 is a configuration diagram of an expert scaling system for dynamic load distribution and fault response according to an embodiment of the present invention.
[0032] Referring to FIG. 3, the expert scaling system (10) for dynamic load balancing and fault response consists of a client (100) and an inference server (200).
[0033] The inference server (200) is composed of an app proxy (210), a cluster controller (220), and at least one computation node (230). In this specification, the app proxy (210) is configured separately from the cluster controller (220) and the computation node (230), but is not necessarily limited thereto. The app proxy (210) may be an app-level module running within the cluster controller (220) or an app-level module running within the computation node (230).
[0034] The app proxy (200) consists of a gateway module (211) and a load balancer module (212).
[0035] The gateway module (211) receives an inference request from a client (100) and can select at least one expert by executing a gate function on the received inference request. The gate function may operate automatically according to the input data characteristics and the model's internal logic, and the gateway module (211) may select a different expert for each token according to the gate function operation unique to the AI model. Additionally, the gateway module (211) may maintain the selection of experts within a certain standard and then dynamically change it, and the certain standard may be the number of tokens, but is not necessarily limited to this. The gateway module (211) may maintain the selection within a certain standard and then dynamically change it. The gateway module (211) can query which partition of which AI accelerator (232) of which computation node (230) the selected expert is actually loaded into by referring to the expert-partition mapping table received from the cluster controller (220). The above expert-partition mapping table can be implemented to be stored in memory or in a key-value based cache store such as Redis or Memcached to enable fast access for real-time performance improvement. Additionally, the gateway module (211) can receive at least one processing result from the computation node (230), aggregate the received processing results, and determine a response to the inference request. The gateway module (211) can deliver the determined response to the client (100).
[0036] The load balancer module (212) can distribute and deliver inference requests to computation nodes (230) that include partitions in a normal state where the expert selected by the gateway module (211) is loaded. The load balancer module (212) can monitor the status of the expert loaded in each partition state of the AI accelerator (232) and deliver traffic only to partitions in a normal state. Additionally, the load balancer module (212) can monitor the load status by collecting and analyzing performance indicators and status indicators of the partitions, AI accelerators (232), and computation units (233) of each computation node (230). The load status can be monitored by statistically analyzing at least one of instantaneous values, periodic average values, periodic variance values, and cumulative values according to the characteristics of the performance indicators and status indicators of the partitions, AI accelerators (232), and computation units (233) of each computation node (230), or by comparing with a preset threshold value for each model or by a machine learning-based prediction method, but is not necessarily limited thereto. The above indicators may vary in at least one of the following depending on the monitoring unit layer (partition, AI accelerator, computation node): the type, whether and how multiple indicators are aggregated, the interval for collection and statistical extraction, and the comparison standard value. The load balancer module (212) can perform decisions for load balancing of the entire cluster by linking the above monitoring information with the node controller (231) and cluster controller (220) of the computation node (230). The above performance indicators and status indicators may include hardware-level utilization, memory usage, chip temperature, and power consumption provided by the accelerator manufacturer's driver, as well as request throughput per second, total request processing latency, time to first token (TTFT), and time per output token (TPOT) provided by the computation library or framework, but are not necessarily limited thereto.The load balancer module (212) can continuously interact with the cluster controller (220) to reflect and update changes in the expert-partition mapping table. The load balancer module (212) can forward inference requests to the computation node (230) corresponding to the selected partition.
[0037] The cluster controller (220) is a central control unit that oversees model configuration and resource management within the entire system. It monitors the status of the app proxy (210) and the computation node (230) in real time and can execute control commands necessary for the deployment and operation of experts. The cluster controller (220) can collect meta-information including at least one of the gate function, model structure, list of experts, model size, and computation amount information included in the AI model to be newly deployed. The cluster controller (220) can separate the layers of the AI model or separate the gate function based on the collected meta-information and prioritize its delivery and loading to the gateway module (211) of the app proxy (210). Additionally, the cluster controller (220) can collect the status of the AI accelerator (232), including available resources and loads such as memory, computation cores, and partition active status of each computation node (230).
[0038] The cluster controller (220) can transmit a partitioning command to the computation node (230) to divide each AI accelerator (232) into partitions of equal size based on the collected meta-information and the status of the AI accelerator (232). Although the present specification describes a configuration in which experts are loaded and isolated based on partitions of equal size, in an environment where multiple types of AI models are hosted simultaneously, the required expert size or partition size may differ for each model. In such cases, by grouping models that require the same partition size and allocating and executing them on the AI accelerator (232), the fragmentation of system resources can be reduced and the utilization efficiency of computation resources can be maximized.
[0039] The above partitioning command may be a command that causes the AI accelerator (232) to configure multiple minimum partitions of the same size capable of loading each expert. At this time, if the cluster controller (220) determines that the capacity of the AI accelerator (232) is sufficient and that it is possible to dynamically create additional partitions by dynamically changing the partition sizes, it may transmit a command to the computation node (230) to configure partitions of different sizes to load new experts of new models in addition to existing partitions where experts of other models are already loaded. The cluster controller (220) may set the minimum unit capable of loading experts as the partition size according to the detailed implementation provided by the accelerator manufacturer and the node controller, such as a partitioning method based on structural constraints of the hardware or a partitioning method that maps only partial capacity to partitions at the software level. At this time, if the hardware is configured based on chiplets, partitioning can be performed based on chiplet units, but it is not limited to this if software-based partitioning allocation is also possible. In a single large GPU such as the NVIDIA A100 or H100, internal hierarchical hardware units such as the Graphics Processing Cluster (GPC), Texture Processing Cluster (TPC), and Streaming Multiprocessor (SM) can be utilized as partition units by software mapping. In one embodiment, NVIDIA's Multi-Instance GPU (MIG) technology provides partitioning at the GPC level, and some existing GPU virtualization technologies can configure expert load units through software mapping at the SM level.
[0040] The cluster controller (220) can generate a command to load experts into each partition of the partitioned AI accelerator (232), and the load command can be generated in two ways. First, the cluster controller (220) can generate a load command to load different experts by distributing them to each partition. In one embodiment, if there are four partitions in one AI accelerator (232), experts A, B, C, and D can be loaded into each partition. When loading in this way, independence between experts is ensured in the event of a failure, and all requests can be resolved within one AI accelerator (232), thereby minimizing communication overhead between the AI accelerator (232) and the computation node (230). However, there is a disadvantage that a bottleneck may occur if the load is concentrated on a specific expert.
[0041] Secondly, the cluster controller (220) can generate a load command to load the same expert redundantly into multiple partitions. In one embodiment, when there are four partitions in one AI accelerator (232), Expert A can be loaded into all four partitions, Expert B into all four partitions, Expert C into all four partitions, and Expert D into all four partitions. Loading in this manner can be advantageous during high loads because horizontal scaling is easy even when a large number of requests for a specific expert occur. However, since different experts are not distributed across one AI accelerator (232), switching to another expert may be slow in the event of a failure.
[0042] FIGS. 4 and FIGS. 5 are drawings for explaining various methods of loading an expert into a partition of an AI accelerator according to an embodiment of the present invention.
[0043] Referring to FIGS. 4 and FIGS. 5, an AI accelerator (232) divided into four partitions can be seen. FIGS. 4 is loaded according to the first method, and FIGS. 4(a) shows that Expert A, Expert B, Expert C, and Expert D for Model 1 are loaded into the four partitions (401, 403, 405, 407) of one AI accelerator (232), respectively, and FIGS. 4(b) shows that Expert a, Expert b, Expert b, and Expert d for Model 2 are loaded into the four partitions (411, 413, 415, 417) of another AI accelerator (232), respectively.
[0044] Figure 5 shows the loading according to the second method, where in Figure 5(a), Expert A is loaded into all four partitions (501, 503, 505, 507) of one AI accelerator (232), and in Figure 5(b), Expert B is loaded into all four partitions (511, 513, 515, 57) of one AI accelerator (232).
[0045] The cluster controller (220) may apply the first loading method and the second loading method differently for each AI model or expert within a single cluster, or mix them according to the load pattern of the expert. The cluster controller (220) may transmit the generated loading command to the computation node (230). The cluster controller (220) may check the expert loading status and success status and update the expert-partition mapping table. The expert-partition mapping table may include the identifier of the computation node (230) where each expert is loaded, the identifier of the AI accelerator (232), the identifier of the partition to which the expert is assigned, and the current status information of the partition.
[0046] Additionally, the cluster controller (220) is linked with the load balancer module (212) of the app proxy (210) to collect and analyze performance and status indicators of the partitions, AI accelerators (232), and computation units (233) of each computation node (230), periodically receives monitoring information that monitors the load status, or queries and reflects it in real time, and based on this, can perform at least one of load balancing, request distribution, and bypass processing for abnormal partitions.
[0047] The cluster controller (220) can periodically analyze the load of the entire cluster based on the monitoring information (monitored indicators) and transmit commands to the computation node (230) to activate partitions that are loaded with experts but are in an inactive state. Additionally, the cluster controller (220) can dynamically expand or contract the computation capacity by transmitting a load command to the computation node (230) to load additional experts into new partitions. Furthermore, if the load decreases, the cluster controller (220) can transmit commands to the computation node (230) to disable some partitions or remove experts to reduce unnecessary computation capacity. In one embodiment, if the cluster controller (220) determines that a load imbalance is occurring on a specific computation node (230) or AI accelerator, it can expand traffic throughput with low latency by allocating the relevant experts to more partitions or additionally activating inactive partitions that already have the relevant experts loaded. The cluster controller (220) can reflect and update the changes in the expert-partition mapping table.
[0048] Additionally, the cluster controller (220) can detect failures in partitions, AI accelerators (232), or computation nodes (233) based on failure indicators. The failure indicators may include at least one of cases where the AI accelerator (232) is not recognized at all on the PCI (Peripheral component Interconnect) bus, an ECC (Error correction code) memory error, or a specific operation that fails due to repetition, but are not necessarily limited to these. Depending on the individual characteristics of the failure indicators, a failure may be determined only when the same error is repeated more than a predetermined number of times within a certain period, or when the cumulative failure rate exceeds a threshold. Furthermore, the failure indicators may be collected individually at each unit of the partition, AI accelerator (232), and computation node (230), and the collection method, comparison criteria, and judgment threshold may be applied separately according to the respective unit.
[0049] Additionally, the cluster controller (220) can perform response scenarios according to the type and characteristics of the detected failure. The cluster controller (220) can set up response scenarios such as relocating the expert assigned to the location where the failure occurred to another normal partition, activating the partition where the expert is pre-loaded, disabling the AI accelerator (232) where the failure occurred, performing a soft reset such as unloading or reloading the driver of the AI accelerator (232) where the failure occurred, or performing at least one of the following: system rebooting of the computing node (233) where the failure occurred. The cluster controller (220) can record the cause of the failure and the response details in the audit log database, and if the failure continues to occur after checking the existing audit log, it can perform response scenarios by disabling the corresponding computing node (230) or the corresponding AI accelerator (232) and displaying a notification that hardware inspection and replacement are required. These failure response decisions are reflected through the process of updating the expert-partition mapping table. The cluster controller (220) can reflect the changes in the expert-partition mapping table and update it.
[0050] The computation node (230) is composed of a node controller (231), an AI accelerator (232), and a computation unit (233). At this time, the computation node (230) is a conceptual collective term including a first computation node (230a), a second computation node (230b), and a third computation node (230c) as illustrated in the drawing, and multiple computation nodes (230) may be included in the inference server (200). Although three computation nodes, the first computation node (230a), the second computation node (230b), and the third computation node (230c), are illustrated as examples in the drawing, the number of computation nodes (230) in the present invention is not limited thereto and can be expanded or reduced to any number depending on system requirements or operating environment.
[0051] The node controller (231) can receive an inference request from the load balancer module (212) of the app proxy (210) and forward the computation request to a specific partition of the AI accelerator (232) to process the request. The node controller (231) can control the allocation and execution flow of computation units (233) within a partition by monitoring and managing at least one of the resource status, accelerator load, and partition activation status within the computation node (230). Additionally, the node controller (231) can receive a result from the computation unit (233) or the AI accelerator (232) after the inference computation is completed and forward the result to the app proxy (210) as a processing result. Additionally, the node controller (231) can receive a split command from the cluster controller (220) and forward it to the AI accelerator (232). Additionally, the node controller (231) can receive a load command from the cluster controller (220) and forward it to the AI accelerator (232). In this specification, the node controller (231) is a conceptual general term including the node controller (231a) included in the first operation node (230a), the node controller (231b) included in the second operation node (230b), and the node controller (231c) included in the third operation node (230c), as illustrated in the drawings, and refers to the node controller (231) included in each operation node (230). In the drawings, the node controllers (231a, 231b, 231c) corresponding to the first operation node (230a), the second operation node (230b), and the third operation node (230c) are illustrated as examples, but since the number of operation nodes (230) in the present invention is not limited, the number of node controllers (231) corresponding thereto is also not limited.
[0052] The AI accelerator (232) may be configured to be divided into multiple partitions of the same size, either software-wise or hardware-wise. By independently loading one expert into each partition and isolating experts of the same size, inference operations of the corresponding experts can be performed. That is, the experts may all have the same size, the same number of parameters, the same memory usage, and the same computational requirements. This division can be achieved through physical or logical virtualization methods, and each partition can be configured to maintain an isolated computational environment so as not to be affected by the computation and memory usage of other partitions. Each partition of the AI accelerator (232) is defined to have the same size to minimize deviations in computational performance and resource interference between experts, and experts can be loaded or unloaded on a partition-by-partition basis as needed. Referring to FIGS. 4 and 5, it can be seen that one AI accelerator (232) exists in a form divided into four partitions of the same size.
[0053] In this specification, the AI accelerator (232) is a conceptual general term including the AI accelerator (232a) included in the first operation node (230a), the AI accelerator (232b) included in the second operation node (230b), and the AI accelerator (232c) included in the third operation node (230c), as illustrated in the drawings, and refers to the AI accelerator (232) included in each operation node (230). In the drawings, the AI accelerators (232a, 232b, 232c) corresponding to the first operation node (230a), the second operation node (230b), and the third operation node (230c) are illustrated as examples, but since the number of operation nodes (230) in the present invention is not limited, the number of AI accelerators (232) corresponding thereto is also not limited.
[0054] Multiple AI accelerators (232) may be installed within a single computation node (230), and each AI accelerator (232) may perform partition virtualization at the hardware or firmware level based on a software-based logical GPU partition virtualization method or an API (Application Programming Interface) provided by the accelerator manufacturer, in accordance with a partition command from the cluster controller (220) received from the node controller (231), but is not necessarily limited thereto. For such partitioning, the AI accelerator (232) may, as an example, utilize NVIDIA’s MIG (Multi-Instance GPU) and MPS (Multi-Process Service) functions or use a method of mapping individual partitions based on the chiplet structure inside the accelerator. Additionally, the AI accelerator (232) may perform partition configuration through standard virtualization interfaces supported by the CPU and operating system, such as SR-IOV (Single Root I / O Virtualization) and PCIe Virtual Function. The AI accelerator (232) can use the above technologies in a single manner or combine two or more methods to implement them in a hybrid form, and by using each of these divided partitions as an expert operation unit, it can support isolating each expert of the Mixture-of-Experts structure on the same resource scale.Additionally, when performing partition splitting, the AI accelerator (232) ensures that each partition is configured to have the same size as possible. The size can be defined based on computational core units such as Tensor Cores, Streaming Multiprocessors (SM), Texture Processing Clusters (TPC), and Graphics Processing Clusters (GPC), or based on the capacity of dedicated and shared memory for the accelerator. Through this uniform resource allocation, performance deviations between each expert can be minimized and computational consistency can be ensured. Furthermore, the AI accelerator (232) can provide an isolated computational environment so that computational units (233) can independently perform operations to load, unload, and swap experts for each partition. The AI accelerator (232) can load experts into partitioned partitions according to a load command from the cluster controller (220) received from the node controller (231). The AI accelerator (232) can switch to an active state once the loading of experts into the partitions is completed. The AI accelerator (232) can operate a large-scale Mixture-of-Experts structure model stably and scalably by minimizing performance variation between partitions and maximizing resource utilization efficiency by maintaining the size of all partitions uniformly.
[0055] The above operation unit (233) refers to a logical or physical execution unit allocated to each partition of the AI accelerator (232), and may be the minimum execution unit that actually performs inference operations on each partition. The operation unit (233) may be at least one of a container, a virtual machine, or a process provided by an operating system, but is not necessarily limited thereto. When the node controller (231) transmits an operation request to a partition of the AI accelerator (232), the operation unit (233) receives the operation request, loads an expert model, and is responsible for processing the operation for the input transmitted from the user. The operation unit (233) can transmit the processing result generated through inference processing to the app proxy (210). Additionally, the operation unit (233) can load, unload, or swap an expert to a specific partition according to a load command received from the cluster controller (220), thereby flexibly responding to at least one of a situation involving model configuration change, disaster recovery, or performance optimization. In this specification, the operation unit (233) is a conceptual general term including the operation unit (233a) included in the first operation node (230a), the operation unit (233b) included in the second operation node (230b), and the operation unit (233c) included in the third operation node (230c), as illustrated in the drawings, and refers to the operation unit (233) included in each operation node (230). In the drawings, operation units (233a, 233b, 233c) corresponding to the first operation node (230a), the second operation node (230b), and the third operation node (230c) are illustrated as examples, but since the number of operation nodes (230) in the present invention is not limited, the number of operation units (233) corresponding thereto is also not limited.
[0056]
[0057] Although the invention has been described with reference to embodiments illustrated in the drawings, this is merely illustrative, and those skilled in the art will understand that various modifications and equivalent alternative embodiments are possible therefrom. Accordingly, the true technical scope of protection of the invention should be determined by the technical spirit of the appended claims.
Claims
1. In an expert scaling method for dynamic load balancing and fault response, A step in which a cluster controller divides a single AI accelerator into partitions of equal size and loads an expert of equal size into each partition; A step in which an app proxy receives an inference request from a client and distributes and delivers the inference request to a computation node containing a partition in a normal state among a plurality of computation nodes; A step in which the app proxy collects and analyzes performance and status indicators of partitions, AI accelerators, and computational units of each computation node to monitor the load status; A step of dynamically expanding or shrinking computational capacity by activating inactive partitions or loading experts into new partitions based on metrics monitored by the cluster controller, and updating the expert-partition mapping table; A step in which the cluster controller detects failures in partitions, AI accelerators, or compute nodes based on failure indicators; A step in which the cluster controller performs a response scenario according to the type and characteristics of the detected failure; and The cluster controller includes a step of updating the expert-partition mapping table, and The step of the cluster controller performing a response scenario according to the type and characteristics of the detected failure is: A step of setting response scenarios in which the cluster controller redeploys experts assigned to the location where the failure occurred to another healthy partition, activates a partition where the experts are pre-loaded, disables the failed AI accelerator, performs a soft reset of the failed AI accelerator, or reboots the failed compute node, depending on the type and characteristics of the failure; A step in which the cluster controller records the cause of the failure and the response details in the audit log database; and It further includes a step in which the cluster controller checks existing audit logs to perform a response scenario by disabling the relevant compute node or AI accelerator if failures persist and displaying a notification that hardware inspection and replacement are required, and The cluster controller transmits a partitioning command to the computation nodes to divide each AI accelerator into partitions of equal size, generates a command to load experts into each partition of the partitioned AI accelerator, and The above partitioning command is a command that causes the AI accelerator to configure multiple minimum partitions of the same size capable of loading each expert, and The AI accelerator described above is configured to be divided into multiple partitions of the same size, either software-wise or hardware-wise, and loads one expert independently into each partition. Each partition is configured to maintain an isolated computational environment so as not to be affected by the computation and memory usage of other partitions. Expert scaling method for dynamic load balancing and fault response, characterized in that the cluster controller determines a fault when the same error is repeated more than a predetermined number of times within a certain period of time according to the individual characteristics of the fault indicator, or when the cumulative value of the fault rate exceeds a threshold.
2. In Paragraph 1, Expert scaling method for dynamic load balancing and fault response, characterized by statistically analyzing at least one of the instantaneous value, period-based average value, period-based variance value, and cumulative value of the performance indicator and status indicator of each computation node, AI accelerator, and computation unit, or by comparing with a preset threshold value for each model or by monitoring using a machine learning-based prediction method.
3. A client that transmits an inference request to an inference server and receives a response; and It includes an inference server that, in response to an inference request received from a client, selects a normal partition among AI accelerators divided into multiple partitions and performs inference through an expert loaded in that partition. The above inference server is, An app proxy that receives inference requests from a client, distributes and delivers inference requests to computation nodes containing partitions in a healthy state among multiple computation nodes, and monitors load status by collecting and analyzing performance and status indicators of partitions, AI accelerators, and computation units of each computation node; and It includes a cluster controller that dynamically expands or shrinks computational capacity by activating inactive partitions or loading experts into new partitions based on monitored metrics and updates the expert-partition mapping table, detects failures in partitions, AI accelerators, or computation nodes based on failure metrics, performs response scenarios according to the type and characteristics of the detected failure, and updates the expert-partition mapping table. The above cluster controller is Depending on the type and characteristics of the failure, response scenarios are established to relocate experts assigned to the failed location to other healthy partitions, activate partitions where the experts are pre-loaded, disable the failed AI accelerator, perform a soft reset on the failed AI accelerator, or reboot the failed compute node; the cause of the failure and the response details are recorded in the audit log database; and if the failure persists after checking existing audit logs, the corresponding compute node or AI accelerator is disabled and a notification indicating the need for hardware inspection and replacement is displayed to execute the response scenario. The cluster controller transmits a partitioning command to the computation nodes to divide each AI accelerator into partitions of equal size, generates a command to load experts into each partition of the partitioned AI accelerator, and The above partitioning command is a command that causes the AI accelerator to configure multiple minimum partitions of the same size capable of loading each expert, and The AI accelerator described above is configured to be divided into multiple partitions of the same size, either software-wise or hardware-wise, and loads one expert independently into each partition. Each partition is configured to maintain an isolated computational environment so as not to be affected by the computation and memory usage of other partitions. The above cluster controller is characterized by determining a failure when the same error is repeated more than a predetermined number of times within a certain period of time according to the individual characteristics of the failure indicator, or when the cumulative value of the failure rate exceeds a threshold, in an expert scaling system for dynamic load balancing and failure response.
4. In Paragraph 3, An expert scaling system for dynamic load balancing and fault response, characterized by statistically analyzing at least one of the instantaneous value, period-based average value, period-based variance value, and cumulative value of the performance indicator and status indicator of each computation node, AI accelerator, and computation unit, or by comparing with a preset threshold value for each model or by monitoring using a machine learning-based prediction method.
