Computing power resource scheduling method and apparatus, non-volatile storage medium and electronic device

By predicting load trends and analyzing resource requirements, computing resources are dynamically adjusted, solving the problems of training task downtime and insufficient resources for inference tasks, thus achieving efficient resource utilization and service quality assurance.

WO2026242378A1PCT designated stage Publication Date: 2026-11-26CHINA TELECOM ARTIFICIAL INTELLIGENCE TECHNOLOGY (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/142946
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-20
Filing Date
2025-12-16
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

In existing technologies, the fixed resource quota binding strategy leads to insufficient GPU utilization during the training task idle period, insufficient resources for sudden inference requests, low resource utilization efficiency, and service quality degradation caused by resource mismatch and preemptive scheduling in heterogeneous task hybrid scheduling.

Method used

By predicting load trends and analyzing resource requirements, computing resources are dynamically adjusted to generate computing resource adjustment strategies. This enables the partitioning and scheduling of virtual graphics processor instances. Combined with cross-node migration and cluster load balancing, resource allocation is optimized.

Benefits of technology

It improved the utilization rate of computing resources, reduced the fragmentation rate of resources, optimized the continuity of training tasks and the response time of inference tasks, and improved the overall performance and service quality of the cluster.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025142946_26112026_PF_FP_ABST
    Figure CN2025142946_26112026_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application are a computing power resource scheduling method and apparatus, a non-volatile storage medium and an electronic device. The method comprises: determining a load trend prediction result of a target node within a preset time period; determining a task execution progress of a model training task executed in the target node, and determining a minimum resource requirement of the model training task according to the task execution progress; according to the load trend prediction result and the minimum resource requirement, generating a computing power resource adjustment strategy; and partitioning computing power resources of a graphics processing unit in the target node according to the computing power resource adjustment strategy, so as to obtain a plurality of virtual graphics processing unit instances, and scheduling the virtual graphics processing unit instances according to resource requirement information of the model training task and resource requirement information of an inference task.
Need to check novelty before this filing date? Find Prior Art

Description

Computing resource scheduling methods, devices, non-volatile storage media and electronic equipment

[0001] Related applications

[0002] This application claims priority to Chinese patent application filed on May 20, 2025, with application number 2025106555115, entitled "Method, Apparatus, Non-volatile Storage Medium and Electronic Device for Scheduling Computing Resources", the entire contents of which are incorporated herein by reference. Technical Field

[0003] This application relates to the field of computing resource management, and more specifically, to a computing resource scheduling method, apparatus, non-volatile storage medium, and electronic device. Background Technology

[0004] Related technologies typically employ a fixed resource quota binding strategy, achieving task isolation through pre-defined vGPU / GPU resource allocation. The problem with this approach is the inability to schedule the computing resources consumed by different tasks across tasks. This can lead to situations where GPU utilization is less than 20% during training task lulls, while sudden inference requests are forced to queue due to resource shortages. Therefore, these technologies exhibit low computing resource utilization efficiency.

[0005] There is currently no effective solution to the above problems. Summary of the Invention

[0006] According to one aspect of the embodiments of this application, a computing resource scheduling method is provided, comprising: determining the load trend prediction result of a target node within a preset time period; determining the task execution progress of a model training task executed in the target node, and determining the minimum resource requirement of the model training task based on the task execution progress, wherein the minimum resource requirement is used to indicate the minimum computing resources required to maintain the model training task without interruption; generating a computing resource adjustment strategy based on the load trend prediction result and the minimum resource requirement, wherein the computing resource adjustment strategy is used to indicate the computing resource information corresponding to the model training task and the inference task executed in the target node respectively; dividing the computing resources of the graphics processor in the target node according to the computing resource adjustment strategy to obtain multiple virtual graphics processor instances, and scheduling the virtual graphics processor instances according to the resource requirement information of the model training task and the inference task.

[0007] Optionally, the computing resources of the graphics processor in the target node are divided according to the computing resource adjustment strategy to obtain multiple virtual graphics processors, including: determining the target graphics processor in the target node according to the computing resource adjustment strategy, wherein the target graphics processor is the graphics processor to be divided; dividing the computing resources of the target graphics processor into multiple virtual graphics processor instances, wherein the virtual graphics processor instances obtained by dividing from the same graphics processor have the same computing resources.

[0008] Optionally, scheduling virtual graphics processor instances based on resource requirement information for model training and inference tasks includes: determining a first virtual graphics processor instance based on resource requirement information for model training tasks, wherein the first virtual graphics processor instance is a virtual graphics processor instance fixed for performing model training tasks; and determining a second virtual graphics processor instance from the remaining virtual graphics processor instances other than the first virtual graphics processor instance based on resource requirement information for inference tasks, wherein the second virtual graphics processor instance is used to perform inference tasks.

[0009] Optionally, after dividing the computing resources of the graphics processor in the target node according to the computing resource adjustment strategy to obtain multiple virtual graphics processor instances, the method further includes: setting a cooling time for each virtual graphics processor instance, wherein the virtual graphics processor instance is scheduled only once within the cooling time.

[0010] Optionally, after scheduling the virtual graphics processor instance based on the resource requirement information of the model training task and the inference task, the method further includes: determining the task progress delay rate of the model training task; if the task progress delay rate is greater than a preset delay rate threshold, determining an idle node, wherein the idle node is a node with a load rate lower than a preset load rate threshold; and migrating the virtual graphics processor instance corresponding to the model training task from the target node to the idle node.

[0011] Optionally, determining the task progress delay rate of the model training task includes: determining the actual number of training iterations of the model training task within a preset time period, and the expected number of training iterations of the model training task within the preset time period; if the actual number of training iterations is less than the expected number of training iterations, determining the difference in the number of iterations obtained by subtracting the actual number of training iterations from the expected number of training iterations; and determining the ratio of the difference in the number of iterations to the expected number of training iterations as the task progress delay rate.

[0012] Optionally, after scheduling virtual graphics processor instances based on resource requirement information for model training and inference tasks, the method further includes: determining the resource load status of each cluster, wherein the cluster includes multiple nodes; if the resource load rate of the cluster where the target node is located is greater than a first preset resource load rate threshold, determining an idle cluster and transferring the inference task of the target node to the idle cluster, wherein the idle cluster is a cluster with a resource load rate lower than a second preset resource load rate threshold, and the second preset resource load rate threshold is lower than the first preset resource load rate threshold.

[0013] According to another aspect of the embodiments of this application, a computing power resource scheduling device is also provided, comprising: a first processing module, configured to determine the load trend prediction result of a target node within a preset time period; a second processing module, configured to determine the task execution progress of a model training task executed in the target node, and determine the minimum resource requirement of the model training task based on the task execution progress, wherein the minimum resource requirement is used to indicate the minimum computing power resources required to maintain the model training task without interruption; a third processing module, configured to generate a computing power resource adjustment strategy based on the load trend prediction result and the minimum resource requirement, wherein the computing power resource adjustment strategy is used to indicate the computing power resource information corresponding to the model training task and the inference task executed in the target node respectively; and a fourth processing module, configured to divide the computing power resources of the graphics processor in the target node according to the computing power resource adjustment strategy to obtain multiple virtual graphics processor instances, and schedule the virtual graphics processor instances according to the resource requirement information of the model training task and the inference task.

[0014] According to another aspect of the embodiments of this application, a computing resource scheduling system is also provided, including a perception layer, an instance management layer, and a migration engine. The perception layer is used to determine the load trend prediction result of a target node within a preset time period; determine the task execution progress of a model training task executed in the target node, and determine the minimum resource requirement of the model training task based on the task execution progress, wherein the minimum resource requirement is used to indicate the minimum computing resources required to maintain the model training task without interruption; and generate a computing resource adjustment strategy based on the load trend prediction result and the minimum resource requirement, wherein the computing resource adjustment strategy is used to indicate the computing resource information corresponding to the model training task and inference task executed in the target node, respectively. The manager is used to allocate the computing resources of the graphics processors in the target node according to the computing resource adjustment strategy to obtain multiple virtual graphics processor instances, and to schedule the virtual graphics processor instances according to the resource requirement information of model training tasks and inference tasks; the migration engine is used to determine the resource load status of each cluster, wherein the cluster includes multiple nodes; when the resource load rate of the cluster where the target node is located is greater than the first preset resource load rate threshold, an idle cluster is determined, and the inference tasks of the target node are transferred to the idle cluster, wherein the idle cluster is a cluster with a resource load rate lower than the second preset resource load rate threshold, and the second preset resource load rate threshold is lower than the first preset resource load rate threshold.

[0015] According to an embodiment of this application, a non-volatile storage medium is also provided, in which a program is stored, wherein the program controls the device where the non-volatile storage medium is located to execute a computing resource scheduling method during runtime.

[0016] According to an embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the processor is used to run a program stored in the memory, wherein the program executes a computing resource scheduling method during runtime.

[0017] Details of one or more embodiments of this application are set forth in the following drawings and description. Other features, objects, and advantages of this application will become apparent from the specification, drawings, and claims. Attached Figure Description

[0018] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0019] Figure 1 is a schematic diagram of the computing resource scheduling system provided according to an embodiment of this application;

