A load-aware GPU resource dynamic allocation method and system

By generating task and resource graph layers on the task management platform and using an intelligent agent cluster to conduct internal competitive games to dynamically adjust GPU resource allocation, the problem of low resource utilization in existing technologies is solved, and efficient and stable task and resource matching is achieved.

CN120832243BActive Publication Date: 2025-12-09KAITAIMING BEIJING TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511325747.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-17
Publication Date
2025-12-09
Estimated Expiration
2045-09-17

AI Technical Summary

Technical Problem

Existing GPU resource allocation methods lack load awareness and cannot dynamically adapt to task changes, resulting in low resource utilization and unreasonable allocation. In particular, in containerized and multi-agent collaborative computing environments, it is difficult to achieve fine-grained matching of tasks and resources.

Method used

By generating task graph layers and resource graph layers on the task management platform, and using intelligent agent clusters to conduct internal competitive games, the allocation of GPU resources is dynamically adjusted. By combining the encoding of the payoff matrix and the policy space, task-oriented resource scheduling management is achieved.

Benefits of technology

It achieves precise GPU resource allocation based on real-time load, improving resource utilization and ensuring efficient and stable task execution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120832243B_ABST
    Figure CN120832243B_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on load perception's GPU resource dynamic allocation method and system, it is related to data processing technical field.The method includes: on task management platform, execute first task interpretation and mapping, generate first task atlas layer, execute multi-dimensional GPU resource state mapping, determine second resource atlas layer;First task atlas layer and second resource atlas layer are migrated to container orchestration module, migrate task intelligent agent to container orchestration module, execute task and resource allocation game, determine resource allocation strategy;Task-oriented resource allocation scheduling management is carried out to GPU resource.Solve the technical problem that GPU resource allocation lacks load perception in prior art, cannot dynamically adapt to task change, leading to low resource utilization and unreasonable allocation, achieve according to real-time load dynamic accurate allocation of GPU resource, improve resource utilization, realize the technical effect of reasonable and efficient task and resource matching.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application relates to the technical field of data processing, and particularly relates to a GPU resource dynamic allocation method and system based on load sensing. BACKGROUND

[0002] In current high-performance computing and large-scale data processing scenarios, GPUs have become the core resources for accelerating deep learning training, parallel computing and multi-thread task processing. However, the existing GPU resource allocation methods generally rely on static presetting or coarse-grained scheduling strategies, lack the ability to perceive real-time task loads, and cannot be flexibly adjusted according to task dynamics and resource states, which easily causes part of the GPU resources to be idle or overloaded, resulting in low overall resource utilization and difficulty in guaranteeing task execution efficiency and stability. Especially in the containerization and multi-agent collaborative computing environment, different tasks have different demands for GPU resources, and traditional methods are difficult to achieve fine matching of tasks and resources. SUMMARY

[0003] The application provides a GPU resource dynamic allocation method and system based on load sensing, which solves the technical problems of low resource utilization and unreasonable allocation caused by the lack of load sensing and the inability to dynamically adapt to task changes in the prior art.

[0004] In a first aspect, the application provides a GPU resource dynamic allocation method based on load sensing, which comprises:

[0005] On the task management platform, a multi-threaded task is executed, first task interpretation and mapping are performed, a first task atlas layer is generated, multi-dimensional GPU resource state mapping is performed, and a second resource atlas layer is determined, wherein the first task atlas layer and the second resource atlas layer are dynamically updated; according to the container orchestration port, the first task atlas layer and the second resource atlas layer are migrated to the container orchestration module, the task agent is migrated to the container orchestration module by performing an internal game of the agent cluster, and the allocation game of the task and the resource is performed to determine the resource allocation strategy, wherein each agent is identified by a unique code based on the profit matrix and the strategy space; according to the resource allocation strategy, the GPU resource is subjected to task-oriented resource allocation and scheduling management.

[0006] In a second aspect, the application provides a GPU resource dynamic allocation system based on load sensing, which comprises:

