A digital human operation method and system, a computer device, and a storage medium

By constructing a unified feature vector and a hierarchical scheduling mechanism, the compatibility and resource scheduling issues between different GPU architectures are resolved, achieving non-intrusive cross-architecture adaptation, improving hardware compatibility and operational stability, and reducing system migration costs.

CN123157458APending Publication Date: 2026-11-24JIANGXI SCI & TECH NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611655034.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies suffer from insufficient compatibility, rigid resource scheduling, and insufficient operational stability when migrating between different GPU architectures, resulting in low memory utilization, unreasonable allocation of computing resources, and large fluctuations in frame rate, making it difficult to fully utilize the performance of next-generation GPU hardware.

Method used

By constructing a unified feature vector for GPU architecture identification, and adopting a hierarchical scheduling mechanism and instruction mapping rules, resource allocation strategies are dynamically adjusted to achieve non-intrusive cross-architecture adaptation, reducing system migration costs and maintenance complexity.

Benefits of technology

It enables non-intrusive operation across different GPU architectures, improves hardware compatibility and resource scheduling accuracy, reduces system migration costs and maintenance complexity, and ensures operational stability and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157458A_ABST
    Figure CN123157458A_ABST
Patent Text Reader

Abstract

This invention relates to the field of digital human operation technology, and discloses a method, system, computer device, and storage medium for digital human operation. The invention acquires target GPU parameters and constructs a unified feature vector, performs GPU architecture identification to obtain an architecture identifier; periodically collects GPU operating status data to construct a resource status vector, generating pressure weight parameters and cache efficiency parameters respectively; based on the architecture identifier, feature vector, pressure weight parameters, and cache efficiency parameters, a resource scheduling strategy is generated through a hierarchical scheduling mechanism and mapped to underlying execution parameters, achieving cross-architecture execution adaptation based on instruction mapping rules; based on the resource status changes within a continuous period, it determines whether the strategy update conditions are met, and when preset conditions are met, the scheduling strategy is regenerated and the underlying execution parameters are updated. This invention achieves non-intrusive adaptive operation of virtual digital humans across different GPU architectures, improving hardware compatibility, resource scheduling accuracy, and long-term operational stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of digital human operation technology, specifically to a digital human operation method, system, computer equipment, and storage medium. Background Technology

[0002] With the widespread application of AI virtual digital humans in scenarios such as digital live streaming, digital exhibition halls, intelligent customer service, and metaverse interaction, their real-time rendering, motion-driven, and speech reasoning tasks increasingly rely on the high-performance parallel computing capabilities provided by GPUs (Graphics Processing Units). As GPU hardware continues to upgrade, different generations of GPUs differ in computing architecture, memory organization, caching mechanisms, and computing resource scheduling methods. This makes it easy for virtual digital human systems developed for a particular GPU architecture to experience compatibility issues when migrating to newer GPU architectures.

[0003] Existing technologies typically employ methods such as modifying the rendering engine, re-adapting the inference module, or recompiling the GPU executor to achieve cross-architecture migration. These solutions not only have high development costs but also require modifications to the existing digital human system code, leading to complex system maintenance and long adaptation cycles. Furthermore, the lack of dynamic scheduling mechanisms for memory and computing resources across different GPU architectures easily results in low memory utilization, unreasonable allocation of computing resources, and large fluctuations in frame rates, making it difficult to fully utilize the performance of next-generation GPU hardware.

[0004] Therefore, there is an urgent need for a digital human operation method that can achieve non-intrusive operation across different GPU architectures and dynamically adjust resource allocation strategies based on GPU resource status. Summary of the Invention

[0005] In view of this, the present invention provides a method, system, computer device and storage medium for operating a digital human, in order to solve the technical problems of poor compatibility, rigid resource scheduling and insufficient operational stability of virtual digital human systems across different GPU architectures.

[0006] In a first aspect, the present invention provides a method for operating a digital human, comprising:

[0007] Obtain the parameters of the target GPU and construct a unified feature vector based on the parameters;

[0008] GPU architecture identification is performed based on feature vectors to obtain GPU architecture identifiers;

[0009] Periodically collect GPU runtime status data and construct resource status vectors based on the runtime status data;

[0010] The resource state vector is divided into pressure-type indicators and efficiency-type indicators;

[0011] For pressure-type indicators, a normalized calculation path is used to generate pressure weight parameters;

[0012] For efficiency indicators, a mapping calculation path based on a preset benchmark value is used to generate cache efficiency parameters;

[0013] A scheduling mapping relationship is constructed based on GPU architecture identifier, feature vector, pressure weight parameter and cache efficiency parameter, and a resource scheduling strategy is generated through a hierarchical scheduling mechanism.

[0014] The resource scheduling strategy is mapped to the underlying execution parameters corresponding to the target GPU architecture, and cross-architecture execution adaptation is achieved based on instruction mapping rules;