[0020] Figure 2 is a flowchart illustrating the computing resource scheduling method provided according to an embodiment of this application;

[0021] Figure 3 is a schematic diagram of the computing resource scheduling device provided according to an embodiment of this application;

[0022] Figure 4 is a schematic diagram of the structure of an electronic device provided according to an embodiment of this application. Detailed Implementation

[0023] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0025] To better understand the embodiments of this application, the technical terms involved in the embodiments of this application are explained below:

[0026] Tidal scheduling: In computing resource management, the tidal effect typically refers to the phenomenon of periodic fluctuations in workload, similar to the rise and fall of tides. For example, online services experience higher loads during peak daytime hours and lower loads during off-peak nighttime hours. This effect leads to significant differences in resource demand across different time periods. By analyzing the periodic changes in task load, resource allocation can be dynamically adjusted to optimize resource utilization and system performance.

[0027] Computing resources: refers to the hardware resources used to perform computing tasks, including central processing unit (CPU), graphics processing unit (GPU), memory, storage, etc.

[0028] GPU (Graphics Processing Unit): A graphics processor is a type of hardware used to handle graphics and parallel computing tasks, and is widely used in fields such as graphics rendering, scientific computing, and artificial intelligence.

[0029] GPU SM (GPU Streaming Multiprocessor) is the core computing unit in the GPU architecture, responsible for performing graphics and general computing tasks.

[0030] vGPU (Virtual GPU): A virtual GPU refers to a technology that divides the computing resources of a physical GPU into multiple virtual graphics processing units through virtualization, allowing multiple virtual machines or containers to share the same physical GPU resources. vGPU enables multiple virtual machines or containers to simultaneously utilize the GPU for computationally intensive tasks.