[0007] The atlas generation component: multi-thread tasks are uploaded on the task management platform, first task interpretation and mapping are performed, a first task atlas layer is generated, multi-dimensional GPU resource state mapping is performed, and a second resource atlas layer is determined, wherein the first task atlas layer and the second resource atlas layer are dynamically updated; the allocation game component: according to the container orchestration port, the first task atlas layer and the second resource atlas layer are migrated to the container orchestration module, the task agent is migrated to the container orchestration module through the internal competition game of the agent cluster, the allocation game of the task and the resource is performed, and the resource allocation strategy is determined, wherein each agent is identified with a unique code based on the payoff matrix and the strategy space; the scheduling management component: according to the resource allocation strategy, the GPU resources are scheduled and managed in the task-oriented resource allocation.

[0008] One or more technical solutions provided in the present application have at least the following technical effects or advantages:

[0009] First, multi-thread tasks are uploaded on the task management platform, first task interpretation and mapping are performed, a first task atlas layer is generated, multi-dimensional GPU resource state mapping is performed, and a second resource atlas layer is determined, wherein the first task atlas layer and the second resource atlas layer are dynamically updated. Then, according to the container orchestration port, the first task atlas layer and the second resource atlas layer are migrated to the container orchestration module, the task agent is migrated to the container orchestration module through the internal competition game of the agent cluster, the allocation game of the task and the resource is performed, and the resource allocation strategy is determined, wherein each agent is identified with a unique code based on the payoff matrix and the strategy space. Finally, according to the resource allocation strategy, the GPU resources are scheduled and managed in the task-oriented resource allocation. The technical problem of low resource utilization and unreasonable allocation caused by lack of load awareness and inability to dynamically adapt to task changes in the prior art is solved, and the technical effects of dynamically and accurately allocating GPU resources according to real-time load, improving resource utilization, and realizing reasonable and efficient task and resource matching are achieved. BRIEF DESCRIPTION OF DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.

[0011] Figure 1 A flowchart of a GPU resource dynamic allocation method based on load awareness provided by the embodiments of the present application is shown.

[0012] Figure 2 A system structure diagram of a GPU resource dynamic allocation system based on load awareness provided by the embodiments of the present application is shown.

[0013] Legend: map generation component 11, allocation game component 12, scheduling management component 13. DETAILED DESCRIPTION

[0014] The present application provides a load-aware GPU resource dynamic allocation method and system, which solves the technical problems of low resource utilization and unreasonable allocation caused by the lack of load awareness and the inability to dynamically adapt to task changes in the prior art.

[0015] The technical solutions in the embodiments of the present application will be described clearly and completely in combination with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application.

[0016] It should be noted that the terms "comprise" and "have" are intended to cover non-exclusive inclusion, for example, a process, method, system, product or server comprising a series of steps or units does not have to be limited to those clearly listed steps or units, but can include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices.

[0017] Embodiment one, as shown in the present application provides a load-aware GPU resource dynamic allocation method, wherein the method comprises: Figure 1

[0018] On the task management platform, multi-threaded tasks are executed, first task interpretation and mapping are performed, a first task map layer is generated, multi-dimensional GPU resource state mapping is performed, and a second resource map layer is determined, wherein the first task map layer and the second resource map layer are dynamically updated.

[0019] ​After uploading the multi-threaded task on the task management platform, the multi-threaded task is interpreted one by one, wherein the interpretation process includes semantic perception processing of each thread task to identify the task type, performing differential relaxation operation to determine the task size, and obtaining the required video memory requirement and task priority of the task through parameter extraction, thereby generating a task information unit; on the basis of the parsed task information unit, corresponding task sub-graphs are sequentially constructed, and multiple task sub-graphs are fused to form a task global graph by sub-graph splicing and dependency relationship mapping operation, a first task graph layer is established, and the first task graph layer is one-to-one mapped with the multi-threaded task to ensure that each thread task has a unique structured representation in the graph; at the same time, the GPU resource monitoring module collects real-time data of GPU runtime, including video memory occupation state, computing core utilization rate, multi-instance GPU (MIG) division situation and energy consumption data, to generate a GPU resource element set; based on the resource element set, resource sub-graphs are constructed for the GPU resources, and resource global graphs are formed by sub-graph splicing, state normalization processing and architecture reconstruction operation to establish a second resource graph layer; during the whole task execution process, the system monitors the task progress and the GPU resource state changes in real time, and performs dynamic updating operation on the first task graph layer and the second resource graph layer respectively to ensure consistency and real-time performance of the task graph and the resource graph.