[0015] During operation, the system continuously collects real-time resource status and determines whether the policy update conditions are met based on the changes in resource status within a continuous period. When the preset conditions are met, the resource scheduling policy is regenerated and the underlying execution parameters are updated.

[0016] For stress-related indicators, a normalized calculation path is used to generate stress weight parameters, including:

[0017] The stress-related metrics are divided into computing utilization and video memory usage.

[0018] The sum of computational utilization and video memory usage is used as the normalization benchmark to normalize the computational utilization and video memory usage; the specific formula is as follows:

[0019]

[0020] in, To preset a very small positive number, , These respectively represent the relative pressure levels on current GPU computing resources and video memory resources.

[0021] The computational resource pressure weight and the memory resource pressure weight are generated based on the normalized calculation results, and the two are made to satisfy the normalization constraint relationship.

[0022] The normalization constraint is that the sum of the two is equal to 1.

[0023] For efficiency metrics, cache efficiency parameters are generated using a mapping calculation path based on a preset benchmark value, including:

[0024] Use cache hit rate, an efficiency metric, as an independent evaluation indicator;

[0025] The cache hit rate is calculated using a ratio mapping based on a preset cache baseline value. The specific calculation formula is as follows:

[0026]

[0027] In the formula, Set a baseline value for cache hit rate. Generate cache efficiency parameters to characterize the degree of deviation of cache access efficiency from the baseline state.

[0028] Resource scheduling strategies are generated through a hierarchical scheduling mechanism, including:

[0029] Based on the GPU architecture identifier, match the corresponding static resource scheduling template to generate a basic scheduling policy;

[0030] The basic scheduling policy is incrementally modified based on the pressure weight parameter and the cache efficiency parameter to generate the target resource scheduling policy. The complete calculation formula is as follows:

[0031]

[0032] in, , , This is a preset correction factor. This is the amount of computing power adjustment. This is the amount of video memory adjustment. Adjust the amount for the caching strategy.

[0033] The static resource scheduling template is pre-configured according to different GPU architectures.

[0034] Cross-architecture execution adaptation is achieved based on instruction mapping rules, including:

[0035] Match the preset instruction mapping rule table according to the GPU architecture identifier;

[0036] The source architecture instructions are converted into target architecture compatible instructions by opcode substitution rules, semantic equivalence mapping rules, and parameter format adaptation rules.

[0037] The converted instructions are then output to the target GPU execution environment.

[0038] Determining whether the policy update conditions are met based on the changes in resource status over a continuous period includes:

[0039] Calculate the resource status difference between the current sampling period and the previous sampling period;

[0040] The state change is obtained by comprehensively quantifying the differences;

[0041] When the state change amount in multiple consecutive sampling periods is greater than the preset threshold, the policy update mechanism is triggered.

[0042] Secondly, the present invention provides a digital human operating system, comprising:

[0043] The architecture-aware module is used to acquire the parameters of the target GPU and construct a unified feature vector, and to perform GPU architecture recognition based on the feature vector to obtain the GPU architecture identifier.

[0044] The resource quantization module is used to periodically collect GPU running status data and construct resource status vectors. The resource status vectors are divided into stress indicators and efficiency indicators. For stress indicators, a normalized calculation path is used to generate stress weight parameters, and for efficiency indicators, a mapping calculation path based on a preset benchmark value is used to generate cache efficiency parameters.

[0045] The scheduling decision module is used to construct scheduling mapping relationships based on GPU architecture identifiers, feature vectors, pressure weight parameters, and cache efficiency parameters, and to generate resource scheduling strategies through a hierarchical scheduling mechanism.

[0046] The execution adaptation module is used to map resource scheduling policies to the underlying execution parameters corresponding to the target GPU architecture, and to achieve cross-architecture execution adaptation based on instruction mapping rules.

[0047] The closed-loop feedback module is used to continuously collect real-time resource status during operation and determine whether the policy update conditions are met based on the changes in resource status within a continuous period. When the preset conditions are met, the scheduling decision module is triggered to regenerate the resource scheduling policy and the execution adaptation module is triggered to update the underlying execution parameters.

[0048] Thirdly, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the method described in the first aspect or any corresponding embodiment thereof.

[0049] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the method described in the first aspect or any corresponding embodiment thereof.

[0050] Fifthly, the present invention provides a computer program product, including computer instructions for causing a computer to perform the method described in the first aspect or any corresponding embodiment thereof.

[0051] Beneficial effects: This invention, by constructing a unified hardware feature vector and performing architecture recognition, can automatically determine the current GPU architecture type and match the corresponding resource configuration template, eliminating the need to develop separate adaptation versions for different GPU architectures, reducing cross-platform deployment costs, and improving hardware compatibility. It employs differentiated calculation paths for stress-type and efficiency-type indicators in the resource state vector, avoiding weight distortion caused by mixing indicators with inconsistent directions, thus improving the accuracy of resource bottleneck identification. A hierarchical scheduling mechanism is adopted, first matching static resource templates based on GPU architecture identifiers to ensure cold start stability, and then incrementally correcting the basic strategy based on real-time stress weights and cache efficiency parameters to adapt to dynamic load changes, balancing stability during startup and dynamic adaptability during runtime. Through a pre-set instruction mapping rule table, this invention converts source architecture instructions into target architecture-compatible instructions in real time during runtime, allowing the upper-layer virtual digital human business code to run on different GPU architectures without modification, achieving non-intrusive cross-architecture adaptation, reducing system migration costs and maintenance complexity. Attached Figure Description