[0031] K8s (Kubernetes): An open-source container orchestration and management system for automating the deployment, scaling, and management of containerized applications.

[0032] HPA (Horizontal Pod Autoscaler): Horizontal automatic scaling refers to automatically adjusting the number of replicas of application instances based on resource utilization (such as CPU, GPU, memory, and other computing resources) or other metrics to cope with changes in workload.

[0033] VPA (Vertical Pod Autoscaler): Vertical automatic scaling refers to automatically adjusting the resource requests and limits of application instances based on resource utilization (such as CPU, GPU, memory, and other computing resources) or other metrics to adapt to the actual workload needs of the application instances. Unlike HPA, VPA focuses on resource adjustment for a single replica of an application instance, rather than the number of replicas of the instance.

[0034] In the new stage of the integrated development of cloud computing and artificial intelligence, the demand for computing resources for large-scale model training (such as DeepSeek, GPT-4, LLaMA, and other models with hundreds of billions of parameters) and real-time inference tasks (such as AIGC content generation and autonomous driving decision-making) is experiencing explosive growth. According to an IDC 2023 report, training tasks account for over 65% of global AI computing power spending, while inference tasks experience drastic fluctuations in resource demand due to the fragmentation of service scenarios, forming a typical "computing power tidal effect." Against this backdrop, traditional computing power scheduling methods are gradually revealing the following technical bottlenecks:

[0035] 1. The inherent contradiction between static resource allocation and dynamic load.

[0036] Existing scheduling systems (such as the Kubernetes default scheduler and Slurm job queues) mostly employ fixed resource quota binding strategies, achieving task isolation through pre-defined vGPU / GPU resource partitioning. For example, while NVIDIA MIG technology supports hard isolation of physical GPUs, its partitioning granularity is fixed and it cannot aggregate across nodes. This hard allocation mode is highly susceptible to three scenarios when facing long-term, high-load training tasks (e.g., continuously occupying 4 A100 GPUs for 72 hours) and short-term bursts of requests for inference tasks (e.g., hundreds of image generation per second during e-commerce promotions):

[0037] (1) GPU utilization is less than 20% during the training task idle period, while sudden inference requests are forced to queue due to insufficient resources;

[0038] (2) During peak periods, inference tasks compete for training resources, causing gradient synchronization to be interrupted;

[0039] (3) The fragmentation of resources caused by static allocation can reduce the overall utilization rate of the cluster by more than 40%.

[0040] 2. Lack of coordination in heterogeneous task hybrid scheduling

[0041] Current mainstream solutions (such as Alibaba Cloud ECI and AWS Batch) adopt a physically isolated architecture for training and inference resource pools: the training cluster is equipped with high-performance GPUs (such as A100 / H100), and the inference cluster deploys low-cost inference cards (such as T4 / L4). While this separate management simplifies scheduling logic, it leads to two major problems:

[0042] (1) Resource mismatch: Inference clusters often have redundant video memory during low business periods (e.g., a T4 card with 24GB video memory only needs 5GB), while training tasks are forced to wait due to insufficient video memory.

[0043] (2) Elastic cost: Sudden inference requests require temporary expansion of inference nodes, but the cold start delay of virtual machines (approximately >120 seconds) is difficult to meet the enterprise SLA requirements.

[0044] 3. Service quality degradation caused by preemptive dispatching

[0045] While resource preemption mechanisms for high-priority tasks (such as online inference) (e.g., Kubernetes PriorityClass) can ensure critical business operations, they can disrupt the continuity of training tasks: model training needs to resume from the most recent checkpoint due to GPU preemption, resulting in an additional 20%-30% computational overhead; frequent context switching exacerbates PCIe channel contention, reducing the effective computation time of the GPU. This problem is particularly prominent in mixed-precision training scenarios, where task interruptions may trigger gradient overflow, leading to model convergence failure.

[0046] 4. Technical limitations of global resource view and fine-grained scheduling

[0047] Existing schedulers (such as the default Kubernetes scheduler and Volcano) rely on a centralized resource manager and use a periodic heartbeat mechanism to update node states. This discrete state awareness presents two problems when faced with microsecond-level computing power requests:

[0048] (1) Decision lag: Scheduling decisions are based on historical status data and cannot respond to sudden loads in real time;

[0049] (2) Coarse granularity: The smallest scheduling unit is the entire GPU, which cannot achieve fine-grained partitioning at the CUDA Core level.

[0050] To address the aforementioned issues, this application provides relevant solutions that resolve the contradiction between dynamic load and static resource allocation, overcome the limitations of traditional Kubernetes schedulers that rely on fixed GPU quota binding, and resolve the conflict between resource fragmentation caused by long-term occupation of training tasks and sudden request response delays in inference tasks. For the resource mismatch problem in heterogeneous task hybrid scheduling, the coexistence of memory redundancy and computing power shortage caused by the physical isolation architecture of training and inference clusters is eliminated, achieving dynamic resource sharing across task types. For the training task interruption problem caused by preemptive scheduling, the Kubernetes Priority Class preemption mechanism is optimized to avoid model convergence failure and gradient synchronization delay caused by high-priority inference tasks preempting training resources. For the insufficient real-time performance of (4) fine-grained resource scheduling, the scheduling response delay caused by the periodic heartbeat mechanism relied upon by traditional schedulers is optimized, achieving microsecond-level dynamic allocation of vGPU computing power and supporting CUDA Core-level scheduling. The following details these solutions.