[0020] Further, with the uploading of the multi-threaded task, the task is pre-inspected with malicious feature detection, and if it is determined to be a malicious task, the malicious task thread is isolated and marked.

[0021] When the task management platform receives the multi-threaded task, the system calls the built-in malicious feature detection module to pre-inspect the uploaded task, specifically, the instruction set, call chain, GPU resource request mode and data interaction behavior of each thread task are parsed and feature extracted to form a task feature vector; the task feature vector is compared with the preset malicious feature library for similarity, and a malicious task determination result is generated combined with the threshold determination rule; when the determination result is a malicious task, the system immediately isolates the thread task from the multi-threaded task set to form an independent task isolation area, and configures unique identification information for the malicious task thread for marking to prevent it from continuing to enter the subsequent task interpretation, task mapping and resource scheduling links; at the same time, the system returns the marking result of the malicious task to the task management platform for security audit and update of subsequent defense strategies, thereby ensuring the safety and reliability of the GPU resource dynamic allocation process.

[0022] Further, the first task interpretation and mapping are performed to generate a first task graph layer, including:

[0023] Identify the first thread task, perform task semantic perception and differential relaxation processing, and determine task information; according to the task information, determine a task graph by interpreting task elements, wherein the task elements at least include task type, task size, memory requirement and priority; traverse the multi-threaded task, and perform task interpretation and mapping in parallel until N task graphs are determined; splice the one task graph to the N task graphs to form the first task graph layer, and establish the mapping between the first task graph layer and the multi-threaded task.

[0024] In the execution of the first task interpretation and mapping, firstly, the uploaded first thread task is identified in the task management platform, the thread task is subjected to semantic perception processing, its task instruction set and context information are analyzed, so as to determine the logical semantics and execution intention of the task; based on the semantic analysis result, differential relaxation processing is performed to extract the key parameters of the thread task under the condition of multi-threaded concurrency, and the task information including task type, task size, memory requirement and task priority is obtained. Based on the task information, the task element interpretation module is called, the dependency relationship and execution constraint relationship between different elements are mapped to a task graph, so as to realize the structured expression of the thread task. With the continuous traversal of the multi-threaded task, the system performs the above semantic perception, differential relaxation, element interpretation and graph generation steps on each thread task to generate N task graphs in parallel; after generating multiple task graphs, the system performs graph splicing and normalized mapping processing, fuses one to N task graphs, forms the first task graph layer representing the overall task topology structure, and establishes a unique mapping relationship for each thread task in the first task graph layer, so as to ensure that the subsequent GPU resource allocation and scheduling can be accurately matched and regulated according to the task characteristics.

[0025] Further, multi-dimensional GPU resource state mapping is performed to determine the second resource graph layer, including:

[0026] Determine the GPU resource elements, wherein the resource elements at least include memory state, computing core, MIG division and energy consumption data; call the real-time state of the GPU resource, perform resource architecture reconstruction based on the GPU resource elements, determine the second resource graph layer, and establish the mapping between the second resource graph layer and the GPU resource.

[0027] In the execution of the multi-dimensional GPU resource state mapping to determine the second resource atlas layer, first, the target GPU node is analyzed for resource elements, and the resource elements at least include memory state, computing core utilization, multi-instance GPU (MIG) division information, and energy consumption data and other key indicators; after obtaining the resource elements, the GPU running state data is real-time retrieved through the resource monitoring module to form a resource state vector set containing memory occupancy, core parallelism, MIG instance allocation, and power consumption curve; the resource modeling module is called to perform architecture reconstruction processing on the resource state vector set, including normalization, vectorization, and topological operation on resource elements of different dimensions, and the dependency relationship and constraint conditions between elements are established through relationship mapping, so as to generate a resource subgraph that can represent the overall running state of the GPU; on this basis, multiple resource subgraphs are spliced and expanded to form a complete second resource atlas layer, and a one-to-one mapping relationship between the second resource atlas layer and the actual GPU hardware node is established to ensure that the resource atlas can accurately reflect the real-time running state of the GPU resources.