[0052] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0053] Figure 1 This is a flowchart illustrating a digital human operation method according to an embodiment of the present invention;

[0054] Figure 2 This is a flowchart of resource status quantification and weight calculation for a digital human operation method according to an embodiment of the present invention;

[0055] Figure 3 This is a structural block diagram of a digital human operating system according to an embodiment of the present invention;

[0056] Figure 4 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed Implementation

[0057] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0058] According to an embodiment of the present invention, a method for operating a digital human 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.

[0059] This embodiment provides a digital human operation method, system, computer device, and storage medium, which can be used in computer devices such as servers, personal computers, graphics workstations, laptops, or embedded edge computing devices, etc. The computer device is equipped with at least one graphics processing unit (GPU). Figure 1 This is a flowchart of a digital human operation method according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps:

[0060] Step S101: GPU hardware information acquisition and architecture identification.

[0061] After the system initialization and startup are completed, the core operating parameters of the current hardware devices are read in batches through the standard GPU driver interface. Based on the collected parameter data, a unified and standardized hardware feature data structure is constructed to realize the automatic identification of GPU architecture and accurate determination of hardware type, providing a hardware-dimensional basis for subsequent resource scheduling.

[0062] Step S1011: Construct GPU hardware feature vectors.

[0063] To unify the encapsulation of core parameters for various GPU hardware types and eliminate differences in parameter dimensions, this method constructs a standardized GPU hardware feature vector, the specific expression of which is as follows:

[0064]

[0065] The specific definitions of each parameter in the feature vector are as follows:

[0066] GPU architecture type;

[0067] GPU computing power version;

[0068] Number of streaming multiprocessors;

[0069] Number of computational units in a Tensor;

[0070] GPU memory capacity;

[0071] GPU cache capacity.

[0072] This feature vector can unify GPU hardware parameters of different types and dimensions, such as enumerated, integer, and floating-point, into a standardized one-dimensional array data structure. All subsequent system discrimination logic and calculation functions use this array as the sole input, eliminating the need to develop separate parsing interfaces for each type of parameter. This effectively reduces system architecture complexity, minimizes data interaction overhead between modules, and improves the versatility and efficiency of hardware parameter parsing.

[0073] Step S1012: Construct the architecture identification function.

[0074] Based on the constructed standardized hardware feature vector A GPU architecture recognition function is built to achieve automatic classification and accurate determination of GPU architecture. The specific expression is as follows:

[0075]

[0076] In the formula, This is a GPU architecture type identifier used to uniquely distinguish GPU hardware devices with different architectures.

[0077] Architecture identification function The specific execution logic is as follows: if the architecture type parameter in the feature vector If it matches the preset Ada architecture feature library, the architecture identifier will be output. ;like If the architecture matches the preset Blackwell architecture feature library, the architecture identifier will be output. ;like If no match can be found in any known architecture feature library, an auxiliary determination mechanism is activated, which calls the computing capability version parameter. The second judgment has been completed.

[0078] The rules for a second judgment are as follows: When Greater than or equal to the preset version threshold When the system determines that the current GPU is a new generation of unknown architecture, it automatically switches to a compatible operating mode and invokes general security resource configuration policies to ensure the system's basic operational capabilities; Less than the preset version threshold If the current hardware is determined to be unsupported by the platform, a hardware error warning is generated, and manual intervention is required for adaptation or loading of preset conservative parameters to start operation.

[0079] This compatible operating mode does not require restructuring the overall system operation process. For subsequent new iterations of GPU architecture, only the corresponding architecture-specific configuration template needs to be added to complete the adaptation, effectively expanding the hardware adaptation range of this method and improving the overall scalability of the algorithm.

[0080] Step S102: Establish the real-time resource status quantization mapping relationship of the GPU.

[0081] During system operation, GPU dynamic operation data is collected in real time at fixed intervals to construct a standardized real-time resource state vector. Differential normalization calculations are used to eliminate the differences in the dimensions of different indicators, avoid the problem of conflicting indicator characteristics, and provide accurate and unified standardized input data for subsequent dynamic scheduling decisions.

[0082] Step S1021, Resource state vector construction.

[0083] Based on the operational characteristics of digital humans, three core GPU resource metrics that directly constrain rendering, inference, and stable operation are selected to construct a real-time resource state vector, the specific expression of which is as follows:

[0084]

[0085] The specific definitions of each core indicator are as follows:

[0086] GPU real-time computing utilization;

[0087] : Real-time GPU memory usage;

[0088] GPU real-time cache hit rate.