[0051] According to an embodiment of this application, a method embodiment for scheduling computing resources is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0052] The method embodiments provided in this application can be executed in the computing resource scheduling system shown in Figure 1. As can be seen from Figure 1, the system includes a perception layer 10, an instance manager 12, and a migration engine 14.

[0053] The perception layer 10 is used to determine the load trend prediction result of the target node within a preset time period; determine the task execution progress of the model training task executed in the target node, and determine the minimum resource requirement of the model training task based on the task execution progress, wherein the minimum resource requirement is used to indicate the minimum computing power resources required to maintain the model training task without interruption; and generate a computing power resource adjustment strategy based on the load trend prediction result and the minimum resource requirement, wherein the computing power resource adjustment strategy is used to indicate the computing power resource information corresponding to the model training task and inference task executed in the target node respectively.

[0054] The instance manager 12 is used to divide the computing resources of the graphics processor in the target node according to the computing resource adjustment strategy to obtain multiple virtual graphics processor instances, and to schedule the virtual graphics processor instances according to the resource requirement information of the model training task and the inference task.

[0055] Migration engine 14 is used to determine the resource load status of each cluster, wherein the cluster includes multiple nodes; when the resource load rate of the cluster where the target node is located is greater than the first preset resource load rate threshold, an idle cluster is determined, and the inference task of the target node load is transferred to the idle cluster, wherein the idle cluster is a cluster whose resource load rate is lower than the second preset resource load rate threshold, and the second preset resource load rate threshold is lower than the first preset resource load rate threshold.

[0056] In some embodiments of this application, the aforementioned perception layer 10 is also referred to as the tidal perception layer 10. The perception layer 10 is the core scheduling decision unit in the system, integrating algorithms such as load prediction and resource allocation to generate dynamic vGPU scheduling policies. It interacts with the cluster via the Kubernetes API, monitors proxy data through the List Watch mechanism, and issues instructions to the instance manager 12.