[0028] According to the container orchestration port, the first task atlas layer and the second resource atlas layer are migrated to the container orchestration module, the agent cluster is subjected to an internal competition game, the task agent is migrated to the container orchestration module, the task and resource allocation game is executed, and the resource allocation strategy is determined, wherein each agent is identified with a unique code based on the payoff matrix and the strategy space.

[0029] According to the container orchestration port, the system migrates the first task atlas layer and the second resource atlas layer to the container orchestration module, and realizes dynamic loading and synchronous updating of atlas data through a container scheduling interface during the migration process, so as to ensure consistency of the task side and the resource side models under the container environment.

[0030] The system calls the constructed agent cluster in the container orchestration module, introduces an internal competition game mechanism for the matching problem of tasks and resources, that is, multiple agents compete for the matching of task graph and resource graph based on their own strategies without relying on external intervention; wherein each agent makes autonomous decisions based on its built-in payoff matrix and strategy space, the payoff matrix is used to quantify the benefits of task completion, resource occupancy and energy consumption, and the strategy space is used to define the allocation strategies that the agent can take in different benefit situations; the system encodes and converts the payoff matrix and strategy space to configure a unique code identifier for each agent to ensure its uniqueness and traceability in the game process. After completing the internal competition game between agents, the system migrates the task agent to the task allocation channel in the container orchestration module to perform the allocation game of tasks and resources, and finally converges to the optimal resource allocation strategy under global constraints, which is issued to the task management platform and GPU resource pool as a scheduling basis to realize task-oriented dynamic allocation and scheduling control of GPU resources.

[0031] Further, before the internal competition game of the agent cluster, the construction of the agent cluster includes:

[0032] With resource allocation orientation, the allocation logic is mined, wherein the allocation logic and the resource allocation orientation are one-to-one corresponding; according to the allocation logic, the agent cluster is constructed by performing lightweight supervised training, wherein the agent cluster is built-in in the task management platform and is migrated and scheduled based on the container scheduling port.

[0033] Specifically, taking resource allocation orientation as the core target, the historical task and GPU resource scheduling data are mined for features, the matching relationship between different task types and resource elements is analyzed, and the quantifiable allocation logic is extracted, wherein the allocation logic and the resource allocation orientation maintain a one-to-one correspondence relationship, which is used to describe the optimal task and resource allocation mode under different load conditions; based on the allocation logic, lightweight supervised training is performed, and during the training process, a training set is constructed using labeled samples, and the strategy selection model of the agent is continuously optimized through iterative learning, thereby obtaining multiple agents with autonomous learning and game ability, and combining them to form an agent cluster. The agent cluster is built-in in the task management platform, encapsulated in a modular way, and migrated and scheduled across modules through the container scheduling port, so that the agent can be flexibly called and deployed in different container orchestration scenarios, thereby supporting the subsequent internal competition game and resource allocation strategy generation.

[0034] Further, the construction of the container orchestration module includes:

[0035] For the agent cluster, define the payoff matrix and strategy space of the agent, and perform encoding conversion to determine the encoding cluster, wherein each agent corresponds to a unique code; based on the internal competition game of the encoding cluster as the first-order training target, and based on the task resource interaction game allocation of the agent as the second-order training target, the container orchestration module is dynamically trained to convergence.