[0089] The above three indicators correspond to the three core resources of the GPU: computing power, video memory capacity, and data access efficiency. They directly determine the real-time rendering frame rate of the virtual digital human, the AI ​​inference latency, and the stability of long-term continuous operation, and can comprehensively reflect the real-time load status and performance bottleneck of the GPU.

[0090] Step S1022: Resource index classification and weight calculation.

[0091] because , This is a stress-related indicator; the higher the value, the more strained the resource load and the greater the system operating pressure. As efficiency indicators, higher values ​​represent better data access efficiency and better system performance. The trends of these two types of indicators have completely opposite effects on scheduling decisions. Therefore, this method employs a differentiated processing mechanism to perform weight calculations and constraint determination separately, avoiding decision distortion caused by conflicting indicator characteristics.

[0092] Regarding computational utilization Video memory usage For the two types of stress indicators, normalized weights are calculated using the following formulas:

[0093]

[0094] In the formula, To preset a very small positive number, the value in this embodiment is 0.01, which is used to avoid extreme calculation anomalies when the denominator is zero. , These values ​​represent the relative pressure on current GPU computing resources and memory resources, respectively. Higher values ​​indicate a more strained resource load, and scheduling decisions should prioritize ensuring the supply of such resources or limit the allocation of new resources.

[0095] Cache hit rate It does not participate in the normalization calculation of stress-type indicators at the same level, but independently participates in scheduling decisions as a system performance constraint dimension. Define a cache resource constraint dimension. The specific calculation formula is as follows:

[0096]

[0097] In the formula, The preset cache hit rate baseline value is set to 0.8 in this embodiment. Used to quantify the degree to which cache access efficiency constrains overall system performance: when When the cache operates more efficiently than the baseline, its constraint on scheduling decisions is weaker; when When the cache runs at a lower efficiency than the baseline, it becomes a bottleneck in system performance, and the scheduling strategy needs to focus on optimizing the cache resource configuration.

[0098] The scheduling guidance logic for each quantization parameter is as follows: When the value is too high, the system bottleneck is insufficient GPU computing power, and it is necessary to prioritize increasing the proportion of computing resources allocated. When the value is too high, the memory load is too heavy, and the allocation of new memory should be strictly limited. When the cache access efficiency remains consistently low, it will restrict system performance, and the data residency and read / write scheduling strategies need to be optimized.

[0099] This differentiated quantification method does not require building complex machine learning models. It can complete resource status assessment through lightweight real-time data computation, with low computational complexity and fast response speed. It can fully meet the low-latency scheduling requirements of real-time rendering and real-time AI inference scenarios for virtual digital humans, while avoiding the weight distortion problem caused by the normalization of mixed characteristic indicators.

[0100] After completing the above calculations, the system will calculate the resource pressure weight. Memory resource pressure weight and cache resource constraint dimensions Pushed to the HA-DSA scheduling module, along with the architecture identifier output in step S101. Hardware feature vectors Together, they serve as the core input parameters for generating resource scheduling strategies.

[0101] Step S103, HA-DSA hierarchical scheduling mechanism.

[0102] The core of this method employs HA-DSA (Hardware Adaptive-Dynamic Scheduling Algorithm), a rule-driven hierarchical scheduling mechanism that runs on the processor. The algorithm integrates four input dimensions: GPU architecture attributes, inherent hardware parameters, real-time load status, and cache efficiency constraints. Through a hierarchical scheduling structure, it generates an adaptive resource scheduling strategy to achieve optimal collaborative allocation of computing, memory, and cache resources under heterogeneous GPU architectures.

[0103] Step S1031, hierarchical mapping mechanism based on rule constraints.

[0104] The HA-DSA algorithm achieves precise transformation from multi-dimensional inputs to scheduling policies through standardized mapping relationships. The specific formal expression is as follows:

[0105]

[0106] The parameters in the formula are defined as follows:

[0107] GPU architecture identifier;

[0108] GPU hardware feature vectors;

[0109] : Calculate resource pressure weights;

[0110] : Weight of video memory resource pressure;

[0111] : Dimensions of cache resource constraints;

[0112] The final set of resource scheduling strategies generated.

[0113] This mapping mechanism enables coordinated scheduling of multi-dimensional parameters: architecture identifier Ensuring precise matching between scheduling strategies and hardware physical characteristics; hardware feature vectors Provides inherent hardware limits such as computing power, video memory, and cache; stress weighting. , Accurate feedback on real-time load bottleneck distribution; cache constraint dimensions Independent constraints on data access efficiency ensure that scheduling decisions are fully aligned with hardware characteristics and real-time operating status, effectively improving scheduling accuracy.

[0114] Step S1032, hierarchical scheduling structure.

[0115] The HA-DSA algorithm adopts a two-layer serial scheduling architecture of "static template matching + dynamic real-time adjustment", which takes into account the stability of system cold start and the dynamic adaptation capability during operation, and avoids the problems of startup oscillation and adaptation lag that exist in a single scheduling mode.

[0116] Architecture template layer:

