US20260195177A1 · App 19/012,379
SYSTEMS AND METHODS FOR OPTIMAL MODEL DECOMPOSITION
Publication
Application
Classifications
IPC Classifications
CPC Classifications
Applicants
Dell Products L.P.
Inventors
Jake M. LELAND, Ryan N. COMER, Robert C. HERNANDEZ, Tyler R. COX
Abstract
An information handling system may include a memory and a processor communicatively coupled to the memory, and configured to model an artificial intelligence model as a graph, select a cost function for assigning a cost value for each edge of the graph, and select a demand function for assigning a demand value between each pair of nodes of the graph. The processor may also be configured to, for each cut of a plurality of possible cuts to the graph, calculate a sparsity of each cut based on the cost value and the demand value corresponding to such cut, determine a sparsest cut of the plurality of cuts as a cut having a smallest sparsity among the sparsities of the plurality of possible cuts, and split the artificial intelligence model into a plurality of fragments based on the sparsest cut.
Get a summary, plain-language explanation, or ask your own question.
Figures
Description
TECHNICAL FIELD
[0001]The present disclosure relates in general to information handling systems, and more particularly to methods and systems for optimal decomposition of an artificial intelligence model across compute nodes.
BACKGROUND
[0002]s the value and use of information continues to increase, individuals and businesses seek additional ways to process and store information. One option available to users is information handling systems. An information handling system generally processes, compiles, stores, and/or communicates information or data for business, personal, or other purposes thereby allowing users to take advantage of the value of the information. Because technology and information handling needs and requirements vary between different users or applications, information handling systems may also vary regarding what information is handled, how the information is handled, how much information is processed, stored, or communicated, and how quickly and efficiently the information may be processed, stored, or communicated. The variations in information handling systems allow for information handling systems to be general or configured for a specific user or specific use such as financial transaction processing, airline reservations, enterprise data storage, or global communications. In addition, information handling systems may include a variety of hardware and software components that may be configured to process, store, and communicate information and may include one or more computer systems, data storage systems, and networking systems.
[0003]Information handling systems are increasingly used for artificial intelligence. Artificial intelligence, in its broadest sense, is intelligence exhibited by machines, particularly information handling systems. Artificial intelligence is a field of research in computer science that develops and studies methods and software that enable machines to perceive their environment and use learning and intelligence to take actions that maximize their chances of achieving defined goals. Artificial intelligence models are executable programs that detect specific patterns using a collection of data sets. A model may be thought of as an illustration of a system that can receive data inputs and draw conclusions or conduct actions depending on those conclusions. An example of an artificial model is a neural network, which may be a model that makes decisions in a manner similar to the human brain, by using processes that mimic the way biological neurons work together to identify phenomena, weigh options and arrive at conclusions.
[0004]As advancements in artificial intelligence infrastructure continue to enable more client-friendly form factors, artificial intelligence model deployments are rapidly diversifying from cloud computing environments to edge computing environments. Artificial intelligence-enabled enterprises have increasingly more freedom to choose where their workloads run, often selecting local and edge deployments for the sake of cost and data protection. However, edge environments present unique challenges. Complexities arise due to the diversity of heterogeneous nodes and their distinct limitations in compute, memory, networking, and operator support.
[0005]Enterprises are eager to incorporate artificial intelligence, including generative artificial intelligence, into their everyday toolkits, and as adoption continues to increase, many administrators are looking toward their edge resources to provide a more responsive, more secure, and more cost-efficient execution environment for their artificial intelligence workloads. However, foundation models often have compute and memory demands which exceed any single node.
SUMMARY
[0006]In accordance with the teachings of the present disclosure, the disadvantages and problems associated with existing approaches to deployment of artificial intelligence workloads may be reduced or eliminated.
[0007]In accordance with embodiments of the present disclosure, an information handling system may include a memory and a processor communicatively coupled to the memory, and configured to model an artificial intelligence model as a graph, select a cost function for assigning a cost value for each edge of the graph, and select a demand function for assigning a demand value between each pair of nodes of the graph. The processor may also be configured to, for each cut of a plurality of possible cuts to the graph, calculate a sparsity of each cut based on the cost value and the demand value corresponding to such cut, determine a sparsest cut of the plurality of cuts as a cut having a smallest sparsity among the sparsities of the plurality of possible cuts, and split the artificial intelligence model into a plurality of fragments based on the sparsest cut.
[0008]In accordance with these and other embodiments of the present disclosure, a method may include modeling an artificial intelligence model as a graph, selecting a cost function for assigning a cost value for each edge of the graph and selecting a demand function for assigning a demand value between each pair of nodes of the graph. The method may also include for each cut of a plurality of possible cuts to the graph, calculating a sparsity of each cut based on the cost value and the demand value corresponding to such cut, determining a sparsest cut of the plurality of cuts as a cut having a smallest sparsity among the sparsities of the plurality of possible cuts, and splitting the artificial intelligence model into a plurality of fragments based on the sparsest cut.
[0009]In accordance with these and other embodiments of the present disclosure, an article of manufacture may include a non-transitory computer-readable medium and computer-executable instructions carried on the computer-readable medium, the instructions readable by a processor, the instructions, when read and executed, for causing the processor to: (i) model an artificial intelligence model as a graph; (ii) select a cost function for assigning a cost value for each edge of the graph; (iii) select a demand function for assigning a demand value between each pair of nodes of the graph; (iv) for each cut of a plurality of possible cuts to the graph, calculate a sparsity of each cut based on the cost value and the demand value corresponding to such cut; (v) determine a sparsest cut of the plurality of cuts as a cut having a smallest sparsity among the sparsities of the plurality of possible cuts; and (vi) split the artificial intelligence model into a plurality of fragments based on the sparsest cut.
[0010]Technical advantages of the present disclosure may be readily apparent to one skilled in the art from the figures, description and claims included herein. The objects and advantages of the embodiments will be realized and achieved at least by the elements, features, and combinations particularly pointed out in the claims.
[0011]It is to be understood that both the foregoing general description and the following detailed description are examples and explanatory and are not restrictive of the claims set forth in this disclosure.
BRIEF DESCRIPTION OF THE DRAWINGS
[0012]A more complete understanding of the present embodiments and advantages thereof may be acquired by referring to the following description taken in conjunction with the accompanying drawings, in which like reference numbers indicate like features, and wherein:
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
DETAILED DESCRIPTION
[0024]Preferred embodiments and their advantages are best understood by reference to
[0025]For the purposes of this disclosure, computer-readable media may include any instrumentality or aggregation of instrumentalities that may retain data and/or instructions for a period of time. Computer-readable media may include, without limitation, storage media such as a direct access storage device (e.g., a hard disk drive or floppy disk), a sequential access storage device (e.g., a tape disk drive), compact disk, CD-ROM, DVD, random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and/or flash memory; as well as communications media such as wires, optical fibers, microwaves, radio waves, and other electromagnetic and/or optical carriers; and/or any combination of the foregoing.
[0026]For the purposes of this disclosure, information handling resources may broadly refer to any component system, device or apparatus of an information handling system, including without limitation processors, service processors, basic input/output systems, buses, memories, I/O devices and/or interfaces, storage resources, network interfaces, motherboards, and/or any other components and/or elements of an information handling system.
[0027]
[0028]Each compute node 102 may comprise an information handling system, as defined above. In operation, each compute node 102 may be configured to execute an artificial intelligence workload using the processing and memory resources thereof. The various compute nodes 102 in system 100 may represent different types of information handling systems within an enterprise. For example, one or more of compute nodes 102 may comprise servers, one or more of compute nodes 102 may comprise client information handling systems (e.g., a laptop, notebook, tablet, handheld, smart phone, personal digital assistant, etc.), one or more of compute nodes 102 may comprise edge devices, and one or more of compute nodes 102 may comprise cloud computing resources.
[0029]As depicted in
[0030]Processor 103 may include any system, device, or apparatus configured to interpret and/or execute program instructions and/or process data, and may include, without limitation, a microprocessor, microcontroller, digital signal (DSP), application specific integrated circuit processor (ASIC), graphics processing unit (GPU), neural processing unit (NPU), or any other digital or analog circuitry configured to interpret and/or execute program instructions and/or process data. In some embodiments, processor 103 may interpret and/or execute program instructions and/or process data stored in memory 104 and/or another component of a compute node 102.
[0031]Memory 104 may be communicatively coupled to processor 103 and may include any system, device, or apparatus configured to retain program instructions and/or data for a period of time (e.g., computer-readable media). Memory 104 may include RAM, EEPROM, a PCMCIA card, flash memory, magnetic storage, opto-magnetic storage, or any suitable selection and/or array of volatile or non-volatile memory that retains data after power to compute node 102 is turned off.
[0032]In operation, memory 104 may store all or a portion of an artificial intelligence model, data associated with the model, and executable instructions which may be read and executed by processor 103 to process the data in accordance with the model.
[0033]For purposes of clarity and exposition, each compute node 102 is depicted as only including a processor 103 and a memory 104. However, each compute node 102 may comprise other information handling resources not explicitly depicted in
[0034]Control plane 108 may comprise any system, device, or apparatus configured to manage and control execution of artificial intelligence models on the various compute nodes 102. Accordingly, control plane 108 may execute one or more services, including an orchestrator service, for decomposing models for execution among the various compute nodes 102, as described in greater detail below. In some embodiments, control plane 108 may comprise an information handling system distinct from compute nodes 102. In other embodiments, control plane 108 may be a part of and/or executed by one of compute nodes 102. Although not shown in
[0035]Network 120 may comprise a network and/or fabric configured to communicatively couple compute nodes 102 and control plane 108 to each other and/or one or more other information handling systems. In these and other embodiments, network 120 may include a communication infrastructure, which provides physical connections, and a management layer, which organizes the physical connections and information handling systems communicatively coupled to network 120. Network 120 may be implemented as, or may be a part of, a storage area network (SAN), personal area network (PAN), local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a wireless local area network (WLAN), a virtual private network (VPN), an intranet, the Internet or any other appropriate architecture or system that facilitates the communication of signals, data and/or messages (generally referred to as data). Network 120 may transmit data via wireless transmissions and/or wire-line transmissions using any storage and/or communication protocol, including without limitation, Fibre Channel, Frame Relay, Asynchronous Transfer Mode (ATM), Internet protocol (IP), other packet-based protocol, small computer system interface (SCSI), Internet SCSI (iSCSI), Serial Attached SCSI (SAS) or any other transport that operates with the SCSI protocol, advanced technology attachment (ATA), serial ATA (SATA), advanced technology attachment packet interface (ATAPI), serial storage architecture (SSA), integrated drive electronics (IDE), and/or any combination thereof. Network 120 and its various components may be implemented using hardware, software, or any combination thereof.
[0036]In operation, control plane 108 may decompose artificial intelligence models based on one or more key heuristics. These heuristics may vary according to the heterogenous environment of system 100 and the rationale for splitting the model. For example, control plane 108 may (1) decompose a model across nodes due to memory constraints, (2) decompose a model across local and cloud nodes for the purpose of privacy or personalization, or (3) decompose a model due to limited operator support across compute nodes. In every case, the point(s) at which the model is split may also minimize the amount of data transferred in order to minimize network traffic.
[0037]At a fundamental level, models implemented as neural networks are graphs. The systems and methods disclosed herein may determine an optimal location to split a neural network graph cut based on dynamically configured cost functions. The systems and methods of the present disclosure may manipulate these cost functions to achieve desired graph decomposition. The systems and methods may be employed by a user pre-processing a model or may be initiated dynamically by an orchestration system upon receiving a new model workload. In both cases, inputs defining the constraints of the system (user-configured or inferred by an orchestrator) may steer the algorithm in producing a model optimally partitioned for the environment.
[0038]
[0039]At step 202, control plane 108 may receive a new artificial intelligence model and a user configuration, which may include user preferences regarding execution of the artificial intelligence model.
[0040]At step 204, control plane 108 may select a cost function and a demand function to optimize decomposition consistent with user preferences. The selection of cost functions and demand functions is explained in greater detail elsewhere in this disclosure.
[0041]At step 206, control plane 108 may employ a sparsest cut algorithm based on the cost function and the demand function to determine an optimal location to split a graph representing the model. At step 208, control plane 108 may split the model into a plurality of fragments based on the location of the split. At step 210, a user may deploy the fragments to different compute nodes 102 in accordance with the suggested model split such that each of the plurality of fragments execute on different compute nodes 102. After completion of step 210, method 200 may end.
[0042]Although
[0043]Method 200 may be implemented in whole or part using a variety of configurations of system 100 and/or any other system operable to implement method 200. In certain embodiments, method 200 may be implemented partially or fully in software and/or firmware embodied in computer-readable media.
[0044]
[0045]At step 302, control plane 108 may receive a new artificial intelligence model. At step 304, control plane 108 may scan the various compute nodes 102 to determine if and which compute nodes have available capacity for execution of the model. Such scanning of compute nodes 102 may determine the processing resources, memory capacity, operator support, and/or network capacity.
[0046]At step 306, if a suitable compute node 102 is found capable of executing the new model as-is, method 300 may proceed to step 320. Otherwise, method 300 may proceed to step 308.
[0047]At step 308, control plane 108 may rescan system 100 considering distribution of artificial intelligence workload across accelerators or across compute nodes 102. At step 310, based on the rescan, control plane 108 may identify bottlenecks in execution, considering processing resources, memory capacity, operator support, and/or network capacity of compute nodes 102.
[0048]At step 312, control plane 108 may select a cost function and a demand function to optimize decomposition in a manner that reduces the identified bottlenecks. The selection of cost functions and demand functions is explained in greater detail elsewhere in this disclosure.
[0049]At step 314, control plane 108 may employ a sparsest cut algorithm based on the cost function and the demand function to determine an optimal location to split a graph representing the model. At step 316, control plane 108 may split the model into a plurality of fragments based on the location of the split. At step 318, control plane 108 may deploy the fragments to different compute nodes 102 such that each of the plurality of fragments execute on different compute nodes 102. After completion of step 318, method 300 may end.
[0050]At step 320, control plane 108 may deploy the model to the compute node 102 capable of executing the model as-is. After completion of step 320, method 300 may end.
[0051]Although
[0052]Method 300 may be implemented in whole or part using a variety of configurations of system 102 and/or any other system operable to implement method 300. In certain embodiments, method 300 may be implemented partially or fully in software and/or firmware embodied in computer-readable media.
[0053]In order to execute steps 204 and 206 of method 200 and steps 312 and 314 of method 300 described above, control plane 108 may select a cost function, select a demand function, and then apply a sparsest cut algorithm to the cost function and the demand function to determine an optimum location to split a model. For a given weighted graph G=(V,E), which may represent an artificial intelligence model, the sparsity Φ of a cut or split S⊆V may be defined as:
where a cost function c may be given by:
and demand function D may be given by:
[0054]To optimize a location of a graph split for an artificial intelligence model, control plane 108 may find the sparsest cut S* in the graph G which minimizes Φ:
[0055]Every edge e of graph G may have a cost (or weight/capacity) value determined by cost function c(e) and every pair of vertices (s,t) in graph G may have a demand (or requirement) value determined by a demand function D(s,t). Thus, control plane 108 attempts to minimize cost and maximize demand by finding the sparsest cut S* in the graph G which minimizes Φ. Consequently, how the cost and demand functions are defined may dictate how the optimal split location is determined.
[0056]To further illustrate,
[0057]
[0058]The concept depicted in
[0059]For example,
[0060]As another example,
[0061]As yet another example,
[0062]Notably, graphs 600, 700, and 800 of
[0063]As a further example,
φμ,σ2 may comprise the normal probability density function, with the parameter μ controlling the split location of graph 900 and the parameter σ2 controlling flexibility. The quantity
may define a fractional depth of a node with layers of the model. The result of
for each node is illustrated in
[0064]While parameter μ may have any value, an exemplary value of parameter μ=⅓ has been chosen for graph 900 of
[0065]The outcome of using the demand function set forth above for graph 900 is that the sparsest cut algorithm may be most incentivized to cut graph 900 in the middle of the probability density function. This concept is what the overlay of the normal distribution along graph 900 is intended to represent in
[0066]As a further example,
[0067]As a further example,
[0068]Use cases for the approach of
[0069]It is noteworthy in
[0070]Further, in some instances, the cost and demand functions illustrated in the foregoing figures may be combined to account for multiple optimization considerations. For example, a scenario for splitting a model may be to balance memory usage (e.g., as in
[0071]As used herein, when two or more elements are referred to as “coupled” to one another, such term indicates that such two or more elements are in electronic communication or mechanical communication, as applicable, whether connected indirectly or directly, with or without intervening elements.
[0072]This disclosure encompasses all changes, substitutions, variations, alterations, and modifications to the example embodiments herein that a person having ordinary skill in the art would comprehend. Similarly, where appropriate, the appended claims encompass all changes, substitutions, variations, alterations, and modifications to the example embodiments herein that a person having ordinary skill in the art would comprehend. Moreover, reference in the appended claims to an apparatus or system or a component of an apparatus or system being adapted to, arranged to, capable of, configured to, enabled to, operable to, or operative to perform a particular function encompasses that apparatus, system, or component, whether or not it or that particular function is activated, turned on, or unlocked, as long as that apparatus, system, or component is so adapted, arranged, capable, configured, enabled, operable, or operative. Accordingly, modifications, additions, or omissions may be made to the systems, apparatuses, and methods described herein without departing from the scope of the disclosure. For example, the components of the systems and apparatuses may be integrated or separated. Moreover, the operations of the systems and apparatuses disclosed herein may be performed by more, fewer, or other components and the methods described may include more, fewer, or other steps. Additionally, steps may be performed in any suitable order. As used in this document, “each” refers to each member of a set or each member of a subset of a set.
[0073]Although exemplary embodiments are illustrated in the figures and described above, the principles of the present disclosure may be implemented using any number of techniques, whether currently known or not. The present disclosure should in no way be limited to the exemplary implementations and techniques illustrated in the figures and described above.
[0074]Unless otherwise specifically noted, articles depicted in the figures are not necessarily drawn to scale.
[0075]All examples and conditional language recited herein are intended for pedagogical objects to aid the reader in understanding the disclosure and the concepts contributed by the inventor to furthering the art, and are construed as being without limitation to such specifically recited examples and conditions. Although embodiments of the present disclosure have been described in detail, it should be understood that various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the disclosure.
[0076]Although specific advantages have been enumerated above, various embodiments may include some, none, or all of the enumerated advantages. Additionally, other technical advantages may become readily apparent to one of ordinary skill in the art after review of the foregoing figures and description.
[0077]To aid the Patent Office and any readers of any patent issued on this application in interpreting the claims appended hereto, applicants wish to note that they do not intend any of the appended claims or claim elements to invoke 35 U.S. C. § 112(f) unless the words “means for” or “step for” are explicitly used in the particular claim.
Claims
What is claimed is:
1. An information handling system comprising:
a memory; and
a processor communicatively coupled to the memory, and configured to:
model an artificial intelligence model as a graph;
select a cost function for assigning a cost value for each edge of the graph;
select a demand function for assigning a demand value between each pair of nodes of the graph;
for each cut of a plurality of possible cuts to the graph, calculate a sparsity of each cut based on the cost value and the demand value corresponding to such cut;
determine a sparsest cut of the plurality of cuts as a cut having a smallest sparsity among the sparsities of the plurality of possible cuts; and
split the artificial intelligence model into a plurality of fragments based on the sparsest cut.
2. The information handling system of
3. The information handling system of
4. The information handling system of
5. The information handling system of
6. The information handling system of
7. The information handling system of
8. The information handling system of
9. A method comprising:
modeling an artificial intelligence model as a graph;
selecting a cost function for assigning a cost value for each edge of the graph;
selecting a demand function for assigning a demand value between each pair of nodes of the graph;
for each cut of a plurality of possible cuts to the graph, calculating a sparsity of each cut based on the cost value and the demand value corresponding to such cut;
determining a sparsest cut of the plurality of cuts as a cut having a smallest sparsity among the sparsities of the plurality of possible cuts; and
splitting the artificial intelligence model into a plurality of fragments based on the sparsest cut.
10. The method of
11. The method of
12. The method of
13. The method of
14. The method of
15. The method of
16. The method of
17. An article of manufacture comprising:
a non-transitory computer-readable medium; and
computer-executable instructions carried on the computer-readable medium, the instructions readable by a processor, the instructions, when read and executed, for causing the processor to:
model an artificial intelligence model as a graph;
select a cost function for assigning a cost value for each edge of the graph;
select a demand function for assigning a demand value between each pair of nodes of the graph;
for each cut of a plurality of possible cuts to the graph, calculate a sparsity of each cut based on the cost value and the demand value corresponding to such cut;
determine a sparsest cut of the plurality of cuts as a cut having a smallest sparsity among the sparsities of the plurality of possible cuts; and
split the artificial intelligence model into a plurality of fragments based on the sparsest cut.
18. The article of
19. The article of
20. The article of
21. The article of
22. The article of
23. The article of
24. The article of