[0036] Specifically, for the agent cluster, define the payoff matrix and strategy space for each agent, wherein the payoff matrix is used to quantify the agent's performance in multiple dimensions such as task execution efficiency, GPU resource utilization, and energy consumption control, and the strategy space is used to limit the agent's action set in different income situations; after setting the payoff matrix and strategy space, the system encodes and converts the strategy parameters of the agent to generate a set of encoding clusters, and ensures that each agent has a unique corresponding code identifier to ensure that it can be accurately identified and tracked in the subsequent game process. Subsequently, the internal competition game based on the encoding cluster is taken as the first-order training target, and the competitive resource allocation process of multiple agents in the container orchestration module is simulated to optimize the collaborative decision-making ability between agents; further, the task resource interaction game allocation based on the agent is taken as the second-order training target, and the dynamic interaction process of real tasks and resources is simulated to continuously correct the adaptability and stability of the agent strategy. Through the step-by-step optimization of the first-order and second-order training targets, the container orchestration module gradually converges in the dynamic iteration process, and finally forms a stable model with adaptive scheduling capability of the task graph layer and the resource graph layer, providing reliable support for subsequent GPU resource allocation and task scheduling.

[0037] Further, the first task graph layer and the second resource graph layer are migrated to the container orchestration module, and the agent cluster is subjected to internal competition game, including:

[0038] Through the container orchestration port, the first task graph layer and the second resource graph layer are migrated to the container orchestration module of the task management platform; through the container orchestration port, the first-order game allocation of the agent arrangement is used to determine the task agent code and perform agent migration, wherein the game between agents is used as the arrangement method; the mapping relationship between the task agent code, the first task graph layer and the second task graph layer is established to determine the allocation system.

[0039] Before migrating the first task graph layer and the second resource graph layer to the container orchestration module and performing the internal competition game of the agent cluster, first, through the container orchestration port, the first task graph layer and the second resource graph layer generated in the task management platform are synchronously loaded to the container orchestration module, and the real-time updating and consistency of the graph data are maintained during the migration process. Subsequently, based on the container orchestration port, the agent orchestration process is started, the constructed agent cluster is called, the first-order game allocation is taken as the orchestration target, the competitive matching operation between agents is performed, so as to determine the task agent code corresponding to the task, and the task agent with a unique code is migrated to the container orchestration module. After completing the agent migration, the mapping association between the task agent code, the first task graph layer and the second resource graph layer is further established, the corresponding relationship among the task, the resource and the agent is formed, and a complete allocation system is constructed.

[0040] Further, after determining the allocation system, the allocation game of the task and the resource is performed, including:

[0041] For the allocation system, the container orchestration module performs the second-order allocation game of the resource and the task under the system layer mapping according to the agent, determines the resource allocation strategy, and performs the task-oriented scheduling and control of the GPU resource through the resource allocation scheduling of the task unit or the GPU node unit.

[0042] Specifically, the container orchestration module takes the allocation system as the constraint condition, calls the agent cluster, and performs the second-order allocation game under the system layer mapping according to the mapping relationship between the task agent code and the first task graph layer and the second resource graph layer. The second-order allocation game gradually converges and generates a globally optimal resource allocation strategy by simulating the dynamic competition of the task for the multi-dimensional resources such as GPU memory, computing core and energy consumption, and combining the profit matrix and strategy space of each agent. After obtaining the resource allocation strategy, the strategy is further decomposed and allocated: when taking the task unit as the scheduling object, the system performs resource allocation according to the memory demand and execution priority of the single task; when taking the GPU node unit as the scheduling object, the system performs allocation adjustment according to the available resource state and task mapping of the single GPU node. Finally, the system issues the decomposed allocation result to the GPU resource pool, implements task-oriented resource scheduling and control, so as to ensure that the GPU resource can realize efficient, reasonable and dynamic allocation in a multi-task scenario.

[0043] According to the resource allocation strategy, the GPU resource is managed in a task-oriented resource allocation scheduling.

[0044] Specifically, the resource allocation strategy output by the container orchestration module is issued to the scheduling unit of the task management platform, the task allocation information in the resource allocation strategy and the GPU node resource state are analyzed, and corresponding scheduling instructions are generated; then, according to the scheduling instructions, the target task is allocated to the matched GPU node, and according to the memory requirement of the task, the core occupancy rate, the MIG division mode and the energy consumption constraint condition, the allocation proportion and the use priority of the GPU resource are dynamically adjusted; during the task running process, the system continuously monitors the state change of the GPU node, and according to the real-time load condition, the resource allocation strategy is secondarily corrected and scheduling optimized, so as to ensure the continuity and rationality of resource utilization in the task execution process; finally, the task demand oriented dynamic allocation and unified control of GPU resources are realized, so as to ensure the task completion efficiency, improve the overall GPU resource utilization and the stability of the computing environment.

