Device and method for providing benchmark result of artificial intelligence based model
The method addresses the challenge of matching AI models with suitable hardware by using a benchmarking process that considers hardware capabilities, enhancing performance and resource efficiency in edge AI applications.
Patent Information
- Application Number
- JP2023120114
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-27
- Filing Date
- 2023-07-24
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-07-24
AI Technical Summary
The challenge of efficiently determining suitable artificial intelligence-based models and hardware for edge AI applications, as existing methods require extensive knowledge and resources to match models with optimal hardware, leading to varying inference performance based on hardware capabilities.
A method for providing benchmark results that includes obtaining input data, determining target nodes, and executing a target model to generate benchmark results, utilizing a candidate node list with latency, memory, and hardware information to efficiently match models with suitable hardware.
Enables efficient benchmarking of AI models on specific nodes, optimizing performance by considering hardware capabilities and reducing resource requirements for model selection.
Smart Images

Figure 2024121756000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to artificial intelligence technology, and more particularly, to a benchmarking technology for artificial intelligence-based models. [Background technology]
[0002] With the development of AI technology, various AI-based models have been developed. The need for computing resources to process the various AI-based models is increasing, and related industries are also continuously developing hardware with new capabilities.
[0003] Demand is increasing for edge AI, which can perform calculations directly on networked devices such as personal computers, smartphones, automobiles, wearable devices, and robots, and research is being conducted into artificial intelligence-based models that take hardware resources into account.
[0004] As described above, with the development of edge AI technology, the importance of hardware in the field of artificial intelligence technology is increasing. Therefore, in order to develop and launch an artificial intelligence-based solution, sufficient knowledge of not only an artificial intelligence-based model but also various hardware on which the artificial intelligence-based model runs is required. For example, even if a model has excellent performance in a specific domain, the inference performance of the model may differ depending on the hardware on which the model runs. A model with optimal performance in a specific domain may not be supported by a specific hardware that provides a service. Therefore, in order to determine both an artificial intelligence-based model suitable for a service to be provided and hardware suitable for the artificial intelligence-based model, extensive background knowledge and a huge amount of resources on artificial intelligence technology and hardware technology are required. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] U.S. Patent Publication No. 2022-0121927 Summary of the Invention [Problem to be solved by the invention]
[0006] The present disclosure has been devised in view of the above-mentioned background technology, and aims to efficiently provide benchmark results for a specific model on a specific node.
[0007] The technical problems in the present disclosure are not limited to those mentioned above, and a person skilled in the art can clearly understand problems other than the above-mentioned technical problems based on the following description. [Means for solving the problem]
[0008] According to an embodiment of the present disclosure, a method for providing a benchmark result, executed on a computing device, is disclosed, which may include: acquiring first input data including at least one of an inference task and a dataset, determining a target model to be benchmarked for the inference task and at least one target node on which the inference task of the target model is executed, the determined target model corresponding to an artificial intelligence-based model on which the inference task is benchmarked on the at least one target node based on the dataset, and providing a benchmark result obtained by executing the target model on the at least one target node.
[0009] In one embodiment, the step of determining the at least one target node may include the steps of providing a candidate node list including candidate nodes proposed for benchmarking related to the inference task, and determining the at least one target node based on second input data for selecting the at least one target node from the candidate node list.
[0010] In one embodiment, the candidate node list may include identification information for each of the candidate nodes and estimated latency information for each of the candidate nodes when the target model is executed.
[0011] In one embodiment, the ordering of the candidate nodes included in the candidate node list may be determined based on the magnitude of the expected latency information.
[0012] In one embodiment, if the difference in the magnitude of the predicted latency information between a first candidate node and a second candidate node among the candidate nodes is within a predetermined threshold range, the sorting order of the first candidate node and the second candidate node can be determined based on the memory usage and CPU usage of the first candidate node and the second candidate node.
[0013] In one embodiment, the candidate node list may include power mode information indicating CPU core usage in at least some of the candidate nodes, and fan mode information indicating fan usage in at least some of the candidate nodes.
[0014] In one embodiment, the candidate node list may include information regarding at least one model that can be supported in each of the candidate nodes, library information required for the at least one model that can be supported in each of the candidate nodes to be installed, and power usage information indicating power usage obtained from a power measurement sensor connected to the candidate node.
[0015] In one embodiment, a model size is determined based on the size of the dataset of the first input data, and the candidate node list may include candidate nodes that have free memory capacity that exceeds the determined model size.
[0016] In one embodiment, the step of providing the candidate node list may include a step of including, as the candidate nodes, a plurality of first nodes having an execution environment supporting a first operator included in the input source model in the candidate node list.
[0017] In one embodiment, the step of providing the candidate node list may include a step of including, as the candidate nodes, a plurality of second nodes in the candidate node list, the second nodes having an execution environment that does not support a first operator included in the input source model but that supports a second operator different from the first operator that can substitute for the first operator.
[0018] In one embodiment, the benchmark result may include preprocessing time information which is information related to the time required for preprocessing of inference of the target model in the at least one target node, inference time information which is information related to the time required for inference on the target model in the at least one target node, preprocessing memory usage information which is information related to the memory usage required for preprocessing of inference of the target model in the at least one target node, and inference memory usage information which is information related to the memory usage required for inference on the target model in the at least one target node.
[0019] In one embodiment, the benchmark result may include quantitative information regarding inference time, obtained by repeatedly inferring the target model a predetermined number of times in the at least one target node, and quantitative information regarding memory usage in each of the NPU, CPU, and GPU, obtained by inferring the target model in the at least one target node.
[0020] In one embodiment, the step of providing the benchmark results obtained by executing the target model on the at least one target node may include a step of distinguishing between nodes capable of wireless communication and nodes incapable of wireless communication on the at least one target node, and a step of causing the node capable of wireless communication to connect to the node incapable of wireless communication using serial communication, and sending a benchmark task to the node capable of wireless communication corresponding to the node incapable of wireless communication to obtain a benchmark result for the node incapable of wireless communication.
[0021] In one embodiment, when the at least one target node includes a third node that cannot be externally confirmed, the step of providing the benchmark result may include the steps of sending a first acknowledgment message to the third node in response to receiving a first low-power wireless signal from the third node, the first acknowledgment message including a benchmark task for benchmarking the target model at the third node, and receiving a second low-power wireless signal from the third node including the benchmark result generated by the third node.
[0022] In one embodiment, when the at least one target node includes a third node that cannot be confirmed externally, the step of providing the benchmark result may further include a step of determining that the benchmark task in the third node has failed and setting the third node to an inactive state if the second low power wireless signal is not received within a time corresponding to a predetermined waiting time threshold, and a step of setting the state of the third node to an active state in response to receiving a third low power wireless signal from the third node set to the inactive state.
[0023] In one embodiment, the first low power wireless signal may include information regarding whether the third node is performing a benchmark, information regarding memory usage of the third node, and hardware identification information of the third node.
[0024] In one embodiment, the benchmark task included in the first response message may include target model information that the third node can download and node configuration information used to convert the target model downloaded by the third node, and the benchmark results generated by the third node may include results obtained by executing the target model in the execution environment of the third node based on the node configuration information and the target model information.
[0025] In one embodiment, based on the second input data, information of a target model supported by at least one target node included in the second input data may be automatically provided.
[0026] In one embodiment, the information of the target model may include identification information corresponding to the target model supported in the at least one target node, and software version information of the target model supported in the at least one target node.
[0027] In one embodiment, a computer program stored on a computer-readable storage medium is disclosed, which, when executed by a computing device, causes the computing device to perform the following operations to provide a benchmark result, which may include: acquiring first input data including at least one of an inference task and a dataset, determining a target model to be benchmarked for the inference task and at least one target node on which the inference task of the target model is executed, the determined target model corresponding to an artificial intelligence-based model on which the benchmark for the inference task is executed on the at least one target node based on the dataset, and providing a benchmark result obtained by executing the target model on the at least one target node.
[0028] In one embodiment, a computing device for generating a benchmark result is disclosed. The computing device may include at least one processor and a memory. The at least one processor may receive first input data including at least one of an inference task and a dataset, determine a target model to be benchmarked for the inference task and at least one target node on which the inference task of the target model is executed, the determined target model corresponds to an artificial intelligence-based model on which the benchmark for the inference task is executed on the at least one target node based on the dataset, and provide a benchmark result of the target model obtained by executing the target model on the at least one target node. Effect of the Invention
[0029] The method according to an embodiment of the present disclosure can provide benchmark results for a specific model on a specific node in an efficient manner. [Brief description of the drawings]
[0030] [Figure 1] FIG. 1 illustrates a schematic block diagram of a computing device in accordance with one embodiment of the present disclosure. [Diagram 2] FIG. 2 illustrates an exemplary structure of an artificial intelligence-based model in one embodiment of the present disclosure. [Diagram 3] FIG. 3 illustrates an exemplary schematic diagram of a system for providing benchmark results in accordance with one embodiment of the present disclosure. [Figure 4] FIG. 4 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure. [Diagram 5] FIG. 5 illustrates an exemplary table-based resource structure used to generate a candidate node list in accordance with one embodiment of the present disclosure. [Figure 6] FIG. 6 illustrates an exemplary table-based resource structure used to generate a candidate node list in accordance with one embodiment of the present disclosure. [Figure 7] FIG. 7 illustrates an exemplary table-based resource structure used to generate a candidate node list in accordance with one embodiment of the present disclosure. [Figure 8] FIG. 8 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure. [Figure 9] FIG. 9 illustrates an exemplary method for providing benchmark results in one embodiment of the present disclosure. [Figure 10] FIG. 10 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure. [Figure 11] FIG. 11 illustrates an exemplary method for providing benchmark results for nodes that cannot be externally confirmed in accordance with one embodiment of the present disclosure. [Figure 12] FIG. 12 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure. [Figure 13] FIG. 13 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure. [Figure 14] FIG. 14 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure. [Figure 15] FIG. 15 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure. [Figure 16] FIG. 16 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure. [Figure 17] FIG. 17 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure. [Figure 18] FIG. 18 is a schematic diagram illustrating a computing environment in accordance with one embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0031] Various examples will be described below with reference to the drawings. In this specification, various explanations are provided to facilitate understanding of the present disclosure. In the specific explanation for implementing the present disclosure, configurations that are not directly related to the technical gist of the present disclosure are omitted to the extent that the technical gist of the present invention is not obscured. Furthermore, the terms or words used in this specification and claims should be interpreted with meanings and concepts that match the technical idea of the present invention, based on the principle that the inventor can appropriately define the concept of the term in order to best describe his / her invention.
[0032] As used herein, terms such as "module," "system," and the like refer to computer-related entities, hardware, firmware, software, a combination of software and hardware, or software execution, and may be used interchangeably. For example, a module may be, but is not limited to, a procedure running on a processor, a processor, an object, a thread of execution, a program, an application, and / or a computing device. One or more modules may reside within a processor and / or thread of execution. A module may be localized within one computer. A module may be distributed across two or more computers. Such modules may also execute from a variety of computer-readable media having a variety of data structures stored therein. A module may communicate, for example, through local and / or remote processing, using signals having one or more data packets (e.g., data from one component interacting with other components in a local or distributed system and / or data transmitted over a network such as the Internet to other systems).
[0033] In addition, the term "or" is intended to mean an inclusive "or" rather than an exclusive "or". In other words, unless otherwise specified and clear from the context, "X utilizes A or B" is intended to mean one of the natural inclusive permutations. In other words, if X utilizes A; X utilizes B; or X utilizes both A and B, "X utilizes A or B" can be understood to apply to any of these. In addition, the terms "and / or" and "at least" in this specification refer to and include all possible combinations of one or more items among the multiple related items listed. Note that "and / or" is interpreted in the same way. For example, the terms "at least one of A or B", "at least one of A and B", "at least one of A and B" are intended to mean "when only A is included", "when only B is included", and "when a combination of A and B is included".
[0034] Additionally, the predicate "comprises" and / or the modifier "comprises" should be understood to mean the presence of the feature and / or component in question. However, the predicate "comprises" and / or the modifier "comprises" should be understood not to exclude the presence or addition of one or more other further features, components and / or groups thereof. Additionally, in the present specification and claims, the singular should generally be construed to mean "one or more," unless a specific number is specified or the context is clear to indicate the singular form.
[0035] Those skilled in the art will further appreciate that the various exemplary logical components, blocks, modules, circuits, means, logic, algorithms described in accordance with the embodiments disclosed herein may be embodied using electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the various exemplary components, blocks, means, logic, modules, circuits, steps have been described above in general terms in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the particular application and design limitations of the overall computing device.
[0036] The description of the embodiments set forth herein is provided to enable any person skilled in the art to use or practice the present disclosure. Various modifications to the embodiments will be apparent to those skilled in the art to which the present disclosure pertains. The generic principles defined herein may be applied to other embodiments without departing from the scope of the present disclosure. Thus, the present invention is not limited to the embodiments set forth herein. The present invention is to be accorded the broadest scope consistent with the principles and novel features disclosed herein.
[0037] In the present disclosure, terms such as 1st, 2nd, 3rd, etc., expressed as Nth are used to distinguish at least one entity. For example, an entity expressed as 1st and an entity expressed as 2nd may be the same or different. Terms such as 1st-1st, 1st-2nd, 1st-Nth, etc. may also be used to distinguish between them.
[0038] In this disclosure, the term "benchmark" may refer to the act of running or testing a model on a node or measuring the performance of a model on a node. Benchmark results or benchmark result information in this disclosure may include information obtained by a benchmark or information that is a processed version of information obtained by a benchmark.
[0039] The term "artificial intelligence-based model" in the present disclosure may be used interchangeably with artificial intelligence model, computational model, neural network, network function, neural network, and model. In the present disclosure, model may be used to collectively mean model file and / or model type information. In one embodiment, model type information may refer to information for identifying the execution environment or framework or type of the model. For example, model type information may include TensorRT, Tflite, and Onnxruntime.
[0040] In the present disclosure, the term "node" may correspond to hardware information that is the subject of benchmarking for a model. Such hardware information may be used to encompass physical hardware, virtual hardware, hardware that is not accessible from the outside via a network, hardware that is not visible from the outside, and / or hardware that is visible in the cloud. For example, the node in the present disclosure may include various forms of hardware such as RaspberryPi, Coral, Jetson-Nano, AVH RasberryPi, Mobile, etc.
[0041] In the present disclosure, a node in an artificial intelligence-based model may be used to mean a component that constitutes a neural network; for example, a node in a neural network may correspond to a neuron.
[0042] FIG. 1 illustrates a schematic block diagram of a computing device (100) in accordance with one embodiment of the present disclosure.
[0043] In one embodiment of the present disclosure, a computing device (100) may include a processor (110) and a memory (130).
[0044] 1 is merely a simplified example, in that the computing device (100) may include other components for implementing the computing environment of the computing device (100) in one embodiment of the present disclosure, and the computing device (100) may be configured with only some of the disclosed components.
[0045] In this disclosure, the computing device (100) may be used interchangeably with a computing device, and the computing device (100) may be used to encompass any type of server and any type of terminal.
[0046] The computing device (100) in this disclosure may refer to any form of component constituting a system for implementing embodiments of the present disclosure.
[0047] The computing device (100) may refer to any type of user terminal or any type of server. The components of the computing device (100) described above are merely examples, and some may be omitted or other components may be added. As an example, when the computing device (100) includes a user terminal, an output unit (not shown) and an input unit (not shown) may be included in the computing device (100).
[0048] In one embodiment, the computing device 100 may refer to a device that communicates with multiple nodes and manages and / or executes benchmarking of a specific artificial intelligence-based model against multiple nodes. For example, the computing device 100 may be referred to as a Device Farm. In one embodiment, the computing device 100 may refer to a device that interacts with a user to generate a learning model, generate a compressed model, and generate download data for model deployment. In one embodiment, the computing device 100 may refer to a device that manages and / or executes benchmarking of an artificial intelligence-based model against multiple nodes, interacts with a user to generate a learning model, generate a compressed model, and generate download data for model deployment.
[0049] In one embodiment, the computing device 100 may refer to a device that generates a learning model through modeling on an input data set, compresses the input model to generate a lightweight model, and / or generates download data for deploying the input model on a specific node. In the present disclosure, deploying may refer to any type of activity that makes software (e.g., a model) available. For example, deploying may be interpreted as a general process that is customized to meet the specific requirements and characteristics of a model or node. Examples of such deploying may include releasing, installing, activating, deactivating, uninstalling, updating, built-in updating, modifying, and / or version tracking.
[0050] The computing device (100) in the present disclosure is capable of executing technical features based on each embodiment in the present disclosure described below.
[0051] For example, the computing device (100) can determine whether to convert the artificial intelligence-based model based on model type information of the artificial intelligence-based model input for benchmarking and target type information for identifying the model type to be benchmarked, determine a candidate node list including a plurality of candidate nodes determined based on the target type information, determine at least one target node based on input data for selecting at least one target node from the candidate node list, and provide benchmark results obtained by executing the target model obtained depending on whether the artificial intelligence-based model is converted on the at least one target node.
[0052] For example, the computing device (100) may receive first input data including an inference task and a dataset, determine a target model to be benchmarked for the inference task and at least one target node on which the inference task of the target model is executed, and provide benchmark results obtained by executing the target model on the at least one target node.
[0053] For example, the computing device 100 may receive module identification information from another computing device including a plurality of modules performing a plurality of different operations related to an artificial intelligence-based model, the module identification information indicating which of the plurality of modules in the other computing device triggers the benchmark operation of the computing device 100, and provide the benchmark result to the other computing device based on the module identification information. In this case, the benchmark result provided to the other computing device may be different depending on the module identification information.
[0054] In other embodiments of the present disclosure, the computing device 100 may obtain the results of the benchmark run from another computing device or an external entity. In other embodiments of the present disclosure, the computing device 100 may obtain the results of the conversion run from another computing device or an external entity (e.g., a conversion device).
[0055] In one embodiment, the processor (110) may be comprised of at least one core and may refer to a processor for performing data analysis and / or processing, such as a central processing unit (CPU), a general purpose graphics processing unit (GPGPU), a tensor processing unit (TPU), or the like, of the computing device (100).
[0056] The processor 110 is capable of reading a computer program stored in the memory 130 to provide benchmark results according to one embodiment of the present disclosure.
[0057] According to an embodiment of the present disclosure, the processor (110) can perform calculations for learning a neural network. The processor (110) can execute calculations for learning a neural network, such as processing input data for learning, extracting features from the input data, calculating errors, and updating weights of the neural network using backpropagation in deep learning (DL). At least one of the CPU, GPGPU, and TPU of the processor (110) can process learning of a network function. For example, both the CPU and the GPGPU can learn a network function or classify data using the network function. In addition, in an embodiment of the present disclosure, the processors of multiple computing devices can be used together to learn a network function or classify data using the network function. In addition, in an embodiment of the present disclosure, the computer program executed in the computing device (100) can be a program executable by the CPU, the GPGPU, or the TPU.
[0058] Furthermore, the processor 110 can generally process the overall operation of the computing device 100. For example, the processor 110 can process data, information, signals, etc. input or output through components included in the computing device 100, and can provide appropriate information or functions to a user by executing application programs stored in the storage unit.
[0059] In one embodiment of the present disclosure, the memory (130) can store any type of information generated or determined by the processor (110) and any type of information received by the computing device (100). In one embodiment of the present disclosure, the memory (130) can be a storage medium that stores computer software that causes the processor (110) to perform operations in one embodiment of the present disclosure. Thus, the memory (130) can refer to a computer-readable medium for storing software code necessary to perform multiple embodiments of the present disclosure, data on which the code is executed, and results of the execution of the code.
[0060] In one embodiment of the present disclosure, the memory (130) may refer to any type of storage medium. For example, the memory (130) may include at least one type of storage medium among flash memory type, hard disk type, multimedia card micro type, card type memory (e.g., SD or XD memory), Random Access Memory (RAM), Static Random Access Memory (SRAM), Read-Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Programmable Read-Only Memory (PROM), magnetic memory, magnetic disk, and optical disk. The computing device (100) may also operate in conjunction with a web storage that performs the storage function of the memory (130) over the Internet. The above description of the memory is merely an example, and the memory (130) used in the present disclosure is not limited to the above examples.
[0061] The communication unit (not shown) in the present disclosure can be configured regardless of the type of communication, such as wired or wireless, and can be configured with various communication networks such as a short-range communication network (PAN: Personal Area Network), a short-range communication network (WAN: Wide Area Network), etc. In addition, the network unit (150) can operate based on the well-known World Wide Web (WWW), and can also use wireless transmission technology used for short-range communication, such as infrared data association (IrDA) or Bluetooth (registered trademark).
[0062] In the present disclosure, the computing device 100 may include any type of user terminal and / or any type of server, and thus, embodiments of the present disclosure may be implemented using a server and / or a user terminal.
[0063] In one embodiment, the user terminal may include any type of terminal capable of interacting with a server or other computing devices, including, for example, mobile phones, smart phones, laptop computers, personal digital assistants (PDAs), slate PCs, tablet PCs, and ultrabooks.
[0064] In one embodiment, a server may include any type of computing system or device such as, for example, a microprocessor, a mainframe computer, a digital processor, a handheld device, a device controller, and the like.
[0065] In one embodiment, the server can store and manage benchmark results, candidate node list, node performance information, latency information between nodes and models, and / or conversion result information. The server can include a storage unit (not shown) for storing benchmark results, candidate node list, node performance information, latency information between nodes and models, and / or conversion result information. Such a storage unit can be included in the server or be under the control of the server. As another example, the storage unit can be embodied in a form that exists outside the server and can communicate with the server. In this case, the storage unit can be managed and controlled using an external server different from the above-mentioned server.
[0066] FIG. 2 illustrates an exemplary structure of an artificial intelligence-based model in one embodiment of the present disclosure.
[0067] In the present disclosure, the terms model, artificial intelligence model, artificial intelligence-based model, computational model, neural network, network function, and neural network may be used interchangeably.
[0068] The artificial intelligence based models in the present disclosure can include models that can be used in a variety of domains, such as models for image processing, such as object segmentation, object detection, and / or object classification, and models for text processing, such as data prediction, text semantic inference, and / or data classification.
[0069] A neural network can be composed of a collection of interconnected computational units, generally called nodes. Such nodes can also be called neurons. A neural network is composed of at least one or more nodes. The nodes (or neurons) that make up a neural network can be interconnected by one or more links.
[0070] In an artificial intelligence-based model, a node may be used to mean a component that constitutes a neural network. For example, a node in a neural network may correspond to a neuron.
[0071] In a neural network, one or more nodes connected via links can be in a relative relationship of an input node and an output node. The concept of an input node and an output node is relative, and any node that is an output node for a node can be an input node for another node, and vice versa. As mentioned above, the relationship between an input node and an output node can be established around a link. One or more output nodes can be connected to one input node via links, and vice versa.
[0072] In the relationship between an input node and an output node connected via a link, the value of the data of the output node can be determined based on the data input to the input node. Here, the link interconnecting the input node and the output node can have a weight. The weight can be variable, and can be changed by a user or an algorithm to execute a function required by the neural network. For example, when one or more input nodes are interconnected to one output node by respective links, the output node can determine the value of the output node based on the value input to the input node connected to the output node and the weight set to the link corresponding to each input node.
[0073] As described above, in a neural network, one or more nodes are interconnected via one or more links to form a relationship between an input node and an output node in the neural network. In a neural network, the characteristics of the neural network can be determined by the number of nodes and links, the correlation between the nodes and links, and the weight value assigned to each link. For example, if there are two neural networks that have the same number of nodes and links but different link weight values, the two neural networks can be recognized as different.
[0074] A neural network can be composed of a set of one or more nodes. A subset of the nodes in a neural network can be organized into a layer. A portion of the nodes in a neural network can be organized into a layer based on their distance from a first input node. For example, a set of nodes with a distance of n from a first input node can be organized into an n-th layer. The distance from the first input node can be defined based on the minimum number of links that must be traversed to reach the node from the first input node. However, this definition of a layer is arbitrary for the purpose of explanation, and the position of a layer in a neural network can be defined in a different way from the above description. For example, the layer of a node can be defined based on its distance from a final output node.
[0075] In one embodiment of the present disclosure, a collection of neurons or nodes can be defined in terms of a "hierarchy" or "layer."
[0076] The first input node may refer to one or more nodes in a neural network to which data is directly input without passing through a link in relation to other nodes. Alternatively, the first input node may refer to a node in a neural network that does not have other input nodes connected via links in relation to nodes based on links. Similarly, the final output node may refer to one or more nodes in a neural network that do not have an output node in relation to other nodes. Also, the hidden node may refer to a node that is neither a first input node nor a final output node and that constitutes a neural network.
[0077] The neural network in one embodiment of the present disclosure may be a neural network in which the number of nodes in the input layer is the same as the number of nodes in the output layer, and the number of nodes decreases once and then increases again as the input layer progresses from the hidden layer. The neural network in another embodiment of the present disclosure may be a neural network in which the number of nodes in the input layer is smaller than the number of nodes in the output layer, and the number of nodes decreases as the input layer progresses from the hidden layer. Furthermore, the neural network according to another embodiment of the present disclosure may be a neural network in which the number of nodes in the input layer is greater than the number of nodes in the output layer, and the number of nodes increases as the input layer progresses from the hidden layer. The neural network in another embodiment of the present disclosure may be a neural network in which the above-mentioned neural networks are combined.
[0078] Deep neural network (DNN) can refer to a neural network that includes multiple hidden layers in addition to input and output layers. Deep neural networks can be used to understand the latent structures of data, i.e., photos, text, video, audio, protein sequence structures, gene sequence structures, peptide sequence structures, latent structures of music (e.g., what objects are in the photo, what are the contents and emotions of the text, what are the contents and emotions of the audio, etc.), and / or the binding affinity between peptides and MHC. The deep neural network may include a convolutional neural network (CNN), a recurrent neural network (RNN), an autoencoder, generative adversarial networks (GAN), a restricted boltzmann machine (RBM), a deep belief network (DBN), a Q network, a U network, a Siamese network, a generative adversarial network (GAN), etc. The above-mentioned deep neural networks are merely examples, and the present disclosure is not limited thereto.
[0079] The artificial intelligence-based model in the present disclosure can be expressed as a network structure of any of the above-mentioned structures, including an input layer, a hidden layer, and an output layer.
[0080] Neural networks that can be used in the clustering models of the present disclosure can be trained using supervised, unsupervised, semisupervised, or reinforcement learning techniques. Training a neural network can be the process of applying knowledge to the neural network to make it perform a particular operation.
[0081] A neural network can be trained in a direction that minimizes the error of the output. In training a neural network, training data is repeatedly input to the neural network, the error of the neural network output and the target regarding the training data is calculated, and the weight of each node of the neural network is updated by backpropagating the error of the neural network from the output layer to the input layer of the neural network as a direction to reduce the error. In the case of supervised learning, training data in which the correct answer is labeled is used for each piece of training data (i.e., labeled training data), and in the case of unsupervised learning, the correct answer may not be labeled for each piece of training data. That is, for example, the training data in supervised learning for data classification can be data in which each piece of training data is labeled with a category. The labeled training data is input to the neural network, and the error can be calculated by comparing the output (category) of the neural network with the label of the training data. As another example, in the case of unsupervised learning for data classification, the error can be calculated by comparing the training data, which is the input, with the output of the neural network. The calculated error is backpropagated in the reverse direction (i.e., from the output layer to the input layer) in the neural network, and the connection weights of each node at each layer of the neural network can be updated through backpropagation. The amount of change in the connection weights of each node to be updated can be determined by a learning rate. The neural network calculation for the input data and the backpropagation of the error can constitute a learning cycle (epoch). The application method of the learning rate can be changed depending on the number of iterations of the neural network learning cycle. For example, in the early stage of neural network learning, the learning rate can be increased to increase efficiency by allowing the neural network to quickly achieve a certain level of performance, and in the later stage of learning, the learning rate can be decreased to increase accuracy.
[0082] In the training of a neural network, the training data may generally be a subset of the actual data (i.e., data to be processed using the trained neural network), and therefore there may be a training cycle in which the error associated with the training data decreases but the error associated with the actual data increases. Overfitting is a phenomenon in which errors increase in the actual data due to excessive learning of the training data. For example, a neural network that has learned about cats by looking at a yellow cat may be unable to recognize that it is a cat when it sees a cat of a color other than yellow, which may be a type of overfitting. Overfitting may cause an increase in errors in machine learning algorithms. Various optimization methods can be applied to prevent overfitting. Methods that can be applied to prevent overfitting include increasing the training data, regularization, dropout, which deactivates some of the nodes of the network during the training process, and the use of a batch normalization layer.
[0083] In one embodiment of the present disclosure, a computer readable medium is disclosed having stored thereon a data structure including benchmark results and / or an artificial intelligence based model, the data structure being capable of being stored in a storage unit (not shown) in the present disclosure, executed via a processor (110), and transmitted and received via a communication unit (not shown).
[0084] A data structure can refer to the organization, management, and storage of data that allows efficient access and modification of the data. A data structure can refer to the organization of data to solve a specific problem (e.g., data retrieval, data storage, data modification in the shortest time). A data structure can also be defined as a physical or logical relationship between multiple data elements designed to support a specific data processing function. A logical relationship between multiple data elements can include a linking relationship between multiple user-defined data elements. A physical relationship between multiple data elements can include an actual relationship between multiple data elements that is physically stored in a computer-readable storage medium (e.g., a permanent storage device). A data structure can specifically include a collection of data, the relationship between the data, and a function or instruction that can be applied to the data. By utilizing an effectively designed data structure, a computing device can perform operations while minimizing the use of computing device resources. Specifically, a computing device can increase the efficiency of operations, reading, retrieval, deletion, comparison, exchange, and search through an effectively designed data structure.
[0085] Data structures can be divided into linear and non-linear data structures according to the form of the data structure. A linear data structure can be a structure in which one piece of data is connected to one piece of data. Linear data structures can include lists, stacks, queues, and deques. A list can refer to a collection of a series of data that has an internal order. A list can include linked lists. A linked list can be a data structure in which data is linked in a manner in which each piece of data has a pointer and is connected in a line. In a linked list, the pointer can contain information regarding the connection to the next piece of data or the previous piece of data. A linked list can be expressed as a singly linked list, a doubly linked list, or a circularly linked list depending on the form of the data structure. A stack can be a data array structure in which access to data is restricted. A stack can be a linear data structure in which data can be manipulated (e.g., inserted or deleted) only at one end of the data structure. Data stored in a stack can be a LIFO (Last in First Out) data structure. A queue is also a data structure that limits access to data, but unlike a stack, it can be a first-in, first-out data structure (FIFO). A deck can be a data structure that allows data to be processed at both ends of the data structure.
[0086] A nonlinear data structure can be a structure in which multiple pieces of data are connected after one piece of data. A nonlinear data structure can include a graph data structure. A graph data structure can be defined by vertices and edges, and an edge can include a line connecting two different vertices. A graph data structure can include a tree data structure. A tree data structure can be a data structure in which there is only one path connecting two different vertices among the multiple vertices included in the tree. In other words, the graph data structure can be a data structure that does not form a loop.
[0087] The data structure may include a neural network. The data structure including the neural network may be stored in a computer-readable medium. The data structure including the neural network may include data preprocessed for processing by the neural network, data input to the neural network, weights of the neural network, hyperparameters of the neural network, data acquired from the neural network, activation functions associated with each node or layer of the neural network, loss functions for learning of the neural network, and the like. The data structure including the neural network may include any of the components disclosed above. That is, when configuring a data structure including a neural network, it is possible to configure the data structure including the neural network by including all of the data preprocessed for processing by the neural network, data input to the neural network, weights of the neural network, hyperparameters of the neural network, data acquired from the neural network, activation functions associated with each node or layer of the neural network, loss functions for learning of the neural network, and the like, or any combination thereof. In addition to the above configuration, the data structure including the neural network may include any other information that determines the characteristics of the neural network. Furthermore, the data structure may include any form of data used or generated in the computational process of the neural network, and is not limited to the above. The computer readable medium may include a computer readable recording medium and / or a computer readable transmission medium. A neural network may be comprised of a collection of interconnected computational units, generally referred to as nodes. Such nodes may also be referred to as neurons. A neural network is comprised of at least one or more nodes.
[0088] The data structure may include data to be input to the neural network. The data structure including the data to be input to the neural network may be stored on a computer readable medium. The data to be input to the neural network may include training data input during the neural network training process and / or input data to the neural network after training has been completed. The data to be input to the neural network may include data that has been pre-processed and / or data that is subject to pre-processing. Pre-processing may include a data processing process for inputting data to the neural network. Thus, the data structure may include data that is subject to pre-processing and data generated by pre-processing. The above data structures are merely examples, and the present disclosure is not limited thereto.
[0089] The data structure may include weights of the neural network. (In this specification, weights and parameters may be considered to have the same meaning.) The data structure including the weights of the neural network may be stored in a computer-readable medium. The neural network may include multiple weights. The weights may be variable, and may be changed by a user or an algorithm to perform a function required by the neural network. For example, when one or more input nodes are interconnected to one output node by respective links, the output node may determine the value of the data to be output from the output data based on the multiple values input to the input nodes connected to the output node and the weights set to the links corresponding to each input node. The above data structures are merely examples, and the present disclosure is not limited thereto.
[0090] By way of example and not limitation, the weights may include variable weights during the training of a neural network and / or completed trained weights of the neural network. The variable weights during the training of a neural network may include weights at the beginning of a training cycle and / or weights that change during a training cycle. The completed trained weights of the neural network may include weights at which a training cycle has been completed. Thus, a data structure including neural network weights may include a data structure including weights that change during the training of a neural network and / or completed trained weights of the neural network. Thus, the weights and / or combinations of each of the weights described above are intended to be included in a data structure including neural network weights. The aforementioned data structures are merely exemplary and the disclosure is not limited thereto.
[0091] The data structure including the neural network weights can be stored in a computer-readable storage medium (e.g., memory, hard disk) after a serialization process. Serialization can be a process of converting the data structure into a form that can be stored in the same or a different computing device and later reconstructed for use. The computing device can serialize the data structure and transmit and receive data over a network. The serialized data structure including the neural network weights can be reconstructed in the same computing device or another computing device through deserialization. The data structure including the neural network weights is not limited to serialization. Furthermore, the data structure including the neural network weights can include data structures for increasing the efficiency of calculations while minimizing the use of computing device resources (e.g., B-Tree, R-Tree, Trie, m-way search tree, AVL tree, Red-Black Tree in nonlinear data structures). The above items are merely examples, and the present disclosure is not limited thereto.
[0092] The data structure may include hyper-parameters of the neural network. And, the data structure including the hyper-parameters of the neural network may be stored in a computer-readable medium. The hyper-parameters may be variables that are changed by a user. The hyper-parameters may include, for example, a learning rate, a cost function, a number of learning cycle iterations, weight initialization (e.g., setting a range of weight values subject to weight initialization), and a number of hidden units (e.g., the number of hidden layers, the number of nodes in the hidden layers). The aforementioned data structures are merely examples, and the present disclosure is not limited thereto.
[0093] FIG. 3 illustrates an exemplary schematic diagram of a system (300) for providing benchmark results in accordance with one embodiment of the present disclosure.
[0094] In one embodiment, the second computing device (320) may include a plurality of modules performing different operations related to an artificial intelligence-based model. For example, the second computing device (320) may include a first module (330), a second module (340), and a third module (350). In one embodiment, the first module (330) may generate a learning model based on an input data set. The second module (340) may compress the input model to generate a lightweight model. The third module (350) may generate download data for deploying the input model to at least one target node. Although three modules are illustrated in the example of FIG. 3, it is easily understood by those skilled in the art that a variety of numbers of modules may be included in the second computing device (320) depending on the embodiment.
[0095] In one embodiment, the first computing device (310) and the second computing device (320) may interact to provide benchmark results to a user. For example, the first computing device (310) may provide the second computing device (320) with benchmark results necessary for the operation of the second computing device (320) in response to a request from the second computing device (320).
[0096] In one embodiment, FIG. 3 depicts the first computing device (310) as a separate entity existing outside of the second computing device (320); however, depending on the implementation, the first computing device (310) may operate as a module included in the second computing device (320).
[0097] In one embodiment, the first computing device 310 may receive a benchmark request from an entity other than the second computing device 320 and provide a benchmark result in response to the request. For example, the first computing device 310 may provide a result for benchmarking a user-prepared artificial intelligence-based model (e.g., a user-created learning model or a compressed model).
[0098] In one embodiment, the first computing device (310) may receive module identification information indicating which of a plurality of modules of the second computing device (320) triggers a benchmark operation of the first computing device (310), and provide a benchmark result to the second computing device (320) based on the module identification information. The benchmark result provided to the second computing device (320) may differ depending on the module identification information. For example, when the module identification information indicates a first module (330), the first computing device (310) may provide performance information for the entire input model to the second computing device (320), and when the module identification information indicates a second module (340), the first computing device (310) may provide performance information for the entire input model to the second computing device (320) and provide performance information for each block of the input model. As another example, when the module identification information indicates the first module (330), the first computing device (310) can provide the second computing device (320) with benchmark results for determining a target node for executing a learning model or a converted learning model corresponding to the input dataset, and when the module identification information indicates the second module (340), the first computing device (310) can provide the second computing device (320) with benchmark results including compressed configuration data used to generate a lightweight model corresponding to the input model.
[0099] In one embodiment, the first computing device (310) may correspond to an entity that manages multiple nodes. The first computing device (310) may execute benchmarking on nodes included in a node list including a first node (360), a second node (370), ..., an N-th node (380). Although FIG. 3 shows an example in which the first node (360), the second node (370), ..., and the N-th node (380) are included in the first computing device (310), depending on the embodiment, the first node (360), the second node (370), ..., and the N-th node (380) may exist outside the first computing device (310) and may interact with the first computing device (310) through communication.
[0100] In one embodiment, the first computing device (310) can generate benchmark results for multiple nodes in response to a request from a user and / or a request from the second computing device (320). In one embodiment, the first computing device (310) can interact with the conversion device (390) to generate benchmark results for multiple nodes in response to a request from a user and / or a request from the second computing device (320).
[0101] In one embodiment, the conversion device (390) is a device for converting a first model to a second model. As shown in Figure 3, the conversion device (390) can exist as a separate entity from the first computing device (310) and the second computing device (320) or can operate as an entity included in the first computing device (310) and / or the second computing device (320).
[0102] In one embodiment, the benchmark results may include results of executing (e.g., inferencing) the artificial intelligence model on the target node. As one example, the benchmark results may include performance measurements when the artificial intelligence model is executed on the target node. As another example, the benchmark results may include performance measurements when the converted artificial intelligence model is executed on the target node.
[0103] In one embodiment, the benchmark results can be used in a variety of ways for a variety of purposes. For example, the benchmark results can be used to determine a target node on which to run the prepared model. For example, the benchmark results can be used to generate a candidate node list corresponding to an input model. For example, the benchmark results can be used to optimize or compress the prepared model. For example, the benchmark results can be used to deploy the prepared model on a target node.
[0104] FIG. 4 illustrates an exemplary flow chart for providing benchmark results in accordance with one embodiment of the present disclosure.
[0105] In one embodiment, the method illustrated in Figure 4 may be performed in a computing device (100). As an example, the method illustrated in Figure 4 may be performed by a first computing device (310). As another example, the method illustrated in Figure 4 may be performed by a computing device (100) that includes the first computing device (310) and the second computing device (320).
[0106] The following is a detailed description of an example in which the steps in Fig. 4 are executed by a computing device 100. It is easily understood by those skilled in the art that some of the steps shown in Fig. 4 may be omitted or additional steps may be added depending on the embodiment.
[0107] In one embodiment, the computing device (100) may obtain (410) model type information of the artificial intelligence-based model input for benchmarking and target type information for identifying the model type to be benchmarked.
[0108] The computing device (100) may also receive input data including an instruction to benchmark a particular model and information related to the model to be benchmarked. For example, the input data may include information related to a model file on which the modeling was performed and a model type to be benchmarked. In another example, the input data may include a model file on which the modeling was performed and model type information corresponding to the model file. In another example, the input data may include a model file on which the modeling was performed and model type information corresponding to the model file, and information related to a target type to be benchmarked. In response to the input data, the computing device (100) may provide information for selecting nodes at which the model will be benchmarked.
[0109] In one embodiment, the model type information may include any type of information for identifying the input artificial intelligence-based model. For example, the model type information may include information representing the execution environment of the model, such as Tflite, Onnxruntime, or Tensorrt. For example, the model type information may include library information or software version information related to the execution environment of the model. In the above example, the model type information may be expressed as Tflite's Python 3.7.3 or pillow 5.4.1.
[0110] In one embodiment, the target type information for benchmarking may include any form of information for identifying an artificial intelligence based model for benchmarking.
[0111] In another embodiment, the computing device (100) can extract corresponding model type information from the input artificial intelligence model. The computing device (100) can obtain execution environment and / or library information of the model by parsing the input artificial intelligence model (e.g., a model file). The computing device (100) can determine whether to convert the model by comparing the extracted model type information with the input target type information. In the above embodiment, the model type information of the input artificial intelligence-based model can be determined based on the input artificial intelligence-based model without user input defining the model type information.
[0112] In one embodiment, the target type information may be different from the model type information of the input artificial intelligence-based model. In this case, the computing device 100 may obtain a conversion result in which the input artificial intelligence-based model is converted to have the target type information. The difference between the target type information and the model type information of the input model may mean that information related to the execution environment of the model and / or library information related to the execution environment are different. For example, the conversion may include replacing an operator included in the input model with another one so as to correspond to the target type information. For example, the conversion may include changing library information or software version of the input model so as to correspond to the target type information. For example, the conversion may include changing the execution environment of the input model to an execution environment corresponding to the target type information.
[0113] As another example, if the model type information of an input artificial intelligence-based model and the target type information are identical, the computing device (100) can generate benchmark results for the input artificial intelligence-based model without performing a conversion operation.
[0114] In one embodiment, the computing device (100) may determine (420) whether to convert the artificial intelligence based model based on the model type information and the target type information.
[0115] The computing device (100) can determine whether to convert the AI-based model by comparing the model type information of the input model with the target type information. The computing device (100) can determine whether the model type information of the input AI-based model matches the input target type information. If the model type information of the input AI-based model does not match the input target type information, the computing device (100) can generate a benchmark result based on the result of the conversion. If the model type information of the input AI-based model matches the input target type information, the computing device (100) can generate a benchmark result by executing the input AI-based model in the target node.
[0116] In one embodiment, when the model type information and the target type information are different, the computing device (100) decides to convert the artificial intelligence-based model to correspond to the target type information, but when the model type information and the target type information correspond to each other, the computing device (100) may decide not to convert the artificial intelligence-based model and to use the artificial intelligence-based model as a target model to be benchmarked.
[0117] In one embodiment, the decision to convert or not may be made in response to input of model type information and target type information corresponding to the model. Thus, when generating or obtaining the candidate node list, predicted performance information for the converted model (or operator) and each of the plurality of candidate nodes may be generated in accordance with the decision to convert or not. In one embodiment, the predicted performance information may refer to predicted information related to performance determined based on performance information by model or operator for each of the plurality of candidate nodes measured in the past. As an example, the predicted performance information may include predicted latency information.
[0118] In another embodiment, the computing device 100 may determine whether to perform conversion on the model based on information related to the model (e.g., the model file, model type information corresponding to the model file, and / or target type information) and information on the selected node. For example, the computing device 100 may determine whether to perform conversion based on whether the selected node supports the determined model or whether the selected node supports an operator included in the determined model. In this case, the selected node may not support the determined model. In such a case, the computing device 100 may determine whether to perform conversion on the determined model or may determine whether to perform conversion on at least a part of the operators included in the determined model. As another example, if the selected node does not support the determined model, the first computing device 1000c may determine that conversion needs to be performed on the determined model or may determine to replace the selected node with another node.
[0119] In one embodiment, the computing device (100) can provide (430) a candidate node list including a plurality of candidate nodes determined based on the target type information.
[0120] In one embodiment, the candidate nodes can be used to determine a target node from among the plurality of nodes to benchmark the model, and a target node to be benchmarked can be determined from among the plurality of candidate nodes included in the candidate node list based on the input data.
[0121] In one embodiment of the present disclosure, the candidate nodes may be determined in various ways. In one embodiment, the candidate nodes may be determined based on the result of the decision on whether to perform conversion, the artificial intelligence-based model (or model type information), and the target type information.
[0122] For example, among the multiple nodes under the management of the computing device 100, a node that supports the input artificial intelligence-based model can be determined as a candidate node. For example, among the multiple nodes under the management of the computing device 100, a node that supports an execution environment corresponding to the target type information can be determined as a candidate node.
[0123] For example, among the nodes supporting the execution environment corresponding to the target type information, a plurality of first nodes having an execution environment supporting a first operator included in an artificial intelligence-based model may be determined as the candidate nodes. As an example, the computing device 100 may extract a plurality of operators included in the input artificial intelligence-based model. Among the nodes having a runtime matching the target type information, if the runtime is matched but the version of the runtime supported by the node does not support the extracted operator, the node in which the version of the runtime is installed may be removed from the candidate nodes.
[0124] For example, among the nodes having an execution environment corresponding to the target type information, a plurality of second nodes having an execution environment that does not support a first operator included in the artificial intelligence-based model but supports a second operator different from the first operator that can replace the first operator can be determined as the candidate nodes. As an example, if there is another operator that can replace the unsupported operator, the computing device (100) can request the user to replace or change the operator, and if a user requests to replace the operator, the computing device (100) can include the node in the candidate nodes, and if not, can remove the node from the candidate nodes.
[0125] For example, a plurality of third nodes having free memory capacity exceeding the size of the artificial intelligence-based model may be determined as candidate nodes.
[0126] The computing device (100) may generate the candidate node list by combining multiple candidate node determination methods described in the various examples above.
[0127] In one embodiment, the computing device 100 can transmit the candidate node list to the computing device that requested the benchmark, and can determine the target nodes to be benchmarked according to the user's selection based on the candidate node list.
[0128] In one embodiment, the candidate node list may include an identification of each of the candidate nodes and expected latency information at each of the candidate nodes when the target model is executed.
[0129] In one embodiment, the expected latency information may include an expected inference time for each model of each node. It may indicate that the smaller the value of the expected latency information, the shorter the inference time. Therefore, since the expected latency value may be interpreted as a performance index of a combination of an artificial intelligence-based model and a node, the computing device 100 may provide a candidate node list sorted in order based on the magnitude of the expected latency information. In the above example, it may be possible to provide a candidate node list sorted in order of the magnitude of the latency information.
[0130] In one embodiment, the identification information of the candidate node list may include hardware information corresponding to the candidate node. For example, the identification information may include not only the product name corresponding to the hardware, but also installed execution environment information, library information related to the execution environment, power mode information, fan mode information, current board temperature information, and / or current board power usage information.
[0131] In one embodiment, the power mode information may be determined based on the amount of CPU usage. For example, when all the CPU cores are being used, the power mode information may be determined as MAX, or may be determined in a manner that quantitatively expresses the amount of usage, such as 30W, 20W, 15W, 10W, etc. For example, it may be considered that the greater the quantitative amount of the power mode information, the lower the latency. As another example, when the power mode is MAX, it may be considered that the latency is lower than other nodes that do not use the power mode.
[0132] In one embodiment, the fan mode information can be expressed in the form of information indicating the strength of the fan, such as Null, Quite, Cool, etc. As an example, when the fan mode is Quite, the board temperature can be lowered more than when the fan mode is Null, so the latency is more likely to be lower. As an example, when the fan mode is Cool, the board temperature can be lowered more than when the fan mode is other modes, so the latency is more likely to be lower.
[0133] In one embodiment, the library information may refer to library information required to install the execution environment (e.g., runtime) information installed on a particular node. Depending on the nature of the node, it may include multiple execution environments, which may allow the library information to be compatible across multiple execution environments.
[0134] In one embodiment, the power usage of the current board may refer to the power usage obtained from a power measurement sensor connected to multiple nodes. It may be interpreted that the smaller the value of the power usage of the current board, the higher the possibility of using the node.
[0135] In one embodiment, the order of the candidate nodes included in the candidate node list can be determined based on the magnitude of the expected latency information. The computing device (100) can provide a candidate node list sorted based on the magnitude of the expected latency information. In the above example, the computing device (100) can provide a candidate node list sorted in ascending order of the magnitude of the latency information.
[0136] In another embodiment, the order of the multiple candidate nodes can be determined based on factors such as memory usage and CPU usage. For example, the order of the multiple candidate nodes can be determined based on memory usage and CPU usage in addition to the expected latency information. In the above example, if the difference in the magnitude of the expected latency information between the first candidate node and the second candidate node among the candidate nodes is within a predetermined threshold range, the order of the first candidate node and the second candidate node can be determined based on the memory usage and CPU usage of the first candidate node and the second candidate node. As an example, if the expected latency is the same, the order can be determined based on the current memory (e.g., RAM) usage and CPU usage.
[0137] In another embodiment, the computing device 100 may add additional factors to be considered for a particular node, such as a Jetson series node, and then sort the nodes. For example, for a particular type of node, such as a Jetson series node, a separate sorting may be performed for the node. As another example, the computing device 100 may decide the sorting order of a particular type of node with respect to other types of nodes based on expected latency, but when there is not much difference in expected latency between multiple nodes of the particular type, the computing device 100 may add the power field and / or the fan field to the considerations to decide the sorting order. As an example, the computing device 100 may further consider factors corresponding to the power field and sort the nodes in descending order of the power field value. As an example, for a particular node, such as a Jetson series node, when the power field values are the same or the difference is within a predetermined threshold range, the computing device 100 may further sort the nodes in descending order of the fan operation based on the magnitude or strength of the fan operation.
[0138] As described above, for multiple nodes with similar expected latency information, it is possible to determine the order of candidate nodes by adding factors to be considered. In this way, when providing a list of candidate nodes, the candidate nodes are arranged in a way that allows the user to intuitively check the expected performance, so that the user can more easily and efficiently check the expected performance of the nodes on the candidate node list and more efficiently determine the target node.
[0139] In one embodiment, the computing device 100 may coordinate the conversion operations in the process of generating the candidate node list.
[0140] For example, the computing device 100 may obtain a target model in which an artificial intelligence-based model is converted to correspond to the target type information. In another example, the computing device 100 may perform conversion within the computing device 100 or obtain a target model changed to the target type from an external conversion device. The computing device 100 may obtain sublatency information corresponding to each of a plurality of operators included in the target model. For example, one operator may correspond to one sublatency. In this case, the sublatency information may be calculated for each of the candidate nodes. There may be a plurality of operators in the model, and the computing device 100 may measure or determine the sublatency that occurs when each operator is executed in a specific target node. The computing device 100 may generate expected latency information of the target model at each of the candidate nodes based on the sublatency information of the plurality of operators. For example, the computing device 100 may obtain expected latency information corresponding to the model by summing sub-latencies corresponding to each of the multiple operators included in the model. The computing device 100 may provide a candidate node list including the expected latency information and identification information of the candidate nodes.
[0141] In one embodiment, the AI-based model may include a plurality of operators. The operators may correspond to the operations of the AI-based model. Different operations in the model may have different operators. As an example, an operator corresponding to Conv2D, which refers to a convolutional operation on a 2D image, may be included in the model.
[0142] In one embodiment, the computing device (100) may generate the candidate node list using a latency table that matches a number of operators for each model with a number of nodes.
[0143] In one embodiment, when a latency table exists, the computing device (100) can obtain predicted performance information for each of the plurality of candidate nodes without measuring the performance of each of the plurality of candidate nodes in the process of generating the candidate node list by using the latency table. When a latency table does not exist, the computing device (100) can measure the performance of each of the plurality of candidate nodes in the process of generating the candidate node list and generate a list of the plurality of candidate nodes including the measured performance.
[0144] As an example, one latency table can be obtained for one model. In one embodiment, the latency table can include sublatency information obtained by executing each of a plurality of pre-stored operators on a pre-stored node. One of the rows and columns of the latency table includes information related to the operator, and the other includes information related to the node. The value of the element can be expressed as a sublatency. After the latency table is initially generated by measurements on the computing device (100), the expected performance of the candidate node list can be quickly obtained using the prepared latency table without additional measurements or execution.
[0145] As described above, the computing device (100) can use a latency table generated in advance to obtain sub-latency information corresponding to each of a plurality of operators included in the target model, and generate expected latency information of the target model for each of a plurality of candidate nodes based on the sub-latency information of the plurality of operators. Through the above-mentioned method, a candidate node list including expected latency information and identification information of the candidate nodes can be provided. The computing device (100) can determine a latency table corresponding to the input model, and generate expected latency information of the model for each of the candidate nodes based on the node-specific sub-latency information of the plurality of operators included in the determined latency table. The expected latency information of the model can be generated by summing up the sub-latency information of each of the plurality of operators.
[0146] In one embodiment, the computing device 100 may use a convert matching table to generate the candidate node list.
[0147] In one embodiment, the computing device (100) can determine which type of model (e.g., Type A) to convert to which type of model (e.g., Type B) based on the input information. If there is a history of conversion from Type A to Type B, a conversion matching table corresponding to conversion from Type A to Type B may also exist. In such a case, the computing device (100) can extract operators that cause latency by simply analyzing the model corresponding to Type A, and calculate predicted performance information based on the latency when the extracted operators are converted to Type B.
[0148] In one embodiment, if there is no history of conversion from Type A to Type B, the computing device (100) can convert a model (or operator) corresponding to Type A to Type B, analyze the converted model to extract operators, calculate or measure latencies for the extracted operators, and calculate predicted performance information.
[0149] In one embodiment, the computing device (100) may pre-generate such a conversion matching table for a number of pre-defined conversion types and / or for a number of conversion types (or models) that require a conversion time that exceeds a pre-defined threshold time.
[0150] In one embodiment, the convert matching table may include sublatency information corresponding to the converted operator when an operator extracted from an artificial intelligence-based model corresponding to the model type information is converted to correspond to the target type information. For example, one of the rows and columns of the convert matching table includes an operator corresponding to the model type information before conversion, and the other includes an operator corresponding to the target type information after conversion. An element in the convert matching table may include sublatency information corresponding to the converted operator when converted. In one embodiment, the convert matching table may be generated for each node. In the above example, one node may correspond to one convert matching table. In one embodiment, the convert matching table may be generated for each node and for each combination of multiple models. In the above example, sublatency information for each operator in the first node of the second model converted from the first model may be expressed as one table.
[0151] In another embodiment, the computing device (100) may use a convert matching table that includes conversion information between operators, where a particular operator in a particular model is converted to another operator in another model. In the above example, the convert matching table may include information indicating how operators are converted within a model when conversion occurs between models. As an example, one of the rows and columns in the convert matching table may include operators of the model before conversion, and the other may include operators of the model after conversion. Using the above convert matching table, it is possible to confirm how the operators are changed by conversion. In such an embodiment, the computing device (100) may use the convert matching table to identify operators of the converted model, and may use the above latency table to obtain sublatency information by node for each of the multiple operators of the converted model. By summing the sublatencies, it is possible to obtain expected performance information by node in the converted model.
[0152] In one embodiment, when it is determined to convert an AI-based model, the computing device (100) determines whether a convert matching table exists for matching model type information and target type information, and if a convert matching table exists, generates expected latency information of the target model for each of the candidate nodes based on operators included in the AI-based model and the convert matching table. The computing device (100) can provide the candidate node list including the expected latency information and identification information of the candidate nodes.
[0153] In one embodiment, the computing device (100) can combine the latency table and the convert matching table to determine sub-latencies for each of a plurality of operators in the converted model, and sum the determined sub-latencies to generate expected latency information for the converted model.
[0154] In another embodiment, the computing device (100) may generate predicted latency information of a target model at each of a plurality of candidate nodes by combining a latency table containing node-specific latency measurement results on a model-by-model basis rather than an operator-by-operator basis and / or a convert matching table containing node-specific and conversion-based latency measurement results on a model-by-model basis rather than an operator-by-operator basis.
[0155] In one embodiment of the present disclosure, the computing device 100 can determine whether to perform conversion based on a comparison between model type information corresponding to the input model and the input target type information. If it is determined to perform conversion, the computing device 100 can extract a plurality of operators included in the input model and determine candidate nodes to be included in a candidate node list from a plurality of nodes having execution environments that match the target type information.
[0156] In one embodiment, if a particular node has an execution environment that matches the target type information, but the execution environment does not support an operator included in the input model, the computing device (100) may determine not to include the particular node with the execution environment installed in the candidate node list. For example, if the runtime supported by the particular node matches an operator included in the input model, but the operator included in the input model is not supported in the version of the runtime of the particular node, the node with the version of the runtime installed may be removed from the candidate nodes.
[0157] In one embodiment, the computing device (100) can send a request to determine whether to replace an operator when a specific node does not support an operator included in the input model in the execution environment, but an operator that can replace the operator exists. When an input is received from a user that the operator is to be replaced, the specific node can be included in a candidate node list, but when an input is received from a user that the operator is not to be replaced, the specific node can be excluded from the candidate node list. For example, when the runtime supported by the node matches an operator included in the input model, but the operator included in the input model is not supported in the version of the runtime of the node, and an operator that can replace the operator is supported in the version of the runtime of the node, a candidate node can be determined by requesting to replace the operator. When an input is received to replace the operator, the node can be determined as a candidate node, and when not, the node can be removed from the candidate nodes.
[0158] In one embodiment, the candidate node list may include a resource structure, for example in the form of a table.
[0159] In one embodiment, the computing device (100) may determine (440) at least one target node based on the input data to select at least one target node from the list of candidate nodes.
[0160] In one embodiment, the computing device 100 can receive user input data selecting a particular node from the list of candidate nodes, and the computing device 100 can determine the selected node included in the user input data as the target node.
[0161] In one embodiment, the computing device (100) can receive user input data selecting a target node from the list of candidate nodes. In another embodiment, the computing device (100) can receive user input data selecting multiple target nodes from the list of candidate nodes. In another embodiment, the computing device (100) can automatically select the node from the list of candidate nodes that has the highest performance based on a particular factor (e.g., latency) as the target node without receiving input from the user.
[0162] In one embodiment, the computing device (100) may provide (450) benchmark results obtained by executing a target model on at least one target node, the target model being obtained depending on whether the artificial intelligence-based model is converted.
[0163] In one embodiment, the computing device 100 is capable of generating benchmark results that include results of inferring a target model at a target node.
[0164] In one embodiment, if one node is determined as the target node, benchmark request information can be sent to the node. In one embodiment, if multiple nodes are determined as the target nodes, benchmark request information can be sent to each of the multiple nodes. The benchmark request information can include information related to a target model to be benchmarked. The information related to the target model can include, for example, files or links related to the model and / or target type information for the model.
[0165] In one embodiment, the benchmark results may be generated by the computing device (100) or may be performed by another server (e.g., a server including multiple nodes) under the control of the computing device (100).
[0166] In one embodiment, the benchmark results may include performance information on a target node of a target model.
[0167] In one embodiment, the benchmark results may vary depending on which module of the other computing device triggered or requested the benchmark operation of the computing device 100. In another embodiment, the benchmark operation may vary depending on which module of the other computing device triggered or requested the benchmark operation of the computing device 100. For example, if the module that triggered the benchmark operation of the computing device 100 is a first module, the computing device 100 may provide performance information for the entire input model, and if the module that triggered the benchmark operation of the computing device 100 is a second module, the computing device 100 may provide performance information for the entire input model and may additionally provide performance information for each block of the input model. As another example, if the module that triggered the benchmark operation of the computing device (100) is a first module, the computing device (100) can provide benchmark results for determining a target node on which to execute a learning model or a converted learning model corresponding to an input dataset, and if the module that triggered the benchmark operation of the computing device (100) is a second module, the computing device (100) can provide benchmark results including compressed setting data used to generate a lightweight model corresponding to the input model.
[0168] By way of example and not limitation, the multiple modules for triggering a benchmark operation of the computing device (100) may include a first module for generating a learning model based on an input dataset, a second module for compressing the input model to generate a lightweight model, and a third module for generating download data for deploying the input model to at least one target node.
[0169] In one embodiment, the benchmark request information may include information regarding conversion of the model. Based on the information regarding conversion included in the benchmark request information, conversion may be performed on the input model.
[0170] In one embodiment, when the computing device 100 determines to convert the AI-based model to correspond to the target type information, the computing device 100 may determine a specific converter from among a plurality of converters using information related to the input model. For example, the computing device 100 may determine converter identification information corresponding to a combination of the model type information and the target type information of the input model. When a converter corresponding to the determined conversion identification information is determined, the determined converter may perform a conversion operation. For example, the computing device 100 may obtain a target model into which the AI-based model is converted using a model file corresponding to the AI-based model and converter identification information corresponding to a combination of the model type information and the target type information. As described above, when it is determined to perform a conversion, the conversion may be performed using a model file to be converted and information for identifying a converter that will perform the conversion (e.g., an identifier for identifying a combination of a model type before the conversion and a model type after the conversion). As an example, the conversion may be performed by a conversion device (e.g., a conversion server).
[0171] As another example, depending on the embodiment, the above conversion may be performed by the computing device 100. In the above example, when the model file resulting from the project is not for an execution environment corresponding to a specific type (e.g., Tensorrt) but for an execution environment corresponding to another type (e.g., Onnxruntime), the computing device 100 may use a conversion function to convert the model of the other type (e.g., Onnxruntime) into a model of the specific type (e.g., Tensorrt) and provide the model file resulting from the conversion.
[0172] In one embodiment, in a virtualized operating system, an AI-based model can be converted to a target model using a converter Docker image corresponding to the converter identification information. For example, an entity that performs the conversion (e.g., a conversion server, etc.) can obtain a Docker image corresponding to the input converter identification information and execute the converter sh file in Docker to perform the model conversion. In this case, the sh file can refer to a file containing instructions to be executed in Docker.
[0173] In one embodiment, the benchmark results may include a first type of quantitative information related to time and a second type of quantitative information related to memory usage.
[0174] In one embodiment, the benchmark results obtained by executing the target model on at least one target node may include preprocessing time information which is information related to the time required for preprocessing of inference of the target model on the at least one target node, inference time information which is information related to the time required for inference of the target model on the at least one target node, preprocessing memory usage information which is information related to the memory usage used for preprocessing of inference of the target model on the at least one target node, inference memory usage information which is information related to the memory usage used for inference of the target model on the at least one target node, quantitative information related to the inference time obtained by repeatedly inferring the target model a predetermined number of times on the at least one target node, and / or quantitative information related to memory usage in each of the NPU, CPU, and GPU obtained by inferring the target model on the at least one target node.
[0175] In one embodiment, the preprocessing time information may include, for example, time information required for preprocessing before performing an inference operation, such as calling a model. In addition, the preprocessing time information may include quantitative information (for example, minimum, maximum, and / or average value of the time required for pre-inference) related to the time required for pre-inference when the pre-inference is repeated a predetermined number of times in order to activate a GPU or the like prior to measuring the inference value.
[0176] In one embodiment, the inference time information is information related to the time required for the inference process, and may be used to encompass, for example, minimum time information, maximum time information, average time information, and / or median time information among time information related to the time required for the first inference operation for a model and / or inference time information when inference is repeated a predetermined number of times. Furthermore, for example, in a situation where the CPU takes over and processes a calculation that cannot be processed by the NPU, the NPU becomes idle, and the inference time information may include a first cycle value when the NPU becomes idle. Furthermore, the inference time information may include a second cycle value when inference is performed by the NPU, and / or a third cycle value obtained by adding up the first cycle value and the second cycle value.
[0177] In one embodiment, the benchmark result information may further include total time information obtained by adding up the preprocessing memory usage information and quantitative information related to the inference time.
[0178] In one embodiment, the benchmark result information may further include a quantitative value related to RAM usage, ROM usage, total memory usage, and / or SRAM area used by the NPU.
[0179] In one embodiment, when multiple benchmark results are generated due to multiple nodes being selected as target nodes, the computing device (100) can sort the multiple benchmark results using latency as a sorting criterion. For example, the benchmark results can be sorted and output in order of lowest latency. In another example, when the latencies are within a predetermined close margin or when there are benchmark results corresponding to each of the same multiple nodes, memory usage and / or CPU usage can be added to the sorting criteria to sort the benchmark results. The sorting of the benchmark results can include features related to the sorting in the candidate node list.
[0180] In one embodiment, the benchmark results may include a document structure, for example in the form of a table.
[0181] In one embodiment, the computing device 100 can change the method of sending the benchmark request information depending on whether the multiple nodes connected to it can perform wireless communication. The wireless communication can include HTTP communication, for example. For example, when transmitting a benchmark request to an independent node capable of wireless communication, the computing device 100 can send the benchmark request information to the node or a server related to the node. For example, when transmitting a benchmark request to a node that cannot perform wireless communication, the computing device 100 can send the benchmark request information to a node that can perform wireless communication (e.g., Rpi4) to which the node that cannot perform wireless communication is connected via USB / GPIO or the like. The node that receives the benchmark request information (e.g., a node that can perform HTTP communication) can obtain a benchmark result by executing a program on a node that is a target of the benchmark (i.e., a node that cannot perform HTTP communication) that is connected to the node by using serial communication via a USB / GPIO connection. The expected memory usage can be measured by executing an execution environment corresponding to a target model type to be executed in an independent node that can perform wireless communication. Using the measured expected memory usage and benchmark request information, it is possible to create and compile a benchmark program to be executed in the node that is the target of the benchmark and that does not have wireless communication. The created and compiled program can be flashed via serial communication to the node that is the target of the benchmark and that does not have wireless communication. In this manner, it is possible to obtain benchmark results for the node that is not capable of wireless communication.
[0182] In one embodiment, when the target nodes include nodes that cannot be confirmed from the outside (e.g., virtual nodes, etc.), the computing device (100) can obtain benchmark results using the following method.
[0183] In response to receiving a first low-power wireless signal from an externally unobservable node, the computing device (100) may send a first acknowledgment message to the node, the first acknowledgment message including a benchmark task for benchmarking a target model at the node. For example, the first low-power wireless signal may include a beacon signal. For example, the first low-power wireless signal may include information regarding whether the node is performing a benchmark, information regarding memory usage of the node, and hardware identification information of the node.
[0184] The computing device (100) may receive a second low-power wireless signal (e.g., a callback signal) from the node, the second low-power wireless signal including the benchmark result generated by the node. In another embodiment, if the computing device (100) fails to receive the callback signal within a time corresponding to a predetermined waiting time threshold, the computing device (100) may determine that the benchmark task at the node has failed and set the node to an inactive state. The computing device (100) may set the state of the node to an active state in response to receiving a third low-power wireless signal (e.g., a beacon signal) from the node set to an inactive state. In this case, the benchmark task included in the first response message may include target model information that the node can download and node configuration information used to convert the target model downloaded by the node. Also, the benchmark result generated by the node may include a result obtained by executing the target model in the execution environment of the node based on the node configuration information and the target model information.
[0185] FIG. 5 illustrates an exemplary tabular resource structure (500) that may be used to generate a candidate node list in accordance with one embodiment of the present disclosure.
[0186] The material structure (500) in FIG. 5 is shown for illustrative purposes only, and other material structures in which the number of nodes, number of operators, types of performance information, and / or number of models are varied in implementation may be considered within the scope of this disclosure.
[0187] The document structure (500) shown in Figure 5 is capable of matching multiple operators by model with multiple nodes. Rows (or columns) (510) in the document structure (500) indicate identification information for the nodes, and columns (or rows) (520) indicate identification information for the operators included in a particular model.
[0188] In one embodiment, the values of elements included in the material structure (500) may indicate performance information when a particular operator of a particular model is executed (e.g., inference) at a particular node. For example, as illustrated in FIG. 5, the performance information may include information related to latency. In this case, the performance information may, for example, refer to performance information by operator. For example, in this case, the performance information may refer to the sublatency in FIG. 4.
[0189] In the example of Figure 5, it can be interpreted that the smaller the value of the element (i.e., the smaller the latency value), the better the performance. For example, the first operator may have better performance than the third node, the first node, the second node, and the fourth node, in that order.
[0190] In one embodiment, the computing device (100) can use one or more data structures (500) to generate expected performance information for the model and node combinations required to generate the candidate node list. The data structure (500) can further include a value that sums the performance information of the multiple operators for each node. In such an embodiment, the first node can have expected performance information of 3ms+4ms+5ms+7ms=19ms for a particular model, the second node can have expected performance information of 34ms, the third node can have expected performance information of 22ms, and the fourth node can have expected performance information of 32ms. For example, the candidate node list can arrange the nodes in order of best performance. In such an example, the candidate node list can arrange the candidate nodes in the order of the first node, the third node, the fourth node, and the second node.
[0191] In one embodiment, the data structure (500) may be generated for each model. In such an embodiment, one model may correspond to one data structure (500), but depending on the implementation, one data structure (500) may be generated that corresponds to multiple models.
[0192] In one embodiment, the resource structure 500 may correspond to a latency table that matches a plurality of operators and a plurality of nodes for each model, and the computing device 100 may use the latency table to generate the candidate node list.
[0193] In one embodiment, the latency table may include sub-latency information that can be obtained by executing each of a plurality of pre-stored operators on a pre-stored node. One of the rows and columns of the latency table may include information related to the operators, and the remaining one may include information related to the nodes. The value of the element may be represented as a sub-latency. Once the latency table is generated by measurements on the computing device (100), the candidate node list may be quickly generated or obtained in response to a user input using the pre-generated latency table without additional measurements or executions.
[0194] As described above, the computing device (100) can use a pre-generated latency table to obtain sub-latency information corresponding to each of a plurality of operators included in the target model, and generate expected latency information of the target model for each of a plurality of candidate nodes based on the sub-latency information of the plurality of operators. The computing device (100) can determine a latency table corresponding to the input model, and generate expected latency information of the model for each of the candidate nodes based on the node-specific sub-latency information of the plurality of operators included in the determined latency table. The expected latency information of the model can be generated by summing up the sub-latency information of each of the plurality of operators.
[0195] In one embodiment, the resource structure (500) may be updated by the computing device (100) in response to change events related to updating a model, adding a new node, and / or adding a new model, and in the absence of change events, the resource structure (500) may be utilized to generate a candidate node list in response to a user input without any additional execution or measurement by the computing device (100).
[0196] FIG. 6 illustrates an exemplary tabular resource structure (600) that may be used to generate a candidate node list in accordance with one embodiment of the present disclosure.
[0197] 6 is a table-form data structure (600) that indicates, when a model is converted, the source operator (620) of the pre-conversion model (e.g., source model) and the target operator (610) of the converted model (e.g., target model). The values of the elements of data structure (600) can indicate the expected performance (e.g., sublatency) of a particular node in the target operator when the source operator (620) is converted to the target operator (610).
[0198] In one embodiment, the data structure (600) can be generated for each combination of multiple models and for each node. For example, one data structure (600) can cover the case where a first model is converted to a second model and the converted second model is executed in a first target node. In this example, the case where the second model is converted to the first model can be covered through another data structure. Depending on the embodiment, the range covered by one data structure (600) can be variable, and for example, one data structure (600) can include the sublatency of the converted operator in multiple nodes.
[0199] In another example, the material structure (600) may be generated on a per-node basis, i.e., when converting from a source model to a target model, it may be possible to determine which source operator in the source model is changed to which target operator in the target model. In such a case, the computing device (100) may refer to the material structure (600) to obtain sub-latency information between the source operator and the target operator related to the conversion, and accordingly obtain expected performance information related to the converted target model or the converted target operator.
[0200] In one embodiment, the data structure (600) may correspond to a convert matching table. When it is determined to convert the AI-based model, the computing device (100) may determine whether a convert matching table exists, and if a convert matching table exists, generate expected latency information of the target model for each of the candidate nodes based on the operators included in the AI-based model and the convert matching table. The computing device (100) may provide the candidate node list including expected latency information and identification information of the candidate nodes.
[0201] In one embodiment, the convert matching table may include sublatency information corresponding to the converted operator when an operator extracted from an AI-based model corresponding to the model type information is converted to correspond to the target type information. The convert matching table is a table-type data structure (600) that organizes the performance of the converted operator at a specific node when conversion is performed between multiple operators. For example, one of the rows and columns (620) of the convert matching table may include the model type information and the corresponding operator before conversion, and the remaining one (610) may include the target type information and the corresponding operator after conversion. And, the elements in the convert matching table may include sublatency information corresponding to the converted operator when converted.
[0202] In one embodiment, the convert matching table can be generated for each node. In the above example, one convert matching table can correspond to one node. In one embodiment, the convert matching table can be generated for each node and for each combination of multiple models (or multiple operators). In this example, sublatency information for each operator in the first node of the second model converted from the first model can be represented as one table. In this example, the source operator (620) can include operators that have changes in the process of converting to the target model among all operators included in the source model.
[0203] In one embodiment, the resource structure (600) may be updated by the computing device (100) in response to change events related to updating a model, adding a new node, and / or adding a new model, and in the absence of change events, the resource structure (600) may be utilized to generate a candidate node list in response to a user input without any additional execution or measurement by the computing device (100).
[0204] FIG. 7 illustrates an exemplary table-based resource structure used to generate a candidate node list in accordance with one embodiment of the present disclosure.
[0205] In one embodiment, the data structure (700) can show the conversion relationship between the operators of the pre-conversion model and the operators of the converted model. The columns (720) in Fig. 7 show the operators to be converted in the pre-conversion model and the corresponding first model. The rows (710) in Fig. 7 show the converted operators included in each of the multiple converted models.
[0206] For example, in the material structure (700), the 1-1 operator of the model before conversion is not changed to the 1-1 operator when converted to the second model, is changed to the 1-3 operator when converted to the third model, is changed to the 1-3 operator when converted to the fourth model, and is not changed to the 1-1 operator when converted to the fifth model.
[0207] In one embodiment, the material structure (700) can be used together with the material structure (500) and / or the material structure (600) when generating the candidate node list. For example, the computing device (100) can determine whether or not to perform conversion on the input model by comparing the model type information of the input model with the input target type information. If it is determined that conversion is necessary, the computing device (100) can identify the model before conversion and the model after conversion, and determine the material structure (700) corresponding to the identified model. Based on the determined material structure (700), the computing device (100) can determine which operators in the model before conversion are changed to which operators in the model after conversion. The computing device (100) can determine what performance (e.g., latency) the changed operator has for a particular node using the material structure (500) and / or the material structure (600). In the above manner, the computing device (100) can generate the candidate node list.
[0208] In one embodiment, the computing device (100) can use a convert matching table that includes conversion information between operators, where a particular operator in a particular model is converted to another operator in another model. The data structure (700) can correspond to the convert matching table. In the above example, the convert matching table can include information indicating how operators are converted within a model when conversion occurs between models. As an example, one of the rows and columns (720) in the convert matching table can include operators of the model before conversion, and the remaining one (710) can include operators of the model after conversion. Using the above convert matching table, it is possible to confirm how the operators are changed by conversion. In such an embodiment, the computing device (100) can use the convert matching table to identify operators of the converted model, and can use the above latency table to obtain sublatency information by node for each of the multiple operators of the converted model. By summing the sublatencies, it is possible to obtain expected performance information by node in the converted model.
[0209] FIG. 8 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure.
[0210] In one embodiment, the method illustrated in Figure 8 may be performed in a computing device (100). As an example, the method illustrated in Figure 8 may be performed by a first computing device (310). As another example, the method illustrated in Figure 8 may be performed by a computing device (100) that includes the first computing device (310) and the second computing device (320).
[0211] The following is a detailed description of an example in which the steps in Fig. 8 are executed by a computing device 100. It is easily understood by those skilled in the art that some of the steps shown in Fig. 8 may be omitted or additional steps may be added depending on the embodiment.
[0212] In one embodiment, the computing device (100) may obtain (810) input data including an inference task and a dataset.
[0213] In one embodiment, the computing device 100 may receive input data including an inference task including an inference type and / or purpose of the AI-based model and a dataset for training, validation, and / or testing of the AI-based model. For example, the inference task may include any type of purpose to be achieved through inference of the AI model, such as object classification, object detection, object segmentation, clustering, sequence prediction, sequence determination, anomaly detection, and / or natural language processing. For example, the dataset may include training data used to train the AI-based model, validation data for evaluating the learning performance during the training process of the AI-based model, and / or test data for evaluating the performance of the trained AI-based model.
[0214] In another embodiment, the computing device (100) may receive information related to a trained artificial intelligence-based model (e.g., a model file, etc.).
[0215] In another embodiment, the computing device 100 may receive information about the AI-based model and target type information, which is a model type to be benchmarked. In this case, the information about the AI-based model may include a model file, a link for downloading the model file, and / or model type information corresponding to the model.
[0216] In other embodiments, the computing device (100) can generate a dataset if one is not provided. For example, the computing device (100) can randomly generate a dataset. For example, the computing device (100) can generate a dataset based on task-related information entered by a user. For example, the computing device (100) can generate a dataset for modeling using a generative model such as a GAN.
[0217] In one embodiment, the computing device (100) may determine (820) a target model to be benchmarked against an inference task and at least one target node on which the inference task of the target model is to be executed.
[0218] In one embodiment, the computing device (100) is capable of determining a target node on which the inference task is to be performed by providing a candidate node list including candidate nodes proposed for benchmarking for the inference task, and receiving input data for selecting at least one target node from the candidate node list.
[0219] In one embodiment, a candidate node can be used as a general term for a node that is ready to run a benchmark and / or can support a target model. In one embodiment, the candidate node list can include a document structure, for example in the form of a table.
[0220] In one embodiment, the candidate node can be used to determine a target node among a plurality of nodes for benchmarking the model. Based on the input data, a target node to be benchmarked can be determined among the plurality of candidate nodes included in the candidate node list. In such an embodiment, the candidate node can correspond to a node that can support the target model, for example.
[0221] In one embodiment, the candidate node list can be used to determine, from among a plurality of nodes, a target node to be benchmarked and a target model to be benchmarked. For example, the candidate node list can include, from among a plurality of nodes, candidate nodes that are ready to execute a benchmark task (i.e., in a standby state). In such an embodiment, the candidate node can correspond to a node that is ready to perform a benchmark. In such a candidate node list, the target node to be benchmarked can be determined in response to a user's input to select a node to be benchmarked. In the above example, when a target node is determined based on input data in the candidate node list, information on a target model having an execution environment (e.g., runtime, etc.) that the determined target node can support can be provided. In this case, the information on the target model can include identification information on a plurality of models that the determined target node can support. As an example, when a target node is determined in the candidate node list in response to a user's input, suggested information on a target model that the target node can support can be generated. The above-mentioned suggested information can include information on one or more target models. The target model can be determined in response to the user's input in the suggested information. In this case, the target model may include first information of the target model indicating a framework of the target model and second information of the target model indicating a software version of the target model. In one embodiment, information of the target model that can be supported by at least one target node included in the input data in the candidate node list may be automatically provided without a separate input from the user. In one embodiment, the user may select a framework of the desired target model and a software version of the desired target model in the proposal information related to the target model.As described above, the computing device (100) automatically provides suggested information of target models that the target node can support in response to a selection input for the target node, thereby enabling a user to easily select a node to be benchmarked and a corresponding model, even if the user does not have extensive knowledge in the field of artificial intelligence.
[0222] In one embodiment, the computing device (100) may provide a candidate node list including candidate nodes proposed for benchmarking an inference task. For example, the candidate node list may include identification information of each of a plurality of candidate nodes and expected latency information for each of the candidate nodes when the target model is executed. As an example, the order of the plurality of candidate nodes included in the candidate node list may be determined based on the magnitude of the expected latency information. When the expected latency value is small, the time required for inference to be performed in the node may be relatively short, so the computing device (100) may provide the candidate node list in the order of smallest expected latency value (i.e., in the order of best performance). This allows a user to intuitively check the expected performance of each of the plurality of candidate nodes and select a target node from the candidate node list in a more efficient manner.
[0223] In one embodiment, the ordering of the candidate node list may be determined by considering a variety of factors.
[0224] In one embodiment, the candidate node list may be sorted based on the magnitude of expected latency. For example, the expected latency may be sorted in ascending order.
[0225] In one embodiment, the order of the candidate node list can be determined based on CPU utilization. As an example, the candidate nodes can be arranged in ascending order of CPU utilization. If the current CPU utilization is high, there is a possibility that the hardware resources for performing the inference benchmark may be limited. Therefore, the candidate nodes in the candidate node list can be arranged in descending order of CPU utilization.
[0226] In one embodiment, the order of the candidate node list can be determined based on memory usage. As an example, the candidate nodes can be arranged in ascending order of memory usage. If the current memory usage is high, there is a possibility that the hardware resources for performing the inference benchmark may be limited. Therefore, the candidate nodes in the candidate node list can be arranged in descending order of memory usage.
[0227] In one embodiment, the order of the candidate nodes in the candidate node list can be determined based on the priority of multiple factors. For example, the priority of the expected latency can be set higher than the priority of the CPU usage and / or memory usage. In the above example, if the difference in the magnitude of the expected latency information between the first candidate node and the second candidate node among the candidate nodes is within a predetermined threshold range, or if the magnitude of the expected latency information is the same, the order of the first candidate node and the second candidate node can be determined based on the memory usage and / or CPU usage of the first candidate node and the second candidate node. In the above example, multiple candidate nodes whose expected latency magnitudes are within a small range can be arranged in order of lowest memory usage and / or CPU usage.
[0228] In one embodiment, the candidate node list may include not only identification information of each of the multiple candidate nodes, but also performance information that is useful for a user to determine a target node in the candidate node list. For example, the candidate node list may include power mode information indicating the usage of CPU cores in at least some of the candidate nodes and / or fan mode information indicating the usage of fans in at least some of the candidate nodes. For example, the candidate node list may include information related to at least one model that can be supported in each of the candidate nodes, library information required for installing at least one model that can be supported in each of the candidate nodes, and / or power usage information indicating the power usage obtained from a power measurement sensor connected to the candidate node.
[0229] In one embodiment, the identification information of the candidate node list may include hardware information that can identify the candidate node. For example, the identification information may include not only the product name corresponding to the hardware, but also information on the installed execution environment, library information related to the execution environment, power mode information, fan mode information, temperature information of the current board, and / or power usage information of the current board.
[0230] In one embodiment, the power mode information may be determined based on how many CPU cores are being used. For example, when all CPU cores are being used, the power mode information may be determined as MAX, or may be determined in a manner that quantitatively expresses the amount of power usage, such as 40W, 30W, 20W, 10W, etc. For example, it may be considered that the greater the quantitative amount of power mode information, the lower the latency. As another example, when the power mode is MAX, the latency may be lower than other nodes that are not using the power mode.
[0231] In one embodiment, the fan mode information can be expressed in the form of information indicating the strength of the fan, such as Null, Quite, Cool, and / or MAX. As an example, when the fan mode is Quite, the board temperature can be lowered more than when the fan mode is Null, so the latency is likely to be lower. As an example, when the fan mode is Cool, the board temperature can be lowered more than when the fan mode is other modes, so the latency is likely to be lower.
[0232] In one embodiment, the library information may refer to library information required to install the execution environment (e.g., runtime) information installed on a particular node. Depending on the nature of the node, it may include multiple execution environments, which may allow the library information to be compatible across multiple execution environments.
[0233] In one embodiment, the power usage of the current board may refer to the power usage obtained from a power measurement sensor connected to multiple nodes. It may be interpreted that the smaller the value of the power usage of the current board, the higher the possibility of using the node.
[0234] In one embodiment, there may be various methodologies for determining the candidate nodes to be included in the candidate node list. In one embodiment of the present disclosure, the method for determining the candidate nodes may be implemented through any combination of the following various methodologies:
[0235] For example, the computing device 100 may determine a list of nodes that are not currently being benchmarked or that are currently ready to be benchmarked as candidate nodes.
[0236] For example, the computing device 100 may determine, as a candidate node, a node that can support the determined target model (or the determined target model information). Of the multiple nodes under the management of the computing device 100, a node that supports the input artificial intelligence-based model may be determined, as a candidate node.
[0237] For example, the computing device (100) may determine, as candidate nodes, a plurality of first nodes having an execution environment supporting a first operator included in the artificial intelligence-based model among the nodes supporting an execution environment corresponding to the target type information.
[0238] For example, the computing device (100) may determine, as candidate nodes, a plurality of second nodes that have an execution environment corresponding to the target type information and that do not support a first operator included in the artificial intelligence-based model but have an execution environment that supports a second operator different from the first operator that can replace the first operator.
[0239] For example, the computing device (100) may determine as candidate nodes a number of nodes that have free memory capacity that exceeds the size of the artificial intelligence-based model.
[0240] In one embodiment, when a specific node (e.g., Jetson series hardware) is included in the candidate node list, the computing device 100 can add additional factors to be considered in determining the sorting order. For example, for a specific type of node such as a Jetson series, a separate sorting can be performed on the node, distinguishing it from other types of nodes. As another example, the computing device 100 determines the sorting order of a specific type of node with respect to other types of nodes based on expected latency, but if there is not much difference in expected latency values between multiple nodes of the same type, the computing device 100 can add the power field and / or the fan field to the considerations to determine the sorting order. As an example, the computing device 100 can further consider factors corresponding to the power field and sort the nodes in descending order of the power field value. As an example, for a specific node such as a Jetson series, if the power field values are the same or the difference is within a predetermined threshold range, the computing device 100 can further sort the nodes in descending order of the fan operation based on the magnitude or strength of the fan operation.
[0241] In one embodiment, the computing device 100 can receive user input data selecting a particular node from the list of candidate nodes, and the computing device 100 can determine the selected node included in the user input data as the target node.
[0242] In one embodiment, the computing device (100) can receive user input data selecting a target node from the list of candidate nodes. In another embodiment, the computing device (100) can receive user input data selecting multiple target nodes from the list of candidate nodes. In another embodiment, the computing device (100) can automatically select the node from the list of candidate nodes that has the highest performance based on a particular factor (e.g., latency) as the target node without receiving input from the user.
[0243] In one embodiment, the computing device (100) may provide (830) benchmark results obtained by executing the target model on the at least one target node.
[0244] In one embodiment, the computing device 100 is capable of generating benchmark results that include results of inferring a target model at a target node.
[0245] In one embodiment, if one node is determined as the target node, benchmark request information can be sent to the node. In one embodiment, if multiple nodes are determined as the target nodes, benchmark request information can be sent to each of the multiple nodes. The benchmark request information can include information related to a target model to be benchmarked. The information related to the target model can include, for example, files or links related to the model and / or target type information for the model.
[0246] In one embodiment, the benchmark results may be generated by the computing device (100) or may be performed by another server (e.g., a server including multiple nodes) under the control of the computing device (100).
[0247] In one embodiment, the benchmark results may include performance information on a target node of a target model.
[0248] In one embodiment, the benchmark results may vary depending on which module of the other computing device triggered or requested the benchmark operation of the computing device 100. In another embodiment, the benchmark operation may vary depending on which module of the other computing device triggered or requested the benchmark operation of the computing device 100. For example, if the module that triggered the benchmark operation of the computing device 100 is a first module, the computing device 100 may provide performance information for the entire input model, and if the module that triggered the benchmark operation of the computing device 100 is a second module, the computing device 100 may provide performance information for the entire input model and may additionally provide performance information for each block of the input model. As another example, if the module that triggered the benchmark operation of the computing device (100) is a first module, the computing device (100) can provide benchmark results for determining a target node on which to execute a learning model or a converted learning model corresponding to an input dataset, and if the module that triggered the benchmark operation of the computing device (100) is a second module, the computing device (100) can provide benchmark results including compressed setting data used to generate a lightweight model corresponding to the input model.
[0249] By way of example and not limitation, the multiple modules for triggering a benchmark operation of the computing device (100) may include a first module for generating a learning model based on an input dataset, a second module for compressing the input model to generate a lightweight model, and a third module for generating download data for deploying the input model to at least one target node.
[0250] In one embodiment, the benchmark request information may include information regarding conversion of the model. Based on the information regarding conversion included in the benchmark request information, conversion may be performed on the input model.
[0251] In one embodiment, when the computing device 100 determines to convert the AI-based model to correspond to the target type information, the computing device 100 may determine a specific converter from among a plurality of converters using information related to the input model. For example, the computing device 100 may determine converter identification information corresponding to a combination of the model type information and the target type information of the input model. When a converter corresponding to the determined conversion identification information is determined, the determined converter may perform a conversion operation. For example, the computing device 100 may obtain a target model into which the AI-based model is converted using a model file corresponding to the AI-based model and converter identification information corresponding to a combination of the model type information and the target type information. As described above, when it is determined to perform a conversion, the conversion may be performed using a model file to be converted and information for identifying a converter that will perform the conversion (e.g., an identifier for identifying a combination of a model type before the conversion and a model type after the conversion). As an example, the conversion may be performed by a conversion device (e.g., a conversion server).
[0252] As another example, depending on the embodiment, the above conversion may be performed by the computing device 100. In the above example, when the model file resulting from the project is not for a specific type of execution environment (e.g., Tensorrt) but for another type of execution environment (e.g., Onnxruntime), the computing device 100 may use a conversion function to convert the model of the other type (e.g., Onnxruntime) into a model of the specific type (e.g., Tensorrt) and provide the model file resulting from the conversion.
[0253] In one embodiment, in a virtualized operating system, an AI-based model can be converted to a target model using a converter Docker image corresponding to the converter identification information. For example, an entity that performs the conversion (e.g., a conversion server, etc.) can obtain a Docker image corresponding to the input converter identification information and execute the converter sh file in Docker to perform the model conversion. In this case, the sh file can refer to a file containing instructions to be executed in Docker.
[0254] In one embodiment, the benchmark results may include a first type of quantitative information related to time and a second type of quantitative information related to memory usage.
[0255] In one embodiment, the benchmark results obtained by executing the target model on at least one target node may include preprocessing time information which is information related to the time required for preprocessing of inference of the target model on the at least one target node, inference time information which is information related to the time required for inference of the target model on the at least one target node, preprocessing memory usage information which is information related to the memory usage used for preprocessing of inference of the target model on the at least one target node, inference memory usage information which is information related to the memory usage used for inference of the target model on the at least one target node, quantitative information related to the inference time obtained by repeatedly inferring the target model a predetermined number of times on the at least one target node, and / or quantitative information related to memory usage in each of the NPU, CPU, and GPU obtained by inferring the target model on the at least one target node.
[0256] In one embodiment, the preprocessing time information may include time information required for preprocessing before performing an inference operation, such as calling a model, etc. The preprocessing time information may also include quantitative information (e.g., minimum, maximum, and / or average value of the time required for pre-inference) related to the time required for pre-inference when pre-inference is repeated a predetermined number of times to activate a GPU or the like prior to measuring the inference value.
[0257] In one embodiment, the inference time information is information related to the time required for an inference process, and may be used to encompass minimum time information, maximum time information, average time information, and / or median time information among time information related to the time required for the first inference operation for a model and / or inference time information when inference is repeated a predetermined number of times. Furthermore, for example, in a situation where the CPU takes over and processes a calculation that cannot be processed by the NPU, the NPU becomes idle, and the inference time information may include a first cycle value when the NPU becomes idle. Furthermore, the inference time information may include a second cycle value when inference is performed by the NPU, and / or a third cycle value obtained by adding up the first cycle value and the second cycle value.
[0258] In one embodiment, the benchmark result information may further include total time information obtained by adding up the preprocessing memory usage information and quantitative information related to the inference time.
[0259] In one embodiment, the benchmark result information may further include a quantitative value related to RAM usage, ROM usage, total memory usage, and / or SRAM area used by the NPU.
[0260] In one embodiment, when multiple benchmark results are generated due to multiple nodes being selected as target nodes, the computing device (100) can sort the multiple benchmark results using latency as a sorting criterion. For example, the benchmark results can be sorted and output in order of lowest latency. In another example, when the latencies are within a predetermined close margin or when there are benchmark results corresponding to each of the same multiple nodes, memory usage and / or CPU usage can be added to the sorting criteria to sort the benchmark results. The sorting of the benchmark results can include features related to the sorting in the candidate node list.
[0261] In one embodiment, the benchmark results may include a document structure, for example in the form of a table.
[0262] In one embodiment, the computing device 100 can change the method of sending the benchmark request information depending on whether the multiple nodes connected to it can perform wireless communication. The wireless communication can include HTTP communication, for example. For example, when transmitting a benchmark request to an independent node capable of wireless communication, the computing device 100 can send the benchmark request information to the node or a server related to the node. For example, when transmitting a benchmark request to a node that cannot perform wireless communication, the computing device 100 can send the benchmark request information to a node that can perform wireless communication (e.g., Rpi4) to which the node that cannot perform wireless communication is connected via USB / GPIO or the like. The node that receives the benchmark request information (e.g., a node that can perform HTTP communication) can obtain a benchmark result by executing a program on a node that is a target of the benchmark (i.e., a node that cannot perform HTTP communication) that is connected to the node by using serial communication via a USB / GPIO connection. The expected memory usage can be measured by executing an execution environment corresponding to a target model type to be executed in an independent node that can perform wireless communication. Using the measured expected memory usage and benchmark request information, it is possible to create and compile a benchmark program to be executed in the node that is the target of the benchmark and that does not have wireless communication. The created and compiled program can be flashed via serial communication to the node that is the target of the benchmark and that does not have wireless communication. In this manner, it is possible to obtain benchmark results for the node that is not capable of wireless communication.
[0263] In one embodiment, when the target nodes include nodes that cannot be confirmed from the outside (e.g., virtual nodes, etc.), the computing device (100) can obtain benchmark results using the following method.
[0264] In response to receiving a first low-power wireless signal from an externally unobservable node, the computing device (100) may send a first acknowledgment message to the node, the first acknowledgment message including a benchmark task for benchmarking a target model at the node. For example, the first low-power wireless signal may include a beacon signal. For example, the first low-power wireless signal may include information regarding whether the node is performing a benchmark, information regarding memory usage of the node, and hardware identification information of the node.
[0265] The computing device (100) may receive a second low-power wireless signal (e.g., a callback signal) from the node, the second low-power wireless signal including the benchmark result generated by the node. In another embodiment, if the computing device (100) fails to receive the callback signal within a time corresponding to a predetermined waiting time threshold, the computing device (100) may determine that the benchmark task at the node has failed and set the node to an inactive state. The computing device (100) may set the state of the node to an active state in response to receiving a third low-power wireless signal (e.g., a beacon signal) from the node set to an inactive state. In this case, the benchmark task included in the first response message may include target model information that the node can download and node configuration information used to convert the target model downloaded by the node. Also, the benchmark result generated by the node may include a result obtained by executing the target model in the execution environment of the node based on the node configuration information and the target model information.
[0266] FIG. 9 illustrates an exemplary method for providing benchmark results in one embodiment of the present disclosure.
[0267] The method illustrated in Figure 9 may be performed by the first computing device (310), the second computing device (320) and / or the computing device (100). For ease of explanation, the method of Figure 9 is illustrated below as being performed by the computing device (100).
[0268] In one embodiment, the computing device 100 may verify 905 a user's access to a project, platform, web page, and / or mobile page provided by the computing device 100, and the computing device 100 may generate a learning model based on a dataset input by the user, compress the learning model to generate a lightweight model, and / or generate download data for the model to be deployed to a node.
[0269] In one embodiment, the computing device (100) may provide (910) a model list.
[0270] In one embodiment, the computing device 100 can receive input from a user requesting a model list and, in response to such input, can generate a model list that is provided to the user.
[0271] In one embodiment, the model list may include, for example, a list of models that can be benchmarked, a list of models that can be trained on a dataset, a list of models that can be compressed, a list of models suitable for a particular artificial intelligence task, a list of models to suggest to the user, and / or a list of models for which user input is required. As an example, the model list may include the size of input data that the model accepts and / or latency information for each model.
[0272] In one embodiment, the computing device 100 may request uploading of a model for which benchmark results are to be obtained 915. By way of example, the computing device 100 may request input or upload of a model file, a dataset, an inference task, model type information corresponding to the model file, and / or target type information to be benchmarked.
[0273] In one embodiment, the computing device (100) may determine (920) whether conversion is required to perform the benchmark (e.g., to generate the candidate node list and / or to obtain the benchmark results). For example, if there is a difference between the type information of the uploaded model and the target type information to be benchmarked, it may determine that conversion is required. As another example, if there is a user input requesting conversion, the computing device (100) may determine to perform the conversion.
[0274] In one embodiment, if it is determined that conversion is not necessary, the computing device 100 may request 925 detailed information about the model to be uploaded along with the model upload, such as the inference task, the format of the AI-based model to be used, the location where the uploaded dataset will be stored (e.g., local storage or cloud storage), the training method, the use of the dataset (e.g., training, validation, testing), the target latency, and / or the name of the project.
[0275] In one embodiment, if it is determined that conversion is necessary, the user may be prompted to enter model details along with the upload of the model and may be provided with conversion options 930. For example, the conversion options may include informing the user that the model uploaded will be converted to another type of model, prompting the user to select a particular model among multiple models to be converted, providing performance information for each of multiple models to be converted, or requesting the user to enter a confirmation input to proceed with the converter.
[0276] In one embodiment, the computing device 100 may receive 935 a user model selection input. The user model selection input may include information regarding a user selection of a model from among a plurality of proposed models, a user selection of a model to convert, and / or a user selection of a model to benchmark. As another example, the model selection input may include inputs for selecting a target model and a target node.
[0277] In one embodiment, the computing device 100 may receive a benchmark request 940. For example, the benchmark request may include an input to perform a benchmark against a determined target model.
[0278] In one embodiment, the computing device 100 may provide a candidate node list for selecting a target node in response to the benchmark request 945. The candidate node list may be generated by the computing device 100 or may be data generated by another computing device connected to the computing device 100 and stored on the computing device 100. A detailed description of the candidate node list is provided in the description of Figures 4 and 8 above.
[0279] In one embodiment, the computing device 100 may receive 950 a user input for selecting a target node from the candidate node list and an input related to a benchmark setting. For example, the input may allow for selecting at least one target node from the candidate node list. For example, the input related to the benchmark setting may include information included in the benchmark result, a batch size in the inference process, identification information of the target model, software version information of the target model, hardware identification information of the target device, an output data type of the target model (e.g., FP32, FP16, INT8, INT4, etc.), a target latency of the model in the training process, an image size of the model in the training process, and / or a training epoch.
[0280] In one embodiment, the computing device 100 may receive a request to run a benchmark 955. In response to the request to run a benchmark, the computing device 100 may run the target model on the target device in accordance with the benchmark settings to generate benchmark result information.
[0281] In one embodiment, the computing device (100) may provide (960) a list of benchmark tasks that were run with the selected model. In one embodiment, step 960 may be performed in response to step 935 or in response to step 955. For example, the list of benchmark tasks in step 960 may include benchmark result information for benchmark tasks run with respect to a particular model. As an example, a list of benchmark result information for benchmarks run on different nodes and / or at different times for a particular model may correspond to the list of benchmark tasks in step 960.
[0282] In one embodiment, the computing device 100 may provide 965 a list of benchmark tasks executed using the selected node. For example, the list of benchmark tasks may include benchmark result information for benchmark tasks executed using the particular node in step 965. As an example, a list of benchmark result information for benchmarks performed on multiple different nodes and / or at different times for a particular node may correspond to the list of benchmark tasks in step 965.
[0283] In one embodiment, the computing device 100 may provide 970 benchmark result information, a detailed description of which is provided in the detailed description of FIGS.
[0284] FIG. 10 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure.
[0285] The multiple entities (1000a, 1000b, 1000c, 1000d, 1000e) shown in FIG. 10 are examples for explanation, and depending on the embodiment, other entities not shown here may be added to embody the method for providing benchmark results, or some of the multiple entities may be removed or integrated. For example, at least two entities among the second computing device (1000b), the first computing device (1000c), the converting device (1000d), and the node (1000e) may be integrated into one entity. As another example, at least one of the second computing device (1000b) and the first computing device (1000c) may be divided into multiple computing devices and operated.
[0286] In one embodiment, the user (1000a) may include an entity that accesses the second computing device (1000b) through a computing device such as a terminal capable of wired or wireless communication.
[0287] In one embodiment, the second computing device (1000b) may include an entity capable of interacting with the user (1000a). For example, the second computing device (1000b) may provide a user interface to allow the user (1000a) to select and use a project related to at least one of the second computing device (1000b), the first computing device (1000c), the converting device (1000d), and the node (1000e). For example, various inputs made by the user (1000a), such as model selection, node selection, benchmark setting, compression method setting, and / or learning method selection, may be received through the user interface of the second computing device (1000b). In one embodiment, the second computing device (1000b) may provide the user (1000a) with various projects, such as a modeling project related to an artificial intelligence-based model, a compression project, a project for generating download data for model deployment, and / or a benchmark project.
[0288] In one embodiment, the second computing device (1000b) can be configured to trigger an operation of the first computing device (1000c), such that the first computing device (1000c) can perform a benchmark operation in response to a signal from the second computing device (1000b). In another embodiment, the second computing device (1000b) can also interact with the conversion device (1000d) and the node (1000e). In one embodiment, the second computing device (1000b) can correspond to the second computing device (320) in FIG. 3.
[0289] In one embodiment, the first computing device (1000c) can provide the benchmark results to the second computing device (1000b) and / or the user (1000a). The first computing device (1000c) can obtain the benchmark results for the model and node specified by the user (1000a) through interaction with the conversion device (1000d) and / or the node (1000e). In one embodiment, the first computing device (1000c) can obtain the corresponding benchmark results based on the selected node information and the selected model information. In one embodiment, the first computing device (1000c) can correspond to the first computing device (310) in FIG. 3.
[0290] In one embodiment, the conversion device (1000d) is capable of performing a conversion operation on the model. Depending on the embodiment, the conversion device (1000d) may be separate or integrated with at least one of the second computing device (1000b) and / or the first computing device (1000c). In one embodiment, the conversion device (1000d) may correspond to the conversion device (390) in FIG. 3.
[0291] In one embodiment, the node (1000e) may include one or more nodes. The node (1000e) may refer to a target against which a selected model is benchmarked. In one embodiment, the node (1000e) may be under the management of the first computing device (1000c) and / or the second computing device (1000b). In this case, in response to a benchmark request from the first computing device (1000c) and / or the second computing device (1000b), a benchmark is performed on the corresponding node, and the node (1000e) may send benchmark result information to at least one of the first computing device (1000c) and / or the second computing device (1000b). In one embodiment, the node (1000e) may operate in a form included in the first computing device (1000c) and / or the second computing device (1000b).
[0292] In one embodiment, the user (1000a) can access the second computing device (1000b) and upload the model (1005) through an interface provided by the second computing device (1000b). As an example, uploading the model can include uploading a dataset or passing a link where the dataset can be downloaded. As an example, uploading the model can include passing a modeled model file or a link where the modeled model file can be downloaded. As an example, uploading the model can also include passing inference task information, target model information to be benchmarked, and / or model type information corresponding to the uploaded model.
[0293] In one embodiment, the second computing device (1000b) may receive a model list request (1010a) from a user (1000a). The model list may include information related to a number of models capable of modeling or benchmarking. As an example, the information related to the models included in the model list may be determined based on a benchmark task and / or dataset entered by the user (1000a).
[0294] In one embodiment, the second conversion device (1000b) can provide a model list (1010b) including information related to a plurality of models that can be modeled or benchmarked. For example, the information related to the plurality of models can include an identifier of the model, a size of data that can be input to the model, an inference method of the model, a learning method of the model, a structure of the neural network of the model, characteristics of the model, quantitative information related to the performance of the model, and / or node information suitable for the model.
[0295] In one embodiment, the second computing device (1000b) can receive user input from the user (1000a) selecting at least one model from the list of models (1015).
[0296] In one embodiment, the second computing device (1000b) can store selected model information (1020) in response to a user input selecting a model. For example, the selected model information (1020) can include a model type to be benchmarked, a model type to be trained, a model type to be compressed, a model type to be deployed, a model file, a model identifier, and / or a model type corresponding to a dataset.
[0297] In one embodiment, the second computing device (1000b) may also provide a candidate node list corresponding to the selected model information (1020) in response to the user input selecting a model. In one embodiment, the second computing device (1000b) may also communicate the selected model information (1020) to the first computing device (1000c) in response to the user input selecting a model.
[0298] In one embodiment, the second computing device (1000b) may receive a node list request (1025a) from the user (1000a). The second computing device (1000b) may forward the node list request (1025b) to the first computing device (1000c). The first computing device (1000c) may provide the node list (1025c) to the second computing device (1000b). The second computing device (1000b) may provide the node list (1025d) to the user (1000a). In one embodiment, the node list may include a list of nodes among the plurality of nodes that are ready to run a benchmark. In one embodiment, the node list may include a list of candidate nodes among the plurality of nodes that correspond to the selected model information (1020).
[0299] In one embodiment, the second computing device (1000b) may receive a node selection input from the user (1000a) (1030). The node selection input may refer to an input for selecting at least one node (e.g., at least one target node) from the provided list of nodes.
[0300] In one embodiment, the second computing device (1000b) can store the selected node information (1035) in response to the user's input selecting a node. In one embodiment, the second computing device (1000b) can also communicate the selected node information (1035) to the first computing device (1000c) in response to the user's input selecting a node.
[0301] In one embodiment, there may be cases where the target node that the user (1000a) wants to select is not present in the node list, or the user (1000a) wants to newly register a specific node, or the user (1000a) wants to add a node other than the selected node information (1035) to perform benchmarking. The second computing device (1000b) may receive a node registration request from the user (1000a) (1040a). The second computing device (1000b) may transmit the node registration request to the first computing device (1000c) (1040b). In response to the node registration request, the first computing device (1000c) may register or store information related to the corresponding node in a DB related to the device. The first computing device (1000c) may provide a node list including the registered or stored nodes to the second computing device (1000b). The second computing device (1000b) may provide the received node list to the user (1000a). In one embodiment, the node list may include a list of nodes among the plurality of nodes that are ready to run the benchmark. In one embodiment, the node list may include a list of candidate nodes among the plurality of nodes that correspond to the selected model information (1020).
[0302] In one embodiment, the second computing device (1000b) may receive a node selection input from the user (1000a) (1045). The node selection input may refer to an input for selecting at least one node (e.g., at least one target node) from the provided list of nodes. In one embodiment, the second computing device (1000b) may store selected node information (1050) in response to the user's input for selecting a node. In one embodiment, the second computing device (1000b) may also communicate the selected node information (1050) to the first computing device (1000c) in response to the user's input for selecting a node.
[0303] In one embodiment, the second computing device (1000b) may receive a request from the user (1000a) to proceed with benchmarking the selected information (1055). In one embodiment, the selected information may include selected model information (1020), selected node information (1035), and / or selected node information (1050). For example, the benchmark request at step 1055 may include a request to benchmark a selected model (1020) at multiple selected nodes (1035 and 1050).
[0304] In one embodiment, the second computing device (1000b) may send (1056) the selected model to the first computing device (1000c). In one embodiment, the first computing device (1000c) may store (1057) the received model. In one embodiment, the second computing device (1000b) may send (1056) a benchmark request for the selected node to the first computing device (1000c).
[0305] In one embodiment, the first computing device (1000c) may determine whether or not to perform conversion on the received model (1059). The first computing device (1000c) may determine whether or not to perform conversion on the model based on the received model information and the selected node information. For example, the first computing device (1000c) may determine whether or not to perform conversion based on whether or not the selected node supports the received model or whether or not the selected node supports an operator included in the received model. For example, the selected node may not support the received model. In such a case, the first computing device (1000c) may determine whether or not to perform conversion on the received model or may determine whether or not to perform conversion on at least a part of the operators included in the received model. In another example, the first computing device (1000c) may determine that conversion needs to be performed on the received model or may determine to replace the selected node with another node if the selected node does not support the received model.
[0306] In one embodiment, if it is determined that conversion is necessary, the first computing device (1000c) may send a request to the conversion device (1000d) to convert the model (1060). For example, the request to convert the model may include a conversion identification that indicates a combination of the type of the model to be converted and the type of the model after conversion.
[0307] In one embodiment, the conversion device (1000d) may convert the model (1065) in response to a request to convert the model. For example, the conversion device (1000d) may determine a converter from among a plurality of converts that corresponds to a conversion identification included in the request to convert the model, and perform the conversion on the model using the determined convert. The conversion device (1000d) may generate a converted model.
[0308] In one embodiment, the conversion device (1000d) can send the converted model to the first computing device (1000c). The first computing device (1000c) can determine or clarify or instantiate a target node from the converted model and check the availability of the target node (1080). For example, if the determined target node is currently running another benchmarking task or the available memory or available CPU of the target node is less than a predetermined capacity, the first computing device (1000c) can queue the benchmark request and issue the benchmark request when the target node becomes available.
[0309] In one embodiment, if the determined target node is available, the first computing device (1000c) can send a benchmark request to the node (1000e). For example, the benchmark request can include information related to the target model and the target node.
[0310] In one embodiment, the node (1000e) may perform a benchmark on the target model based on the information included in the benchmark request and generate a benchmark result. For a detailed description of the benchmark result, refer to the detailed description of FIG. 4 and FIG. 8. The node (1000e) may provide (1085) the benchmark result to the first computing device (1000c). The first computing device (1000c) may provide (1090) the benchmark result to the second computing device (1000b). The second computing device (1000b) may provide (1090) the benchmark result to the user (1000a).
[0311] FIG. 11 illustrates an exemplary method for providing benchmark results for nodes that cannot be externally confirmed in accordance with one embodiment of the present disclosure.
[0312] The embodiment shown in FIG. 11 illustrates interactions between a first computing device (1110), a second computing device (1130), and a node (1120) when a node (1120) that cannot be externally confirmed, such as a virtual node, is to run a benchmark as a target node.
[0313] 11, the contents overlapping with those in FIG. 3 to FIG. 10 will not be repeated and will be omitted, and the above-mentioned explanation will be used instead.
[0314] In one embodiment, the system for providing benchmark results (1100) may include a first computing device (1100) and a node (1120). In another example, the system for providing benchmark results (1100) may include a second computing device (1130), the first computing device (1100), and the node (1120). In another example, the system for providing benchmark results (1100) may include the first computing device (1100), but the second computing device (1130) and the node (1120) may be external to the system (1100).
[0315] In one embodiment, the first computing device (1110) can determine whether the target node is an externally unidentifiable node, whether the target node is an externally identifiable node, or whether the target node is a node capable of wireless communication (e.g., HTTP communication, etc.) based on the identification information of the target node included in the received benchmark request. If it is determined that the target node is an externally unidentifiable node, the technique in one embodiment of the present disclosure can be embodied by the exemplary method in FIG.
[0316] Here, "external" can mean, for example, outside the network to which the node (1120) is connected. For example, the node (1120) that cannot be confirmed from the outside can be used to collectively mean a node that cannot connect to a device inside the network from outside the network, a node that cannot access the network from the outside, a node that cannot be confirmed from the outside but can be confirmed through a beacon signal, a node that cannot be confirmed from the outside but can be confirmed through a beacon signal transmitted by the node because the network cannot be accessed from the outside, or a virtual node.
[0317] In one embodiment, the node (1120) may transmit a low-power signal, such as a beacon signal, to an external device (e.g., the first computing device (1110)) at a certain period. By way of example and not limitation, the transmission period of the beacon signal transmitted by the node (1120) may be various values, such as 3 minutes, 2 minutes, 1 minute, 30 seconds, and / or 20 seconds. The first computing device (1110) may interact with the node (1120) by transmitting and receiving such a low-power signal to the node (1120), and a benchmark operation with the node (1120) may be performed by including specific data (e.g., benchmark result information, information for benchmark assignment, information indicating whether or not a benchmark can be executed, node registration information, etc.) in the low-power signal.
[0318] The multiple entities (1110, 1120, 1130) shown in FIG. 11 are examples for explanation, and depending on the embodiment, other entities not shown here may be added to embody a method for providing benchmark results for nodes that cannot be confirmed externally, or some of the multiple entities may be removed or integrated. For example, at least two of the second computing device (1130), the first computing device (1120), and the node (1120) may be integrated into one entity. As another example, at least one of the second computing device (1120) and the first computing device (1110) may be divided into multiple computing devices and operated.
[0319] In one embodiment, the second computing device (1130) may include an entity capable of interacting with a user and the first computing device (1110). For example, the second computing device (1130) may provide a user interface to allow a user to select and utilize a project. For example, the second computing device (1130) may receive various inputs, such as model selection, node selection, benchmark settings, compression method settings, and / or learning method selection, made by a user, through the user interface. In one embodiment, the second computing device (1130) may provide various projects, such as a modeling project for an artificial intelligence-based model, a compression project, a project for generating download data for model deployment, and / or a benchmark project, to a user.
[0320] In one embodiment, the second computing device (1130) may be configured to trigger an operation of the first computing device (1100) such that the first computing device (1110) may perform a benchmark operation in response to a signal from the second computing device (1130). In another embodiment, the second computing device (1130) may interact with the node (1120). In one embodiment, the second computing device (1130) may correspond to the second computing device (320) in FIG. 3 and / or the second computing device (1000b) in FIG. 10.
[0321] In one embodiment, the first computing device (1110) can provide the benchmark results to the second computing device (1130) and / or a user. The first computing device (1110) can interact with the nodes (1120) to obtain benchmark results for the models and nodes received from the second computing device (1130). In one embodiment, the first computing device (1110) can obtain corresponding benchmark results based on the selected node information and the selected model information. In one embodiment, the first computing device (1110) can correspond to the first computing device (310) in FIG. 3 and / or the first computing device (1000c) in FIG. 10.
[0322] In one embodiment, the node (1120) may include one or more nodes. The node (1120) may be operable in a form included in the first computing device (1110). The node (1120) may indicate a target against which a selected model is benchmarked. In one embodiment, the node (1120) may be under the management of the first computing device (1110) and / or the second computing device (1130). In this case, in response to a benchmark request from the first computing device (1110) and / or the second computing device (1130), a benchmark is performed on the corresponding node, and the node (1120) may send benchmark result information to at least one of the first computing device (1110) and / or the second computing device (1130).
[0323] In one embodiment, the first computing device (1110) may receive a low power signal from the node (1120). For example, the low power signal may include a beacon signal. For example, in this case, the low power signal may include identification information of the node (1120). In another example, the low power signal may include a registration request to register the node with the first computing device (1110). The first computing device (1110) may save or register (1141) the node (1120) in response to the low power signal received from the node (1120). For example, the first computing device (1110) may determine whether the identification information of the node (1120) included in the low power signal received from the node (1120) is registered in its DB. If the identification information of the node (1120) is not registered in its DB, the computing device (1110) may save or register the node (1120) in its DB.
[0324] In one embodiment, the first computing device (1110) may send a response message to the node (1120) in response to the low power signal (1142). The first computing device (1110) may set the node corresponding to the low power signal to an active state. For example, the active state may mean a state in which a benchmark operation is possible. For example, the active state may mean a state in which communication for a benchmark operation is possible. For example, the active state may mean a state in which a benchmark task can currently be executed in consideration of CPU usage and / or memory usage, etc.
[0325] In one embodiment, the second computing device (1130) may send (1143) a first benchmark request to the first computing device (1100). For example, the first benchmark request may include information related to a model and a node to be benchmarked. In one embodiment, the first computing device (1110) may determine which of the multiple nodes to send the first benchmark request to based on the node information included in the first benchmark request. For example, if the node included in the first benchmark request is a node (1120) that cannot be confirmed from the outside, the first computing device (1110) may determine to interact with the node (1120) for the first benchmark request in the manner shown in FIG. 11.
[0326] In one embodiment, the first computing device (1110) can analyze the first benchmark request to determine whether to convert the model included in the first benchmark request, and if it is determined that conversion is necessary, the first computing device (1110) can obtain a conversion result of the model included in the first benchmark request.
[0327] In one embodiment, the first computing device (1110) may interact with the node (1120) in response to the first benchmark request (1143) to obtain a benchmark result corresponding to the first benchmark request (1143). In another embodiment, the first computing device (1110) may interact with the node (1120) in response to the first benchmark request (1143) to obtain a candidate node list corresponding to the first benchmark request (1143).
[0328] In one embodiment, the first computing device (1110) may suspend and wait (1144) a benchmark operation corresponding to the first benchmark request (1143) until it receives a low power signal from the node (1120). As described above, since the node (1120) is a node that cannot be externally confirmed and can be communicated with, for example, through a beacon signal, the first computing device (1110) may suspend and wait additional operations for the benchmark until it receives a subsequent low power signal (1145) from the node (1120).
[0329] In one embodiment, the first computing device (1110) may receive (1145) a subsequent low power signal from the node (1120). The low power signal received at stage 1145 may include, for example, a beacon signal that the node (1120) transmits periodically or repeatedly. Such a beacon signal may include whether the node (1120) is currently running a benchmark, the memory usage of the node (1120), the CPU usage of the node (1120), and / or an identification of the node (1120).
[0330] In one embodiment, the first computing device (1110) may generate (1146) a response message in response to the low power signal to allocate a benchmark task corresponding to the first pending benchmark request. The response message may be sent from the first computing device (1110) to the node (1120) based on the node's (1120) identification information included in the low power signal. For example, the benchmark task included in the response message may include target model information that the node (1120) can download and node configuration information used to convert the target model downloaded by the node (1120).
[0331] In one embodiment, the node (1120) may execute (1147) a first benchmark corresponding to the first benchmark request. The node (1120) may send (1150) a first benchmark result obtained by executing the first benchmark to the first computing device (1110) through a low-power signal (e.g., a callback signal). The first benchmark result may include a result obtained by executing a target model in an execution environment of the node (1120) based on the node configuration information and the target model information. For example, the callback signal may also have a form of a beacon signal. The callback signal (low-power signal) may include a benchmark result performed by the node (1120). The low-power signal may include a result of performing the benchmark. For a detailed description of the benchmark result information, the description of FIG. 4 and FIG. 8 may be used to avoid duplication of description. The first benchmark result may be sent (1152) from the first computing device (1110) to the second computing device (1130).
[0332] In one embodiment, the second computing device (1130) may send (1148) a second benchmark request to the first computing device (1100). For example, the second computing device (1130) may sequentially send benchmark requests from multiple users to the first computing device (1100). In such an example, the first benchmark request (1143) may be a benchmark request corresponding to a first user, and the second benchmark request (1148) may be a benchmark request corresponding to a second user. For example, the second computing device (1130) may sequentially send multiple benchmark requests from a single user to the first computing device (1100). In the example of FIG. 11, the second benchmark request (1148) may be sent to the first computing device (1110) before the benchmark result information corresponding to the first benchmark request (1143) is transmitted to the second computing device (1130). The first computing device (1110) may suspend and wait (1149) the benchmark operation until it receives a low power signal in response to the second benchmark request (1148). In one embodiment, the first computing device (1110) may send (1151) a response message to the node (1120) in response to the low power signal (1150) received from the node (1120) to assign a benchmark task corresponding to the second benchmark request to the node (1120). As an example, the response message to assign the second benchmark request may be transmitted to the node (1120) before the first benchmark result (1152) is transmitted to the second computing device (1130). In such an example, the second benchmark request may be transmitted (1156) to the node (1120) via the response message corresponding to the low power signal (1150) including the first benchmark result corresponding to the first benchmark request.As described in the previous example, a new benchmark task can be assigned to the node (1120) through a response message to a low-power signal (e.g., a beacon signal) including the first benchmark result. The first computing device (1110) can transmit a second benchmark request to the node (1120) while obtaining the first benchmark result. This can efficiently use resources related to communication of the low-power signal and the response message between the first computing device (1110) and the node (1120).
[0333] In one embodiment, the node (1120) may perform (1153) a second benchmark in response to the second benchmark request. As a result of performing the second benchmark, the node (1120) may send (1154) a low power signal (e.g., a callback signal) including the second benchmark results to the first computing device (1110). The first computing device (1110) may send (1155) the second benchmark results to the second computing device (1130).
[0334] In one embodiment, the second computing device (1130) may send a third benchmark request to the first computing device (1100) (1157). The first computing device (1110) may suspend the benchmark operation and wait until it receives a low power signal from the corresponding node, and may determine that the benchmark corresponding to the third benchmark request has failed if it fails to receive the low power signal from the corresponding node (1158). The first computing device (1110) may communicate information that the third benchmark corresponding to the third benchmark request has failed to the second computing device (1130) (1159). In another embodiment, the first computing device (1110) may determine that the benchmark task at the node has failed and set the node to an inactive state if it fails to receive the low power wireless signal within a time corresponding to a predetermined waiting time threshold. In one embodiment, the first computing device (1110) may set a particular node to an inactive state and then, in response to receiving a low-power wireless signal from the node, set the state of the node to an active state. For example, if a benchmark request specifying a node set to an inactive state is later received, the first computing device (1110) may transmit to the second computing device (1130) a result that the node cannot currently be benchmarked and / or a candidate node list with the node removed from the candidate nodes.
[0335] In another embodiment, the first computing device (1110) may transmit a third benchmark request to the node (1120) and, if it fails to receive a low-power wireless signal (e.g., a callback signal including a benchmark result) from the node (1120) within a time period corresponding to a predetermined waiting time threshold, may determine that the benchmark task from the node has failed and set the node to an inactive state. The first computing device (1110) may transmit information to the second computing device (1130) that the third benchmark corresponding to the third benchmark request has failed.
[0336] The techniques in several embodiments of the present disclosure can take into account nodes that cannot be externally confirmed when generating a candidate node list and / or benchmark results, thereby achieving the effect of expanding the range of nodes that can be benchmarked.
[0337] FIG. 12 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure.
[0338] In one implementation, the method illustrated in Figure 12 may be performed by a first computing device (310). As another example, the method illustrated in Figure 12 may be performed by a computing device (100), which encompasses the first computing device (310) and the second computing device (320).
[0339] An example in which the steps in Fig. 12 are executed by a first computing device will be specifically described below. It is easily understood by those skilled in the art that some of the steps shown in Fig. 12 can be omitted or additional steps can be added depending on the embodiment.
[0340] In one embodiment, the first computing device in Figure 12 may correspond to the first computing device (310) in Figure 3, and the second computing device may correspond to the second computing device (320) in Figure 3. In one embodiment, the first computing device in Figure 12 may correspond to the first computing device in Figures 4-11, and the second computing device may correspond to the second computing device in Figures 4-11.
[0341] In one embodiment, a first computing device may receive 1210 module identification information from a second computing device including a plurality of modules performing different operations related to an artificial intelligence based model, the module indicating which of the plurality of modules of the second computing device is to trigger a benchmark operation of the first computing device.
[0342] In one embodiment, the first computing device can provide different benchmark results depending on who sent the benchmark request to the first computing device. For example, the second computing device can send a benchmark request to the first computing device that includes a node and a model. The first computing device can identify the sender of the benchmark request and generate different benchmark results depending on the identified sender. In another example, the second computing device can send a benchmark request to the first computing device that includes a benchmark task that is included in the benchmark result.
[0343] In one embodiment, a first computing device may interact with each of a plurality of modules of a second computing device, and when interacting with each of the plurality of modules, may perform a benchmark in a different manner and / or obtain different benchmark results depending on which module the first computing device interacts with.
[0344] In one embodiment, the module identification information may include information for identifying a particular module(s) among a plurality of modules included in the second computing device. For example, the plurality of modules may refer to a plurality of modules that perform different operations in the second computing device. As another example, the plurality of modules may exist in at least one of the second computing device and the first computing device and be configured to perform different operations. In another example, the plurality of modules may exist separately outside the second computing device and be configured to perform different operations.
[0345] In one embodiment, the module identification information may include information for identifying a particular module among a plurality of modules included in the second computing device and benchmark task information. The benchmark task information may include information related to a node and / or a model to be benchmarked. The benchmark task information may include performance target information for executing the benchmark (e.g., target latency information, etc.). The benchmark task information may include whether or not conversion is required in the process of executing the benchmark and / or conversion identification information. The benchmark task information may describe information to be included in the benchmark result. The benchmark task information may include a benchmarking method to be executed.
[0346] In one embodiment, multiple modules may utilize the benchmark results in different ways to generate output for each of the modules.
[0347] For example, the first module can generate a learning model based on the input data set. The first module can use the benchmark results to determine a target node for benchmarking the learning model. The first module can use the benchmark results to check the performance of the learning model when executed on the target node. The first module can use the benchmark results to generate a learning model or a re-training model. The first module can use the benchmark results to determine the type of learning model or re-training model corresponding to the data set. The benchmark results can be used to evaluate the performance of the learning model output from the first module. The performance of the learning model output from the first module can include memory footprint, latency, power consumption, and / or node information (such as the node's execution environment, processor and / or RAM size).
[0348] For example, the second module may compress the input model to generate a lightweight model. The second module may use the benchmark results to determine compression configuration data for the input model.
[0349] For example, the third module may generate download data for deploying the input model to at least one target node. The third module may use the benchmark result to generate the download data or to convert the data to a data type supported by the target node. The third module may use the benchmark result to check how well the input model can perform on a node that is closest to the specifications of the node desired by the user.
[0350] In one embodiment, the first computing device may provide (1220) benchmark results to the second computing device based on the module identification information.
[0351] In one embodiment, the first computing device can provide different benchmark results to the second computing device depending on the module identification information. As an example, the first computing device can run the benchmark in the same manner and provide different benchmark results to the second computing device when the module identification information is different. As another example, the first computing device can run the benchmark in a different manner and provide different benchmark results to the second computing device when the module identification information is different.
[0352] In one embodiment, if the module identification information indicates a first module, the first computing device can provide a benchmark result to the second computing device to determine a target node for executing a learning model or a converted learning model corresponding to the input data set, and if the module identification information indicates a second module, the first computing device can provide a benchmark result to the second computing device, the benchmark result including compressed configuration data used to generate a lightweight model corresponding to the input model.
[0353] In one embodiment, when the module identification information indicates a first module, the first computing device provides performance information for the entire input model, and when the module identification information indicates a second module, the first computing device can provide performance information for the entire input model and / or performance information on a block-by-block basis of the input model.
[0354] In one embodiment, the first computing device can perform benchmarking in different manners according to the module identification information. The benchmark results can be provided to the second computing device. If the module identification information indicates a first module, the first computing device can provide the second computing device with a first benchmark result generated based on running a predetermined target model on at least one predetermined target model in a first benchmark manner, and if the module identification information indicates a second module different from the first module, the first computing device can provide the second computing device with a second benchmark result generated based on running the target model on the at least one target node in the first benchmark manner. In this case, the first benchmark result and the second benchmark result can be different.
[0355] By way of example and not limitation, the benchmarking scheme may include a first benchmarking scheme that measures performance information for an entire input model when the input model is executed on the target node. The benchmarking scheme may include a second benchmarking scheme that measures performance information for an operator of the input model when the input model is executed on the target node. The benchmarking scheme may include a third benchmarking scheme that measures performance information for a block of the input model when the input model is executed on the target node. In one embodiment, the first computing device may generate a benchmark result by combining multiple benchmarking schemes.
[0356] In one embodiment, when the module identification information indicates a module that performs an operation of generating a learning model, the first computing device can provide a benchmark result to the second computing device, the benchmark result including first benchmark performance information obtained by executing each of the plurality of AI-based models on each of the plurality of nodes. For example, the first benchmark performance information can correspond to a table-type data structure that represents the latency due to matching between the plurality of AI-based models and the plurality of nodes. By way of example and not limitation, the data structure (500) shown in FIG. 5 can correspond to a table-type data structure that represents the latency.
[0357] In one embodiment, the first benchmark performance information may include not only latency but also any form of performance information when the model is executed in the node. For example, the first benchmark performance information may include power mode information, fan mode information, current board temperature information, and / or current board power usage information. The power mode information may be determined based on how many CPU cores are used. For example, when all CPU cores are used, the power mode information may be determined as MAX, and may be determined in a manner that quantitatively expresses usage, such as 30W, 20W, 15W, 10W, etc. For example, it may be considered that the greater the quantitative amount of power mode information, the lower the latency. As another example, when the power mode is MAX, the latency may be lower than other nodes that do not use the power mode. The fan mode information may be expressed in the form of information that indicates the strength of the fan, such as Null, Quite, Cool, and / or MAX. As an example, when the fan mode is Quite, the board temperature can be lowered more than when the fan mode is Null, so that the latency is more likely to be lower. For example, when the Fan mode is Cool mode, the board temperature can be lowered more than in other modes, so the latency is likely to be lower. The current power usage of the board can refer to the power usage obtained from power measurement sensors connected to multiple nodes. It can be interpreted that the smaller the value of the current power usage of the board, the higher the possibility of using the node.
[0358] In one embodiment, the first benchmark performance information can be used by the second computing device to generate performance prediction information of candidate nodes that can support the execution environment of the learning model. For example, the second computing device that interacts with the user can provide a candidate node list through a user interface, including candidate nodes that can support the model obtained from the user's input or are ready to execute the benchmark. When generating such a candidate node list, a performance table that has been prepared in advance can be used without interacting with the first computing device and / or the node that executes the benchmark. The performance table is a material structure that stores performance information obtained by executing each of the multiple models on each of the multiple nodes. Thus, the second computing device can use the performance table that has been prepared in advance to provide the user with information on the candidate nodes related to the input dataset or the input model and performance information on each of the multiple candidate nodes more quickly and efficiently.
[0359] In one embodiment, the first benchmark information may be updated by the first computing device when a new AI-based model is added, when a new node is added, and / or when an execution environment that the node can support is updated. In the above situation, the first computing device may perform performance measurement on the model and / or node corresponding to the new model to be added, the new node to be added, and / or the execution environment to be updated, and update the performance table based on the performed performance measurement. As a result, since the first computing device intervenes in the process of providing the candidate node list only in a specific situation, the second computing device may provide the user with information related to the candidate node list and performance prediction information for each of the multiple candidate nodes in a manner that allows efficient use of resources.
[0360] In one embodiment, when the module identification information indicates a module that generates a learning model, the first computing device generates a candidate node list including a plurality of first nodes that support an execution environment that supports a first operator included in the learning model from a plurality of nodes that support an execution environment corresponding to the target type information based on the learning model acquired from the second computing device and the target type information to be benchmarked, and can provide the benchmark result including the candidate node list to the second computing device. The first computing device can provide the user with more accurate information regarding the nodes to be benchmarked by determining, as candidate nodes, a plurality of nodes that can support the operators included in the learning model from a plurality of nodes suitable for the target type information to be benchmarked. For example, when the target type information to be benchmarked by the user is different from the model type information related to the learning model (or the dataset) input by the user, an operation of converting the input learning model into a target model corresponding to the target type information must be performed. When the candidate nodes are converted from the input learning model to a target model and then benchmarking is performed, there may be a case where the candidate nodes presented in advance do not support the converted target model. As a result, among the nodes supporting the execution environment corresponding to the target type information, a plurality of first nodes having an execution environment supporting the first operator included in the learning model can be determined as the candidate nodes. As an example, the first computing device can extract the operator included in the input learning model. Among the nodes having a runtime matching the target type information, if the runtime is matched but the version of the runtime supported by the node does not support the extracted operator, the node in which the version of the runtime is installed can be removed from the candidate nodes.
[0361] Also, among the nodes having an execution environment corresponding to the target type information, a plurality of second nodes having an execution environment that does not support a first operator included in the learning model but supports a second operator different from the first operator that can replace the first operator can be determined as candidate nodes. As an example, if there is an operator that can replace the unsupported operator, the first computing device can request the user to replace or change the operator, and if the user requests to replace the operator, the computing device (100) can include the node in the candidate nodes, and if not, can remove the node from the candidate nodes.
[0362] In one embodiment, when the module identification information indicates a module that generates a learning model, the first computing device can execute the learning model on at least one target node obtained from the second computing device to generate second benchmark performance information on the at least one target node of the learning model, and provide benchmark results including the second benchmark performance information to the second computing device.
[0363] In one embodiment, when the module identification information indicates a module that generates a learning model, the first computing device determines whether to convert the learning model based on model type information corresponding to the learning model acquired from the second computing device and target type information to be benchmarked, and when it is determined that the learning model is converted, the first computing device can obtain a target model by converting the learning model to correspond to the target type information using the model type information and target type information corresponding to the learning model. The first computing device can execute the target model in at least one target node acquired from the second computing device to generate second benchmark performance information in at least one target node of the target model. For example, the first computing device can determine what model type corresponds to the input learning model, compare the input target type information with the determined model type information, and determine that conversion is necessary if the two pieces of information are different. The first computing device can perform benchmarking in a manner of executing the converted model in the target node. As described in the example, the first computing device can determine whether to convert when a benchmark is triggered from a module that generates a learning model, and execute the benchmark in a manner that uses the model depending on the result of whether to convert. As described in the example, the first computing device can determine whether to convert when a benchmark is triggered from a module that generates a learning model, and provide a benchmark result of the model depending on the result of whether to convert.
[0364] In one embodiment, the first computing device is capable of providing benchmark results including second benchmark performance information to the second computing device.
[0365] In one embodiment, the second benchmark performance information may include a first type of quantitative information related to time and a second type of quantitative information related to memory usage.
[0366] In one embodiment, the second benchmark performance information obtained by executing the target model on at least one target node may include preprocessing time information which is information related to the time required for preprocessing of inference of the target model on at least one target node, inference time information which is information related to the time required for inference of the target model on at least one target node, preprocessing memory usage information which is information related to memory usage used for preprocessing of inference of the target model on at least one target node, inference memory usage information which is information related to memory usage used for inference of the target model on at least one target node, quantitative information related to inference time obtained by repeatedly inferring the target model a predetermined number of times on at least one target node, and / or quantitative information related to memory usage in each of the NPU, CPU, and GPU obtained by inferring the target model on at least one target node.
[0367] In one embodiment, the preprocessing time information may include, for example, time information required for preprocessing before performing an inference operation, such as calling a model. In addition, the preprocessing time information may include quantitative information (for example, minimum, maximum, and / or average value of the time required for pre-inference) related to the time required for pre-inference when the pre-inference is repeated a predetermined number of times in order to activate a GPU or the like prior to measuring the inference value.
[0368] In one embodiment, the inference time information is information related to the time required for the inference process, and can be used to encompass, for example, minimum time information, maximum time information, average time information, and / or intermediate time information among time information related to the time required for the first inference operation for a model and / or inference time information when inference is repeated a predetermined number of times. Furthermore, for example, in a situation where the CPU takes over and processes a calculation that cannot be processed by the NPU, the NPU becomes idle, and the inference time information can include a first cycle value when the NPU becomes idle. Furthermore, the inference time information can also include a second cycle value when inference is performed by the NPU, and / or a third cycle value obtained by adding up the first cycle value and the second cycle value.
[0369] In one embodiment, the second benchmark performance information may further include total time information obtained by adding together the preprocessing memory usage information and quantitative information related to the inference time.
[0370] In one embodiment, the second benchmark performance information may further include a quantitative value related to RAM usage, ROM usage, total memory usage, and / or SRAM area used by the NPU.
[0371] In one embodiment, the second benchmark performance information may include, for example, a data structure in a table format.
[0372] In one embodiment, when the module identification information indicates a module that generates a lightweight model, the first computing device can provide the second computing device with a benchmark result including compression setting data used to generate a lightweight model corresponding to the input model. As described above, when the module identification information corresponds to a module that generates a lightweight model, the first computing device can provide a benchmark result different from the benchmark results for other modules. The benchmark result can include a benchmark result related to compression of the model. The benchmark result can be obtained by performing a benchmark on a model basis and / or by performing a benchmark on a block basis. Here, the compression setting data can include at least one of a compression mode, a compression algorithm, a compression target, and a compression ratio.
[0373] For example, the compression mode may include a first compression mode in which compression is performed on the entire input model and / or a second compression mode in which compression is performed on a block basis included in the input model. In this specification, a block may mean a component that constitutes a model. For example, a block may correspond to a convolution layer, an activation function, a normalization function, and / or an arithmetic operation. For example, a block may correspond to at least one layer in a neural network.
[0374] For example, the compression algorithm may include various known compression algorithms such as Layer-Adaptive Sparsity for Magnitude-based Pruning (LAMP) and / or Variational Bayesian Matrix Factorization (VBMF), etc. In other examples, the compression algorithm may include a weight pruning algorithm that changes the structure of a model, a weight pruning algorithm that separates channels to reduce the amount of calculations and the number of variables, a weight pruning algorithm that sets parameters other than parameters that affect the result to 0, etc., a weight pruning algorithm that uses a quantization method to reduce parameters represented by floating-point numbers to a specific number of bits, and / or a weight pruning algorithm that binarizes parameters, etc.
[0375] For example, the compression target is used to indicate a block to be compressed among multiple blocks included in a model.
[0376] For example, the compression ratio can refer to quantitative information related to the compression ratio in model compression or block compression.
[0377] In one embodiment, when the module identification information indicates a module representing a lightweight model, the first computing device may execute the model input from at least one target node obtained from the second computing device in units of blocks to generate third benchmark performance information representing the performance of the input model in units of blocks. The first computing device may provide the benchmark result including the third benchmark performance information to the second computing device. In one embodiment, the third benchmark performance information may include latency in units of blocks of the model. In one embodiment, the third benchmark performance information may include a first type of quantitative information related to time in units of blocks of the model and a second type of quantitative information related to memory usage. The specific contents of the first type of quantitative information and the second type of quantitative information are substituted with the description of the second benchmark performance information described above.
[0378] As used herein, a lightweight model may refer to a model that has been compressed.
[0379] As described above, when triggered by a model performing compression, the first computing device can provide benchmark results for efficient compression by using a benchmark execution method that obtains benchmark results for the entire model and / or benchmark results on a block-by-block basis.
[0380] In one embodiment of the disclosed technique, the benchmark results can be used to ensure that an input model (e.g., a training model generated by a first module) is compressed in an efficient and accurate manner, so that a second module compressing the model can use the benchmark results to obtain a lightweight model in a more efficient and accurate manner.
[0381] In one embodiment, the third module may change the data type of the input model to a data type supported by the target device (e.g., 8-bit integer type) that is different from the data type of the input model (e.g., 32-bit real type). In one embodiment, the third module may adjust a quantization interval and perform quantization based on the adjusted quantization interval. Quantizing the input model may change parameter values (e.g., weights) of the model. The third module may provide download data that a user can install on a node. The download data may include a download file, a link to the download file, and / or a download package. The download file may be installed on the target node to install an optimized artificial intelligence-based model on the target node.
[0382] In one embodiment, the first computing device may provide the benchmark result to the second computing device for generating download data that enables the input model to be deployed to the target node if the module identification information indicates the third module.
[0383] In one embodiment, the first computing device may provide a benchmark result to the second computing device for converting a data type of the input model into a data type supported by the target node when the module identification information indicates a third module.
[0384] In one embodiment, the first computing device may provide the benchmark result to the second computing device for adjusting the quantization interval of the input model when the module identification information indicates the third module. For example, quantization of the model may include reducing the number of bits used to represent the weights and / or activation outputs, thereby reducing the size of the model. Quantization of the learning model may reduce the inference time of the model. For example, the quantization interval may be determined in units of bits, such as 16 bits, 8 bits, 4 bits, 2 bits, 1 bit, etc.
[0385] 13, 14, 15, 16, and 17 illustrate various embodiments of the present disclosure for providing benchmark results. For example, the computing device 100 may obtain the benchmark results in response to a benchmark request from an external device. As another example, the computing device 100 may operate in a variety of manners, such as operating standalone, operating in a subordinate state to another computing device that interacts with a user, performing conversion directly, obtaining conversion results from another conversion device, generating benchmark results directly, and / or receiving benchmark results from an external computing device, etc.
[0386] In order to avoid duplication of explanation, the specific contents of Figures 13, 14, 15, 16, and 17 will be substituted with the corresponding parts in the explanation of Figures 3 to 12.
[0387] FIG. 13 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure.
[0388] The computing device (100) may receive (1310) target model information and target node information. In one embodiment, the target model information may include information related to the model to be benchmarked. For example, the target model information may include a dataset, a model file, a link to the model file, a model file and a model type, and / or a model file and a target type information. In one embodiment, the target node information may include any form of information for identifying the target node. For example, the target node information may include an identifier of the target node, whether the target node is capable of wireless communication, whether the target node is externally visible, and / or the number of target nodes.
[0389] The computing device (100) may generate benchmark results (1320) by running the target model on the target node.
[0390] FIG. 14 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure.
[0391] The computing device (100) may receive (1410) target model information. The target model information may include information related to the model to be benchmarked. For example, the target model information may include a dataset, a model file, a link to the model file, a model file and a model type, and / or a model file and a target type information.
[0392] The computing device (100) may obtain (1420) a candidate node list. The candidate node list may be determined based on the target model information. The candidate node list may include a candidate node list of a plurality of nodes that is associated with the target model information. At least one target node to be benchmarked may be determined along with a selection input based on the candidate node list.
[0393] The computing device (100) may receive (1430) target node information. In one embodiment, the target node information may include any form of information for identifying the target node. For example, the target node information may include an identifier of the target node, whether the target node is capable of wireless communication, whether the target node is externally visible, and / or the number of target nodes. The target node information may be determined based on a selection input based on the candidate node list.
[0394] The computing device (100) may generate benchmark results (1440) by running the target model on the target node.
[0395] FIG. 15 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure.
[0396] The computing device (100) may receive (1510) an input model and target model information. In one embodiment, the input model may include any form of information related to the model. For example, the input model may include a dataset, a training model, a lightweight model, information related to training the model, information related to compression of the model, information related to operators included in the model, and / or model type information corresponding to the model. The target model information may include any form of information related to the model to be benchmarked. For example, the target model information may include target type information and / or information for identifying the model to be converted.
[0397] The computing device (100) may obtain (1520) a candidate node list corresponding to the target model information. In one embodiment, the candidate node list may include candidate nodes related to the target model information and / or the input model, among a plurality of nodes. For example, the candidate nodes may include nodes supporting an execution environment corresponding to the target model information, nodes supporting an operator of the input model, and / or nodes supporting a target model into which the input model is converted according to the target model information.
[0398] The computing device 100 may receive 1530 target node information. In one embodiment, at least one target node to be benchmarked may be determined along with a selection input based on the candidate node list. In one embodiment, a candidate node having the best performance among the nodes in the candidate node list based on the performance information may be automatically determined as the target node.
[0399] The computing device (100) may convert (1540) the input model to correspond to the target model information. In one embodiment, the computing device (100) may determine a conversion method or conversion identification information by combining first information for identifying the input model and second information corresponding to the target model information. The computing device (100) may convert the operator of the input model to correspond to the target model information to generate a converted target model.
[0400] The computing device (100) may generate benchmark results (1550) by running the converted target model on the target node.
[0401] FIG. 16 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure.
[0402] The computing device (100) may receive (1610) an input model and a target model information. In one embodiment, the input model may include any form of information related to the model. For example, the input model may include a dataset, a training model, a lightweight model, information related to training the model, information related to compression of the model, information related to operators included in the model, and / or model type information corresponding to the model. The target model information may include any form of information related to the model to be benchmarked. For example, the target model information may include target type information and / or information for identifying the model to be converted.
[0403] The computing device (100) may obtain (1620) a candidate node list corresponding to the target model information. In one embodiment, the candidate node list may include candidate nodes related to the target model information and / or the input model, among a plurality of nodes. For example, the candidate nodes may include nodes supporting an execution environment corresponding to the target model information, nodes supporting an operator of the input model, and / or nodes supporting a target model into which the input model is converted according to the target model information.
[0404] The computing device 100 may receive 1630 target node information. In one embodiment, at least one target node to be benchmarked may be determined along with a selection input based on the candidate node list. In one embodiment, a candidate node having the best performance among the nodes in the candidate node list based on the performance information may be automatically determined as the target node.
[0405] The computing device (100) may send a conversion request (1640) to convert the input model to correspond to the target model information. In one embodiment, the conversion request may be sent to a conversion device located outside the computing device (100). For example, the first computing device may send a conversion request including a model file to be converted and a UUID of a converter to the conversion device. Here, the UUID is an identifier that is identified by a combination of the type of the model before conversion and the type of the model after conversion. The conversion device may convert the input model by obtaining a Docker image of the converter corresponding to the UUID and executing the sh file of the corresponding converter in Docker.
[0406] The computing device 100 may receive 1650 the converted target model. In one embodiment, the computing device 100 may receive a conversion result from a conversion device, where the conversion result may correspond to the converted target model.
[0407] The computing device (100) may generate benchmark results (1660) by running the converted target model on the target node.
[0408] FIG. 17 illustrates an exemplary method for providing benchmark results in accordance with one embodiment of the present disclosure.
[0409] The computing device (100) may receive (1710) input data including an inference task and a dataset. In one embodiment, the inference task may include a goal or result to be achieved through inference of the AI-based model, such as image classification, object detection, semantic segmentation, text prediction, and / or clustering. In one embodiment, the dataset may include any form of data used in the AI-based model. For example, the dataset may refer to a collection of data that has been pre-processed. For example, the dataset may refer to a collection of data that has been labeled in supervised learning. For example, the dataset may be used to train the AI-based model, to evaluate performance during the training process, and / or to evaluate performance after training is completed.
[0410] In response to receiving the input data, the computing device 100 may obtain 1720 a list of nodes that are ready to perform a benchmark. In one embodiment, the computing device 100 may obtain a list of nodes that are ready to perform a benchmark, such as nodes that are not currently performing a benchmark, nodes that have free memory capacity that can perform a benchmark task, or nodes that have a CPU that can perform a benchmark task. The nodes included in the list may be determined in the process of determining the current node status through communication between the nodes.
[0411] The computing device (100) may determine (1730) a target model and a target node based on input data selecting at least one node from the list of nodes. In one embodiment, when a particular node is selected as a target node from the list of nodes, a list of models that the selected node can support may be output. In response to an input selecting a particular model from the list of models, a target model to be benchmarked may be determined. For example, the list of models may indicate a framework or software version associated with each of the models. For example, the list of models may include identification information associated with each of the models. For example, the list of models may include identification information associated with each of the models and performance information when each of the models is executed on the target node. In one embodiment, the order of the models in the list may be determined based on model performance or based on past user selection information. In one embodiment, when a particular node is selected as a target node from the list of nodes, a model that the selected node can support may be automatically output without receiving input from a user.
[0412] The computing device (100) may generate benchmark results (1740) by running the target model on the target node.
[0413] FIG. 18 is a schematic diagram illustrating a computing environment for a computing device (100) in accordance with one embodiment of the present disclosure.
[0414] In this disclosure, a component, module, or unit includes a routine, procedure, program, component, data structure, etc. that performs a particular task or implements a particular abstract data type. Additionally, one skilled in the art will appreciate that the methods shown in this disclosure can be implemented with other computer system configurations, including computing devices having single or multiple processors, minicomputers, mainframe computers, as well as personal computers, handheld computing devices, microprocessor-based or programmable consumer electronics, and the like, each of which can operate in conjunction with one or more associated devices.
[0415] The embodiments described herein may also be practiced in distributed computing environments where certain tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.
[0416] A computing device typically includes a variety of computer-readable media. Any medium that can be accessed by a computer can be a computer-readable medium, including volatile and non-volatile media, transitory and non-transitory media, and mobile and non-mobile media. By way of example, and not limitation, computer-readable media can include computer-readable storage media and computer-readable transmission media.
[0417] Computer-readable storage media include volatile and non-volatile, transitory and non-transient, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data, including, but not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital video disk (DVD) or other optical disk storage devices, magnetic cassettes, magnetic tape, magnetic disk storage devices or other magnetic storage devices, or any other medium that can be accessed by a computer and used to store information.
[0418] Computer-readable transmission media typically embodies computer-readable instructions, data structures, program modules or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and includes all information delivery media. The term modulated data signal means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, computer-readable transmission media include wired media, such as a wired network or direct-wired connection, and wireless media, such as acoustic, RF, infrared and other wireless media. Combinations of any of the above media should also be included within the scope of computer-readable transmission media.
[0419] An exemplary environment (2000) for implementing various aspects of the present invention is shown including a computer (2002) including a processing unit (2004), a system memory (2006), and a system bus (2008). The computer (200) may be used interchangeably herein with the computing device (100). The system bus (2008) couples system components, including but not limited to the system memory (2006), to the processing unit (2004). The processing unit (2004) may be any of a variety of commercially available processors. Dual processors and other multi-processor architectures may also be utilized as the processing unit (2004).
[0420] The system bus (2008) can be any of several types of bus structures that can be further interconnected to a memory bus, a peripheral bus, and a local bus using any of a variety of commercially available bus architectures. The system memory (2006) includes a read only memory (ROM) (2010) and a random access memory (RAM) (2012). The basic input / output system (BIOS) is stored in non-volatile memory (2010) such as ROM, EPROM, or EEPROM, and includes the basic routines that support the transfer of information between the various components of the computer (2002), such as during start-up. The RAM (2012) can also include high-speed RAM, such as static RAM, for caching data.
[0421] The computer (2002) also includes an internal hard disk drive (HDD) (1114) (e.g., EIDE, SATA), a magnetic floppy disk drive (FDD) (2016) (e.g., for reading from and writing to a removable diskette (2018)), an SSD, and an optical disk drive (2020) (e.g., for reading CD-ROM disks (2022) and for reading from and writing to other high-capacity optical media such as DVDs). The hard disk drive (2014), magnetic disk drive (2016), and optical disk drive (2020) can be connected to the system bus (2008) by a hard disk drive interface (2024), a magnetic disk drive interface (2026), and an optical drive interface (2028), respectively. The interface (2024) for implementing an external drive includes, for example, at least one or both of the following interface technologies: Universal Serial Bus (USB) and IEEE 1394.
[0422] These drives and their associated computer readable media provide non-volatile storage for data, data structures, computer executable instructions, and so forth. In the case of the computer (2002), the drives and media accommodate the storage of any data in a suitable digital format. While the above description of computer readable storage media refers to HDDs, removable magnetic disks, and removable optical media such as CDs or DVDs, those skilled in the art will recognize that other types of computer readable storage media, such as zip drives, magnetic cassettes, flash memory cards, cartridges, and many more, can also be used in the exemplary operating environment, and further, any such media can contain computer executable instructions for carrying out the methods of the present invention.
[0423] A number of program modules may be stored on the drive and in RAM (2012), including an operating system (2030), one or more application programs (2032), other program modules (2034), and program data (2036). All or portions of the operating system, applications, modules, and / or data may also be cached in RAM (2012). It will be appreciated that the present invention may be implemented with various commercially available operating systems or combinations of operating systems.
[0424] A user may enter commands and information into the computer (2002) through one or more wired or wireless input devices, such as a keyboard (2038) and a pointing device, such as a mouse (2040). Other input devices (not shown) may include a microphone, an IR remote control, a joystick, a game pad, a stylus pen, a touch screen, and the like. These and other input devices are often connected to the processing unit (2004) through an input device interface (2042) that is connected to the system bus (2008), but may also be connected by a parallel port, an IEEE 1394 serial port, a game port, a USB port, an IR interface, or a variety of other interfaces.
[0425] A monitor 2044 or other type of display device is also connected to the system bus 2008 through an interface, such as a video adapter 2046. In addition to the monitor 2044, computers typically include other peripheral output devices (not shown), such as speakers, printers, and various other peripheral output devices.
[0426] The computer (2002) may operate in a networked environment using logical connections, via wired and / or wireless communications, to one or more remote computers, such as remote computer(s) (2048). The remote computer(s) (2048) may refer to a workstation, server computer, router, personal computer, handheld computer, microprocessor-based entertainment device, peer device, or other conventional network node, and may generally include many or all of the components depicted for the computer (2002), although for simplicity, only a memory storage device (2050) is illustrated. The logical connections depicted include wired and wireless connections to a local area network (LAN) (2052) and / or larger networks, such as a long-distance network (WAN) (2054). Such LAN and WAN networking environments are commonplace in offices and companies and facilitate the implementation and use of enterprise-wide computer networks, such as intranets, all of which may connect to a global computer network, such as the Internet.
[0427] When used in a LAN networking environment, the computer 2002 connects to the local network 2052 through a wired and / or wireless communication network interface or adapter 2056. The adapter 2056 can facilitate wired or wireless communication to the LAN 2052, which may include a wireless access point configured to communicate with the wireless adapter 2056. When used in a WAN networking environment, the computer 2002 can include a modem 2058 or other means for establishing communications over the WAN 2054, such as connecting to a communications server on the WAN 2054 or through the Internet. The modem 2058, which may be internal or external and implemented as a wired or wireless device, connects to the system bus 2008 through a serial port interface 2042. In a networked environment, program modules described relative to the computer 2002, or portions thereof, may be stored in a remote memory / storage device 2050. It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers may be used.
[0428] The computer (1602) is operable to communicate with any wireless device or object that operates via wireless communication, such as printers, scanners, desktop and / or handheld computers, portable data assistants (PDAs), communications satellites, any equipment or location associated with a wirelessly detectable tag, and telephones. This includes at least Wi-Fi and Bluetooth wireless technologies. Thus, communication can be in a predefined structure, such as a traditional network, or simply ad hoc communication between at least two devices.
[0429] It should be understood that the particular order or hierarchy of the process steps shown herein is an example of an exemplary approach. Based on design priorities, it should be understood that the particular order or hierarchy of the process steps can be rearranged within the scope of the present disclosure. The claims in this disclosure provide elements of the various steps in a sample order, but are not meant to be limited to the particular order or hierarchy shown.
Claims
1. 1. A method for providing benchmark results, executed on a computing device, comprising: obtaining first input data comprising an inference task; determining a target model to be benchmarked for the inference task, and determining at least one target node on which the inference task of the target model is executed based on a candidate node list including candidate nodes proposed for benchmarking the inference task, the determined target model corresponds to an artificial intelligence-based model on which the inference task is benchmarked in the at least one target node based on a dataset, and the candidate node list includes identification information of each of the candidate nodes and expected latency information in each of the candidate nodes when the target model is executed; providing benchmark results obtained by executing the target model on the at least one target node; Including, method.
2. In claim 1, The order of the candidate nodes included in the candidate node list is determined based on the magnitude of the expected latency information. method.
3. In claim 2, If a difference in magnitude of the predicted latency information between a first candidate node and a second candidate node among the candidate nodes is within a predetermined threshold range, an order of the first candidate node and the second candidate node is determined based on memory usage and CPU usage of the first candidate node and the second candidate node. method.
4. In claim 1, The candidate node list includes: power mode information indicating a usage amount of a CPU core in at least a part of the candidate nodes; Fan mode information indicating a usage amount of a fan in at least some of the nodes among the candidate nodes; Including, method.
5. In claim 1, The candidate node list includes: information regarding at least one model that can be supported at each of the candidate nodes; Library information necessary for at least one model that can be supported to be installed in each of the candidate nodes; and power usage information indicating power usage acquired from a power measurement sensor connected to the candidate node; Including, method.
6. In claim 1, A size of the model is determined based on the size of the dataset of the first input data; and the candidate node list includes candidate nodes having free memory capacity that exceeds the determined size of the model; method.
7. In claim 1, The candidate node list includes: A plurality of first nodes having an execution environment supporting a first operator included in an input source model are included as the candidate nodes. method.
8. In claim 1, The candidate node list includes: a plurality of second nodes, which do not support a first operator included in the input source model but have an execution environment that supports a second operator different from the first operator and can substitute for the first operator, as the candidate nodes; method.
9. In claim 1, The benchmark results are as follows: preprocessing time information relating to a time required for preprocessing of inference of the target model in the at least one target node; inference time information relating to a time required for inference on the target model in the at least one target node; preprocessing memory usage information, which is information related to memory usage required for preprocessing of inference of the target model in the at least one target node; inference memory usage information relating to memory usage required for inference on the target model in the at least one target node; Including, method.
10. In claim 1, The benchmark results are as follows: quantitative information relating to an inference time, which is acquired by repeatedly inferring the target model a predetermined number of times in the at least one target node; Quantitative information relating to memory usage in each of an NPU, a CPU, and a GPU, which is obtained by inferring the target model in the at least one target node; Including, method.
11. In claim 1, providing the benchmark results obtained by executing the target model on the at least one target node, Distinguishing between nodes capable of wireless communication and nodes incapable of wireless communication at the at least one target node; a step of connecting the node capable of wireless communication to the node not capable of wireless communication using serial communication, and sending a benchmark task to the node capable of wireless communication corresponding to the node not capable of wireless communication to obtain a benchmark result for the node not capable of wireless communication; Including, method.
12. In claim 1, When a third node that cannot be externally confirmed is included in the at least one target node, the step of providing the benchmark result includes: sending a first acknowledgement message to the third node in response to receiving the first low power wireless signal from the third node, the first acknowledgement message including a benchmark task for benchmarking the target model at the third node; receiving a second low power wireless signal from the third node, the second low power wireless signal including benchmark results generated by the third node; Including, method.
13. In claim 12, When the at least one target node includes a third node that cannot be externally confirmed, the step of providing the benchmark result includes: if the second low power wireless signal is not received within a time corresponding to a predetermined waiting time threshold, determining that the benchmark task in the third node has failed and setting the third node to an inactive state; setting a state of the third node to an active state in response to receiving a third low power wireless signal from the third node set to the inactive state; Further comprising: method.
14. In claim 12, The first low power wireless signal is Information regarding whether the third node is performing a benchmark; and Information regarding memory usage of the third node; and hardware identification information of the third node; Including, method.
15. In claim 12, The benchmark task included in the first response message includes target model information that the third node can download, and node configuration information used to convert the target model downloaded by the third node; and the benchmark results generated by the third node include results obtained by executing the target model in an execution environment of the third node based on the node configuration information and the target model information; method.
16. In claim 1, In response to receiving second input data for selecting the at least one target node from the candidate node list, i) the at least one target node is determined, and ii) information is provided suggesting a target model supported at the at least one target node for determining the target model. method.
17. In claim 16, The information proposing the target model includes: Including identification information corresponding to a proposed target model and software version information of the proposed target model; method.
18. A computer program stored on a computer readable storage medium, the computer program, when executed by a computing device, causing the computing device to perform the following operations to provide benchmark results: The operation includes: obtaining first input data comprising an inference task; An operation of determining a target model to be benchmarked for the inference task, and determining at least one target node on which the inference task of the target model is to be executed based on a candidate node list including candidate nodes proposed for benchmarking for the inference task, wherein the determined target model corresponds to an artificial intelligence-based model on which the benchmarking for the inference task is to be executed on the at least one target node based on a dataset, and the candidate node list includes identification information of each of the candidate nodes and expected latency information at each of the candidate nodes when the target model is executed; providing benchmark results obtained by executing the target model on the at least one target node; Including, A computer program stored on a computer readable storage medium.
19. 1. A computing device for generating benchmark results, comprising: At least one processor; Memory and Including, The at least one processor Obtaining first input data comprising an inference task; determining a target model to be benchmarked for the inference task, and determining at least one target node on which the inference task of the target model is to be executed based on a candidate node list including candidate nodes proposed for benchmarking for the inference task, the determined target model corresponds to an artificial intelligence-based model on which the benchmarking for the inference task is performed on the at least one target node based on a dataset, and the candidate node list includes identification information of each of the candidate nodes and expected latency information at each of the candidate nodes when the target model is executed; providing benchmark results of the target model obtained by executing the target model on the at least one target node; Computing device.
Citation Information
Patent Citations
Method, computer system, and computer program for optimizing neural network (time estimator for deep learning architecture)
JP2022092618A
Semiconductor device
KR1020240030590A
Preventive Composition of Color Change for Natural Pigment
KR102348583B1
Method for, device for, and system for lightnening of neural network model
KR102461997B1
Method for providing information about neural network model and electronic apparatus for performing the same
KR102500341B1