[0057] As an optional implementation, as shown in Figure 1, the perception layer 10 also includes a load prediction engine and a priority queue module. The load prediction engine constructs a time-series prediction model based on a bidirectional LSTM (formula: Y). t =LSTM(x t-n:t W h W x Predict the resource requirements of a node for training / inference tasks in the future time period (such as the next 30 minutes or the next 5 minutes), which is the load information of the node in the future time period.

[0058] The priority queue module receives load status input from the scheduler, dynamically adjusts task priorities, executes a time-space preemption avoidance algorithm, and outputs the priority weight of each task to the Kubernetes scheduling queue. The priority weight of each task determines the weight of the virtual graphics processor instance corresponding to that task.

[0059] In some embodiments of this application, the instance manager 12 includes a physical GPU resource pooling and virtualization module for interacting with the physical GPU driver (such as NVIDIA GPU Driver), and is responsible for receiving instructions from the scheduling controller and performing operations such as creating, destroying, migrating and allocating computing power for vGPU instances.

[0060] In some embodiments of this application, the migration engine 14 is also referred to as the elastic migration engine 14 or the hot migration engine 14. It is used in conjunction with the instance manager 12 to build a cross-node migration channel based on GPU Direct RDMA and to complete the cross-node migration using a pre-copy + incremental synchronization algorithm.

[0061] In some embodiments of this application, as shown in Figure 1, the computing resource scheduling system further includes a resource monitoring agent module 16, which is deployed as a DaemonSet. The resource monitoring agent module 16 integrates a graphics processor monitoring module for collecting GPU SM (Streaming Multiprocessor) utilization (formula: ), memory stress index (formula: NVLink bandwidth utilization.

[0062] In the above SM utilization formula, k is the number of active computing units, and n is the total number of computing units. j Let Capacity be the number of SMs for the j-th active unit. i Let be the maximum number of SMs in the i-th unit.

[0063] In the above memory pressure index, k is the number of allocated memory units, and n is the total number of memory units. j Capacity represents the utilized capacity of the j-th allocated video memory unit. i Let be the total memory capacity of the i-th memory unit.

[0064] Under the above operating environment, this application provides a computing resource scheduling method, as shown in Figure 2. The method includes the following steps:

[0065] Step S202: Determine the load trend prediction result of the target node within a preset time period;

[0066] In some embodiments of this application, load prediction start conditions can be set. For example, when the GPU utilization of the target node is detected to be greater than 90% for more than 10 seconds and the video memory usage is greater than 85%, the LSTM model is invoked to predict the node load trend for a preset time period (such as the next 5 minutes), which is the resource requirement of each task.

[0067] Step S204: Determine the task execution progress of the model training task executed in the target node, and determine the minimum resource requirement of the model training task based on the task execution progress. The minimum resource requirement is used to indicate the minimum computing power resources required to keep the model training task uninterrupted.

[0068] As an alternative implementation, before performing the model training task, the model training can be divided into different stages, and the minimum resource requirements for each training stage can be determined. During the actual training process, the minimum resource requirements for the model training task can be determined based on the current training stage.

[0069] Step S206: Based on the load trend prediction results and minimum resource requirements, a computing power resource adjustment strategy is generated, wherein the computing power resource adjustment strategy is used to indicate the computing power resource information corresponding to the model training task and inference task executed in the target node, respectively.

[0070] When generating a computing resource adjustment strategy, the graphics processors (GPUs) that can be allocated to the inference task can be determined based on the minimum resource requirements of the model training task. For example, one vGPU can be temporarily borrowed from the training task (originally allocated 4 GPUs, now 3), and dynamically divided into 4 inference instances (each instance occupying 1 / 4 of the original GPU's computing power). It's important to note that the divided GPUs can be virtual GPUs or real GPUs. When dividing into real GPUs, the computing resources of the real GPUs need to be virtualized first.

[0071] Step S208: The computing resources of the graphics processor in the target node are divided according to the computing resource adjustment strategy to obtain multiple virtual graphics processor instances, and the virtual graphics processor instances are scheduled according to the resource requirements of the model training task and the inference task.

[0072] In the technical solution provided in step S208, the step of dividing the computing power resources of the graphics processor in the target node according to the computing power resource adjustment strategy to obtain multiple virtual graphics processors includes: determining the target graphics processor in the target node according to the computing power resource adjustment strategy, wherein the target graphics processor is the graphics processor determined to be divided; dividing the computing power resources of the target graphics processor into multiple virtual graphics processor instances, wherein the virtual graphics processor instances obtained by dividing the same graphics processor have the same computing power resources.

[0073] Optionally, the instance manager can perform lossless partitioning of the target GPU (A100-80GB) using the CUDAStream API, dividing it into multiple independent vGPU instances, each with identical computing resources. For example, if divided into 4 instances, each instance would have 20GB of VRAM and 16 SM units. Furthermore, a certain number of vGPU instances should be reserved for model training tasks and not participate in subsequent scheduling. The remaining vGPU instances can be marked as "schedulable" by updating the Kubernetes node resource list.

[0074] During scheduling, for vGPU instances not dedicated to model training tasks, the vGPU instances corresponding to each task can be determined according to task priority. Furthermore, higher-priority tasks can preempt vGPU instances.

[0075] As an optional implementation, the step of scheduling virtual graphics processor instances based on resource requirement information for model training tasks and inference tasks includes: determining a first virtual graphics processor instance based on resource requirement information for model training tasks, wherein the first virtual graphics processor instance is a virtual graphics processor instance fixed for performing model training tasks; and determining a second virtual graphics processor instance from the remaining virtual graphics processor instances other than the first virtual graphics processor instance based on resource requirement information for inference tasks, wherein the second virtual graphics processor instance is used to perform inference tasks.

[0076] In some embodiments of this application, after dividing the computing resources of the graphics processor in the target node according to the computing resource adjustment strategy to obtain multiple virtual graphics processor instances, the method further includes: setting a cooling time for each virtual graphics processor instance, wherein the virtual graphics processor instance is scheduled only once within the cooling time.

[0077] Optionally, by setting a preemption cooldown period for each vGPU instance, the same vGPU instance can be prevented from being preempted a second time during the cooldown period, which can avoid the waste of computing resources caused by frequent changes in the tasks executed by the vGPU instance.

[0078] As an optional implementation, after scheduling virtual graphics processor instances based on resource requirement information of model training tasks and inference tasks, the method further includes: determining the task progress delay rate of the model training task; determining idle nodes when the task progress delay rate is greater than a preset delay rate threshold, wherein the idle node is a node with a load rate lower than a preset load rate threshold; and migrating the virtual graphics processor instance corresponding to the model training task from the target node to the idle node.

[0079] In some embodiments of this application, determining the task progress delay rate of the model training task includes: determining the actual number of training iterations of the model training task within a preset time period, and the expected number of training iterations of the model training task within the preset time period; if the actual number of training iterations is less than the expected number of training iterations, determining the difference in the number of iterations obtained by subtracting the actual number of training iterations from the expected number of training iterations; and determining the ratio of the difference in the number of iterations to the expected number of training iterations as the task progress delay rate.

[0080] The aforementioned task progress latency threshold can be set manually, for example, to 5%. During migration, the vGPU instance of the training task can be migrated from Node A (target node) to Node B (idle node) using GPU Direct RDMA. Furthermore, during the migration process, GPU memory data is continuously synchronized (differential synchronization technology) to ensure that the migration latency is lower than a preset latency (e.g., 50ms).

[0081] As an optional implementation, after scheduling virtual graphics processor instances based on resource requirement information for model training and inference tasks, the method further includes: determining the resource load status of each cluster, wherein the cluster includes multiple nodes; when the resource load rate of the cluster where the target node is located is greater than a first preset resource load rate threshold, determining an idle cluster, and transferring the inference task of the target node to the idle cluster, wherein the idle cluster is a cluster with a resource load rate lower than a second preset resource load rate threshold, and the second preset resource load rate threshold is lower than the first preset resource load rate threshold.

[0082] To achieve cross-cluster scheduling, a global resource proxy architecture can be added to aggregate the resource status of each cluster, and the resource status of each cluster will be updated at a preset frequency (e.g., once every 100ms). Then, a federated learning model can be deployed to share load characteristics across clusters, with data transmitted between different clusters using encrypted transmission. This way, when the local cluster's load rate is too high and resources are insufficient, inference tasks can be transferred to a lower-load cluster. The resource load status of the local cluster includes the resource load rate of each node in the cluster. The node's resource load rate includes the node's GPU load rate and GPU memory utilization.

[0083] In some embodiments of this application, in order to demonstrate the technical effects of the method provided by the embodiments of this application, a multi-node system was optimized using the method provided by the embodiments of this application in a practical application scenario. The final execution results are shown in the table below:

[0084] By employing the following methods: determining the load trend prediction results of the target node within a preset time period; determining the task execution progress of the model training task executed in the target node; and determining the minimum resource requirements of the model training task based on the task execution progress, whereby the minimum resource requirements indicate the minimum computing power resources required to maintain the uninterrupted model training task; generating a computing power resource adjustment strategy based on the load trend prediction results and the minimum resource requirements, whereby the computing power resource adjustment strategy indicates the computing power resource information corresponding to each model training task and inference task executed in the target node; dividing the computing power resources of the graphics processor in the target node according to the computing power resource adjustment strategy to obtain multiple virtual graphics processor instances; and scheduling the virtual graphics processor instances according to the resource requirement information of the model training task and inference task, the method achieves the goal of dynamically adjusting the computing power resources corresponding to each task by generating a computing power resource adjustment strategy based on the actual resource requirements of the task, and dividing and scheduling the computing power resources of the graphics processor according to the computing power resource adjustment strategy, thereby achieving the technical effect of improving the utilization efficiency of computing power resources and solving the technical problem of low computing power resource utilization efficiency caused by the fixed resource quota binding strategy in related technologies.

[0085] The system and method provided in this application also have the following technical effects:

[0086] (1) Resource utilization rate has increased dramatically

[0087] By using vGPU dynamic partitioning (core minimum granularity of 0.1 GPU computing power) and cross-node resource aggregation technology, the overall GPU utilization rate of the cluster has been increased from the industry average of 45% to over 85%, and the memory fragmentation rate has been reduced to below 5%.

[0088] (2) Cost optimization of flexible scaling

[0089] By combining an online load prediction model (LSTM time-series prediction + reinforcement learning dynamic adjustment), hybrid deployment of training and inference resources is achieved, reducing the need for independent expansion of the inference cluster and reducing the cost of handling burst traffic by 40%.

[0090] (3) Dual guarantee of service quality

[0091] Training continuity: Through vGPU hot migration technology (migration latency <50ms) and checkpoint dynamic backup mechanism, the interruption rate of long-cycle training tasks is guaranteed to be less than 0.1%;

[0092] Inference real-time performance: Based on priority queues and pre-allocated buffers, it ensures that 99.9% of inference request response times are ≤2 seconds.

[0093] (4) Breakthrough in scheduling efficiency

[0094] It adopts a distributed resource state awareness framework (based on the Raft protocol) to compress the global resource view update latency from the second level to the millisecond level; it supports fine-grained dynamic allocation of vGPU computing power with a scheduling decision time of ≤10ms.

[0095] Furthermore, the method and system provided in this application also offer a time-space dual-dimensional preemption avoidance algorithm. In the time dimension, it limits the preemption interval of the same vGPU (the specific interval duration can be set by the user), and in the spatial dimension, it reserves exclusive computing units (such as Tensor Cores) of the physical GPU for training tasks. It is also compatible with mainstream ecosystems and can seamlessly integrate with the Kubernetes API (extended via Device Plugin) and the graphics processor vendor's driver stack without modifying the user's container image.

[0096] This application provides a computing resource scheduling device, and Figure 3 is a schematic diagram of the device. As shown in Figure 3, the device includes: a first processing module 30, used to determine the load trend prediction result of a target node within a preset time period; a second processing module 32, used to determine the task execution progress of the model training task executed in the target node, and determine the minimum resource requirement of the model training task based on the task execution progress, wherein the minimum resource requirement is used to indicate the minimum computing resources required to maintain the model training task without interruption; a third processing module 34, used to generate a computing resource adjustment strategy based on the load trend prediction result and the minimum resource requirement, wherein the computing resource adjustment strategy is used to indicate the computing resource information corresponding to the model training task and the inference task executed in the target node respectively; and a fourth processing module 36, used to divide the computing resources of the graphics processor in the target node according to the computing resource adjustment strategy to obtain multiple virtual graphics processor instances, and schedule the virtual graphics processor instances according to the resource requirement information of the model training task and the inference task.

[0097] In some embodiments of this application, the step of the fourth processing module 36 dividing the computing resources of the graphics processor in the target node according to the computing resource adjustment strategy to obtain multiple virtual graphics processors includes: determining the target graphics processor in the target node according to the computing resource adjustment strategy, wherein the target graphics processor is the graphics processor determined to be divided; dividing the computing resources of the target graphics processor into multiple virtual graphics processor instances, wherein the virtual graphics processor instances obtained by dividing the same graphics processor have the same computing resources.

[0098] In some embodiments of this application, the step of the fourth processing module 36 scheduling virtual graphics processor instances based on resource requirement information for model training tasks and inference tasks includes: determining a first virtual graphics processor instance based on resource requirement information for model training tasks, wherein the first virtual graphics processor instance is a virtual graphics processor instance fixed for performing model training tasks; and determining a second virtual graphics processor instance from the remaining virtual graphics processor instances other than the first virtual graphics processor instance based on resource requirement information for inference tasks, wherein the second virtual graphics processor instance is used to perform inference tasks.

[0099] In some embodiments of this application, after the computing resources of the graphics processor in the target node are divided according to the computing resource adjustment strategy to obtain multiple virtual graphics processor instances, the computing resource scheduling device is further used to: set a cooling time for each virtual graphics processor instance, wherein the virtual graphics processor instance is scheduled only once within the cooling time.

[0100] In some embodiments of this application, after scheduling the virtual graphics processor instance based on the resource requirement information of the model training task and the inference task, the computing power resource scheduling device is further configured to: determine the task progress delay rate of the model training task; determine an idle node when the task progress delay rate is greater than a preset delay rate threshold, wherein the idle node is a node with a load rate lower than a preset load rate threshold; and migrate the virtual graphics processor instance corresponding to the model training task from the target node to the idle node.

[0101] In some embodiments of this application, the step of the computing power resource scheduling device in determining the task progress delay rate of the model training task includes: determining the actual number of training iterations of the model training task within a preset time period, and the expected number of training iterations of the model training task within the preset time period; if the actual number of training iterations is less than the expected number of training iterations, determining the iteration number difference obtained by subtracting the actual number of training iterations from the expected number of training iterations; and determining the ratio of the iteration number difference to the expected number of training iterations as the task progress delay rate.

[0102] In some embodiments of this application, after scheduling virtual graphics processor instances based on resource requirement information for model training and inference tasks, the computing power resource scheduling device is further configured to: determine the resource load status of each cluster, wherein the cluster includes multiple nodes; if the resource load rate of the cluster where the target node is located is greater than a first preset resource load rate threshold, determine an idle cluster and transfer the inference task of the target node to the idle cluster, wherein the idle cluster is a cluster with a resource load rate lower than a second preset resource load rate threshold, and the second preset resource load rate threshold is lower than the first preset resource load rate threshold.

[0103] It should be noted that each module in the above-mentioned computing power resource scheduling device can be a program module (for example, a set of program instructions to implement a certain function) or a hardware module. For the latter, it can be manifested in the following forms, but is not limited to them: each of the above modules is manifested as a processor, or the functions of each of the above modules are implemented by a processor.

[0104] The method embodiments provided in this application can be executed in a mobile terminal, computer terminal, or similar computing device. Figure 4 shows a hardware structure block diagram of an electronic device for implementing a computing resource scheduling method. As shown in Figure 4, the electronic device 40 may include one or more processors 402 (shown as 402a, 402b, ..., 402n in the figure) (processor 402 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 404 for storing data, and a transmission device 406 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that the structure shown in Figure 4 is only illustrative and does not limit the structure of the above-described electronic device. For example, the electronic device 40 may also include more or fewer components than shown in Figure 4, or have a different configuration than shown in Figure 4.

[0105] It should be noted that the aforementioned one or more processors 402 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element of the electronic device 40. As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).

[0106] The memory 404 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the computing resource scheduling method in this embodiment. The processor 402 executes various functional applications and data processing by running the software programs and modules stored in the memory 404, thereby realizing the aforementioned computing resource scheduling method. The memory 404 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 404 may further include memory remotely located relative to the processor 402, and these remote memories can be connected to the electronic device 40 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0107] The transmission device 406 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 40. In one example, the transmission device 406 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 406 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0108] The display can be, for example, a touchscreen liquid crystal display (LCD), which allows the user to interact with the user interface of the electronic device 40.

[0109] According to an embodiment of this application, a non-volatile storage medium is also provided, which stores a program. During program execution, the device containing the non-volatile storage medium executes the following computing resource scheduling method: determining the load trend prediction result of a target node within a preset time period; determining the task execution progress of a model training task executed in the target node, and determining the minimum resource requirement of the model training task based on the task execution progress, wherein the minimum resource requirement indicates the minimum computing resources required to maintain the model training task without interruption; generating a computing resource adjustment strategy based on the load trend prediction result and the minimum resource requirement, wherein the computing resource adjustment strategy indicates the computing resource information corresponding to each of the model training task and inference task executed in the target node; dividing the computing resources of the graphics processor in the target node according to the computing resource adjustment strategy to obtain multiple virtual graphics processor instances, and scheduling the virtual graphics processor instances according to the resource requirement information of the model training task and inference task.

[0110] According to an embodiment of this application, an electronic device is also provided, including a memory and a processor. The processor is used to run a program stored in the memory, wherein the program executes the following computing resource scheduling method: determining the load trend prediction result of a target node within a preset time period; determining the task execution progress of a model training task executed in the target node, and determining the minimum resource requirement of the model training task based on the task execution progress, wherein the minimum resource requirement is used to indicate the minimum computing resources required to maintain the model training task without interruption; generating a computing resource adjustment strategy based on the load trend prediction result and the minimum resource requirement, wherein the computing resource adjustment strategy is used to indicate the computing resource information corresponding to the model training task and the inference task executed in the target node respectively; dividing the computing resources of the graphics processor in the target node according to the computing resource adjustment strategy to obtain multiple virtual graphics processor instances, and scheduling the virtual graphics processor instances according to the resource requirement information of the model training task and the inference task.

[0111] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0112] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0113] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0114] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0115] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to related technologies, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0116] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for scheduling computing resources, comprising: Determine the load trend prediction results of the target node within a preset time period; Determine the task execution progress of the model training task executed in the target node, and determine the minimum resource requirement of the model training task based on the task execution progress, wherein the minimum resource requirement is used to indicate the minimum computing power resources required to keep the model training task uninterrupted; Based on the load trend prediction results and the minimum resource requirements, a computing power resource adjustment strategy is generated, wherein the computing power resource adjustment strategy is used to indicate the computing power resource information corresponding to the model training task and the inference task executed in the target node, respectively. The computing resources of the graphics processor in the target node are divided according to the computing resource adjustment strategy to obtain multiple virtual graphics processor instances, and the virtual graphics processor instances are scheduled according to the resource requirements of the model training task and the inference task.