[0045] Further, the real-time state of the GPU resource is used to determine the GPU node failure; if the first GPU node is determined as a failure node, it is marked as a checkpoint and the internal task migration of the first GPU node is performed.

[0046] During the task execution process, the real-time state of the GPU resource is continuously monitored and determined to realize the GPU node failure detection. Specifically, the resource monitoring module collects the memory occupancy rate, the computing core running frequency, the energy consumption data and the response time delay and other running indexes of each GPU node, and compares them with the preset health threshold range, when it is detected that the running index of a certain GPU node continuously exceeds the threshold or appears an unrecoverable abnormal state, the GPU node is determined as a failure node. If the first GPU node is determined as a failure node, the system immediately marks the node as a checkpoint, and triggers the internal task migration mechanism in the task management platform to migrate the task running on the GPU node to other available nodes in the same GPU resource pool, and the mapping update of the task graph layer and the resource graph layer is maintained during the migration process, so as to ensure the continuity of the task execution and the integrity of the data processing.

[0047] In summary, the embodiments of the present application have at least the following technical effects:

[0048] Firstly, a multi-thread task is uploaded on a task management platform, first task interpretation and mapping are performed, a first task atlas layer is generated, multi-dimensional GPU resource state mapping is performed, and a second resource atlas layer is determined, wherein the first task atlas layer and the second resource atlas layer are dynamically updated. Then, according to a container orchestration port, the first task atlas layer and the second resource atlas layer are migrated to a container orchestration module, through internal competition game of the agent cluster, the task agent is migrated to the container orchestration module, the allocation game of the task and the resource is performed, and the resource allocation strategy is determined, wherein each agent has a unique code based on the payoff matrix and the strategy space. Finally, according to the resource allocation strategy, the GPU resource is managed by task-oriented resource allocation scheduling. The technical problems that the GPU resource allocation in the prior art lacks load awareness, cannot dynamically adapt to task changes, leads to low resource utilization and unreasonable allocation are solved, and the technical effects that the GPU resource is dynamically and accurately allocated according to real-time load, the resource utilization is improved, and reasonable and efficient task and resource matching is achieved are achieved.

[0049] In the embodiment two, based on the same inventive concept as the GPU resource dynamic allocation method based on load awareness in the foregoing embodiments, as shown in the embodiment two, Figure 2 The application provides a GPU resource dynamic allocation system based on load awareness, wherein the system comprises:

[0050] The atlas generation component 11: a multi-thread task is uploaded on a task management platform, first task interpretation and mapping are performed, a first task atlas layer is generated, multi-dimensional GPU resource state mapping is performed, and a second resource atlas layer is determined, wherein the first task atlas layer and the second resource atlas layer are dynamically updated; the allocation game component 12: according to a container orchestration port, the first task atlas layer and the second resource atlas layer are migrated to a container orchestration module, through internal competition game of the agent cluster, the task agent is migrated to the container orchestration module, the allocation game of the task and the resource is performed, and the resource allocation strategy is determined, wherein each agent has a unique code based on the payoff matrix and the strategy space; the scheduling management component 13: according to the resource allocation strategy, the GPU resource is managed by task-oriented resource allocation scheduling.

[0051] Further, the atlas generation component 11 is used to perform the following method:

[0052] Identify the first thread task, perform task semantic perception and differential relaxation processing, and determine task information; according to the task information, determine a task graph by interpreting task elements, wherein the task elements at least include task type, task size, video memory requirement and priority; traverse the multi-threaded task, and perform task interpretation and mapping in parallel until N task graphs are determined; splice the one task graph to the N task graphs to form the first task graph layer, and establish the mapping between the first task graph layer and the multi-threaded task.

[0053] Further, the graph generation component 11 is used to execute the following method:

