A demand side load prediction oriented edge side artificial intelligence task heterogeneous kernel scheduling method and system
By constructing a directed acyclic graph of intra-task operators and a task value density index, and combining reinforcement learning techniques for heterogeneous kernel scheduling of edge AI tasks, the problem of low scheduling efficiency of edge tasks is solved, achieving efficient computation and fast response.
Patent Information
- Application Number
- CN202611323017.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing side-side task scheduling methods lack a deep understanding of demand-side load forecasting tasks and fail to distinguish between the business value and timeliness requirements of tasks, resulting in resource waste and scheduling delays, making it difficult to meet the timeliness requirements of power grid operations.
By constructing a directed acyclic graph of intra-task operators, a task ranking table is generated. Task priorities are quantified based on topological relationships and task value density indices. Dynamic scheduling is then performed using reinforcement learning techniques to achieve optimal scheduling of operators in heterogeneous kernel units.
It improves the overall operating efficiency of edge devices, reduces the queuing delay of high-value load forecasting tasks, and enhances the computing efficiency of power IoT edge devices and the response speed of demand-side regulation.
Smart Images

Figure CN123177989A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power Internet of Things (IoT) technology, and more specifically, to a heterogeneous kernel scheduling method and system for edge-side artificial intelligence tasks oriented towards demand-side load forecasting. Background Technology
[0002] In recent years, with the rapid development of new power systems and the large-scale, high-proportion grid connection of new energy equipment, the randomness and volatility of both the source and load sides have significantly intensified. Demand-side load management has become a key approach to smoothing net load fluctuations, peak shaving and valley filling, and improving system resilience. Currently, edge devices in demand-side scenarios are gradually integrating artificial intelligence models to achieve localized load regulation. Their computational load is characterized by multi-task concurrency, frequent iterative inference, and large differences in real-time requirements, which places higher demands on the on-demand allocation and task scheduling efficiency of terminal-constrained computing resources.
[0003] However, existing edge task scheduling methods mostly follow the "black box" scheduling paradigm of general-purpose operating systems. When facing demand-side load control scenarios, the scheduling strategies developed lack deep understanding of tasks and fail to distinguish the business value and timeliness requirements of multiple load prediction tasks. This leads to high-value scheduling instructions being delayed or rejected due to resource preemption by ordinary inference tasks. At the same time, the rapid development of artificial intelligence technology has gradually increased the demand for computing power. The widespread access of heterogeneous devices such as CPUs, GPUs, and NPUs has placed higher demands on the fine-grained scheduling of devices. It is necessary to dynamically bind operators and kernel units based on specific tasks and device states, and to quantitatively evaluate the scheduling effect through multiple features. Summary of the Invention
[0004] To address the above problems, this invention proposes a heterogeneous kernel scheduling method for edge-side artificial intelligence tasks oriented towards demand-side load forecasting, comprising: Within the IoT-enabled devices on the power grid side, data information required for demand-side load forecasting scenarios is collected, and the data information is smoothed using a causal exponential moving average to form the model input vector required for the task. Construct a directed acyclic graph of intra-task operators, generate the topological relationships of intra-task operators based on the directed acyclic graph, and generate a task ranking table for edge-side artificial intelligence tasks based on the topological relationships. Based on the task sorting table, the states of operators and kernel units within the artificial intelligence task are quantified sequentially to generate an optimal scheduling scheme for operator-kernel unit. According to the optimal scheduling scheme, the operators are scheduled and allocated in heterogeneous kernel units. After scheduling is completed, the operators in the side-side artificial intelligence task are executed using the model input vector required by the task.
[0005] Optionally, the AI task can be broken down into finer-grained parts, and a directed acyclic graph of operators within the task can be constructed, including: In the edge devices of the Internet of Things in the power grid, the model computation graph is parsed by the inference engine. The basic computation operators in the model, including convolution, pooling, fully connected and activation functions, are mapped to independent execution threads of the operating system kernel. Each independent execution thread is assigned a dedicated task control block to record the attributes, computation parameters and running status of the basic computation operators. By tracking the data flow dependencies of the input and output tensors between different basic computation operators, an operator-level directed acyclic graph is constructed.
[0006] Optional, the basic operators include at least one of the following: convolution, fully connected, and activation functions.
[0007] Optionally, based on the aforementioned topological relationship, a task ranking table for artificial intelligence tasks is generated, including: Within the power IoT edge device, scheduling task instructions based on topology relationships are differentiated, and task power consumption, execution time, power business value coefficient, and quality coefficient are determined. The task power consumption, execution time, power business value coefficient, and quality coefficient are then fused to construct a task value density index. Based on the task value density index, the ready queue of artificial intelligence tasks is reconstructed in ascending order to generate a task sorting table.
[0008] Optionally, the state of the kernel unit is quantized to generate an optimal operator-kernel unit scheduling scheme, including: Based on the loss cost of the operator in each kernel unit, a 0-1 integer programming problem is solved to generate a static binding strategy table for the operator and kernel unit. Based on the static binding strategy table, an optimal scheduling scheme for the operator and kernel unit is formed.
[0009] Optionally, during operator scheduling, a sliding window mechanism is used to calculate three indicators: cumulative reward value, load balancing degree, and task rejection number, as the reward function. Reinforcement learning technology is used to iteratively update the gradient online so that the optimal scheduling scheme can adapt to dynamic environmental changes, thereby dynamically updating the optimal scheduling scheme.
[0010] Furthermore, this invention also proposes a heterogeneous kernel scheduling system for edge-side artificial intelligence tasks oriented towards demand-side load forecasting, comprising: The data processing module is used to collect data information required for demand-side load forecasting scenarios in the power IoT terminal equipment, and to smooth the data information through causal exponential moving average to form the model input vector required for the task. The task sorting module is used to construct a directed acyclic graph of operators within a task, generate the topological relationship of the operators within the task based on the directed acyclic graph, and generate a task sorting table for edge AI tasks based on the topological relationship. The scheduling module is used to quantify the state of operators and kernel units within the artificial intelligence task in sequence based on the task sorting table, so as to generate an optimal scheduling scheme for operators and kernel units. According to the optimal scheduling scheme, the scheduling and allocation of operators in heterogeneous kernel units is realized through the optimal scheduling scheme. After the scheduling is completed, the operators in the side-side artificial intelligence task are executed with the model input vector required by the task.
[0011] Optionally, the AI task can be broken down into finer-grained parts, and a directed acyclic graph of operators within the task can be constructed, including: In the edge devices of the Internet of Things in the power grid, the model computation graph is parsed by the inference engine. The basic computation operators in the model, including convolution, pooling, fully connected and activation functions, are mapped to independent execution threads of the operating system kernel. Each independent execution thread is assigned a dedicated task control block to record the attributes, computation parameters and running status of the basic computation operators. By tracking the data flow dependencies of the input and output tensors between different basic computation operators, an operator-level directed acyclic graph is constructed.
[0012] Optional, the basic operators include at least one of the following: convolution, fully connected, and activation functions.
[0013] Optionally, based on the aforementioned topological relationship, a task ranking table for artificial intelligence tasks is generated, including: Within the power IoT edge device, scheduling task instructions based on topology relationships are differentiated, and task power consumption, execution time, power business value coefficient, and quality coefficient are determined. The task power consumption, execution time, power business value coefficient, and quality coefficient are then fused to construct a task value density index. Based on the task value density index, the ready queue of artificial intelligence tasks is reconstructed in ascending order to generate a task sorting table.
[0014] Optionally, the state of the kernel unit is quantized to generate an optimal operator-kernel unit scheduling scheme, including: Based on the loss cost of the operator in each kernel unit, a 0-1 integer programming problem is solved to generate a static binding strategy table for the operator and kernel unit. Based on the static binding strategy table, an optimal scheduling scheme for the operator and kernel unit is formed.
[0015] Optionally, during operator scheduling, a sliding window mechanism is used to calculate three indicators: cumulative reward value, load balancing degree, and task rejection number, as the reward function. Reinforcement learning technology is used to iteratively update the gradient online so that the optimal scheduling scheme can adapt to dynamic environmental changes, thereby dynamically updating the optimal scheduling scheme.
[0016] In another aspect, the present invention also provides a computing device, comprising: one or more processors; A processor is used to execute one or more programs; When the one or more programs are executed by the one or more processors, the method described above is implemented.
[0017] In another aspect, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed, implements the method described above.
[0018] Compared with the prior art, the beneficial effects of the present invention are as follows: This invention provides a heterogeneous kernel scheduling method for edge-side artificial intelligence tasks oriented towards demand-side load forecasting. The method includes: collecting data information required for demand-side load forecasting scenarios within power IoT edge devices; smoothing the data information using a causal exponential moving average to form the model input vector required for the task; constructing a directed acyclic graph (DAG) of operators within the task; generating topological relationships between operators based on the DAG; generating a task ranking table for edge-side AI tasks based on the topological relationships; quantifying the states of operators and kernel units within the AI task sequentially based on the task ranking table to generate an optimal operator-kernel unit scheduling scheme; allocating operators among heterogeneous kernel units according to the optimal scheduling scheme; and executing operators in the edge-side AI task using the model input vector required for the task after scheduling. This invention achieves efficient computation of edge-side AI tasks with heterogeneous device access, improving the overall operating efficiency of edge devices. Attached Figure Description
[0019] Figure 1 This is a flowchart of the method of the present invention; Figure 2 This is a schematic diagram of the method of the present invention; Figure 3 This is a structural diagram of the system of the present invention. Detailed Implementation
[0020] Exemplary embodiments of the invention will now be described with reference to the accompanying drawings. However, the invention may be embodied in many different forms and is not limited to the embodiments described herein. These embodiments are provided to fully and completely disclose the invention and to fully convey its scope to those skilled in the art. The terminology used in the exemplary embodiments illustrated in the drawings is not intended to limit the invention. In the drawings, the same units / elements are referred to by the same reference numerals.
[0021] Unless otherwise stated, the terms used herein (including technical terms) have their common meaning as understood by one of ordinary skill in the art. Furthermore, it is understood that terms defined in commonly used dictionaries should be understood to have a meaning consistent with the context of their relevant field, and not to be interpreted as having an idealized or overly formal meaning.
[0022] Example 1: This invention proposes a heterogeneous kernel scheduling method S100 for edge-side artificial intelligence tasks oriented towards demand-side load forecasting, such as... Figure 1 As shown, it includes: S101, In the power IoT terminal device, collect the data information required for the demand-side load forecasting scenario, and smooth the data information through causal exponential moving average to form the model input vector required for the task. S102, construct a directed acyclic graph of intra-task operators, generate the topological relationship of intra-task operators based on the directed acyclic graph, and generate a task ranking table for edge-side artificial intelligence tasks based on the topological relationship. S103, based on the task sorting table, the states of operators and kernel units within the artificial intelligence task are quantified sequentially to generate an optimal scheduling scheme for operator-kernel unit. According to the optimal scheduling scheme, the operators are scheduled and allocated in heterogeneous kernel units. After scheduling is completed, the operators in the side-side artificial intelligence task are executed using the model input vector required by the task.
[0023] Optionally, the AI task can be broken down into finer-grained parts, and a directed acyclic graph of operators within the task can be constructed, including: In the edge devices of the Internet of Things in the power grid, the model computation graph is parsed by the inference engine. The basic computation operators in the model, including convolution, pooling, fully connected and activation functions, are mapped to independent execution threads of the operating system kernel. Each independent execution thread is assigned a dedicated task control block to record the attributes, computation parameters and running status of the basic computation operators. By tracking the data flow dependencies of the input and output tensors between different basic computation operators, an operator-level directed acyclic graph is constructed.
[0024] Optional, the basic operators include at least one of the following: convolution, fully connected, and activation functions.
[0025] Optionally, based on the aforementioned topological relationship, a task ranking table for artificial intelligence tasks is generated, including: Within the power IoT edge device, scheduling task instructions based on topology relationships are differentiated, and task power consumption, execution time, power business value coefficient, and quality coefficient are determined. The task power consumption, execution time, power business value coefficient, and quality coefficient are then fused to construct a task value density index. Based on the task value density index, the ready queue of artificial intelligence tasks is reconstructed in ascending order to generate a task sorting table.
[0026] Optionally, the states of heterogeneous kernel units are quantized to generate an optimal operator-kernel unit scheduling scheme, including: Based on the loss cost of the operator in each kernel unit, a 0-1 integer programming problem is solved to generate a static binding strategy table for the operator and kernel unit. Based on the static binding strategy table, an optimal scheduling scheme for the operator and kernel unit is formed.
[0027] Optionally, during operator scheduling, a sliding window mechanism is used to calculate three indicators: cumulative reward value, load balancing degree, and task rejection number, as the reward function. Reinforcement learning technology is used to iteratively update the gradient online so that the optimal scheduling scheme can adapt to dynamic environmental changes, thereby dynamically updating the optimal scheduling scheme.
[0028] The present invention will be further described below with reference to specific embodiments: To address the shortcomings of existing technologies, this invention proposes a heterogeneous kernel scheduling method for edge-side AI tasks in demand-side load forecasting. This method addresses the issue that edge-side models in power business scenarios often lack deep perception of AI tasks during actual inference, failing to distinguish between the business value and timeliness requirements of tasks. This results in low execution efficiency and wasted computing resources for edge-side tasks, making it difficult to meet the timeliness requirements of power grid operations. This invention prioritizes and quantifies the value of AI tasks by constructing a task value density index at the edge. The kernel scheduler solves a 0-1 integer programming problem based on the priority order of the operator models and heterogeneous kernel units in the task, forming a binding strategy. The scheduling strategy is dynamically updated based on the task list and kernel state, enabling efficient computation of edge-side AI tasks even with heterogeneous device access, thus improving the overall operating efficiency of edge-side devices.
[0029] The core working principle of this invention is as follows: Figure 2 As shown, it is in the following aspects: This method achieves the acquisition and processing of electricity consumption measurement data through edge-end collaboration. The AI tasks are analyzed using fine-grained operator-level directed acyclic graphs to form operator topology graphs. Based on this, tasks are ranked using a task value density index. Feature quantization of operators and heterogeneous kernel units within each task is performed to form an optimal operator-kernel unit scheduling scheme. Finally, reinforcement learning is used to dynamically optimize the scheduling strategy. The working principle of this method includes the following five core steps: (1) Data information required for demand-side load forecasting is collected by the telemetry agent module in the power IoT terminal device and transmitted to the edge. The original sampled data is denoised and smoothed by causal exponential moving average to provide a stable and reliable state input vector for subsequent model construction according to task instructions.
[0030] (2) The power IoT edge device parses the model computation graph through the inference engine, maps each basic operator (such as convolution, fully connected, activation function) in the AI task to an independent thread in the operating system kernel, and assigns a task control block to it. By tracking the data flow of input / output tensors between operators, directed edges are established between control blocks to construct an operator-level directed acyclic graph, thereby forming an operator topology graph under the task.
[0031] (3) Side devices differentiate the scheduling task instructions. By integrating task power consumption, execution time, power business value coefficient and quality coefficient, a task value density index is constructed. The kernel scheduler reconstructs the ready queue in ascending order according to the task value density index, so as to realize the dynamic preemption and resource allocation of high-value tasks.
[0032] (4) The kernel scheduler quantifies the state of heterogeneous kernel units, solves the 0-1 integer programming by calculating the loss cost of operators in each heterogeneous kernel unit, generates a static binding strategy table of operators-kernel units, and forms the optimal scheduling scheme of operators-kernel units by finding the minimum cost result.
[0033] (5) During the scheduling of operators in the task according to the task scheduling strategy, the kernel scheduler uses the sliding window mechanism to calculate the cumulative reward value, load balance degree and task rejection number as the reward function, and uses reinforcement learning technology to iteratively update the gradient online so that the scheduling strategy can continuously adapt to the changes in the dynamic environment, thus forming the dynamic update of the scheduling strategy of artificial intelligence tasks.
[0034] The specific implementation process described above (1-5) includes: (1) The active power, reactive power, load, voltage, and current information required for demand-side load forecasting are collected by the telemetry agent module within the power IoT end-side equipment and transmitted to the edge-side equipment. The original sampled data is then processed using a causal exponential moving average to reduce noise and smooth the data, generating demand-side load characteristic data. This provides a stable and reliable input vector for subsequent model construction based on task instructions. The specific formula is as follows: in, Indicates power IoT end-side equipment exist Filtered state values at any given time (power consumption / temperature / utilization, etc.); This is a smoothing coefficient; a larger value results in stronger noise immunity but a slower response. These are instantaneous sampled values collected by the kernel driver layer.
[0035] (2) The inference engine in the power IoT edge device resolves the queue congestion problem caused by the long execution time of large tasks in traditional inference by parsing the computational relationships of operators in the task and mapping each basic operator (such as convolution, fully connected, and activation function) to an independent thread in the operating system kernel. Then, a Task Control Block (TCB) is assigned to the split operator thread and a unique task identifier (Task_ID) is given. By tracking the data flow of input / output tensors between operators, directed edges are established between the task control blocks to construct an operator-level directed acyclic graph, forming an operator topology graph. At the same time, a predecessor dependency counter is maintained for each operator thread. Only when all predecessor operators have been executed (the counter is zero) is the operator eligible to be placed in the ready queue by the kernel scheduler.
[0036] (3) Differentiate scheduling task instructions and construct a Task Value Density Index (TVDI). Deeply integrate task power consumption, execution time, power business value coefficient, and quality coefficient to replace the traditional static priority, avoiding high-value control instructions from being preempted by low-value tasks and thus delayed or discarded. The kernel scheduler reconstructs the ready queue in ascending order of TVDI to realize dynamic preemption and resource allocation for high-value tasks. The specific formula is as follows: in, For the task In the equipment Average power consumption; This refers to the actual execution time. This is the task value coefficient; This is the quality coefficient; Task value coefficient The specific coefficients can be defined from two aspects: time scale and spatial granularity. The basic value coefficients are calculated based on the time requirements of the load forecasting task (ultra-short-term, short-term, medium-term, long-term) and the spatial scope involved (province, city, transformer area, single user), as shown in Table 1. Table 1
[0037] quality coefficient The inference accuracy and latency of the side-side devices are quantified, enabling the devices to explicitly balance the relationship between accuracy and timeliness. The specific formula is as follows: in, For the task The average confidence score of the recent historical inference results of the corresponding side load forecasting model. Indicates the actual execution time of the task. The maximum allowed delay for the task. and For hyperparameters of accuracy and timeliness, The delay constraint satisfies the indicator function.
[0038] Confidence score of historical inference results of the side load prediction model within the sliding window This is used to assess the confidence level of a linear mapping when the predicted value falls within the allowable fluctuation range; it is reset to zero when the value exceeds the range. The specific formula is as follows: in Indicates the actual result. Indicates the prediction result. This represents the allowable relative error threshold for the task. This indicates the order of the current task in the model.
[0039] The kernel scheduler in the side-side device performs computation graph analysis on the model selected by the operators in the artificial intelligence task, and extracts the operator computation amount of the model. Data transfer volume Memory access mode The first in the task-internal operator topology graph. The computational complexity of each operator This refers to the total number of floating-point / integer operations required by the operator, and the amount of data moved. This refers to the total number of tensor bytes that the operator needs to read and write, and the memory access mode. This refers to the memory access mode: 0 for sequential memory access, 0.5 for random memory access, and 1.0 for strong cross-core dependency.
[0040] The core units of devices such as CPUs, GPUs, and NPUs are quantized. CPU computation is mainly composed of Cores, GPU computation is mainly composed of Streaming Multiprocessors (SMs), and NPU computation is mainly composed of Neural Functional Units (NFUs). The peak computing power of the core units (Cores, SMs, and NFUs) under the device is extracted. Energy efficiency ratio Architecture adaptability Perform kernel quantization.
[0041] The above results are passed to the kernel scheduler, which then calculates each operator. In each heterogeneous kernel unit The time cost, energy cost, and communication and instruction penalty cost are considered, and the kernel unit is selected based on the calculation results.
[0042] The time cost is used to characterize the estimated execution latency of the operator on the target heterogeneous kernel unit. The basic computation time is obtained by dividing the total computation of the operator by the effective peak computing power of the target device. Then, a penalty factor related to the operator's memory access mode is introduced to amplify and correct the basic computation time, thereby obtaining a time cost that is closer to the actual physical execution.
[0043] in, Indicates the first The total number of floating-point / integer operations required for each operator It refers to the first Maximum throughput of computing power per kernel unit This refers to the degree of support the device kernel provides for the instruction set and data stream of that operator. This represents the memory access penalty coefficient. It refers to the first The memory access patterns of each operator.
[0044] Energy consumption cost is used to characterize the physical energy consumed when the operator is executed on the target heterogeneous processing unit. It is obtained by dividing the total computation of the operator by the effective energy efficiency ratio of the target hardware.
[0045] in, Indicates the first The total number of floating-point / integer operations required for each operator Indicates the first The energy efficiency ratio of each kernel unit (i.e., the amount of computation that can be performed per unit of energy consumption). This refers to the degree to which the device kernel supports the instruction set and data stream of the operator.
[0046] The communication and instruction penalty cost is used to characterize the legality of operator binding and quantify the overhead of cross-core data transfer. When the target hardware's instruction set does not support the operator at all, a very large penalty constant is assigned to form a mathematical hard constraint to directly exclude illegal binding. When the operator needs to read predecessor data residing in the local memory of other processing units, the communication latency penalty is calculated based on the ratio of the amount of data transferred across cores to the bus bandwidth. If the data is already local, the penalty is zero.
[0047] in, This represents a penalty constant (used to impose an infinite cost on illegal bindings that are not supported by the instruction set). Indicates the communication protocol overhead coefficient. Indicates the first During the execution of an operator, the amount of input tensor data transferred across cores from other processing units where the predecessor operator resides is considered. If the predecessor operator executes on the same physical core and the data already resides in local memory, then... , This indicates the effective data transport bandwidth of the internal system bus or on-chip network of the side SoC.
[0048] After obtaining the original costs with different physical dimensions respectively... , and Then, the Min-Max normalization method is used to map them to the dimensionless interval [0,1] respectively. Based on the calculation results in each kernel unit, a 0-1 integer programming problem is solved to generate a static binding strategy table for operator-kernel units. By finding the minimum cost result, the optimal mapping scheme for operator-kernel units is formed. The specific formula is as follows: in, To bind decision variables (1 represents the operator) Bind to device (0 indicates no binding). These are the normalized energy consumption, time delay, and cross-core communication penalty terms, respectively. , , These are the multi-objective weighting coefficients (dynamically generated by TVDI and real-time constraints). For operators Memory usage requirements; For equipment Available memory capacity; The total number of operators, This represents the total number of heterogeneous processing units on the side.
[0049] (5) During the side kernel unit scheduling process, the construction length is fixed at 1. A sliding window is used to calculate three metrics—cumulative reward (CR), load balancing (LBI), and task rejection count (TRC)—to evaluate the kernel scheduling policy. These three metrics are then used as a composite reward function. The specific formula is as follows: in, This indicates the degree of dispersion of the load on each device at time t. This represents the core utilization rate of device n at time t. The rejection indicator variable at time t is defined as having a value of 1 when the actual execution time of the task exceeds the allowed delay, energy consumption exceeds the remaining budget, or memory demand exceeds the available capacity; otherwise, it is 0. This represents the reward value at time t. Indicates in [ , The cumulative reward value within the range.
[0050] The scheduling strategy is continuously adapted to the dynamic environment through online iteration, driving the policy network to execute the PPO gradient update strategy. The specific formula is as follows: in, express The policy network weights at each time step. Indicates the learning rate. This represents the probability of the action output by the policy network. Indicates the current status of the equipment. Indicates the action to be performed. This represents the logarithmic probability gradient.
[0051] This invention reduces queuing delays and equipment resource contention for high-value load forecasting tasks by reconstructing the ready queue of AI tasks in ascending order using a task value density index. Subsequently, the AI tasks are broken down and parsed into a topology graph composed of operators. The kernel scheduler solves 0-1 integer programming problems based on the priority order of the operator models and heterogeneous kernel units in the tasks to form a binding strategy. The scheduling strategy is dynamically updated based on the task list and kernel unit status, effectively solving the technical problems of low energy efficiency, difficulty in ensuring real-time performance, and difficulty in multi-objective coordination in edge AI task scheduling. This improves the overall operating efficiency of power IoT edge devices and the overall response speed of demand-side control services.
[0052] Example 2: Furthermore, this invention proposes a heterogeneous kernel scheduling system 200 for edge-side artificial intelligence tasks oriented towards demand-side load forecasting, such as... Figure 3 As shown, it includes: Data processing module 201 is used to collect data information required for demand-side load forecasting scenarios in the power IoT terminal equipment, and to smooth the data information through causal exponential moving average to form the model input vector required for the task. The task sorting module 202 is used to construct a directed acyclic graph of intra-task operators, generate the topological relationship of intra-task operators based on the directed acyclic graph, and generate a task sorting table for edge-side artificial intelligence tasks based on the topological relationship. The scheduling module 203 is used to quantify the state of operators and kernel units within the artificial intelligence task in sequence based on the task sorting table, so as to generate an optimal scheduling scheme for operators and kernel units. According to the optimal scheduling scheme, the operator is scheduled and allocated in heterogeneous kernel units. After the scheduling is completed, the operator in the side-side artificial intelligence task is executed with the model input vector required by the task.
[0053] Optionally, the AI task can be broken down into finer-grained parts, and a directed acyclic graph of operators within the task can be constructed, including: In the edge devices of the Internet of Things in the power grid, the model computation graph is parsed by the inference engine. The basic computation operators in the model, including convolution, pooling, fully connected and activation functions, are mapped to independent execution threads of the operating system kernel. Each independent execution thread is assigned a dedicated task control block to record the attributes, computation parameters and running status of the basic computation operators. By tracking the data flow dependencies of the input and output tensors between different basic computation operators, an operator-level directed acyclic graph is constructed.
[0054] Optional, the basic operators include at least one of the following: convolution, fully connected, and activation functions.
[0055] Optionally, based on the aforementioned topological relationship, a task ranking table for artificial intelligence tasks is generated, including: Within the power IoT edge device, scheduling task instructions based on topology relationships are differentiated, and task power consumption, execution time, power business value coefficient, and quality coefficient are determined. The task power consumption, execution time, power business value coefficient, and quality coefficient are then fused to construct a task value density index. Based on the task value density index, the ready queue of artificial intelligence tasks is reconstructed in ascending order to generate a task sorting table.
[0056] Optionally, the state of the kernel unit is quantized to generate an optimal operator-kernel unit scheduling scheme, including: Based on the loss cost of the operator in each kernel unit, a 0-1 integer programming problem is solved to generate a static binding strategy table for the operator and kernel unit. Based on the static binding strategy table, an optimal scheduling scheme for the operator and kernel unit is formed.
[0057] Optionally, during operator scheduling, a sliding window mechanism is used to calculate three indicators: cumulative reward value, load balancing degree, and task rejection number, as the reward function. Reinforcement learning technology is used to iteratively update the gradient online so that the optimal scheduling scheme can adapt to dynamic environmental changes, thereby dynamically updating the optimal scheduling scheme.
[0058] This invention enables efficient computation of edge AI tasks in the presence of heterogeneous devices, thereby improving the overall operating efficiency of edge devices.
[0059] Example 3: Based on the same inventive concept, this invention also provides a computer device, which includes a processor and a memory. The memory stores a computer program, which includes program instructions. The processor executes the program instructions stored in the computer storage medium. The processor may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. It is the computing and control core of the terminal, suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions in the computer storage medium to implement corresponding method flows or corresponding functions, thereby implementing the steps of the methods in the above embodiments.
[0060] Example 4: Based on the same inventive concept, this invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device used to store programs and data. It is understood that the computer-readable storage medium here can include both the built-in storage medium in the computer device and extended storage media supported by the computer device. The computer-readable storage medium provides storage space that stores the terminal's operating system. Furthermore, this storage space also stores one or more instructions suitable for loading and execution by a processor. These instructions can be one or more computer programs (including program code). It should be noted that the computer-readable storage medium here can be high-speed RAM or non-volatile memory, such as at least one disk storage device. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the steps of the method in the above embodiments.
[0061] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The solutions in the embodiments of the present invention can be implemented using various computer languages, such as the object-oriented programming language Java and the interpreted scripting language JavaScript.
[0062] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0063] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0064] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0065] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.
[0066] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
Claims
1. A heterogeneous kernel scheduling method for edge-side artificial intelligence tasks oriented towards demand-side load forecasting, characterized in that, include: Within the IoT-enabled devices on the power grid side, data information required for demand-side load forecasting scenarios is collected, and the data information is smoothed using a causal exponential moving average to form the model input vector required for the task. Construct a directed acyclic graph of intra-task operators, generate the topological relationships of intra-task operators based on the directed acyclic graph, and generate a task ranking table for edge-side artificial intelligence tasks based on the topological relationships. Based on the task sorting table, the states of operators and kernel units within the artificial intelligence task are quantified sequentially to generate an optimal scheduling scheme for operator-kernel unit. According to the optimal scheduling scheme, the operators are scheduled and allocated in heterogeneous kernel units. After scheduling is completed, the operators in the side-side artificial intelligence task are executed using the model input vector required by the task.
2. The heterogeneous kernel scheduling method for edge-side artificial intelligence tasks according to claim 1, characterized in that, The AI task is broken down into fine-grained parts, and a directed acyclic graph of operators within the task is constructed, including: In the edge devices of the Internet of Things in the power grid, the model computation graph is parsed by the inference engine. The basic computation operators in the model, including convolution, pooling, fully connected and activation functions, are mapped to independent execution threads of the operating system kernel. Each independent execution thread is assigned a dedicated task control block to record the attributes, computation parameters and running status of the basic computation operators. By tracking the data flow dependencies of the input and output tensors between different basic computation operators, an operator-level directed acyclic graph is constructed.
3. The heterogeneous kernel scheduling method for edge-side artificial intelligence tasks according to claim 2, characterized in that, The basic operators include at least one of the following: convolution, fully connected, and activation functions.
4. The heterogeneous kernel scheduling method for edge-side artificial intelligence tasks according to claim 1, characterized in that, Based on the aforementioned topological relationships, a task ranking table for artificial intelligence tasks is generated, including: Within the power IoT edge device, scheduling task instructions based on topology relationships are differentiated, and task power consumption, execution time, power business value coefficient, and quality coefficient are determined. The task power consumption, execution time, power business value coefficient, and quality coefficient are then fused to construct a task value density index. Based on the task value density index, the ready queue of artificial intelligence tasks is reconstructed in ascending order to generate a task sorting table.
5. The heterogeneous kernel scheduling method for edge-side artificial intelligence tasks according to claim 1, characterized in that, The states of heterogeneous kernel units are quantized to generate optimal operator-kernel unit scheduling schemes, including: Based on the loss cost of the operator in each kernel unit, a 0-1 integer programming problem is solved to generate a static binding strategy table for the operator and kernel unit. Based on the static binding strategy table, an optimal scheduling scheme for the operator and kernel unit is formed.
6. The heterogeneous kernel scheduling method for edge-side artificial intelligence tasks according to claim 1, characterized in that, During operator scheduling, a sliding window mechanism is used to calculate three indicators as reward functions: cumulative reward value, load balancing degree, and task rejection number. Reinforcement learning techniques are used to iteratively update the gradient online so that the optimal scheduling scheme can adapt to dynamic environmental changes, thereby dynamically updating the optimal scheduling scheme.
7. A heterogeneous kernel scheduling system for edge-side artificial intelligence tasks oriented towards demand-side load forecasting, characterized in that, include: The data processing module is used to collect data information required for demand-side load forecasting scenarios in the power IoT terminal equipment, and to smooth the data information through causal exponential moving average to form the model input vector required for the task. The task sorting module is used to construct a directed acyclic graph of operators within a task, generate the topological relationship of the operators within the task based on the directed acyclic graph, and generate a task sorting table for edge AI tasks based on the topological relationship. The scheduling module is used to quantify the states of operators and kernel units within an artificial intelligence task sequentially based on the task sorting table, in order to generate an optimal operator-kernel unit scheduling scheme. The optimal scheduling scheme is used to schedule and allocate operators in heterogeneous kernel units. After scheduling is completed, the operators in the side-side artificial intelligence task are executed using the model input vector required by the task.
8. The heterogeneous kernel scheduling system for edge-side artificial intelligence tasks according to claim 7, characterized in that, The AI task is broken down into fine-grained parts, and a directed acyclic graph of operators within the task is constructed, including: In the edge devices of the Internet of Things in the power grid, the model computation graph is parsed by the inference engine. The basic computation operators in the model, including convolution, pooling, fully connected and activation functions, are mapped to independent execution threads of the operating system kernel. Each independent execution thread is assigned a dedicated task control block to record the attributes, computation parameters and running status of the basic computation operators. By tracking the data flow dependencies of the input and output tensors between different basic computation operators, an operator-level directed acyclic graph is constructed.
9. The heterogeneous kernel scheduling system for edge-side artificial intelligence tasks according to claim 8, characterized in that, The basic operators include at least one of the following: convolution, fully connected, and activation functions.
10. The heterogeneous kernel scheduling system for edge-side artificial intelligence tasks according to claim 7, characterized in that, Based on the aforementioned topological relationships, a task ranking table for artificial intelligence tasks is generated, including: Within the power IoT edge device, scheduling task instructions based on topology relationships are differentiated, and task power consumption, execution time, power business value coefficient, and quality coefficient are determined. The task power consumption, execution time, power business value coefficient, and quality coefficient are then fused to construct a task value density index. Based on the task value density index, the ready queue of artificial intelligence tasks is reconstructed in ascending order to generate a task sorting table.
11. The heterogeneous kernel scheduling system for edge-side artificial intelligence tasks according to claim 7, characterized in that, The states of heterogeneous kernel units are quantized to generate optimal operator-kernel unit scheduling schemes, including: Based on the loss cost of the operator in each kernel unit, a 0-1 integer programming problem is solved to generate a static binding strategy table for the operator and kernel unit. Based on the static binding strategy table, an optimal scheduling scheme for the operator and kernel unit is formed.
12. The heterogeneous kernel scheduling system for edge-side artificial intelligence tasks according to claim 7, characterized in that, During operator scheduling, a sliding window mechanism is used to calculate three indicators as reward functions: cumulative reward value, load balancing degree, and task rejection number. Reinforcement learning techniques are used to iteratively update the gradient online so that the optimal scheduling scheme can adapt to dynamic environmental changes, thereby dynamically updating the optimal scheduling scheme.
13. A computer device, characterized in that, include: One or more processors; A processor is used to execute one or more programs; When the one or more programs are executed by the one or more processors, the method described in any one of claims 1-6 is implemented.
14. A computer-readable storage medium, characterized in that, It contains a computer program, which, when executed, implements the method as described in any one of claims 1-6.