2. The computing resource scheduling method according to claim 1, wherein dividing the computing resources of the graphics processors in the target node according to the computing resource adjustment strategy to obtain multiple virtual graphics processors includes: The target graphics processor in the target node is determined according to the computing power resource adjustment strategy, wherein the target graphics processor is the graphics processor determined to be segmented; The computing resources of the target graphics processor are divided into multiple virtual graphics processor instances, wherein the virtual graphics processor instances obtained by dividing the same graphics processor have the same computing resources.

3. The computing resource scheduling method according to claim 1, wherein scheduling the virtual graphics processor instance based on the resource requirement information of the model training task and the inference task includes: A first virtual graphics processor instance is determined based on the resource requirement information of the model training task, wherein the first virtual graphics processor instance is a virtual graphics processor instance fixed for executing the model training task; Based on the resource requirements of the inference task, a second virtual graphics processor instance is determined from the remaining virtual graphics processor instances other than the first virtual graphics processor instance, wherein the second virtual graphics processor instance is used to execute the inference task.

4. The computing resource scheduling method according to claim 1, wherein after dividing the computing resources of the graphics processor in the target node according to the computing resource adjustment strategy to obtain multiple virtual graphics processor instances, the method further includes: A cooldown period is set for each of the virtual graphics processor instances, wherein the virtual graphics processor instance is scheduled only once during the cooldown period.