[0054] Determine the GPU resource elements, wherein the resource elements at least include memory state, computing core, MIG division and energy consumption data; call the real-time state of the GPU resource, perform resource architecture reconstruction based on the GPU resource elements, determine the second resource graph layer, and establish the mapping between the second resource graph layer and the GPU resource.

[0055] Further, the allocation game component 12 is used to execute the following method:

[0056] With resource allocation guidance, the allocation logic is mined, wherein the allocation logic and the resource allocation guidance correspond one by one; according to the allocation logic, an agent cluster is constructed by performing lightweight supervision training, wherein the agent cluster is built-in in the task management platform and the agent migration scheduling is performed based on the container scheduling port.

[0057] Further, the allocation game component 12 is used to execute the following method:

[0058] For the agent cluster, define the payoff matrix and strategy space of the agent, determine the encoding cluster by encoding conversion, wherein each agent corresponds to a unique code; take the internal competition game based on the encoding cluster as the first-order training target, and take the task resource interaction game allocation based on the agent as the second-order training target, and dynamically train the container arrangement module until convergence.

[0059] Further, the allocation game component 12 is used to execute the following method:

[0060] Through the container arrangement port, the first task graph layer and the second resource graph layer are migrated to the container arrangement module of the task management platform; through the container arrangement port, the task agent code is determined and the agent migration is performed by the first-order game allocation of the agent arrangement, wherein the game between agents is used as the arrangement method; the mapping association between the task agent code, the first task graph layer and the second task graph layer is established, and the allocation system is determined.

[0061] Further, the allocation game component 12 is used to execute the following method:

[0062] For the allocation system, the container orchestration module executes a second-order allocation game of resources and tasks under the system layer mapping according to the agent, determines a resource allocation strategy, and performs task-oriented scheduling and control of GPU resources through resource allocation scheduling of a task unit or a GPU node unit to decompose and plan the resource allocation strategy.

[0063] Further, the graph generation component 11 is configured to execute the following method:

[0064] With uploading of the multi-threaded task, task pre-inspection is performed in a malicious feature inspection mode, and if the task is determined to be malicious, the malicious task thread is isolated and marked.

[0065] Further, the scheduling management component 13 is configured to execute the following method:

[0066] GPU node fault determination is performed according to the real-time state of the GPU resource, and if the first GPU node is determined to be a fault node, the first GPU node is marked as a checkpoint and internal task migration is performed on the first GPU node.

[0067] It should be noted that the above-mentioned sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. The above describes a specific embodiment of the present application. The processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multi-task processing and parallel processing are also possible or can be advantageous.

[0068] The above only describes the preferred embodiments of the present application and does not limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0069] The present specification and drawings are merely exemplary descriptions of the present application, and are considered to cover any and all modifications, changes, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art can make various modifications and changes to the present application without departing from the scope of the present application. Thus, if these modifications and changes of the present application belong to the scope of the present application and its equivalents, the present application intends to include these modifications and changes.

Claims

