Specification-based execution management method for automating specification of machine learning model training and deployment environment and preemptively securing resources, and system therefor
The specification-based execution management system addresses the challenges of complex AI model configuration and resource allocation in GPUaaS by automating specification and resource pre-securing, ensuring reproducibility and user convenience in machine learning environments.
Patent Information
- Application Number
- PCT/KR2026/097270
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2026-05-21
- Filing Date
- 2026-05-22
- Publication Date
- 2026-11-26
AI Technical Summary
In machine learning environments, especially in GPUaaS settings, users face challenges in correctly setting up and reproducing AI models due to complex configuration requirements, platform-specific syntax issues, and resource allocation delays, which hinder efficient resource utilization and user convenience.
A specification-based execution management system that automates the generation and management of configuration information in a human-readable format, converts it into an executable format for container orchestration, and pre-secures resources based on user patterns to minimize delays and errors.
Ensures reproducibility of AI model settings, simplifies configuration for users, reduces resource waste, and enhances user convenience by automating the MLOps pipeline without deep expertise, while optimizing resource availability.
Smart Images

Figure KR2026097270_26112026_PF_FP_ABST
Abstract
Description
Specification-based execution management method and system for automating specification of machine learning model training and deployment environments and pre-allocating resources
[0001] The present disclosure relates to the fields of Artificial Intelligence (AI) and Machine Learning (ML) technology. More specifically, it relates to a specification-based execution management method and system that automatically generates and manages configuration information required for the training and deployment of various machine learning models in a human-readable declarative execution specification, automatically converts this into a specification format executable in a container orchestration environment to enable consistent reproduction and management, and optimizes resource utilization in an environment where computing resources such as GPUs are provided as a service (GPU as a Service) by pre-securing computing resources based on resource requirements defined in the specification.
[0002] With the advancement of Machine Learning (ML) and Artificial Intelligence (AI) technologies, the development of solutions utilizing them is actively taking place across various industrial sectors. Consequently, the importance of Machine Learning Operations (MLOps) platforms for efficiently managing the development, deployment, and operation of these ML / AI models is steadily increasing. In particular, in GPUaaS (GPU as a Service) environments, where expensive computing resources such as GPUs are provided to multiple users as a service, both efficient resource utilization and user convenience are required simultaneously.
[0003] MLOps platforms provide an integrated environment that manages the entire lifecycle of ML / AI models, including data preparation, model training, evaluation, deployment, and monitoring. This allows data scientists and ML engineers to focus on model development, while enabling companies to improve the productivity and quality of ML / AI projects.
[0004] In such machine learning environments, computing resources, training source code, and training data are essential for training AI models, and specific configuration values for each of these elements must be used to reproduce the trained model identically.
[0005] To deploy a trained AI model, computing resources, the AI model, and deployment source code are required, and precise details regarding these elements are necessary.
[0006] There is a problem in that it is not easy for users to set up correctly, as the configuration for training and deploying AI models on such machine learning platforms requires various items and options.
[0007] Furthermore, to reproduce an AI model identically, the numerous variables and settings used during training must be accurately recorded and reused. If these variables and settings cannot be accurately reused, there is a problem in that it becomes impossible to reproduce the same model.
[0008] Furthermore, configuration values for machine learning operating platforms are typically used in declarative serialization formats such as YAML. However, since different platforms require different field values, there is a problem in that it is difficult to write specifications for users who are not familiar with the platform's unique specification syntax and field values.
[0009] Meanwhile, in a GPUaaS environment, multiple users share limited GPU resources. Consequently, there is a problem where model training or deployment is delayed due to the latency between the time a resource is requested and when it becomes actually available. Therefore, a mechanism is required to pre-secure resources by analyzing user work patterns. This resource pre-securing mechanism can minimize resource waste when implemented based on resource requirements defined in declarative execution specifications.
[0010] A prior art document related to the present disclosure is Korean Published Patent Application No. 10-2021-0064797 (Date of publication: June 3, 2021).
[0011] The embodiments of the present disclosure provide a specification-based execution management method and system for the automation of specifications and resource pre-acquisition of a machine learning model training and deployment environment, configured to automatically save and provide specifications set during the training of an AI model or the deployment of a trained AI model, thereby ensuring the reproducibility of settings in a machine learning platform and improving user convenience.
[0012] The embodiments of the present disclosure provide a specification-based execution management method and system for automating the specification of a machine learning model's training and deployment environment and for pre-allocating resources, configured to manage configuration values in the form of a declarative execution specification (e.g., a YAML file), so that even a user new to machine learning operations platforms can intuitively understand how to configure Run and Service settings.
[0013] The embodiments of the present disclosure provide a specification-based execution management method and system for the automation of specification and resource pre-acquisition of a machine learning model's training and deployment environment, configured to maintain a consistent model execution environment through a model specification file based on a declarative execution specification, thereby ensuring the reproducibility of the same model.
[0014] The embodiments of the present disclosure provide a specification-based execution management method and system for the automation of specifications and resource pre-allocation of a machine learning model training and deployment environment, configured to provide a UI-based configuration input function and a real-time execution specification synchronization function, which allows even users unfamiliar with the syntax of declarative execution specifications and platform-specific settings to easily access it.
[0015] The embodiments of the present disclosure provide a specification-based execution management method and system for automating the specification of a machine learning model's training and deployment environment and for pre-securing resources, which can prevent configuration error in advance for a machine learning platform and provide a reproduce function and a configuration export function that can easily reproduce existing execution settings.
[0016] Embodiments of the present disclosure provide a specification-based execution management method and system for the automation of specifications and resource pre-allocation of a machine learning model training and deployment environment, which can provide a specification-based execution pipeline that automates model training and deployment without separate manual work by automatically converting a declarative execution specification into a specification format that can be directly executed in a container orchestration environment (e.g., Kubernetes) and applying it to a cluster.
[0017] The embodiments of the present disclosure provide a specification-based execution management method and system for the automation of specification and resource pre-acquisition of a machine learning model training and deployment environment, which can improve resource availability and minimize resource acquisition delays in a GPUaaS environment by analyzing user work patterns based on resource requirements defined in a declarative execution specification and pre-acquiring computing resources.
[0018] The embodiments of the present disclosure provide a specification-based execution management method and system for specification automation and resource pre-acquisition of a machine learning model training and deployment environment, configured to provide predefined specification templates for various open source models, which can reduce the burden of user configuration and improve convenience.
[0019] The problems that the present disclosure aims to solve are not limited to those described above, and problems not mentioned will be clearly understood by those skilled in the art from the present specification and the accompanying drawings.
[0020] According to one embodiment of the present disclosure, a specification-based execution management method for specification automation performed on an API server comprises: providing an input interface to a user and automatically generating and storing a declarative execution specification based on configuration information input by the user through the input interface; pre-securing computational resources based on a demand for computational resources predicted using resource requirements and a demand forecasting model defined in the stored declarative execution specification; when a request for training or deployment of an artificial intelligence model according to the declarative execution specification is received within a preset waiting time interval, the pre-securing computational resources are allocated first; and using the preferentially allocated computational resources, the declarative execution specification is automatically converted into an orchestration specification format executable in a container orchestration environment and applied to a cluster to execute the training or deployment of the artificial intelligence model.
[0021] In one embodiment, the configuration information includes at least one of cluster information, computing resource presets, container images, execution commands, data input / output paths, and environment variables.
[0022] In one embodiment, the declarative execution specification is implemented in a YAML (Yet Another Markup Language) based data serialization format.
[0023] In one embodiment, the step of automatically generating and saving the declarative execution specification comprises: selecting an execution object based on the input setting information; determining whether a previously generated execution specification is saved in relation to the selected execution object; determining whether to reuse the saved execution specification if the previously generated execution specification is saved; and automatically filling in setting values based on the saved execution specification.
[0024] The step of automatically generating and saving the above declarative execution specification includes: a step of performing a real-time grammar check on the above declarative execution specification and providing a real-time response to grammar errors through the input interface; and a step of saving the above declarative execution specification if no grammar errors exist.
[0025] In one embodiment, the step of providing a real-time response to the grammar error through the input interface comprises: a step of checking for grammar errors based on YAML grammar for a YAML-based execution specification; and a step of displaying a warning on the input interface and disabling an object creation button within the input interface when a grammar error occurs.
[0026] In one embodiment, the step of pre-securing the computational resources includes the step of collecting and analyzing metadata based on any one of the task execution time, resource consumption pattern, task repetition cycle, and usage frequency by querying the machine learning task history and past resource usage records for each user.
[0027] The step of pre-securing the computational resources comprises: a step of performing resource pre-reservation for the execution of a user's future tasks based on the predicted demand for computational resources; and a step of keeping the reserved resources in a waiting state, separated from a reservation-only pool, during the waiting time for pre-reservation and allocation.
[0028] In one embodiment, if the learning or distribution request is not received within the waiting time of the pre-reservation and allocation, the pre-reservation is automatically released to return the reserved resources from the reservation-only pool to the general cluster pool.
[0029] In one embodiment, the step of automatically converting into the executable orchestration specification format includes the step of storing the YAML-based execution specification in the form of a Kubernetes YAML specification and applying the Kubernetes YAML specification to a cluster to perform training or deployment of an artificial intelligence model.
[0030] According to one embodiment of the present disclosure, a server for generating and managing execution specifications includes a processor, wherein the processor provides an input interface to a user; automatically generates and stores a declarative execution specification based on configuration information input by the user through the input interface; pre-secures computational resources based on the demand for computational resources predicted using resource requirements and a demand forecasting model defined in the stored declarative execution specification; when a request for training or deployment of an artificial intelligence model according to the declarative execution specification is received within a preset waiting time interval, the pre-secured computational resources are allocated first; and the declarative execution specification is automatically converted into an orchestration specification format executable in a container orchestration environment using the preferentially allocated computational resources and applied to a cluster to execute the training or deployment of the artificial intelligence model.
[0031] The means for solving the problem of the present disclosure are not limited to the means for solving the problem described above, and means for solving the problem not mentioned will be clearly understood by those skilled in the art to which the present disclosure belongs from the present specification and the attached drawings.
[0032] The effects according to the embodiments of the present disclosure are as follows. Configuration values, such as computing resources, code versions, datasets, and hyperparameters used during the training or deployment process of an AI model, are structured and recorded in a specification file, thereby enabling retraining and redeployment based on the same configuration. Accordingly, the reproducibility of the training or operational environment of the AI model is improved.
[0033] Since specification files such as YAML are stored and utilized, sharing and collaboration among team members are facilitated, and version management is simplified. As a result, experiment records and changes are systematically tracked.
[0034] Even users unfamiliar with writing specification files like YAML can utilize predefined templates to quickly run AI models without having to write complex settings from scratch.
[0035] Users input configuration values through a user-friendly UI, and real-time synchronization and syntax checking are performed on the entered values to prevent configuration errors. As a result, user convenience in configuring correct specifications is maximized.
[0036] Errors in specification settings, such as syntax errors, missing keys, and value type mismatches, are detected in real time, and detected errors are fed back to the user. As a result, specification setting errors are prevented, and quality control is strengthened.
[0037] Declarative execution specifications written by the user are automatically converted into an executable specification format for the container orchestration environment and applied to the cluster. This enables users to automatically perform model training and deployment without separate knowledge of container orchestration environment commands, thereby realizing the complete automation of the MLOps pipeline.
[0038] An environment is provided that allows you to train and deploy AI models through specification templates and automated configuration features, even without deep expertise in machine learning.
[0039] Computing resources are pre-secured using a demand forecasting model based on resource requirements defined in the declarative execution specification. By releasing the pre-secured resources if an actual job request is not received within a set waiting period, this provides the effect of improving resource availability, minimizing resource allocation delays, and preventing resource waste in a GPUaaS environment.
[0040] The effects according to the present disclosure are not limited to the effects described above, and unmentioned effects will be clearly understood by those skilled in the art from the present specification and the accompanying drawings.
[0041] The above-mentioned problems, other problems, features, and advantages of the present disclosure will become more apparent to those skilled in the art by describing exemplary embodiments of the present disclosure in detail with reference to the accompanying drawings.
[0042] FIG. 1 is a block diagram illustrating the configuration of a machine learning operating system according to one embodiment of the present disclosure.
[0043] FIG. 2 is a conceptual diagram showing the architecture of a machine learning operating system according to one embodiment of the present disclosure.
[0044] FIG. 3 is a block diagram showing the configuration of a computing device for machine learning operation according to one embodiment of the present disclosure.
[0045] FIG. 4 is a flowchart illustrating a specification-based execution management method for automating the specification of a learning and deployment environment of a machine learning model according to one embodiment of the present disclosure.
[0046] Figure 5 is a diagram showing a specification file in the training and deployment of an artificial intelligence model.
[0047] FIG. 6 is a diagram illustrating an exemplary screen that simultaneously displays a setting value input interface and a YAML editor when a RUN is generated on a platform according to one embodiment of the present disclosure.
[0048] FIG. 7 is a diagram illustrating an exemplary screen that simultaneously displays a configuration value input interface and a YAML editor when creating a Service revision on a platform according to one embodiment of the present disclosure.
[0049] FIG. 8 is a diagram illustrating an example of run generation using the Reproduce function and Export YAML function according to one embodiment of the present disclosure.
[0050] FIG. 9 is a diagram illustrating an example of interoperability between a YAML specification file and a VESSL platform according to one embodiment of the present disclosure.
[0051] FIG. 10 is a flowchart illustrating a demand forecast-based pre-reservation and allocation method for automating the specification of a learning and deployment environment of a machine learning model according to one embodiment of the present disclosure.
[0052] FIG. 11 is a block diagram illustrating the configuration of a machine learning operating system according to one embodiment of the present disclosure.
[0053] FIG. 12 is a conceptual diagram showing the architecture of a machine learning operating system according to one embodiment of the present disclosure.
[0054] FIG. 13 is a block diagram showing the configuration of a computing device for machine learning operation according to one embodiment of the present disclosure.
[0055] FIG. 14 is a flowchart illustrating a specification-based execution management method for automating the specification of a machine learning model's learning and deployment environment according to one embodiment of the present disclosure.
[0056] Figure 15 is a diagram illustrating a specification file in the training and deployment of an artificial intelligence model.
[0057] FIG. 16 is a drawing illustrating an exemplary screen that simultaneously displays a setting value input interface and a specification editor when a learning task is created on a platform according to one embodiment of the present disclosure.
[0058] FIG. 17 is a drawing illustrating an exemplary screen that simultaneously displays a setting value input interface and a specification editor when creating a service revision on a platform according to one embodiment of the present disclosure.
[0059] FIG. 18 is a diagram illustrating an example of creating an execution object using a Reproduce function and a specification Export function according to one embodiment of the present disclosure.
[0060] FIG. 19 is a drawing illustrating an example of the integration of a declarative execution specification and a machine learning operation platform according to one embodiment of the present disclosure.
[0061] FIG. 20 is a flowchart illustrating a demand forecast-based pre-reservation and allocation method for automating the specification of a machine learning model learning and deployment environment according to one embodiment of the present disclosure.
[0062] Specific structural or functional descriptions of embodiments according to the concept of the present disclosure disclosed herein are provided merely for the purpose of explaining embodiments according to the concept of the present disclosure, and embodiments according to the concept of the present disclosure may be implemented in various forms and are not limited to the embodiments described herein.
[0063] Embodiments according to the concept of the present disclosure may be subject to various modifications and may take various forms; therefore, embodiments are illustrated in the drawings and described in detail in this specification. However, this is not intended to limit the embodiments according to the concept of the present disclosure to specific disclosed forms, and includes modifications, equivalents, or substitutions that fall within the spirit and scope of the present disclosure.
[0064] Terms such as "first" or "second" may be used to describe various components, but said components shall not be limited by said terms. For the sole purpose of distinguishing one component from another, for example, without departing from the scope of rights according to the concept of the present disclosure, the first component may be named the second component, and similarly, the second component may be named the first component.
[0065] When it is stated that one component is "connected" or "connected" to another component, it should be understood that while it may be directly connected or connected to that other component, there may also be other components in between. Conversely, when it is stated that one component is "directly connected" or "directly connected" to another component, it should be understood that there are no other components in between. Expressions describing the relationships between components, such as "between," "exactly between," or "directly adjacent to," should be interpreted in the same way.
[0066] The terms used herein are used merely to describe specific embodiments and are not intended to limit the disclosure. Singular expressions include plural expressions unless the context clearly indicates otherwise. In this specification, terms such as “comprising” or “having” are intended to specify the existence of the described features, numbers, steps, actions, components, parts, or combinations thereof, and should be understood as not precluding the existence or addition of one or more other features, numbers, steps, actions, components, parts, or combinations thereof.
[0067] Unless otherwise defined, all terms used herein, including technical or scientific terms, have the same meaning as generally understood by those skilled in the art to which this disclosure pertains. Terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology, and should not be interpreted in an ideal or overly formal sense unless explicitly defined in this specification.
[0068] In this specification, the term "processor" may refer to hardware capable of performing functions and operations according to each designation described herein, computer program code capable of performing specific functions and operations, or an electronic recording medium loaded with computer program code capable of performing specific functions and operations. In other words, the term "processor" may refer to a functional and / or structural combination of hardware for carrying out the technical concept of the present disclosure and / or software for driving said hardware.
[0069] Hereinafter, embodiments will be described in detail with reference to the attached drawings. However, the scope of the patent application is not limited or restricted by these embodiments. Identical reference numerals in each drawing denote identical components.
[0070] FIG. 1 is a block diagram illustrating the configuration of a machine learning operating system according to one embodiment of the present disclosure.
[0071] Referring to FIG. 1, a machine learning operating system (1000) according to one embodiment of the present disclosure can be linked with a user terminal (100). The user can access the machine learning operating system (1000) through the user terminal (100) and use machine learning operating functions and logical storage operating functions provided by the machine learning operating system (1000).
[0072] A machine learning operating system (1000) may include a machine learning operating platform (200) corresponding to a control plane, a computation cluster (300) corresponding to a data plane that can be operated on the infrastructure of a user terminal (100), and a specification-based execution management system (hereinafter referred to as the 'specification automation-based execution management system') (400) for the automation of specifications of the learning and distribution environment of a machine learning model.
[0073] According to an embodiment of the present disclosure, the machine learning operations platform (200) may be a Machine Learning Operations (MLOps) platform, a Large Language Model Operations (LLMOps) platform, or implemented as part of the functions of such a platform. In one embodiment, the machine learning operations system (1000) and / or the machine learning operations platform (200) may be implemented as an MLOps environment or an LLMOps environment. Alternatively, the machine learning operations system (1000) and / or the machine learning operations platform (200) may also be applicable to various application environments or platforms based on an MLOps environment or an LLMOps environment.
[0074] The machine learning operation platform (200) is a platform for automating and managing the entire lifecycle of a machine learning model, including development, deployment, and operation, and can directly provide core functions of machine learning, services, and computational resource allocation to a user terminal (100). The machine learning operation platform (200) can perform functions such as user authentication, machine learning job scheduling, machine learning model version management, and experiment tracking. For example, the machine learning operation platform (200) can communicate with the user terminal (100) and the computation cluster (300) through a RESTful API (Representational State Transfer Application Programming Interface, REST API).
[0075] The machine learning operation platform (200) may include an API server (202). The API server (202) can execute business logic of the machine learning operation platform (200). The API server (202) may provide an interface that communicates directly with the user terminal (100) using methods such as the Web (World Wide Web), CLI (Command Line Interface), and / or SDK (Software Development Kit). In addition to the API server (202), the machine learning operation platform (200) may further include a metric server (204) that stores and retrieves metadata of logs, metrics, and / or files generated from the workload, a database, etc.
[0076] In one embodiment of the present disclosure, computational resources may be constructed in the form of a cluster. According to one embodiment, the computational cluster (300) may be a component owned by a user terminal (100) and constructed in a private network environment. The computational cluster (300) may implement computational resources including hardware resources such as a CPU (Central Processing Unit), GPU (Graphic Processing Unit), memory, and storage required at each stage of the machine learning lifecycle. The computational cluster (300) may execute actual ML / AI workloads. According to one embodiment, the computational cluster (300) may be configured based on containers and may be managed using Kubernetes.
[0077] The computation cluster (300) may include a cluster agent (302). The computation cluster (300) may communicate with the machine learning operation platform (200) through the cluster agent (302).
[0078] The cluster agent (302) is a core component installed in the computation cluster (300) and manages the computation cluster (300). The cluster agent (302) can perform the role of communicating with the machine learning operation platform (200). The cluster agent (302) can perform functions such as executing machine learning tasks, reporting status, and monitoring computation resources. Specifically, the cluster agent (302) can control and determine how to execute machine learning tasks requested by a user, how to report the status of machine learning tasks within the computation cluster (300) to the user terminal (100), and how to monitor the allocation status of computation resources for machine learning tasks. In one embodiment, since the data required for machine learning mostly contains sensitive information that should not be exposed externally, the computation cluster (300) is configured to use only outbound connections. In other words, the computation cluster (300) according to one embodiment of the present disclosure may be configured as a network that allows outbound traffic and does not allow inbound traffic. Through this, the security of the machine learning operating system (1000) according to one embodiment of the present disclosure can be enhanced. Due to the characteristics of the computation cluster (300), the user terminal (100) communicates only through the machine learning operating platform (200), and the cluster agent (302) operates to schedule and control machine learning tasks on computation resources within the computation cluster (300) based on user requests.
[0079] The specification automation-based execution management system (400) is a system that structures and manages setting values for the learning and deployment process of a machine learning model and supports the automatic reproduction of the same execution environment based on these settings.
[0080] In one embodiment, the specification automation-based execution management system (400) may provide a bidirectional synchronization interface. According to this bidirectional synchronization interface, when a user inputs a setting value using an input interface, a specification document, such as a YAML document, may be automatically generated. Conversely, when a user edits a specification document, such as a YAML document, the corresponding modification may be reflected in the input interface in real time.
[0081] In one embodiment, the specification automation-based execution management system (400) provides the ability to automatically generate or edit execution specifications in YAML format by utilizing configuration information received from a user or configuration values filled in based on existing specifications. YAML is suitable for representing hierarchical structures and represents a declarative configuration method widely adopted in MLOps and Kubernetes-based environments. The system defines a machine learning model training / deployment execution environment based on this YAML format. The generated YAML specifications can be reviewed and modified before execution, and then transition to a save or deployment stage.
[0082] In one embodiment, the specification automation-based execution management system (400) may include a function that provides a graphical user interface (UI) to input configuration information for training or deploying an artificial intelligence model to a user. The user interface may include an input window or selection window for items such as cluster information, computing resource presets, container images, execution commands, data input / output paths, and environment variables. Through this system, the user can easily configure configuration information for various execution environments. The input interface can help even non-experts easily define execution specifications through intuitive visualization elements and validation guide functions.
[0083] In one embodiment, the specification automation-based execution management system (400) may provide a function to search for existing execution specifications associated with an object and automatically load them when a user selects an object for which they wish to re-execute based on a previously performed training or deployment history. The loaded existing specifications may include configuration elements necessary for execution, such as cluster information, resource presets, images, commands, paths, and environment variables, and the system may perform a function to automatically fill in the configuration values of the execution specifications based on these configuration elements. The configuration information thus automatically completed is displayed on an input interface to enable subsequent review and modification.
[0084] In one embodiment, the specification automation-based execution management system (400) may include a function to perform real-time syntax error checking on the generated YAML-based execution specification. The specification automation-based execution management system (400) may immediately display error information as a warning on the user interface when an item violating syntax rules is detected. Additionally, the specification automation-based execution management system (400) may prevent the user from executing operations in an error state by disabling key interface elements, such as object creation buttons, when an error exists. This function may help prevent execution failures caused by user error and ensure the consistency and accuracy of the execution specification.
[0085] In one embodiment, the specification automation-based execution management system (400) may provide a user review interface for setting values automatically populated based on existing execution specifications. The user can confirm and modify the setting values and then finalize them. Before finalization, a procedure for checking syntax errors and validating is repeated to confirm that all setting values are in an executable state. If there are no errors, the specification is finalized as a reproducible execution specification. This allows the user to perform re-execution with consistent settings without repetitive work, and the system can simultaneously secure automation efficiency and reproducibility reliability.
[0086] In one embodiment, the specification automation-based execution management system (400) may include a function to convert and store a finally confirmed YAML execution specification into a YAML specification format compatible with the Kubernetes environment, and a function to directly apply this execution specification to the cluster environment. The converted specification may be submitted to the cluster as a workload for training or deployment and may be executed as a Kubernetes Pod or Job object, etc. Through this function, the user can automatically configure the execution environment and run the AI model without separate cluster commands. This is a key function for realizing complete automation in the MLOps pipeline.
[0087] In one embodiment, the specification automation-based execution management system (400) can automatically load and provide to the user a predefined template designed to increase input convenience. In this case, the template may be dynamically modified based on the user's existing input history to generate a user-customized dynamic definition template.
[0088] In one embodiment, the specification automation-based execution management system (400) can reproduce existing executions based on these specifications, export such specification settings, and provide an integrated structure in which these series of settings are automatically executed in a Kubernetes-based cluster environment.
[0089] In the following, YAML is used as an example to explain specification data for machine learning and deployment of AI models. However, it is not limited to this, and it is evident that it can be substituted with various other specification data.
[0090] FIG. 2 is a conceptual diagram showing the architecture of a machine learning operating system according to one embodiment of the present disclosure.
[0091] Referring to FIG. 2, the machine learning operating system (1000) can integrate a policy-based autonomous decision-making system and a dynamic resource control structure for all processes ranging from resource setting, allocation, execution, monitoring, and control in the execution of machine learning tasks based on user requests. For example, the machine learning operating system (1000) can determine whether resource allocation is possible according to a predefined resource usage policy, and if the condition is met, it can automatically execute a task with restricted execution through a task queue-based review flow. It can also continuously monitor resource usage during execution to perform control actions such as issuing a warning, applying restrictions or constraints, or pausing execution in case of policy violation.
[0092] In one embodiment, the machine learning operating system (1000) can realize a machine learning platform infrastructure structure that can simultaneously enhance resource usage efficiency, policy-based automation, operational reliability, and security by systematically collecting log and metric data through an auxiliary collection module and a central collector, and preventing conflicts between cluster resources in a multi-tenancy environment based on resource access policies between organizations.
[0093] In one embodiment, the security mechanism of the machine learning operating system (1000) can be realized by encrypting all communications within the machine learning operating system (1000) via HTTPS (Hypertext Transfer Protocol Secure), using mutual Transport Layer Security (mTLS) communication, and verifying the validity of each request using a token-based authentication system.
[0094] In one embodiment, the security mechanism of the machine learning operating system (1000) can be implemented by having a cluster agent (302) periodically poll the machine learning operating platform (200) to check for new machine learning tasks or commands from a user terminal (100).
[0095] Specifically, since the computation cluster (300) according to the embodiment of the present disclosure can only use outbound connections from the internal network to the outside, it may not be possible for the machine learning operation platform (200) to directly command the computation cluster (300) to perform machine learning tasks. At this time, according to the embodiment of the present disclosure, in order to perform machine learning tasks using the computation resources possessed by the user terminal (100), the cluster agent (302) included in the computation cluster (300) may perform polling on the machine learning operation platform (200) to check whether to assign a task specification for the machine learning task based on a preset period.
[0096] In one embodiment, the machine learning operating system (1000) can dynamically allocate and monitor computational resources. Specifically, a resource manager installed on each node of the computation cluster (300) can monitor resource usage, such as CPU, memory, and GPU, in real time. Monitoring data (e.g., logs and / or metrics) collected from the computation cluster (300) can be stored in real time via a Prometheus component and periodically reported to the machine learning operating platform (200). The scheduler of the machine learning operating platform (200) can make optimal resource allocation decisions based on the monitoring data periodically reported to the machine learning operating platform (200). A sidecar container may be deployed with each workload, and the sidecar container can collect monitoring data including loads or metrics. The collected monitoring data may be buffered in a local temporary storage, then compressed or distributed by an aggregator and transmitted to the machine learning operating platform (200).
[0097] A machine learning operating system (1000) according to one embodiment of the present disclosure can support the flexible deployment of a cloud-level machine learning operating platform even in an on-premises environment for data security and regulatory compliance. Accordingly, the machine learning operating system (1000) can improve the productivity and quality of container-based ML / AI projects through the efficient allocation and monitoring of specialized hardware resources such as GPUs. In addition, the machine learning operating system (1000) can enhance security through automatically generated one-time tokens and mutual TLS authentication, and can overcome restrictions on network security policies by using only outbound connections. Furthermore, the machine learning operating system (1000) can optimize machine learning costs through real-time resource monitoring and a dynamic allocation system in a container environment. Additionally, the machine learning operating system (1000) can effectively collect various metrics and logs by utilizing cluster agents and sidecar containers, and transmit the collected metrics and logs to users, thereby facilitating performance monitoring, metric tracking, and maintenance of machine learning models.
[0098] In one embodiment, the machine learning operating system (1000) can manage various types of storage backends through a single interface. In this case, data access required for ML workloads can be automated and optimized. To this end, the machine learning operating system (1000) can register and configure logical storage by integrating multiple external storages (AWS S3, GCS, NFS, local disks, etc.) through a single interface. In this case, it can provide space accessible through a POSIX (Portable Operating System Interface) file system interface, etc., within the ML workload container to allow the registration and configuration of volumes for logical storage. This volume can provide an import function to retrieve files from target storage, an export function to reflect changes back to target storage after use, and / or a mount function to mount a specific directory to the volume during execution. A volume with a specific directory mounted can be utilized like a local volume.
[0099] In one embodiment, the specification automation-based execution management system (400) may be implemented together with the machine learning operation platform (200) shown in FIG. 2, specifically, in an interactive environment of an API server (202) and a database (205). According to an embodiment, the database (205) may be implemented within the machine learning operation system (1000).
[0100] FIG. 3 is a block diagram showing the configuration of a computing device for machine learning operation according to one embodiment of the present disclosure.
[0101] Referring to FIG. 3, the computing device (10) for machine learning operation may be a server that provides machine learning operation services in response to a request from a user (or user device), or a user device in which a web page, application, and / or program capable of performing machine learning operation is installed and executed.
[0102] A computing device (10) for machine learning operation may include a communication interface (110), memory (120), an I / O interface (130), and a processor (140), and each component may communicate with one or more communication buses or signal lines.
[0103] The communication interface (110) can be connected to a user device (not shown) via a wired / wireless communication network to exchange data. For example, if the computing device (10) for machine learning operation is a server, the communication interface (110) can receive machine learning task commands or receive requests to register a computation cluster from the user device. Additionally, the communication interface (110) can transmit monitoring data including logs and / or metrics to the user. The monitoring data transmitted to the user may be data that has been compressed, batched, and indexed from logs and / or metrics.
[0104] Meanwhile, a communication interface (110) that enables the transmission and reception of such data may include a wired communication port (111) and a wireless circuit (112). Here, the wired communication port (111) may include one or more wired interfaces, for example, Ethernet, Universal Serial Bus (USB), IEEE1394 (e.g., Apple’s FireWire, Sony’s i.Link, Texas Instruments’ Lynx). Additionally, the wireless circuit (112) may transmit and receive data with an external device via an RF (Radio Frequency) signal or an optical signal. Furthermore, wireless communication may use at least one of a plurality of communication standards, protocols, and technologies, such as GSM (Global System for Mobile Communications), EDGE (Enhanced Data rates for GSM Evolution), CDMA (Code-Division Multiple Access), TDMA (Time Division Multiple Access), Bluetooth, Wi-Fi, VoIP, Wi-MAX, or any other suitable communication protocol.
[0105] The memory (120) can store various data used in the computing device (10) for machine learning operations. For example, the memory (120) can store logs, metrics, system metrics, and metadata of files generated from a workload. As another example, the memory (120) can store data collected by a cluster agent (302) in a computing cluster (300) according to one embodiment of the present disclosure. Additionally, the memory (120) can store data collected by a user's own code or stored in an automatic upload directory.
[0106] In various embodiments, the memory (120) may include a volatile or non-volatile recording medium capable of storing various data, commands, and information. For example, the memory (220) may include at least one type of storage medium among flash memory, hard disk, multimedia card microtype, card type memory (e.g., SD or XD memory, etc.), RAM (Random Access Memory; RAM), SRAM (Static RAM), ROM (Read-Only Memory, ROM), PROM (Programmable ROM), EEPROM (Electrically Erasable ROM), network storage, cloud storage, or blockchain database.
[0107] In various embodiments, the memory (220) may store at least one configuration of an operating system (121), a communication module (122), a user interface module (123), and one or more applications (124).
[0108] An operating system (121) (e.g., embedded operating systems such as LINUX, UNIX, MAC OS, WINDOWS, VxWorks, etc.) may include various software components and drivers for controlling and managing general system operations (e.g., memory management, storage device control, power management, etc.) and may support communication between various hardware, firmware, and software components.
[0109] The communication module (123) can support communication with another device through the communication interface (110). The communication module (123) may include various software components for processing data received by the wired communication port (111) or wireless circuit (112) of the communication interface (110).
[0110] The user interface module (123) can receive requests or inputs from a user, such as a keyboard, touch screen, keyboard, mouse, and / or microphone, through the I / O interface (130), and can provide a user interface on the display.
[0111] The application (124) may include a program or module configured to be executed by one or more processors (140). For example, an application that provides services for handling all processes necessary for machine learning research and development, including machine learning, machine learning model deployment, monitoring, and computational resource scheduling, etc., may be implemented on a server farm.
[0112] The I / O interface (130) can connect at least one of an input / output device (not shown) of a computing device (10) for machine learning operation, such as a display, keyboard, touch screen, and microphone, to a user interface module (123). The I / O interface (130) can receive user input (e.g., voice input, keyboard input, or touch input) together with the user interface module (123) and process commands based on the received input.
[0113] The processor (140) is connected to the communication interface (110), memory (120), and I / O interface (130) to control the overall operation of the computing device (10) for machine learning operations. The processor (140) can execute various commands for machine learning operations through applications or programs stored in the memory (120).
[0114] The processor (140) may correspond to a computing device such as a CPU (Central Processing Unit) or an AP (Application Processor). Additionally, the processor (140) may be implemented in the form of an Integrated Chip (IC), for example, a System on Chip (SoC), in which various computing devices are integrated. Furthermore, the processor (140) may include a module for computing artificial neural network models, such as a Neural Processing Unit (NPU).
[0115] Hereinafter, with reference to FIGS. 4 to 10, various embodiments of a specification-based execution management method for specification automation of a machine learning model learning and deployment environment, which is performed by a specification automation-based execution management system (400), will be described.
[0116] FIG. 4 is a flowchart illustrating a specification-based execution management method for automating the specification of a learning and deployment environment of a machine learning model according to one embodiment of the present disclosure.
[0117] Referring to FIG. 4, the specification automation-based execution management system (400) provides an input interface to the user and can receive configuration information required for configuring the execution environment from the user through the input interface (S401).
[0118] For example, the specification automation-based execution management system (400) provides an input interface to the user and can receive configuration information necessary to configure the training or deployment environment of an artificial intelligence model from the user through the interface. The configuration information may include elements such as cluster type, computing resource preset (CPU / GPU specifications), container image, execution command, data input and output paths, and environment variables. The input interface may be implemented in the form of a web-based or desktop-based GUI, and user convenience can be maximized by providing selectable or manual input UI elements for each item.
[0119] The specification automation-based execution management system (400) can select an execution object based on input configuration information and determine whether to reuse an existing specification (S402).
[0120] For example, when an execution object is selected based on configuration information received from a user, the specification automation-based execution management system (400) can determine whether there is a previously created execution specification related to the execution object. For example, if a user selects an object named 'Model A V2', the specification automation-based execution management system (400) can check whether there is a history of execution performed in the past for the same object. If an existing execution specification is stored, the specification automation-based execution management system (400) can determine whether the existing execution specification can be reused. Through this, an environment can be provided in which re-execution can be easily performed with the same settings.
[0121] The specification automation-based execution management system (400) can automatically generate or edit a YAML-based execution specification corresponding to the input configuration information based on the input configuration information (S403).
[0122] For example, the specification automation-based execution management system (400) can automatically generate an execution specification corresponding to input configuration information in YAML format or load and edit an existing specification. YAML format is one of the data serialization formats and is widely used as an execution definition format that is easy to represent hierarchical structures and can be directly applied in a Kubernetes cluster. In this step, the specification automation-based execution management system (400) can utilize predefined templates for each configuration item or construct a new YAML specification based on a structure extracted from a past execution specification.
[0123] The specification automation-based execution management system (400) can perform real-time grammar checks on the execution specification and provide real-time responses to grammar errors through an input interface (S404).
[0124] For example, the specification automation-based execution management system (400) can perform real-time syntax error checking on the generated or edited YAML execution specification. Specifically, it checks whether it conforms to the grammatical rules of YAML and can detect errors such as indentation errors, missing key-values, and scalar value syntax errors. When a syntax error is detected, the system (400) displays the error in the form of a warning on the input interface and simultaneously disables the 'Save Specification' button or 'Create Object' button to induce the user to recognize and correct the error. This real-time feedback function can contribute to preventing execution failures in advance and improving the user experience.
[0125] If no syntax errors exist, the specification automation-based execution management system (400) can store the execution specification. If syntax errors exist, the specification automation-based execution management system (400) can display an error-related warning on the input interface (S405).
[0126] For example, if it is determined that there are no syntax errors in the execution specification, the specification automation-based execution management system (400) can store the specification in the execution specification repository. The stored specification can be recorded with metadata for future reuse, re-execution, and tracking, and can be operated in conjunction with a version control function. On the other hand, if syntax errors exist, the specification automation-based execution management system (400) can continuously display error messages on the input interface and induce the user to modify the specification. As previously explained, the specification automation-based execution management system (400) can determine only specifications with ensured syntax completeness and integrity as execution targets.
[0127] The specification automation-based execution management system (400) can store execution specifications in the form of Kubernetes YAML specifications and apply the stored Kubernetes YAML specifications to a Kubernetes cluster to execute training or deployment of an artificial intelligence model (S406).
[0128] For example, the specification automation-based execution management system (400) can automatically execute the training or deployment of an artificial intelligence model by converting a stored execution specification to be suitable for the execution definition format of Kubernetes and then applying the corresponding YAML specification to a Kubernetes cluster. In this case, resource requests, image paths, environment variables, and other elements defined in the specification are executed in the form of Kubernetes Jobs or Pods, and automatic execution is possible without separate manual work. In addition, execution status, logs, performance metrics, etc., can be collected and analyzed in real time through a monitoring module within the specification automation-based execution management system (400).
[0129] In one embodiment, the specification automation-based execution management system (400) may provide a collaboration interface to enable multiple users to simultaneously create execution specifications. For example, multiple users may participate in a single project, each input different setting items, and check the reflection status in real time. Additionally, through a real-time collaborative editing function, team-based experiment design and deployment may be possible. Furthermore, the specification automation-based execution management system (400) may have a function to simulate expected costs (e.g., GPU usage costs) based on the generated execution specifications and present them to the user in advance, and may present the simulation results to the user. In this way, optimized operation considering both efficiency and economic feasibility can be achieved when configuring execution specifications.
[0130] With reference to FIGS. 5 to 9, specific embodiments of the specification automation-based execution management method described above will be explained. In the following description, the VESSL platform will be described as an example of a specification automation-based execution management system (400).
[0131] Figure 5 is a diagram illustrating a specification file in the training and deployment of an artificial intelligence model.
[0132] Referring to Fig. 5, computing resources, training source code, and training data are essential for training an artificial intelligence model, and specific setting values for each element are required to reproduce the trained model identically. The specific setting values are as follows.
[0133] For example, regarding computing resources, it may include hardware configuration information such as which GPU was used and how many units were utilized. As for the training source code, the version of the code used, execution instructions, and hyperparameter values may be recorded. The user must clearly define which version of the data was used as training data.
[0134] As shown above, only when all configuration values are accurately recorded can the same AI model be reproduced in the same environment.
[0135] Similar to what was explained earlier, the deployment and reproduction of an AI model require computing resources, the AI model, and the deployment source code.
[0136] In other words, to reproduce the model deployment identically, it is necessary to configure the deployment environment, such as the type and number of GPUs to be used as computing resources and external traffic policies. For the AI model to be used, version information of the previously used AI model is required, and for the deployment source code, the source code version and execution commands used for deployment must be recorded.
[0137] For example, the present disclosure may utilize YAML as a specification file for training or deploying such an artificial intelligence model. As YAML is one of the human-readable data serialization formats, VESSL can store and manage configuration values related to the training and deployment of AI models in YAML format. This allows configuration values to be clearly recorded and improves reproducibility.
[0138] Such training and deployment can be performed based on containers. For example, on the VESSL platform, training and deployment can be carried out using VESSL Run and VESSL Service, and these VESSL Run and VESSL Service can operate based on containers. This is because containers bundle an application and the environment in which it runs (e.g., libraries or dependencies) into a single package, providing an environment that runs identically on any platform.
[0139] At this point, the following settings are required to define the task execution environment in a YAML file.
[0140] - Image Configuration: Specifies the base environment in which the container will run. The image includes the operating system and essential libraries on which the application will run.
[0141] - Volume Attachment: If you need to connect to external storage, volume configuration is required, which allows you to access, store, and share data within the container.
[0142] By clearly defining environment settings in the YAML file as described above, container-based tasks can be executed in a consistent environment, making them reproducible.
[0143] In other words, by managing the configuration values for VESSL Run and VESSL Service in a YAML file, even users new to the VESSL platform can intuitively understand how to configure the Run and Service.
[0144] In addition, the reproducibility of the same model can be guaranteed by maintaining a consistent model execution environment through YAML-based model specification files.
[0145] In addition, the VESSL platform provides predefined specification templates—namely YAML templates—that can reproduce various open-source models, reducing the burden on users of having to write YAML files from scratch. This allows even users unfamiliar with YAML syntax or VESSL-specific configurations to easily set up and deploy models.
[0146] Hereinafter, an example of simultaneously performing setting values and editing a YAML file will be described with reference to FIGS. 6 and 7.
[0147] FIG. 6 illustrates an exemplary screen that simultaneously displays a configuration value input interface and a YAML editor when a RUN is created on a platform according to one embodiment of the present disclosure. FIG. 7 illustrates an exemplary screen that simultaneously displays a configuration value input interface and a YAML editor when a Service revision is created on a platform according to one embodiment of the present disclosure.
[0148] In platforms (e.g., VESSL), when creating a Run or Service, the configuration values entered by the user through the input interface can be synchronized in real time with the YAML editor. That is, if a configuration value is entered in the input interface shown on the left side of the screen, that value is immediately reflected in the YAML editor shown on the right side; similarly, if the YAML file is modified directly, the changes are automatically synchronized with the input interface. Since syntax errors, including key-value errors, may occur during the YAML editing process, a real-time syntax checking feature can be provided. If an error is detected, a warning message may be displayed, and the object creation button may be disabled. This prevents incorrect settings from being applied. Through these synchronization and error prevention features, users can create and manage Runs and Services in a more intuitive and stable manner.
[0149] In one embodiment, the YAML-based specification may include Run YAML and Service YAML.
[0150] For example, Run YAML can include at least one element among metadata, resources, images, volume operations, run, post, and environment variables. Detailed examples of each element are as follows.
[0151] Metadata
[0152] -name: Defines the name of the Run.
[0153] -description: Provides a description of Run.
[0154] -tags: Sets tags to identify and manage Runs.
[0155] Resources
[0156] -cluster: Specifies the cluster where Run is executed.
[0157] -preset: Defines the type and number of GPUs to allocate as computing resources.
[0158] Image
[0159] - Specify the image path to be used in the container.
[0160] Volume Operation
[0161] -import: A setting to import external data before running the container, typically connecting the address of a source code repository (e.g., git) or training data (e.g., volume).
[0162] -mount: Defines the setting to attach an external storage volume when creating a container.
[0163] -export: After the run is complete, the trained model or result data is uploaded to external storage (volume), allowing the data to be safely stored before the container is deleted.
[0164] Run
[0165] -command: Defines the command to execute.
[0166] -workdir: Sets the working directory where commands are executed.
[0167] Ports
[0168] - Set the information and name of the port to be exposed outside the container.
[0169] Environment variables (Env)
[0170] Defines environment variables to configure the execution environment.
[0171] For example, Service YAML may include at least one of metadata, resources, images, runs, environment variables, ports, and services, and detailed examples of each element are as follows.
[0172] Metadata
[0173] -name: Defines the name of the service revision.
[0174] -description: Provides a description of the revision.
[0175] Resources
[0176] -cluster: Specifies the cluster where Service runs.
[0177] -preset: Defines the type and number of GPUs to configure computing resources.
[0178] Image
[0179] - Specify the image path to be used in the container.
[0180] Run
[0181] -command: Defines the command required to run the Service.
[0182] -workdir: Sets the working directory where commands are executed.
[0183] Environment variables (Env)
[0184] Define environment variables to configure the execution environment.
[0185] Ports
[0186] - Set the information and name of the port to be exposed outside the container.
[0187] Service
[0188] -monitoring path: Sets the path to monitor the system status of the Service.
[0189] -monitoring port: Defines the port for accessing the path.
[0190] -autoscaling min: Sets the minimum number of servers to maintain during autoscaling.
[0191] -autoscaling max: Sets the maximum number of servers allowed during autoscaling.
[0192] -autoscaling metric: Sets the metric to be used as the standard for autoscaling.
[0193] -autoscaling target: Defines the target value of the configured metric.
[0194] -expose:Sets the main port of the Service.
[0195] FIG. 8 is a diagram illustrating an example of run generation using the Reproduce function and Export YAML function according to one embodiment of the present disclosure.
[0196] Figure 8 (A) illustrates a case where a Run is reproduced within the same project, and Figure 8 (B) illustrates a case where a Run is reproduced within a different project.
[0197] Referring to Figure 8 (A), a reproduction of an existing Run can be performed within the same Project based on VESSL's Reproduce function. When the user clicks the Reproduce button (1), a YAML file is generated based on the settings of the existing Run #1 (2). The generated YAML file is copied to a new Run #2 (3), and then the settings in Run #2 are automatically filled in based on the YAML (4). Afterwards, the user can run a new Run after modifying the settings as needed (5).
[0198] Referring to Figure 8 (B), the existing Run can be reproduced in another Project by utilizing the Export YAML function. The user clicks the Export YAML button in the existing Run #1 to download the YAML file locally (1), uploads the downloaded YAML file to the Run Create screen of the new Project (2), and the settings are automatically populated based on the YAML in Run #2. Afterwards, the user can review the settings and, if necessary, modify them before creating a new Run.
[0199] Likewise, the reproduction of Service can also be performed in a manner similar to the above.
[0200] FIG. 9 is a diagram illustrating an example of integration between a YAML specification file and a VESSL platform according to one embodiment of the present disclosure.
[0201] Referring to Fig. 9, the VESSL platform performs training and deployment of AI models based on YAML files, and this process consists of the following steps.
[0202] Step 1. YAML Validation
[0203] VESSL validates whether the YAML file entered by the user is in the correct format. For example, it checks whether the key values and their corresponding values included in the YAML match the format defined by VESSL. While YAML automatically generated by the UI is generally error-free, YAML edited directly may contain unexecutable settings due to syntax errors or typos. Therefore, VESSL prevents errors by performing structural validation as a primary step.
[0204] Step 2. YAML Translation
[0205] Once the YAML is validated, it is converted into YAML executable by Kubernetes. VESSL is designed to be fundamentally based on Kubernetes and provides the same interface in cloud and on-premises environments. Kubernetes clusters require the Kubernetes YAML format when managing resources. VESSL converts VESSL YAML into Kubernetes YAML and stores the converted YAML in the VESSL database.
[0206] Step 3. Apply and execute YAML
[0207] Clusters connected to the VESSL platform have a VESSL Agent installed, which interacts with the VESSL API Server to retrieve new tasks. The VESSL Agent periodically sends requests to the API Server to check for the latest YAML files and applies the Kubernetes YAML received in response to the cluster to train or deploy AI models. Since this process is automated, users can easily run AI workloads simply by modifying and uploading the YAML.
[0208] FIG. 10 is a flowchart illustrating a demand forecast-based pre-reservation and allocation method for automating the specification of a learning and deployment environment of a machine learning model according to one embodiment of the present disclosure.
[0209] Referring to FIG. 10, the specification automation-based execution management system (400) checks the user's machine learning work log and resource usage history (S1001).
[0210] For example, the specification automation-based execution management system (400) retrieves machine learning task history and past resource usage records for each user. In this process, metadata such as the user's past task execution time, resource consumption patterns (CPU / GPU, memory, storage), task repetition cycle, and usage frequency is collected and analyzed, and this is used as basic data for future demand forecasting. Metadata information is obtained from user profiles or log repositories within the specification automation-based execution management system (400), and may also be collected by linking with an external resource manager (e.g., Kubernetes monitoring module) if necessary.
[0211] The specification automation-based execution management system (400) generates a usage forecast for advance reservation using a demand forecasting model (S1002).
[0212] For example, the specification automation-based execution management system (400) utilizes a built-in demand forecasting model to infer the likelihood that a specific user will need resources at a future time. This demand forecasting can be implemented using a time-series-based statistical model (LSTM, ARIMA, Prophet, etc.) or a machine learning-based regression model, and can comprehensively reflect the iteration cycle, peak usage by time of day, seasonal factors, etc. The forecast result is set in a form such as 'Probability of using 2 GPUs within the next 3 hours: 87%' and can be used as a criterion for pre-booking decisions.
[0213] The specification automation-based execution management system (400) executes pre-reservation and allocation of resources based on usage prediction (S1003).
[0214] For example, the specification automation-based execution management system (400) performs resource pre-reservation for the user's future task execution based on the prediction results. The reserved resources are defined as specific nodes, GPU slots, container pools, etc., within a virtualized cluster, and the actual resource allocation is temporarily separated from the reservation-only pool and maintained in a waiting state. This pre-reservation is maintained for only a limited time to prevent resource waste, and if there is another user task request, it is scheduled based on priority.
[0215] When the specification automation-based execution management system (400) receives an actual work request from the user, it allocates resources by utilizing prior reservation and allocation (S1004).
[0216] For example, when the specification automation-based execution management system (400) receives an actual machine learning job request from the user, it prioritizes the allocation of previously reserved resources to immediately execute the job. According to the above description, the user can perform model training or deployment tasks without waiting time, without the problem of operations being interrupted due to delays occurring during the resource acquisition process. The step S1004 is performed by matching the reserved resources with the actual machine learning job request, and the matching is based on whether elements such as the user ID, model type, and scale of the reserved resources and the actual machine learning job request match.
[0217] The specification automation-based execution management system (400) releases the pre-reserved and allocated resources if the request for this job is not received within the waiting time for pre-reservation and allocation (S1005).
[0218] For example, the specification automation-based execution management system (400) releases the reservation for a resource if the reserved resource is not actually requested within a set waiting time. The released resource is returned to a general cluster pool and made available for use by other users or system tasks. This maximizes the flexibility and efficiency of resource usage and prevents waste caused by unnecessary resource occupation. For example, in the case of GPU resources, they are automatically released if there is no request within 10 minutes.
[0219] In one embodiment, the input (feature) of the demand forecasting model may include the following data.
[0220] - User ID or user group information
[0221] - Time series of historical resource usage history (e.g., GPU usage, CPU usage, memory usage)
[0222] - Type and purpose of task (e.g., learning, inference, hyperparameter exploration, or similar)
[0223] - Task execution time (e.g., time / day / month)
[0224] - Previous job completion time and resource release time
[0225] - Environment variables and execution image types
[0226] - Recent N task interval time and usage trend indicators
[0227] Input data for the demand forecasting model is preprocessed into a vector form, and the demand forecasting model can predict whether a resource request will occur or the scale of the resource request based on these vectors.
[0228] In one embodiment, the demand forecasting model refers to a random forest regression model. The random forest regression model derives a final forecast value by averaging the results of training multiple decision tree regression models, provides high generalization performance, is advantageous for preventing overfitting, can process categorical and numerical variables simultaneously, reduces the burden of data preprocessing, and provides features that facilitate the interpretation of variable importance.
[0229] The input values of the demand forecasting model are classified into categorical and numerical variables.
[0230] Categorical variables include user ID, user group (e.g., administrator, general, researcher), task type (e.g., training, inference, tuning, evaluation, or similar), container image type (e.g., execution environment version or framework version), day of the week (execution day), and time zone interval. These categorical variables are converted into numerical values using Label Encoding and input into the model.
[0231] Numerical variables include the elapsed time since the last job ended, the average resource usage over the last 24 hours, the frequency of recent job execution, the average usage time, the average number of resource requests, and the cluster availability rate. Numerical variables can be input directly into a random forest regression model without normalization or standardization.
[0232] The Random Forest regression model is trained using collected and preprocessed data as described above. Training can prevent data leakage by splitting the training and validation data (e.g., 70:30) and applying TimeSeriesSplit.
[0233] The Random Forest regression model generates tens to hundreds of decision trees, and each tree is trained using only a subset of the training data and a subset of the features. Each tree predicts resource request figures, and the final prediction is determined by the average of the predictions from all trees.
[0234] A machine learning operating system according to one embodiment may include a computer program stored on a computer-readable recording medium, and the computer program is combined with hardware such as a computer or computing device to perform the operations described above.
[0235] FIG. 11 is a block diagram illustrating the configuration of a machine learning operating system according to one embodiment of the present disclosure.
[0236] Referring to FIG. 11, a machine learning operating system (1000) according to one embodiment of the present disclosure is linked with a user terminal (100). The user can access the machine learning operating system (1000) through the user terminal (100) and use machine learning operating and logical storage operating functions provided by the machine learning operating system (1000).
[0237] A machine learning operating system (1000) may include a machine learning operating platform (200) corresponding to a control plane, a computation cluster (300) corresponding to a data plane that can be operated on the infrastructure of a user terminal (100), and a specification-based execution management system (hereinafter referred to as the 'specification automation-based execution management system') (400) for the automation of specifications of the learning and distribution environment of a machine learning model.
[0238] According to an embodiment of the present disclosure, the machine learning operation platform (200) may be an MLOps platform, an LLMOps platform, or a GPUaaS platform that provides computing resources such as GPUs as a service, or may be implemented as part of the functionality of such a platform. According to an embodiment, the machine learning operation system (1000) and / or the machine learning operation platform (200) may be implemented as an MLOps, LLMOps, or GPUaaS environment. Alternatively, the machine learning operation system (1000) and / or the machine learning operation platform (200) may also be applicable to various application environments or platforms based on an MLOps, LLMOps, or GPUaaS environment.
[0239] The machine learning operation platform (200) is a platform for automating and managing the entire lifecycle of a machine learning model, including development, deployment, and operation, and can directly provide core functions of machine learning, services, and computational resource allocation to a user terminal (100). The machine learning operation platform (200) can perform functions such as user authentication, machine learning job scheduling, machine learning model version management, and experiment tracking. For example, the machine learning operation platform (200) can communicate with the user terminal (100) and the computation cluster (300) via a RESTful API.
[0240] The machine learning operation platform (200) may include an API server (202). The API server (202) may execute business logic of the machine learning operation platform (200). The API server (202) may provide an interface that communicates directly with a user terminal (100) using methods such as Web, CLI, and / or SDK. In addition to the API server (202), the machine learning operation platform (200) may further include a metric server (204) that stores and retrieves metadata of logs, metrics, and / or files generated from a workload, a database, etc.
[0241] In one embodiment of the present disclosure, computational resources may be constructed in the form of a cluster. According to one embodiment, the computational cluster (300) may be a component owned by a user terminal (100) and constructed in a private network environment. The computational cluster (300) may implement computational resources including hardware resources such as CPU, GPU, memory, and storage required at each stage of the machine learning lifecycle. The computational cluster (300) may execute actual ML / AI workloads. According to an embodiment, the computational cluster (300) may be configured based on containers and may be managed using Kubernetes.
[0242] The computation cluster (300) may include a cluster agent (302). The computation cluster (300) may communicate with the machine learning operation platform (200) through the cluster agent (302).
[0243] The cluster agent (302) is a core component installed in the computation cluster (300) and manages the computation cluster (300). The cluster agent (302) can perform the role of communicating with the machine learning operation platform (200). The cluster agent (302) can perform functions such as executing machine learning tasks, reporting status, and monitoring computation resources. Specifically, the cluster agent (302) can control and determine how to execute machine learning tasks requested by a user, how to report the status of machine learning tasks within the computation cluster (300) to the user terminal (100), and how to monitor the allocation status of computation resources for machine learning tasks. In one embodiment, since the data required for machine learning mostly contains sensitive information that should not be exposed externally, the computation cluster (300) is configured to use only outbound connections. In other words, the computation cluster (300) according to one embodiment of the present disclosure may be configured as a network that allows outbound traffic and does not allow inbound traffic. Through this, the security of the machine learning operating system (1000) according to one embodiment of the present disclosure can be enhanced. Due to the characteristics of this computation cluster (300), the user terminal (100) communicates only through the machine learning operating platform (200), and the cluster agent (302) operates to schedule and control machine learning tasks on computation resources within the computation cluster (300) in response to the user's request.
[0244] The specification automation-based execution management system (400) is a system that structures and manages setting values for the learning and deployment process of a machine learning model and supports the automatic reproduction of the same execution environment based on these settings.
[0245] In one embodiment, the specification automation-based execution management system (400) may provide a bidirectional synchronization interface. According to this bidirectional synchronization interface, when a user inputs a setting value using an input interface, a specification document, such as a YAML document, can be automatically generated. Conversely, when a user edits a specification document, such as YAML, the corresponding modification can be reflected in the input interface in real time.
[0246] In one embodiment, the specification automation-based execution management system (400) provides the ability to automatically generate or edit execution specifications in YAML format by utilizing configuration information received from a user or configuration values filled based on existing specifications. YAML is suitable for hierarchical representation and represents a declarative configuration method widely adopted in MLOps and Kubernetes-based environments. The system defines a machine learning model training / deployment execution environment based on this YAML format. The generated YAML specification can be reviewed and modified before execution, and then transitioned to a storage or deployment stage. Additionally, in another embodiment of the present disclosure, the declarative execution specification is not limited to YAML and can be implemented in various declarative data serialization formats such as JSON (JavaScript Object Notation), TOML (Tom's Obvious Minimal Language), and HCL (HashiCorp Configuration Language).
[0247] In one embodiment, the specification automation-based execution management system (400) includes a function that provides a graphical user interface (UI) to a user to input configuration information for training or deploying an artificial intelligence model. The user interface may include input windows or selection windows for items such as cluster information, computing resource presets, container images, execution commands, data input / output paths, and environment variables. Through this system, the user can easily configure configuration information for various execution environments. The input interface can help even non-experts easily define execution specifications through intuitive visualization elements and validation guide functions.
[0248] In one embodiment, the specification automation-based execution management system (400) may provide a function to search for existing execution specifications associated with an object and automatically load them when a user selects an object for which they wish to re-execute based on a previously performed training or deployment history. The loaded existing specifications may include configuration elements necessary for execution, such as cluster information, resource presets, images, commands, paths, and environment variables, and the system may perform a function to automatically fill in the configuration values of the execution specifications based on these configuration elements. The configuration information thus automatically completed is displayed on an input interface to enable subsequent review and modification.
[0249] In one embodiment, the specification automation-based execution management system (400) may include a function to perform real-time syntax error checking on the generated YAML-based execution specification. The specification automation-based execution management system (400) may immediately display error information as a warning on the user interface when an item violating syntax rules is detected. Additionally, the specification automation-based execution management system (400) may disable key interface elements, such as object creation buttons, when an error exists, thereby preventing the user from executing operations in an error state. This function may help prevent execution failures caused by user error and ensure the consistency and accuracy of the execution specification.
[0250] In one embodiment, the specification automation-based execution management system (400) may provide a user review interface for setting values automatically populated based on existing execution specifications. The user can confirm and modify the setting values and then finalize them. Before finalization, a syntax error and validation procedure is repeatedly performed to verify that all setting values are in an executable state. If there are no errors, the specification is finalized as a reproducible execution specification. This allows the user to perform re-execution with consistent settings without repetitive work, and the system can simultaneously secure automation efficiency and reproducibility reliability.
[0251] In one embodiment, the specification automation-based execution management system (400) may include the ability to convert and store the finally confirmed YAML execution specification into a YAML specification format usable in a Kubernetes environment, and to directly apply this execution specification to a cluster environment. The converted specification may be submitted to the cluster as a training or deployment workload and may be executed as a Kubernetes Pod or Job object, etc. Through this ability, the user can automatically configure the execution environment and run the AI model without separate cluster commands. This is a key feature that enables complete automation in the MLOps pipeline.
[0252] In one embodiment, the specification automation-based execution management system (400) can automatically load and provide to the user a predefined template designed to increase input convenience. In this case, the template may be dynamically modified based on the user's existing input history to generate a user-customized dynamic definition template.
[0253] In one embodiment, the specification automation-based execution management system (400) can reproduce existing executions based on these specifications, export such specification settings, and provide an integrated structure in which these series of settings are automatically executed in a Kubernetes-based cluster environment.
[0254] In the following, YAML is used as an example to explain specification data for machine learning and deployment of AI models. However, it is not limited to this, and it is evident that it can be substituted with various other specification data.
[0255] FIG. 12 is a conceptual diagram showing the architecture of a machine learning operating system according to one embodiment of the present disclosure.
[0256] Referring to FIG. 12, the machine learning operating system (1000) can integrate a policy-based autonomous decision-making system and a dynamic resource control structure for all processes ranging from resource setting, allocation, execution, monitoring, and control in the execution of machine learning tasks based on user requests. For example, the machine learning operating system (1000) can determine whether resource allocation is possible according to a predefined resource usage policy, and if the condition is met, it can automatically execute a task with restricted execution through a task queue-based review flow, and continuously monitor resource usage during execution to perform controls such as warnings, restrictions or constraints, and temporary suspension of execution in case of policy violation.
[0257] In one embodiment, the machine learning operating system (1000) can realize a machine learning platform infrastructure structure that can simultaneously enhance resource usage efficiency, policy-based automation, operational reliability, and security by systematically collecting log and metric data through an auxiliary collection module and a central collector, and preventing conflicts between cluster resources in a multi-tenancy environment based on resource access policies between organizations.
[0258] A security mechanism of a machine learning operating system (1000) according to one embodiment of the present disclosure can be realized by encrypting all communications within the machine learning operating system (1000) via HTTPS, using mutual TLS communication, and verifying the validity of each request using a token-based authentication system.
[0259] A security mechanism of a machine learning operating system (1000) according to one embodiment of the present disclosure can be implemented by having a cluster agent (302) periodically poll the machine learning operating platform (200) to check for new machine learning tasks or commands from a user terminal (100).
[0260] Specifically, since the computation cluster (300) according to the embodiment of the present disclosure can only use outbound connections from the internal network to the outside, the machine learning operation platform (200) may not be able to directly command the computation cluster (300) to perform machine learning tasks. At this time, according to the embodiment of the present disclosure, in order to perform machine learning tasks using the computation resources possessed by the user terminal (100), the cluster agent (302) included in the computation cluster (300) may perform polling on the machine learning operation platform (200) to check whether machine learning task specifications have been assigned based on a preset period.
[0261] In one embodiment, the machine learning operating system (1000) can dynamically allocate and monitor computational resources. Specifically, a resource manager installed on each node of the computation cluster (300) can monitor resource usage, such as CPU, memory, and GPU, in real time. Monitoring data (e.g., logs and / or metrics) collected from the computation cluster (300) can be stored in real time via a Prometheus component and periodically reported to the machine learning operating platform (200). The scheduler of the machine learning operating platform (200) can make optimal resource allocation decisions based on the collected monitoring data periodically reported to the machine learning operating platform (200). A sidecar container may be deployed with each workload, and the sidecar container can collect monitoring data including logs or metrics. The collected monitoring data may be buffered in a local temporary storage, then compressed or distributed by an aggregator and transmitted to the machine learning operating platform (200).
[0262] A machine learning operating system (1000) according to one embodiment of the present disclosure can support the flexible deployment of a cloud-level machine learning operating platform even in an on-premises environment for data security and regulatory compliance. Accordingly, the machine learning operating system (1000) can improve the productivity and quality of container-based ML / AI projects through the efficient allocation and monitoring of specialized hardware resources such as GPUs. In addition, the machine learning operating system (1000) can enhance security through automatically generated one-time tokens and mutual TLS authentication, and can overcome restrictions on network security policies by using only outbound connections. Furthermore, the machine learning operating system (1000) can optimize machine learning costs through real-time resource monitoring and a dynamic allocation system in a container environment. Additionally, the machine learning operating system (1000) can effectively collect various metrics and logs by utilizing cluster agents and sidecar containers, and transmit the collected metrics and logs to users, thereby facilitating performance monitoring, metric tracking, and maintenance of machine learning models.
[0263] In one embodiment, the machine learning operating system (1000) can manage various types of storage backends through a single interface. In this case, data access required for ML workloads can be automated and optimized. To this end, the machine learning operating system (1000) can register and configure logical storage by integrating multiple external storages (AWS S3, GCS, NFS, local disks, etc.) through a single interface. In this case, it can provide space accessible through a POSIX file system interface, etc., within the ML workload container to register and configure volumes for logical storage. This volume can provide an import function to retrieve files from target storage, an export function to reflect changes back to target storage after use, and / or a mount function to mount a specific directory to the volume during execution. A volume with a specific directory mounted can be utilized like a local volume.
[0264] In one embodiment, the specification automation-based execution management system (400) may be implemented together with the machine learning operation platform (200) shown in FIG. 12, specifically in an interactive environment of an API server (202) and a database (205). According to an embodiment, the database (205) may be implemented within the machine learning operation system (1000).
[0265] FIG. 13 is a block diagram showing the configuration of a machine learning operation platform server according to one embodiment of the present disclosure. Since the components (110' to 140') of the machine learning operation platform server (10') shown in FIG. 13 correspond to the components (110 to 140) of the computing device (10) shown in FIG. 3, a detailed description is omitted.
[0266] Hereinafter, with reference to FIGS. 14 to 20, various embodiments of a specification-based execution management method for specification automation of a machine learning model learning and deployment environment, which is performed by a specification automation-based execution management system (400), will be described.
[0267] FIG. 14 is a flowchart illustrating a specification-based execution management method for automating the specification of a machine learning model's learning and deployment environment according to one embodiment of the present disclosure.
[0268] Referring to FIG. 14, the specification automation-based execution management system (400) provides an input interface to the user and can receive configuration information required for configuring the execution environment from the user through the input interface (S1401).
[0269] For example, the specification automation-based execution management system (400) provides an input interface to the user and can receive configuration information necessary to configure the training or deployment environment of an artificial intelligence model from the user through the interface. The configuration information may include elements such as cluster type, computing resource preset (CPU / GPU specifications), container image, execution command, data input and output paths, and environment variables. The input interface may be implemented in the form of a web-based or desktop-based GUI, and user convenience can be maximized by providing selectable or manual input UI elements for each item.
[0270] The specification automation-based execution management system (400) can select an execution object based on input configuration information and determine whether to reuse an existing specification (S1402).
[0271] For example, when an execution object is selected based on configuration information received from a user, the specification automation-based execution management system (400) can determine whether there is a previously created execution specification related to the execution object. For example, if a user selects an object named 'Model A V2', the specification automation-based execution management system (400) can check whether there is a history of execution performed in the past for the same object. If an existing execution specification is stored, the specification automation-based execution management system (400) can determine whether the existing execution specification can be reused. Through this, an environment can be provided in which re-execution can be easily performed with the same settings.
[0272] The specification automation-based execution management system (400) can automatically generate or edit a YAML-based execution specification corresponding to the input configuration information based on the input configuration information (S1403).
[0273] For example, the specification automation-based execution management system (400) can automatically generate an execution specification corresponding to input configuration information in YAML format or load and edit an existing specification. YAML format is one of the data serialization formats and is widely used as an execution definition format that is easy to represent hierarchical structures and can be directly applied in a Kubernetes cluster. In this step, the specification automation-based execution management system (400) can utilize predefined templates for each configuration item or construct a new YAML specification based on a structure extracted from a past execution specification.
[0274] The specification automation-based execution management system (400) can perform real-time grammar checks on the execution specification and provide real-time responses to grammar errors through an input interface (S1404).
[0275] For example, the specification automation-based execution management system (400) can perform real-time syntax error checking on the generated or edited YAML execution specification. Specifically, it checks whether it conforms to the grammatical rules of YAML and can detect errors such as indentation errors, missing key-values, and scalar value syntax errors. When a syntax error is detected, the system (400) displays the error in the form of a warning on the input interface and simultaneously disables the 'Save Specification' button or 'Create Object' button to induce the user to recognize and correct the error. This real-time feedback function can contribute to preventing execution failures in advance and improving the user experience.
[0276] The specification automation-based execution management system (400) can save the execution specification if no syntax errors exist (S1405). If syntax errors exist, it can display an error-related warning on the input interface.
[0277] For example, if it is determined that there are no syntax errors in the execution specification, the specification automation-based execution management system (400) can store the specification in the execution specification repository. The stored specification can be recorded with metadata for future reuse, re-execution, and tracking, and can be operated in conjunction with a version control function. On the other hand, if syntax errors exist, the specification automation-based execution management system (400) can continuously display error messages on the input interface and induce the user to modify the specification. As previously explained, the specification automation-based execution management system (400) can determine only specifications with ensured syntax completeness and integrity as execution targets.
[0278] The specification automation-based execution management system (400) can store execution specifications in the form of Kubernetes YAML specifications and apply the stored Kubernetes YAML specifications to a Kubernetes cluster to execute training or deployment of artificial intelligence (S1406).
[0279] For example, the specification automation-based execution management system (400) can automatically execute the training or deployment of an artificial intelligence model by converting a stored execution specification to be suitable for the execution definition format of Kubernetes and then applying the corresponding YAML specification to a Kubernetes cluster. In this case, resource requests, image paths, environment variables, and other elements defined in the specification are executed in the form of Kubernetes Jobs or Pods, and automatic execution is possible without separate manual work. In addition, execution status, logs, performance metrics, etc., can be collected and analyzed in real time through a monitoring module within the specification automation-based execution management system (400).
[0280] In one embodiment, the specification automation-based execution management system (400) may provide a collaboration interface to enable multiple users to simultaneously create execution specifications. For example, multiple users may participate in a single project, each input different setting items, and check the reflection status in real time. Additionally, through a real-time collaborative editing function, team-based experiment design and deployment may be possible. Furthermore, the specification automation-based execution management system (400) may have a function to simulate expected costs (e.g., GPU usage costs) based on the generated execution specifications and present them to the user in advance, and may present the simulation results to the user. In this way, optimized operation considering both efficiency and economic feasibility can be achieved when configuring execution specifications.
[0281] With reference to FIGS. 15 to 19, specific embodiments of the specification automation-based execution management method described above will be explained. In the following description, a machine learning operation platform will be described as an example of a specification automation-based execution management system (400).
[0282] Figure 15 is a diagram illustrating a specification file in the training and deployment of an artificial intelligence model.
[0283] Referring to Fig. 15, computing resources, training source code, and training data are essential for training an artificial intelligence model, and specific setting values for each element are required to reproduce the trained model identically. The specific setting values are as follows.
[0284] For example, regarding computing resources, it may include hardware configuration information such as which GPU was used and how many units were utilized. As for the training source code, the version of the code used, execution instructions, and hyperparameter values may be recorded. The user must clearly define which version of the data was used as training data.
[0285] As described above, only when all configuration values are accurately recorded can the same AI model be reproduced in the same environment.
[0286] Similar to what was explained earlier, the deployment and reproduction of an AI model require computing resources, the AI model, and the deployment source code.
[0287] In other words, to reproduce the model deployment identically, it is necessary to configure the deployment environment for computing resources, such as the type and number of GPUs to be used and external traffic policies. For the AI model to be used, version information of the previously used AI model is required, and for the deployment source code, it is necessary to record the source code version and execution commands used for the deployment.
[0288] For example, the present disclosure may utilize YAML as a specification file for the training or deployment of such artificial intelligence models. As YAML is a human-readable data serialization format, machine learning operational platforms can store and manage configuration values related to the training and deployment of AI models in YAML format. This allows configuration values to be clearly recorded and improves reproducibility.
[0289] Such training and deployment can be performed based on containers. For example, training and deployment can be carried out based on training task objects and service objects in a machine learning operations platform, and these training task objects and service objects can operate based on containers. This is because containers bundle an application and the environment in which it runs (e.g., libraries or dependencies) into a single package, providing an environment that runs identically on any platform.
[0290] At this point, the following settings are required to define the task execution environment in a YAML file.
[0291] - Image Configuration: Specifies the base environment in which the container will run. The image includes the operating system and essential libraries on which the application will run.
[0292] - Volume Attachment: If you need to connect to external storage, volume configuration is required, which allows you to access, store, and share data within the container.
[0293] By clearly defining environment settings in the YAML file as described above, container-based tasks can be executed in a consistent environment, making them reproducible.
[0294] In other words, by managing the configuration values for learning tasks and services in a YAML file, even first-time platform users can intuitively understand how to configure the tasks and services.
[0295] In addition, the reproducibility of the same model can be guaranteed by maintaining a consistent model execution environment through YAML-based model specification files.
[0296] In addition, by providing predefined specification templates—namely YAML templates—that can reproduce various open-source models on the machine learning operations platform, the burden of users having to write YAML from scratch can be reduced. This allows even users unfamiliar with YAML syntax or platform-specific settings to easily configure and deploy models.
[0297] Hereinafter, an example of simultaneously performing setting values and YAML editing will be described with reference to FIGS. 16 and 17.
[0298] FIG. 16 illustrates an exemplary screen showing a configuration value input interface and a specification editor simultaneously when creating a learning task on a platform according to one embodiment of the present disclosure. FIG. 17 illustrates an exemplary screen showing a configuration value input interface and a specification editor simultaneously when creating a service revision on a platform according to one embodiment of the present disclosure.
[0299] When creating a training job or service on the platform, the configuration values entered by the user through the input interface can be synchronized in real time with the specification editor. That is, if configuration values are entered in the input interface shown on the left side of the screen, they are immediately reflected in the specification editor shown on the right side; similarly, if the YAML file is modified directly, the changes are automatically synchronized with the input interface. Since syntactic errors, including key-value errors, may occur during the YAML editing process, a real-time syntax checking function is provided. If an error is detected, a warning message may be displayed, and the object creation button may be disabled. This prevents the application of incorrect settings. Through these synchronization and error prevention features, users can create and manage training jobs and services in a more intuitive and stable manner.
[0300] In one embodiment, the YAML-based specification may include a learning task specification and a service specification.
[0301] For example, a training task specification may include at least one element among metadata, resources, images, volume operations, execution definitions, ports, and environment variables. Detailed examples of each element are as follows.
[0302] Metadata
[0303] -name: Defines the name of the training task.
[0304] -description: Provides a description of the learning task.
[0305] -Tags: Set tags to identify and manage training tasks.
[0306] Resources
[0307] -cluster: Specifies the cluster where the training job will run.
[0308] -preset: Defines the type and number of GPUs to allocate as computing resources.
[0309] Image
[0310] - Specify the image path to be used in the container.
[0311] Volume Operation
[0312] -import: A setting to import external data before the container runs, typically connecting the address of a source code repository (e.g., git) or training data (e.g., volume).
[0313] -mount: Defines the setting to attach an external storage volume when creating a container.
[0314] -export: After the training task is completed, the trained model or result data is uploaded to external storage (volume), allowing the data to be safely stored before the container is deleted.
[0315] Run definition (Run)
[0316] -command: Defines the command to execute.
[0317] -workdir: Sets the working directory where commands are executed.
[0318] -Ports: Set the information and names of the ports to be exposed outside the container.
[0319] - Environment Variables (Env): Defines environment variables to configure the execution environment.
[0320] For example, a service specification may include at least one element among metadata, resources, images, execution definitions, environment variables, ports, and service definitions, and detailed examples of each element are as follows.
[0321] Metadata
[0322] -name: Defines the name of the service revision.
[0323] -description: Write a description for the corresponding service revision.
[0324] Resources
[0325] -cluster: Specifies the cluster where the service runs.
[0326] -preset: Defines the type and number of GPUs to configure computing resources.
[0327] Image
[0328] - Specify the image path to be used in the container.
[0329] Run definition (Run)
[0330] -command: Defines the command required to run the service.
[0331] -workdir: Sets the working directory where commands are executed.
[0332] Environment variables (Env)
[0333] Define environment variables to configure the execution environment.
[0334] Ports
[0335] - Set the information and name of the port to be exposed outside the container.
[0336] Service Definition (Service)
[0337] -monitoring path: Sets the path to monitor the system status of the service.
[0338] -monitoring port: Defines the port for accessing the path.
[0339] -autoscaling min: Sets the minimum number of servers to maintain during autoscaling.
[0340] -autoscaling max: Sets the maximum number of servers allowed during autoscaling.
[0341] -autoscaling metric: Sets the metric to be used as the standard for autoscaling.
[0342] -autoscaling target: Defines the target value of the configured metric.
[0343] -expose:Sets the main port of the service.
[0344] FIG. 18 is a diagram illustrating an example of creating an execution object using a Reproduce function and a specification Export function according to one embodiment of the present disclosure.
[0345] Figure 18 (A) illustrates a case where a learning task is reproduced within the same project, and Figure 18 (B) illustrates a case where a learning task is reproduced within a different project.
[0346] Referring to Figure (A) in Fig. 18, an existing training task can be reproduced within the same project based on the Reproduce function. When the user clicks the Reproduce button, a YAML file is generated based on the settings of the existing training task. The generated YAML file is copied to a new training task, and then the settings in the training task are automatically populated based on the YAML. Afterward, the user can modify the settings as needed and run the new training task.
[0347] Referring to grip (B) in Fig. 18, the existing training task can be reproduced in another project by utilizing the specification export function. The user can click the specification export button in the existing training task to download the YAML file locally, upload the downloaded YAML file to the screen for creating a training task in a new project, and auto-fill the settings based on the YAML. Afterward, the user can review the settings, modify them if necessary, and then create a new training task.
[0348] Likewise, the reproduction of the service can also be performed in a manner similar to the above.
[0349] FIG. 19 is a diagram illustrating an example of the integration of a YAML specification file and a machine learning operating platform according to one embodiment of the present disclosure.
[0350] Referring to Fig. 19, the machine learning operation platform performs training and deployment of AI models based on YAML files, and this process consists of the following steps.
[0351] Step 1. YAML Validation
[0352] The machine learning operations platform verifies whether the YAML file entered by the user is in the correct format. For example, it can check whether the key values and their corresponding values included in the YAML match the format defined by the machine learning operations platform. While YAML automatically generated by the UI is generally error-free, YAML edited directly may contain unexecutable settings due to syntax errors or typos. Therefore, the machine learning operations platform prevents errors by performing structural verification as a primary step.
[0353] Step 2. YAML Translation
[0354] Once the YAML is validated, a process is performed to convert it into YAML executable on Kubernetes. The machine learning operations platform is designed by default based on Kubernetes and provides the same interface in cloud and on-premises environments. Kubernetes clusters require the Kubernetes YAML format when managing resources. The machine learning operations platform converts the platform's native YAML into Kubernetes YAML and can store the converted YAML in the platform's database.
[0355] Step 3. Apply and execute YAML
[0356] Cluster agents are installed in clusters connected to the machine learning operations platform, and these agents interact with the platform's API server to retrieve new tasks. The cluster agent periodically sends requests to the API server to check for the latest YAML files and applies the received Kubernetes YAML to the cluster to train or deploy AI models. Since this process is automated, users can easily run AI workloads simply by modifying and uploading the YAML.
[0357] FIG. 20 is a flowchart illustrating a demand forecast-based pre-reservation and allocation method for automating the specification of a machine learning model learning and deployment environment according to one embodiment of the present disclosure.
[0358] Referring to FIG. 20, the specification automation-based execution management system (400) checks the user's machine learning work log and resource usage history (S2001).
[0359] For example, the specification automation-based execution management system (400) retrieves the machine learning task history and past resource usage records for each user. In this process, metadata such as the user's past task execution time, resource consumption patterns (CPU / GPU, memory, storage), task repetition cycle, and usage frequency is collected and analyzed, and is used as basic data for future demand forecasting. Metadata information is obtained from user profiles or log repositories within the specification automation-based execution management system (400), and may also be collected by linking with an external resource manager (e.g., Kubernetes monitoring module) if necessary. Additionally, in one embodiment of the present disclosure, resource requirements defined in the execution specification declared by the user (e.g., computing resource presets, GPU types and number, etc.) can be utilized together as input variables to improve the accuracy of demand forecasting.
[0360] The specification automation-based execution management system (400) can generate usage forecasts for advance reservations using a demand forecasting model (S2002).
[0361] For example, the specification automation-based execution management system (400) utilizes a built-in demand forecasting model to infer the likelihood that a specific user will need resources at a future time. This demand forecasting can be implemented using a time-series-based statistical model (LSTM, ARIMA, Prophet, etc.) or a machine learning-based regression model, and can comprehensively reflect the iteration cycle, peak usage by time of day, seasonal factors, etc. The forecast result is set in a form such as 'Probability of using 2 GPUs within the next 3 hours: 87%' and can be used as a criterion for pre-booking decisions.
[0362] The specification automation-based execution management system (400) can execute pre-reservation and allocation of resources based on usage prediction (S2003).
[0363] For example, the specification automation-based execution management system (400) can perform resource pre-reservation for the user's future task execution based on the prediction results. The reserved resources are defined as specific nodes, GPU slots, container pools, etc., within a virtualized cluster, and the actual resource allocation is temporarily separated from the reservation-only pool and maintained in a waiting state. This pre-reservation is maintained for only a limited time to prevent resource waste, and if there is another user task request, it is scheduled based on priority.
[0364] When the specification automation-based execution management system (400) receives an actual work request from the user, it allocates resources by utilizing prior reservation and allocation (S2004).
[0365] For example, when the specification automation-based execution management system (400) receives an actual machine learning job request from the user, it prioritizes the allocation of previously reserved resources to immediately execute the job. According to the above description, the user can perform model training or deployment tasks without waiting time, without the problem of operations being interrupted due to delays occurring during the resource acquisition process. The S2004 step is performed by matching the reserved resources with the actual machine learning job request, and the matching is based on whether elements such as the user ID, model type, and scale of the reserved resources and the actual machine learning job request match.
[0366] The specification automation-based execution management system (400) releases the pre-reserved and allocated resources if the request for this job is not received within the waiting time for pre-reservation and allocation (S2005).
[0367] For example, the specification automation-based execution management system (400) releases the reservation for a resource if the reserved resource is not actually requested within a set waiting time. The released resource is returned to a general cluster pool and made available for use by other users or system tasks. This maximizes the flexibility and efficiency of resource usage and prevents waste caused by unnecessary resource occupation. For example, in the case of GPU resources, they are automatically released if there is no request within 10 minutes.
[0368] In one embodiment, the input (feature) of the demand forecasting model may include the following data.
[0369] - User ID or user group information
[0370] - Time series of historical resource usage history (e.g., GPU usage, CPU usage, memory usage)
[0371] - Type and purpose of task (e.g., learning, inference, hyperparameter exploration, or similar)
[0372] - Time of task execution (e.g., time / day / month, etc.)
[0373] - Previous job completion time and resource release time
[0374] - Environment variables and execution image types
[0375] - Recent N task interval time and usage trend indicators
[0376] - Resource requirements extracted from the declarative execution specification (e.g., computing resource presets, GPU types and number, execution images, etc.)
[0377] Input data for the demand forecasting model is preprocessed into a vector form, and the demand forecasting model can predict whether a resource request will occur or the scale of the resource request based on these vectors.
[0378] In one embodiment, the demand forecasting model may be a random forest regression model. The random forest regression model derives a final forecast value by averaging the results of training multiple decision tree regression models and provides high generalization performance, which is advantageous for preventing overfitting, and can process categorical and numerical variables simultaneously, thereby reducing the burden of data preprocessing and providing features that facilitate the interpretation of variable importance.
[0379] The input values of a demand forecasting model can be classified into categorical and numerical variables.
[0380] Categorical variables include user ID, user group (e.g., administrator, general, researcher), task type (e.g., training, inference, tuning, evaluation, or similar), container image type (e.g., execution environment version or framework version), day of the week (execution day), and time zone interval. These categorical variables are converted into numerical values using Label Encoding and input into the model.
[0381] Numerical variables include the elapsed time since the last job ended, the average resource usage over the last 24 hours, the frequency of recent job execution, the average usage time, the average number of resource requests, and the cluster availability rate. Numerical variables can be input directly into a random forest regression model without normalization or standardization.
[0382] The Random Forest regression model is trained using collected and preprocessed data as described above. Training can prevent data leakage by splitting the training and validation data (e.g., 70:30) and applying TimeSeriesSplit.
[0383] The Random Forest regression model generates tens to hundreds of decision trees, and each tree is trained using only a subset of the training data and a subset of the features. Each tree predicts resource request figures, and the final prediction is determined by the average of the predictions from all trees.
[0384] A machine learning operating system according to one embodiment may include a computer program stored on a computer-readable recording medium, and the computer program is combined with hardware such as a computer or computing device to perform the operations described above.
[0385] A machine learning operating system according to one embodiment may be implemented as a computing device comprising at least one processor configured to execute instructions of programs loaded in memory. A program comprising instructions described to perform the operations described above may be loaded in the memory of the computing device.
[0386] The device described above is implemented as a hardware component, a software component, or a combination of a hardware component and a software component. For example, the device and components described in the embodiments are implemented using one or more general-purpose or special-purpose computers, such as, for example, a processor, a controller, an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable gate array (FPGA), a programmable logic unit (PLU), a microprocessor, or any other device configured to execute and respond to instructions. The processing unit may execute an operating system (OS) and one or more software applications executed on said operating system. Additionally, the processing unit accesses, stores, manipulates, processes, and generates data in response to the execution of the software. For ease of understanding, the processing unit may be described as being used as a single unit, but those skilled in the art will understand that the processing unit may include multiple processing elements and / or multiple types of processing elements. For example, the processing unit may include multiple processors or one processor and one controller. In addition, other processing configurations, such as parallel processors, are also possible.
[0387] Software comprises computer programs, code, instructions, or a combination of one or more of these, and may configure a processing unit to operate as desired or control the processing unit independently or collectively. Software and / or data may be permanently or temporarily embodied in any type of machine, component, physical device, virtual equipment, computer storage medium or device, or transmitted signal wave in order to be interpreted by the processing unit or to provide instructions or data to the processing unit. Software is distributed over networked computer systems and is stored or executed in a distributed manner. Software and data are stored on one or more computer-readable recording media.
[0388] The method according to the embodiment is implemented in the form of program instructions that can be executed through various computer means and is recorded on a computer-readable medium. The computer-readable medium includes program instructions, data files, data structures, etc., either alone or in combination. The program instructions recorded on the medium may be those specifically designed and configured for the embodiment, or may be those known and available to those skilled in the art of computer software. The computer-readable recording medium includes magnetic media such as hard disks, floppy disks, and magnetic tapes; optical recording media such as CD-ROMs and DVDs; magneto-optical media such as floptical disks; and hardware devices specifically configured to store and execute program instructions, such as ROM, RAM, and flash memory. The program instructions include machine code, such as that generated by a compiler, as well as high-level language code that can be executed by a computer using an interpreter, etc. The hardware devices are configured to operate as one or more software modules to perform the operation of the embodiment, and vice versa.
[0389] Although the embodiments have been described above with reference to limited examples and drawings, those skilled in the art can make various modifications and variations from the description above. For example, suitable results may be achieved even if the described techniques are performed in a different order than described, and / or if the components of the described system, structure, device, circuit, etc. are combined or assembled in a form different from described, or replaced or substituted by other components or equivalents. Therefore, other implementations, other embodiments, and equivalents to the claims are also included within the scope of the claims set forth below.
[0390] The specification-based execution management method and system described above can be applied to fields requiring the training and deployment of machine learning models.
Claims
As a specification-based execution management method for specification automation performed on an API server, A step of providing an input interface to a user, and automatically generating and saving a declarative execution specification based on configuration information input by the user through the input interface; A step of pre-securing computational resources based on the predicted demand for computational resources using the resource requirements and demand forecasting model defined in the above-stored declarative execution specification; When a request for training or deployment of an artificial intelligence model according to the above declarative execution specification is received within a preset waiting time interval, the step of prioritizing the allocation of the above-previous computational resources; and A step of executing training or deployment of an artificial intelligence model by automatically converting the declarative execution specification into an orchestration specification format executable in a container orchestration environment using the aforementioned priority allocated computational resources and applying it to a cluster. Specification-based execution management method for specification automation. In paragraph 1, The above setting information is, at least one of cluster information, computing resource presets, container images, execution commands, data input / output paths, and environment variables, Specification-based execution management method for specification automation. In paragraph 1, The above declarative implementation specification is, Implemented in a data serialization format based on YAML (Yet Another Markup Language), Specification-based execution management method for specification automation. In paragraph 1, The step of automatically generating and saving the above declarative execution specification is, A step of selecting an execution object based on the input configuration information above; A step of determining whether a previously generated execution specification is stored in relation to the selected execution object; A step of determining whether to reuse the stored execution specification if the previously generated execution specification is stored; and A step of automatically filling in setting values based on a stored execution specification; including Specification-based execution management method for specification automation. In paragraph 1, The step of automatically generating and saving the above declarative execution specification is, A step of performing real-time grammar checks on the above declarative execution specification and providing real-time responses to grammar errors through the above input interface; and A step of saving the above declarative execution specification if no grammatical errors exist; comprising Specification-based execution management method for specification automation. In paragraph 5, The step of providing real-time response to the above grammar error through the input interface is: A step of checking for grammatical errors based on YAML syntax for a YAML-based execution specification; and A step comprising: displaying a warning on the input interface and disabling an object creation button within the input interface when a grammatical error occurs; Specification-based execution management method for specification automation. In paragraph 1, The step of securing the above computational resources in advance is, A step comprising querying machine learning job history and past resource usage records per user to collect and analyze metadata based on any one of job execution time, resource consumption patterns, job repetition cycles, and usage frequency, Specification-based execution management method for specification automation. In paragraph 1, The step of securing the above computational resources in advance is, A step of performing resource pre-reservation for the execution of future tasks by the user based on the above-mentioned predicted computational resource demand; and The above-mentioned reserved resource is separated from a reservation-only pool and maintained in a waiting state during the waiting time for advance reservation and allocation; comprising the step of, Specification-based execution management method for specification automation. In Paragraph 7, If the learning or deployment request is not received within the waiting time of the above-mentioned pre-reservation and allocation, the step of automatically releasing the pre-reservation and returning the reserved resources from the reservation-only pool to the general cluster pool is included. Specification-based execution management method for specification automation. In paragraph 1, The step of automatically converting into the above-mentioned executable orchestration specification format is, Store YAML-based execution specifications in the form of Kubernetes YAML specifications, and The step of applying the above Kubernetes YAML specification to a cluster to perform training or deployment of an artificial intelligence model; comprising Specification-based execution management method for specification automation. In a server that generates and manages execution specifications, Provides an input interface to the user, and Automatically generates and saves declarative execution specifications based on configuration information input by the user through the above input interface, and Pre-secure computational resources based on the predicted computational resource demand using the resource requirements and demand forecasting model defined in the above-stored declarative execution specification, and When a request for training or deployment of an artificial intelligence model according to the above declarative execution specification is received within a preset waiting time interval, the above-mentioned pre-secured computational resources are allocated first, and A server comprising a process for executing the training or deployment of an artificial intelligence model by using the aforementioned priority allocated computational resources to automatically convert the aforementioned declarative execution specification into an orchestration specification format executable in a container orchestration environment and applying it to a cluster. on the computer, A step of providing an input interface to a user, and automatically generating and saving a declarative execution specification based on configuration information input by the user through the input interface; A step of pre-securing computational resources based on the predicted demand for computational resources using the resource requirements and demand forecasting model defined in the above-stored declarative execution specification; When a request for training or deployment of an artificial intelligence model according to the above declarative execution specification is received within a preset waiting time interval, the step of prioritizing the allocation of the above-previous computational resources; and A computer program stored on a non-transient recording medium to execute the step of executing the training or deployment of an artificial intelligence model by automatically converting the declarative execution specification into an orchestration specification format executable in a container orchestration environment using the aforementioned priority allocated computational resources and applying it to a cluster.