5. The computing resource scheduling method according to claim 1, wherein after scheduling the virtual graphics processor instance based on the resource requirement information of the model training task and the inference task, the method further includes: Determine the task progress delay rate of the model training task; If the task progress delay rate is greater than a preset delay rate threshold, an idle node is identified, wherein the idle node is a node whose load rate is lower than a preset load rate threshold; The virtual graphics processor instance corresponding to the model training task is migrated from the target node to the idle node.

6. The computing resource scheduling method according to claim 5, wherein determining the task progress delay rate of the model training task includes: Determine the actual number of training iterations of the model training task within a preset time period, and the expected number of training iterations of the model training task within the preset time period; If the actual number of training iterations is less than the expected number of training iterations, determine the iteration number difference obtained by subtracting the actual number of training iterations from the expected number of training iterations. The ratio of the difference in the number of iterations to the expected number of training iterations is determined as the task progress delay rate.

7. The computing resource scheduling method according to claim 1, wherein after scheduling the virtual graphics processor instance based on the resource requirement information of the model training task and the inference task, the method further includes: Determine the resource load status of each cluster, wherein the cluster includes multiple nodes; If the resource load rate of the cluster where the target node is located is greater than a first preset resource load rate threshold, an idle cluster is determined, and the inference task of the target node is transferred to the idle cluster. The idle cluster is a cluster whose resource load rate is lower than a second preset resource load rate threshold, and the second preset resource load rate threshold is lower than the first preset resource load rate threshold.