[0117] GPU architecture identifier A pre-defined scheduling template is used to determine the basic resource allocation strategy during the system's cold start phase, resolving operational oscillations in the early stages of scheduling strategy convergence and ensuring stable system startup. The specific template configuration is as follows:

[0118] Ada architecture ( ): Load the first resource configuration template, adopt a low-latency priority scheduling strategy, set the default thread block size to 128, and set the rendering task queue depth to 2, to adapt to virtual digital human interaction scenarios with high real-time requirements;

[0119] Blackwell architecture ): Load the second resource configuration template, adopt a high-throughput priority scheduling strategy, set the default thread block size to 256, and enable the cached data prefetch function simultaneously to adapt to large-scale batch rendering and AI inference scenarios.

[0120] Dynamic adjustment layer:

[0121] Basic scheduling parameters generated from static templates Based on this, incremental dynamic adjustments are made by combining real-time load weights and cache constraint parameters to achieve real-time adaptive optimization of resource allocation as the load changes. To quantify the adjustment logic, three types of dynamic adjustment parameters are defined:

[0122] The computing power adjustment amount is determined by the computing resource pressure weight. generate. When the value is too high and computing resources are scarce, the adjustment amount is set to a positive value to increase the priority and allocation ratio of computing resources. When the resource level is too low or there is redundant computing power, the adjustment amount is negative to appropriately reduce the parallelism of the task and balance resource consumption.

[0123] : Memory adjustment amount, determined by memory resource pressure weight. generate. When the memory load is too high or the video memory is under pressure, adjust the value to a negative value to reduce the video memory allocation and avoid the risk of video memory overflow.

[0124] The amount of caching strategy adjustment is determined by the cache resource constraint dimension. generate. When caching efficiency is not up to standard, adjust the amount to a positive value, increase the weight of the caching optimization strategy, and optimize the data read and write mechanism.

[0125] Incorporating the correction coefficient constraint, the complete calculation formula for the final scheduling strategy is as follows:

[0126]

[0127] In the formula, , , The preset correction factor has a range of values. This is used to constrain the magnitude of single corrections in each dimension, preventing sudden fluctuations in resources from causing severe jitter in the scheduling strategy and ensuring the stable operation of the system.

[0128] The core advantages of this layered architecture are: the static template layer ensures that the system can match the hardware characteristics during the cold start phase, achieve stable operation, and avoid scheduling convergence oscillations; the dynamic adjustment layer adopts an incremental correction mode, which does not require a full reconstruction of the strategy, greatly reducing the scheduling computation overhead and strategy switching fluctuations, and taking into account both system stability and real-time load response.

[0129] Step S1033: Output scheduling strategy and calculate resource allocation.

[0130] The final set of scheduling policies It includes three types of collaborative strategies: computing resource allocation, video memory resource allocation, and cache resource optimization, comprehensively covering GPU core resource scheduling scenarios. The specific allocation mechanism is as follows:

[0131] Based on computational resource pressure weight The system dynamically allocates and distributes the total GPU computing power on demand to meet the diverse parallel task requirements of the virtual digital human. The specific formula is as follows:

[0132]

[0133] In the formula, This represents the total available computing resources of the GPU. For the first The actual amount of computing resources allocated to virtual human-like tasks; For the first The computational power allocation coefficient for each task type is determined by... The real-time load percentage of each task is determined comprehensively and meets the following requirements. .

[0134] GPU computing resources encompass both general-purpose computing units and Tensor intelligent computing units, fully supporting core tasks such as 3D scene rendering for virtual digital humans, skeletal motion driving, AI facial expression reasoning, and voice algorithm computation. This allocation method dynamically tilts computing power towards bottleneck tasks: when computing power is scarce, it automatically increases the number of parallel rendering threads and the AI ​​inference batch size to fully unleash GPU computing performance; when computing power is redundant, it appropriately reduces task parallelism to avoid memory bandwidth contention caused by high concurrency, achieving balanced and efficient computing power scheduling.

[0135] To address the issues of competition and resource conflicts between video memory and cache resources in heterogeneous GPU architectures, a collaborative allocation mapping relationship between video memory and cache is constructed to achieve dynamic balance control of the two types of resources. The specific formula is as follows:

[0136]

[0137] In the formula, The amount of video memory allocated to the current task; This represents the total video memory capacity of the GPU. This refers to the GPU cache capacity. This is the video memory capacity allocation coefficient; This is the cache capacity adjustment factor.

[0138] Two types of coefficients can be adaptively adjusted based on real-time resource status: memory pressure weight. Automatically reduce speed when the graphics card load is high or the video memory is under heavy load. Compress the pre-allocated memory for newly added tasks to avoid the risk of peak memory overflow; cache constraint dimensions. Automatically increase when the value is too low or access efficiency decreases. This approach prioritizes storing frequently accessed data in the cache area, reducing repetitive video memory read and write operations, and establishing a dynamic balance mechanism between video memory capacity constraints and data access efficiency.