1. A load-aware dynamic allocation method for GPU resources, characterized in that, The method includes: Upload multi-threaded tasks to the task management platform, execute the first task interpretation and mapping, generate the first task map layer, execute multi-dimensional GPU resource status mapping, and determine the second resource map layer. The first task map layer and the second resource map layer are dynamically updated. According to the container orchestration port, the first task graph layer and the second resource graph layer are migrated to the container orchestration module. By conducting an internal competitive game on the agent cluster, the task agents are migrated to the container orchestration module, and the allocation game of tasks and resources is executed to determine the resource allocation strategy. Each agent is identified by a unique code based on the payoff matrix and the strategy space. Based on the resource allocation strategy, task-oriented resource allocation, scheduling, and management are performed on GPU resources; Before engaging in internal competitive games with the agent swarm, the construction of the agent swarm includes: With a focus on resource allocation, we explore the allocation logic, where the allocation logic corresponds one-to-one with the resource allocation orientation. According to the allocation logic, a cluster of intelligent agents is constructed through lightweight supervised training. The cluster of intelligent agents is built into the task management platform and the migration and scheduling of intelligent agents are based on the container scheduling port. The construction of the container orchestration module includes: For the aforementioned agent cluster, a payoff matrix and policy space for the agents are defined, and an encoding transformation is performed to determine the encoding cluster, wherein each agent corresponds to a unique encoding. The container orchestration module is dynamically trained until convergence, with intra-competitive game based on coding clusters as the first-order training objective and task resource interaction game allocation based on agents as the second-order training objective. The step of migrating the first task graph layer and the second resource graph layer to the container orchestration module, through internal competitive game among the agent clusters, to migrate task agents to the container orchestration module includes: Migrate the first task graph layer and the second resource graph layer to the container orchestration module of the task management platform through the container orchestration port; Through the container orchestration port, the task agent code is determined and the agent migration is performed by first-order game allocation of agent orchestration. The orchestration method is based on inter-agent game. Establish the mapping relationship between the task agent encoding, the first task graph layer, and the second task graph layer, and determine the allocation system; After the allocation system is determined, the game of allocating tasks and resources includes: For the aforementioned allocation system, the container orchestration module, based on the intelligent agent, performs a second-order allocation game of resources and tasks under the system layer mapping to determine the resource allocation strategy; The resource allocation strategy is decomposed and decentralized based on the resource allocation and scheduling of individual tasks or GPU nodes, and task-oriented scheduling and management of GPU resources are executed.

2. The load-aware dynamic allocation method for GPU resources as described in claim 1, characterized in that, Perform the first task of interpretation and mapping, generating the first task map layer, including: Identify the first thread task, perform task semantic awareness and differential relaxation processing, and determine task information; Based on the task information, a task map is determined by interpreting the task elements, wherein the task elements include at least the task type, task size, memory requirements and priority. Traverse the multi-threaded tasks and execute task interpretation and graph construction in parallel until N task graphs are determined. The task graphs of one task up to N task graphs are spliced ​​together to form the first task graph layer, and a mapping between the first task graph layer and the multi-threaded task is established.

3. The load-aware dynamic allocation method for GPU resources as described in claim 1, characterized in that, Perform multi-dimensional GPU resource state mapping to determine the second resource map layer, including: Determine the GPU resource elements, which include at least the memory status, computing cores, MIG partitioning, and power consumption data; Retrieve the real-time status of GPU resources, perform resource architecture reconstruction based on GPU resource elements, determine the second resource graph layer, and establish a mapping between the second resource graph layer and GPU resources.

4. The load-aware dynamic allocation method for GPU resources as described in claim 1, characterized in that, As the multi-threaded task is uploaded, a pre-screening of the task is performed using malicious feature detection. If the task is determined to be malicious, the malicious task thread is isolated and marked.

5. The load-aware dynamic allocation method for GPU resources as described in claim 1, characterized in that, GPU node faults are determined based on the real-time status of GPU resources. If the first GPU node is determined to be a faulty node, it is marked as a checkpoint and internal task migration is performed on the first GPU node.

6. A load-aware dynamic GPU resource allocation system, characterized in that, The system is used to implement the load-aware dynamic GPU resource allocation method according to any one of claims 1-5, the system comprising: Map generation component: Upload multi-threaded tasks to the task management platform, execute the first task interpretation and mapping, generate the first task map layer, execute multi-dimensional GPU resource status mapping, and determine the second resource map layer. The first task map layer and the second resource map layer are dynamically updated. Allocation Game Component: Based on the container orchestration port, the first task graph layer and the second resource graph layer are migrated to the container orchestration module. By conducting an internal competitive game on the agent cluster, the task agents are migrated to the container orchestration module, and the allocation game of tasks and resources is executed to determine the resource allocation strategy. Each agent is identified by a unique code based on the payoff matrix and the strategy space. Scheduling management component: Performs task-oriented resource allocation and scheduling management for GPU resources according to the resource allocation strategy.

Citation Information

Patent Citations

  • Storage, calculation and training AI server load fluctuation self-balancing method based on recursive game network

    CN119512763A

  • GPU heterogeneous computing resource allocation method and system based on task scheduling

    CN120162141A