8. A computing resource scheduling device, comprising: The first processing module is used to determine the load trend prediction result of the target node within a preset time period; The second processing module is used to determine the task execution progress of the model training task being executed in the target node, and to determine the minimum resource requirement of the model training task based on the task execution progress, wherein the minimum resource requirement is used to indicate the minimum computing power resources required to keep the model training task uninterrupted. The third processing module is used to generate a computing power resource adjustment strategy based on the load trend prediction results and the minimum resource requirements, wherein the computing power resource adjustment strategy is used to indicate the computing power resource information corresponding to the model training task and the inference task executed in the target node respectively. The fourth processing module is used to divide the computing resources of the graphics processor in the target node according to the computing resource adjustment strategy to obtain multiple virtual graphics processor instances, and to schedule the virtual graphics processor instances according to the resource requirement information of the model training task and the inference task.

9. A computing resource scheduling system, comprising a perception layer, an instance manager, and a migration engine, wherein, The perception layer is used to determine the load trend prediction result of the target node within a preset time period; The task execution progress of the model training task executed in the target node is determined, and the minimum resource requirement of the model training task is determined based on the task execution progress, wherein the minimum resource requirement is used to indicate the minimum computing power resources required to maintain the model training task without interruption; a computing power resource adjustment strategy is generated based on the load trend prediction result and the minimum resource requirement, wherein the computing power resource adjustment strategy is used to indicate the computing power resource information corresponding to the model training task and the inference task executed in the target node respectively; The instance manager is used to divide the computing resources of the graphics processor in the target node according to the computing resource adjustment strategy to obtain multiple virtual graphics processor instances, and to schedule the virtual graphics processor instances according to the resource requirement information of the model training task and the inference task. The migration engine is used to determine the resource load status of each cluster, wherein the cluster includes multiple nodes; when the resource load rate of the cluster where the target node is located is greater than a first preset resource load rate threshold, an idle cluster is determined, and the inference task of the target node is transferred to the idle cluster, wherein the idle cluster is a cluster with a resource load rate lower than a second preset resource load rate threshold, and the second preset resource load rate threshold is lower than the first preset resource load rate threshold.

10. A non-volatile storage medium storing a program, wherein, When the program is running, it controls the device containing the non-volatile storage medium to execute the computing resource scheduling method according to any one of claims 1 to 7.

11. An electronic device, comprising: A memory and a processor, the processor being configured to run a program stored in the memory, wherein the program, when running, executes the computing resource scheduling method according to any one of claims 1 to 7.

12. A computer program product comprising a computer program that, when executed by a processor, implements the computing resource scheduling method according to any one of claims 1 to 7.