[0139] Step S104: Execute the interface adaptation mapping method.

[0140] To enable unmodified operation of upper-layer services across GPU architectures, this method constructs a hardware-software decoupled execution interface adaptation mapping mechanism. This mechanism dynamically converts the unified upper-layer scheduling strategy into underlying hardware parameters that are recognizable and executable by different GPU architectures, achieving transparent adaptation across multiple GPU architectures. The specific mapping formula is as follows:

[0141]

[0142] In the formula, To adapt to the generated set of underlying GPU execution parameters; For GPU architecture identification; This is a set of real-time scheduling strategies.

[0143] Step S1041, instruction adaptation mechanism.

[0144] To address the incompatibility issue between the upper-layer business GPU execution instruction stream and the target GPU architecture, the system performs dynamic runtime adaptation and conversion based on a pre-defined instruction mapping rule table, achieving semantically equivalent instruction migration. The instruction mapping rule table is pre-built based on the differences in instruction sets across different architectures and primarily includes three types of adaptation rules:

[0145] Opcode replacement rules: Accurately map source architecture-specific opcodes to corresponding opcodes that are semantically equivalent to those in the target architecture;

[0146] Functional semantic equivalence mapping rule: For functions that are unique to the source architecture and have no direct corresponding instructions in the target architecture, equivalent functions are achieved by combining multiple instructions from the target architecture;

[0147] Parameter format adaptation rules: The format, bit width, and addressing mode of instruction operands are uniformly adapted and converted.

[0148] The adaptation process is completed dynamically during system runtime, featuring high translation accuracy and low additional latency overhead. It does not require modification of upper-layer business logic code or recompilation for adaptation, truly achieving upper-layer business uniformity and lower-layer hardware self-adaptation, significantly reducing the adaptation cost and migration difficulty of multiple hardware platforms.

[0149] Step S1042: Execute parameter generation.

[0150] Through an interface adaptation mechanism, the system dynamically generates four types of GPU-level executable parameters to build a dedicated runtime environment adapted to the current hardware characteristics. The specific parameter configurations are as follows:

[0151] Rendering execution configuration: Includes parameters such as the number of parallel threads, rendering queue length, and task scheduling priority. When computing power is sufficient, the number of parallel rendering threads is increased to free up hardware computing power; when the memory load is too high, the rendering queue length is shortened to reduce the peak instantaneous memory usage.

[0152] AI inference execution configuration: Includes batch size, number of parallel inferences, and computational precision mode parameters. When computing power is redundant, the inference batch size can be increased and the number of parallel inferences can be increased to enhance throughput efficiency; when memory is scarce, the batch size can be reduced to decrease memory resource consumption.

[0153] Memory access configuration: This includes parameters for memory pre-allocation ratio, dynamic expansion threshold, and idle resource reclamation mechanism. When memory load is high, reduce the pre-allocation ratio for new tasks to achieve on-demand memory allocation; when memory is plentiful, moderately increase the pre-allocation ratio to reduce performance loss caused by frequent resource allocation and release.

[0154] Computation kernel configuration: includes thread block size, grid partitioning strategy, and task scheduling order parameters. Increasing the number of parallel computing threads improves overall throughput when computing power is redundant; appropriately reducing parallelism under high memory load reduces the load pressure from high-frequency memory access.

[0155] Based on the above dynamic parameter adaptation, the upper-layer virtual digital human business code can be compatible with GPU devices of different architectures without any modification, achieving transparent operation across hardware platforms.

[0156] Step S105, dynamic closed-loop scheduling mechanism.

[0157] This method adopts a closed-loop scheduling mode of "periodic monitoring - status feedback - dynamic update - steady state maintenance". The default sampling period is set to 100ms. In actual applications, it can be flexibly adjusted within the range of 60ms to 200ms according to the business scenario, which not only ensures the real-time monitoring of resource status, but also avoids the performance loss caused by high-frequency monitoring.

[0158] Step S1051, Strategy update trigger mechanism.

[0159] The system updates the resource state vector and corresponding quantization parameters in each sampling period to obtain real-time data. , , By comparing and filtering the effective load changes over multiple consecutive periods, invalid policy updates caused by instantaneous data fluctuations are avoided. When the total change in state over three consecutive sampling periods exceeds a preset threshold, a scheduling policy update is triggered. The specific determination formula is as follows:

[0160]

[0161] in, The computational resource pressure weight for the current sampling period; The weight for memory resource pressure in the current sampling period; This represents the cache resource constraint dimension for the current sampling period. , and These are the computational resource pressure weight, video memory resource pressure weight, and cache resource constraint dimension corresponding to the previous sampling period, respectively. This is a preset threshold for state changes.

[0162] Threshold in this embodiment The value can be adaptively adjusted within the range of 0.10 to 0.25 based on the GPU model and business scenario. If the overall change does not exceed the limit, the system is considered to be in a stable operating state. The current scheduling strategy is maintained, and the system is re-detected after a delay of 1 to 2 sampling periods, effectively reducing scheduling jitter caused by frequent strategy adjustments.

[0163] Step S1052, hot update method of strategy.

[0164] After the policy update is triggered, the system regenerates the optimized scheduling policy based on the latest architecture identifier, hardware feature vector, load weight, and cache constraint parameters.

[0165]

[0166] Once the new strategy is generated, it replaces the original strategy in real time and is simultaneously pushed to the execution interface adaptation module, completing the dynamic update of the GPU's underlying operating parameters. The entire update process requires no device downtime, no system restart, and does not interrupt the normal business processes of the virtual digital human, achieving seamless hot updates.

[0167] To improve stability during long-term continuous operation, this method incorporates an extreme load protection mechanism: when GPU memory usage exceeds 95% for five consecutive sampling cycles, a Level 1 emergency response is automatically triggered, suspending non-core AI inference tasks, clearing idle rendering resources, and quickly releasing memory space; once memory usage returns to a safe threshold, suspended tasks are gradually resumed, effectively avoiding system stuttering and crashes under high load scenarios. Simultaneously, the delayed update mechanism effectively suppresses scheduling jitter caused by small load fluctuations, ensuring long-term stable system operation.

[0168] In this embodiment, all threshold parameters, configuration values, and coefficient values ​​are obtained through experiments in a standard testing environment and are the optimal adaptation reference values. In actual industrial applications, they can be flexibly adjusted according to specific GPU hardware models, virtual digital human business scenarios, and on-site operating environment requirements. These numerical limitations do not constitute a limitation on the scope of protection of this invention.

[0169] This embodiment adapts to different GPU architectures through GPU architecture identification and execution interface adaptation, without modifying the core business logic of the virtual digital human system, thus improving the system's cross-architecture operation capability. It dynamically generates resource scheduling strategies based on GPU utilization, memory usage, and cache status, enabling adjustments to GPU computing and memory resources according to the operating status, thereby improving resource utilization. By continuously collecting GPU status information and dynamically adjusting resource configuration during operation, it reduces performance fluctuations caused by insufficient memory and resource contention, improving the stability of the virtual digital human's continuous operation. Since runtime interface adaptation is used to achieve compatibility between different GPU architectures, there is no need to modify the original digital human system's core code, thereby reducing system migration and maintenance costs and improving project deployment efficiency.

[0170] Example 2: The difference between this example and Example 1 is that in step S1022, a filtering mechanism for abnormal fluctuation data within the sampling period is added to the resource state vector during the calculation process, so as to avoid short-term fluctuations having too much impact on the cache efficiency correction factor η, thereby improving the stability of the scheduling strategy calculation.

[0171] Example 3: The difference between this example and Example 1 is that in step S1042, during the parameter generation process, the parameter update frequency of the rendering execution configuration and the AI ​​inference execution configuration is adjusted differently according to the operating characteristics of different GPU architectures, so as to adapt to the load response characteristics under different architectures.

[0172] This embodiment also provides a digital human operating device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0173] This embodiment provides a digital human operating system, such as Figure 3 As shown, it includes:

[0174] The architecture-aware module is used to acquire the parameters of the target GPU and construct a unified feature vector, and to perform GPU architecture recognition based on the feature vector to obtain the GPU architecture identifier.

[0175] The resource quantization module is used to periodically collect GPU running status data and construct resource status vectors. The resource status vectors are divided into stress indicators and efficiency indicators. For stress indicators, a normalized calculation path is used to generate stress weight parameters, and for efficiency indicators, a mapping calculation path based on a preset benchmark value is used to generate cache efficiency parameters.

[0176] The scheduling decision module is used to construct scheduling mapping relationships based on GPU architecture identifiers, feature vectors, pressure weight parameters, and cache efficiency parameters, and to generate resource scheduling strategies through a hierarchical scheduling mechanism.

[0177] The execution adaptation module is used to map resource scheduling policies to the underlying execution parameters corresponding to the target GPU architecture, and to achieve cross-architecture execution adaptation based on instruction mapping rules.

[0178] The closed-loop feedback module is used to continuously collect real-time resource status during operation and determine whether the policy update conditions are met based on the changes in resource status within a continuous period. When the preset conditions are met, the scheduling decision module is triggered to regenerate the resource scheduling policy and the execution adaptation module is triggered to update the underlying execution parameters.

[0179] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0180] In this embodiment, the digital human operating device is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0181] This invention also provides a computer device having the above-described features. Figure 4 The digital human operating device shown.

[0182] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 4 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 4 Take a processor 10 as an example.

[0183] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.

[0184] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the method shown in the above embodiments.

[0185] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0186] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.

[0187] The computer device also includes an input device 30 and an output device 40. The processor 10, memory 20, input device 30, and output device 20 can be connected via a bus or other means. Figure 4 Taking the example of a connection between China and Israel via a bus.

[0188] Input device 30 can receive input numerical or character information, and generate key signal inputs related to user settings and function control of the computer device, such as a touchscreen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 40 may include display devices, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors). The aforementioned display devices include, but are not limited to, liquid crystal displays, light-emitting diodes, displays, and plasma displays. In some alternative embodiments, the display device may be a touchscreen.

[0189] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.

[0190] A portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0191] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A digital human operation method, characterized by, The method includes: Obtain the parameters of the target GPU and construct a unified feature vector based on the parameters; GPU architecture identification is performed based on the feature vector to obtain the GPU architecture identifier; GPU operating status data is collected periodically, and a resource status vector is constructed based on the operating status data; The resource status vector is divided into pressure-type indicators and efficiency-type indicators; The pressure-type indicators are processed using a normalized calculation path to generate pressure weight parameters. The efficiency parameters are generated by using a mapping calculation path based on a preset benchmark value for the efficiency indicators; A scheduling mapping relationship is constructed based on the GPU architecture identifier, the feature vector, the pressure weight parameter, and the cache efficiency parameter, and a resource scheduling strategy is generated through a hierarchical scheduling mechanism. The resource scheduling strategy is mapped to the underlying execution parameters corresponding to the target GPU architecture, and cross-architecture execution adaptation is achieved based on instruction mapping rules; During operation, the system continuously collects real-time resource status and determines whether the policy update conditions are met based on the changes in resource status within a continuous period. When the preset conditions are met, the resource scheduling policy is regenerated and the underlying execution parameters are updated.

2. The digital human operation method of claim 1, wherein, The step of generating pressure weight parameters by using a normalized calculation path for the pressure-type indicators includes: The stress-type indicators are divided into computing utilization and video memory usage. The computing utilization rate and the video memory usage rate are normalized using the sum of the computing utilization rate and the video memory usage rate as the normalization benchmark. The computational resource pressure weight and the memory resource pressure weight are generated based on the normalized calculation results, and the two are made to satisfy the normalization constraint relationship. The normalization constraint relationship is such that the sum of the two is equal to 1.

3. The digital human operation method of claim 1, wherein, The process of generating cache efficiency parameters by using a mapping calculation path based on a preset benchmark value for the efficiency indicators includes: The cache hit rate among the efficiency metrics is used as an independent evaluation metric. The cache hit rate is calculated by ratio mapping based on a preset cache baseline value; Generate cache efficiency parameters to characterize the degree of deviation of cache access efficiency from the baseline state.

4. The digital human operation method of claim 1, wherein, The generation of resource scheduling strategies through a hierarchical scheduling mechanism includes: Based on the GPU architecture identifier, a corresponding static resource scheduling template is matched to generate a basic scheduling policy; Based on the pressure weight parameter and the cache efficiency parameter, the basic scheduling strategy is incrementally modified to generate the target resource scheduling strategy. The static resource scheduling templates mentioned therein are pre-configured according to different GPU architectures.

5. The digital human operation method of claim 1, wherein, The cross-architecture execution adaptation based on instruction mapping rules includes: Match a preset instruction mapping rule table according to the GPU architecture identifier; The source architecture instructions are converted into target architecture compatible instructions by opcode substitution rules, semantic equivalence mapping rules, and parameter format adaptation rules. The converted instructions are then output to the target GPU execution environment.

6. The digital human operation method of claim 1, wherein, The determination of whether the policy update conditions are met based on the change in resource status within a continuous period includes: Calculate the resource status difference between the current sampling period and the previous sampling period; The state change is obtained by comprehensively quantifying the differences; When the state change amount in multiple consecutive sampling periods is greater than the preset threshold, the policy update mechanism is triggered.

7. A digital human operation system, characterized by, The system includes: An architecture-aware module is used to acquire the parameters of the target GPU and construct a unified feature vector, and to perform GPU architecture recognition based on the feature vector to obtain the GPU architecture identifier; The resource quantization module is used to periodically collect GPU running status data and construct a resource status vector. The resource status vector is divided into stress indicators and efficiency indicators. The stress indicators are used to generate stress weight parameters by normalizing the calculation path, and the efficiency indicators are used to generate cache efficiency parameters by mapping the calculation path based on a preset benchmark value. The scheduling decision module is used to construct a scheduling mapping relationship based on the GPU architecture identifier, the feature vector, the pressure weight parameter and the cache efficiency parameter, and generate a resource scheduling strategy through a hierarchical scheduling mechanism. An execution adaptation module is used to map the resource scheduling strategy to the underlying execution parameters corresponding to the target GPU architecture, and to achieve cross-architecture execution adaptation based on instruction mapping rules. The closed-loop feedback module is used to continuously collect real-time resource status during operation and determine whether the policy update conditions are met based on the changes in resource status within a continuous period. When the preset conditions are met, the scheduling decision module is triggered to regenerate the resource scheduling policy and the execution adaptation module is triggered to update the underlying execution parameters.

8. A computer device, characterized in that, include: A memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the method of any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to perform the method of any one of claims 1 to 6.

10. A computer program product, characterized in that, Includes computer instructions for causing a computer to perform the method of any one of claims 1 to 6.