Adaptive scheduling for performing machine learning operations in multiprocessor computing device

By dynamically scheduling the execution of machine learning models on multi-processor computing devices based on parameters such as temperature and load, the problem of thermal management of processing units is solved and the reliability and performance stability of the system are improved.

CN118696300APending Publication Date: 2024-09-24QUALCOMM INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280091751.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

When executing machine learning models on multi-processor computing devices, existing technologies are difficult to effectively manage the heat of the processing units, leading to temperature over-limit problems and affecting system performance and reliability.

Method used

By measuring the temperature at multiple locations on the computing device, it is determined that when the temperature of a certain processing unit exceeds the threshold, a more suitable processing unit is selected based on parameters such as distance, load, and performance to schedule the operation of the machine learning model, thereby avoiding thermal excess. limit.

Benefits of technology

It is possible to effectively manage the heat of the processing unit while maintaining performance levels, avoid temperature overruns, improve the reliability and stability of the system, and especially reduce operating delays and mutation phenomena in real-time or near-real-time tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118696300A
    Figure CN118696300A
Patent Text Reader

Abstract

Certain aspects of the present disclosure provide techniques and apparatus for scheduling execution of machine learning model operations on a multiprocessor computing device. The method generally includes measuring a temperature of each of a plurality of locations on the computing device during execution of an operation in a first portion of a machine learning model on a first processing unit of the computing device. It is determined that the temperature measured for the first processing unit exceeds a threshold temperature. Based on one or more operating parameters of the computing device, a second processing unit of the computing device is selected for performing an operation in a second portion of the machine learning model. Performance of operations in the second portion of the machine learning model on the second processing unit is scheduled.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] Various aspects of the present disclosure relate to machine learning, and more particularly, to scheduling execution of portions of a machine learning model on a computing device having multiple processors.

[0002] In various computing systems, such as on smart phones, tablet computers, etc., multiple processors may be used to perform various computing tasks, such as processing different parts of a neural network (e.g., different layers, layer groups, network branches, sub-networks, etc.) or other machine learning models. These processors may have different performance, power utilization, and thermal characteristics. For example, in a computing device including one or more central processing unit (CPU) cores, one or more graphics processing units (GPUs), neural processing units (NPUs), one or more digital signal processors (DSPs), etc., each of these processors may be suitable (e.g., specifically optimized) for a specific type of task and may generate different amounts of heat under load. For example, a CPU core may provide lower performance for a specific task relative to a more specialized processing unit (such as a GPU, NPU, or DSP), and may use more power and therefore generate more heat under load. Conversely, a more specialized processing unit may provide higher performance than a specialized processing unit performing the same task while consuming less power and generating less heat.

[0003] Processing units in computing devices generally operate within a thermal window defined by lower and upper operating temperatures of these processing units and other components in the computing device (e.g., housing temperature of a mobile device so that the computing device can be held by a user without burning the user, battery temperature so as to minimize the possibility of thermal runaway or other negative effects of heat on battery life, etc.). As processing units approach various threshold temperatures up to the upper thermal limit, various actions may be taken to reduce the heat generated by these processing units. For example, the core voltage of the processor may be reduced, thereby reducing the clock speed at which the processing unit operates. While reducing the clock speed at which the processing unit operates may reduce heat generation, doing so may also reduce system performance.

[0004] Therefore, there is a need for improved techniques for thermal management in computing systems performing machine learning operations. Summary of the invention

[0005] Certain aspects provide a computer-implemented method for scheduling execution of machine learning model operations on a multi-processor computing device. The method generally includes measuring a temperature at each of a plurality of locations on the computing device during execution of operations in a first portion of a machine learning model on a first processing unit of the computing device. Determining that the temperature measured for the first processing unit exceeds a threshold temperature. Based on one or more operating parameters of the computing device, selecting a second processing unit of the computing device for execution of operations in a second portion of the machine learning model. Scheduling execution of the operations in the second portion of the machine learning model on the second processing unit.

[0006] Other aspects provide: a processing system configured to perform the aforementioned methods and the methods described herein; a non-transitory computer-readable medium comprising instructions that, when executed by one or more processors of the processing system, cause the processing system to perform the aforementioned methods and the methods described herein; a computer program product embodied on a computer-readable storage medium comprising code for performing the aforementioned methods and the methods further described herein; and a processing system comprising components for performing the aforementioned methods and the methods further described herein.

[0007] The following description and the associated drawings set forth in detail certain illustrative features of one or more implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The drawings depict certain aspects of the one or more embodiments and therefore are not to be considered limiting of the scope of the present disclosure.

[0009] Figure 1 An example layout for a multi-processor computing device is depicted.

[0010] Figure 2 An example architecture of a neural network in accordance with aspects of the present disclosure is illustrated, in which layers in the neural network are organized into groups configured for processing on different sets of processing units in a computing device.

[0011] Figure 3 Example operations for adaptively scheduling execution of operations in a machine learning model on a multi-processor computing device in accordance with aspects of the present disclosure are illustrated.

[0012] Figure 4 An example implementation of a processing system in which adaptive scheduling of execution of operations in a neural network may be performed is illustrated according to aspects of the present disclosure.

[0013] To facilitate understanding, identical reference numerals have been used, where possible, to designate identical elements that are common to the figures. It is contemplated that elements and features of one embodiment may be beneficially incorporated in other embodiments without further recitation. DETAILED DESCRIPTION

[0014] Aspects of the present disclosure provide techniques for adaptively scheduling execution of operations in a neural network on a multi-processor computing device.

[0015] Machine learning models (such as convolutional neural networks, recurrent neural networks, etc.) can be used for a variety of tasks. For example, neural networks can be used for spatial scaling to adjust the resolution of an image using artificial intelligence techniques (e.g., using super-resolution techniques to increase the resolution of an input image), for temporal interpolation to allow frames to be generated at a higher frame rate (e.g., corresponding to the refresh rate of the display on which the frames will be displayed), thereby adjusting the appearance of an image (e.g., by image fusion, applying various color effects, such as generating high dynamic range (HDR) images, introducing background or foreground blur (also known as "bokeh"), etc.). In various scenarios, such as video playback, playing games, etc., these operations can be performed in real time or near real time, and therefore, a large amount of processing power can be dedicated to performing these tasks.

[0016] Because performing these various computing tasks in real time or near real time using a neural network can be computationally expensive tasks, the processor on which these tasks are performed can draw a large amount of power in order to dedicate a sufficient amount of computing resources to these tasks. However, due to the resistive nature of various components and circuits within the computing device, the increase in current draw can result in a corresponding increase in the operating temperature of various components of the computing device. In some cases, continued execution of operations using the neural network can cause components in the computing device to reach one or more thermal limits defined for safe and reliable operation of the computing device (e.g., a maximum temperature defined for a processor before the processor is damaged, a maximum temperature defined for a battery to avoid thermal runaway or other destructive events, a maximum temperature defined for a computing device to prevent user burn situations, etc.). When these thermal limits are reached, various actions can be taken to keep the computing device within the defined thermal limits of the computing device. For example, the clock speed at which these processors operate and the corresponding current draw of these processors can be reduced. However, the reduction in clock speed can increase the amount of time required to perform operations. For tasks that are to be performed in real time or near real time, such as video processing, in-game image rendering, etc., this can introduce "choppiness" in the operation. For example, in video processing applications, frames may be dropped, which may cause the resulting video to appear not smooth.

[0017] Example Compute Device Architecture

[0018] Figure 1 An example computing device 100 including multiple processors is illustrated, on which operations in a neural network can be performed. As illustrated, the computing device 100 includes multiple central processing unit (CPU) cores 110, multiple central processing unit (CPU) cores 120, a graphics processing unit (GPU) 130, multiple digital signal processors (DSPs) 140, a neural processing unit (NPU) 150, a memory 160 accessible by the CPU cores 110, the CPU cores 120, the GPU 130, the DSP 140, and the NPU 150, and multiple temperature sensors 170.

[0019] In some aspects, multiple CPU cores 110 and multiple CPU cores 120 may be part of a heterogeneous CPU architecture, such as a big.LITTLE architecture in an Advanced RISC Machine (ARM) processor, where CPU core 110 is designated as a "performance" core and CPU core 120 is designated as an "efficiency" core. CPU core 110 may provide additional processing capabilities relative to CPU core 120, but may draw more power in order to provide these additional processing capabilities. Conversely, CPU core 120 may be a power-efficient core that allows computational tasks of less computational complexity to be completed using less power than CPU core 110. Thus, various operating parameters may be used to schedule the execution of tasks across CPU core 110 and CPU core 120 to take advantage of the processing capabilities of CPU core 110 and the power efficiency of CPU core 120. For example, complex computational tasks (such as tasks involving large or floating-point data types) may be scheduled for execution on CPU core 110, while tasks involving small or integer data types may be scheduled for execution on CPU core 120 because tasks involving small or integer data types may not need to utilize the additional processing features of CPU core 110.

[0020] GPU 130 may generally be a processing unit including multiple units that may allow various operations to be performed in parallel. In some aspects, GPU 130 may be configured to perform vector math operations and other complex math operations that may be used to generate graphics for display on a display device connected to or integrated with computing device 110. Because GPU 130 may support parallel processing for complex tasks such as vector math operations, GPU 130 may also be used to perform various tasks in a neural network at a performance level greater than that of CPU core 110 or CPU core 120.

[0021] The DSP 140 may perform signal processing on various data inputs to generate processed signal outputs. In some aspects, these DSPs may be associated with various image capture devices, sound capture devices, or other data capture devices connected to or integrated into the computing device 100. For example, the DSP 140 A The DSP 140 may be associated with a first camera (eg, a wide-angle camera) of the mobile device. B The DSP 140 may be associated with a second camera of the mobile device (eg, a camera with a "normal" field of view or a field of view close to that of human vision). C Can be associated with a mobile device's camera, etc.

[0022] NPU 150 may generally be a dedicated processing unit that performs operations involving various machine learning algorithms. Typically, NPU 150 may perform various prediction tasks, convolution tasks, subsampling tasks, etc. within a neural network. For example, NPU 150 may be designed to process data structured as high-dimensional tensors in parallel, and may include a buffer of sufficient size to allow data reuse within the neural network. Because NPU 150 is a dedicated processing unit customized to perform tasks within a neural network, general tasks that may be performed on CPU core 110 and / or CPU core 120 may not be scheduled on NPU 150.

[0023] During various operations performed on computing device 100, scheduler 180 may periodically or aperiodically measure the operating temperature of each of CPU core 110, CPU core 120, GPU 130, DSP 140, and NPU 150 via temperature sensor 170. As illustrated, a different number of temperature sensors may be implemented on each processing unit in computing device 100. For example, each of CPU cores 110 (e.g., a "performance" core) may include two temperature sensors 170, while each of CPU cores 120 (e.g., an "efficiency" core) may include a single temperature sensor 170. Additional temperature sensors 170 (although not illustrated) may also be implemented in computing device 100 to measure the operating temperatures of other components of the computing device.

[0024] As discussed, each of the processing units (and other components) in computing device 100 may have a defined upper operating temperature limit. Generally speaking, a processing unit may not be allowed to operate above the defined upper operating temperature limit of the processing unit, because exceeding the defined upper operating temperature limit may result in damage to the processing unit or to other components in computing device 100. Typically, in order to prevent the processing unit from exceeding the defined upper operating temperature limit, various power control techniques may be used to reduce the clock speed (or the rate at which instructions are executed) of the processing unit, and thus reduce the heat generated by the processing unit. However, reducing the clock speed of the processing unit may negatively affect the operations being performed on the processing unit.

[0025] To allow for adaptive execution of machine learning operations on computing device 100 (e.g., via a neural network), temperature measurements, known distances between different processing units on computing device 100, and other operating parameters may be used to schedule execution of machine learning operations. In general, because the layout of processing units in computing device 100 is known and fixed for a particular design of a particular computing device 100, and because heat may be assumed to dissipate as a function of distance, scheduler 180 may assume that processing units that are farther from a processing unit currently executing a neural network operation may be more suitable for execution of future neural network operations than processing units that are closer to the processing unit currently executing the machine learning operation. Thus, effectively, scheduler 180 may move execution to a processing unit that is cooler than the current processing unit currently executing the machine learning operation, while maintaining the processing power required to execute the machine learning operation at a desired performance level (e.g., to generate frames in a video or in streaming content according to a defined refresh rate so that transitions between frames appear smooth).

[0026] For example, assume that a machine learning operation can be configured for execution on NPU 150, GPU 130, and CPU core 110 in a prioritized order. Thus, assuming that each of NPU 150, GPU 130, and CPU core 110 is idle and below a thermal threshold (e.g., a thermal cap), the machine learning operation can be initially scheduled for execution by NPU 150. If temperature sensor 170 R -170 TIf one or more temperature sensors in the NPU 150 indicate that the temperature of the NPU 150 is approaching a thermal threshold or is at a thermal threshold, the scheduler 180 may determine that the subsequent execution of the machine learning operation should be moved to the GPU 130 or one or more CPU cores 110. Assuming that the measured temperatures of the GPU 130 and the CPU cores 110 are below the thermal upper limits defined for these processing units at this time, the scheduler 180 may consider the distance from the NPU 150 and other operating parameters to identify which of the GPU 130 or the CPU core 110 to use in the subsequent execution of the machine learning operation. In this example, because the GPU 130 is closer to the NPU 150 than the CPU core 110, the scheduler 180 may consider the GPU 130 to be a less suitable candidate than the CPU core 110 for use in the subsequent execution of the machine learning operation. Therefore, the scheduler 180 may schedule the subsequent execution of the machine learning operation for one or more of the CPU cores 110. In some aspects, the distance metric may be calculated on a per-processing unit basis. In this case, because the CPU core 110 A It is the processing unit farthest from the NPU 150, so the CPU core 110 A May be selected as a processing unit for use in subsequent execution of machine learning operations on computing device 100.

[0027] Other operating parameters may alternatively or additionally be used to determine which processing units to use in subsequent execution of machine learning operations on computing device 100. For example, the current load on each processing unit may be considered when determining whether a particular processing unit is a candidate for use in subsequent execution of a machine learning operation. If a processing unit has a current load that exceeds a threshold, the processing unit may not be considered a suitable candidate for subsequent execution of a machine learning operation. The threshold may be defined or configured a priori for each processing unit based on, for example, the performance characteristics of each processing unit. A more powerful processing unit (e.g., a processing unit that can process a larger number of operations in a given time period) may have, for example, a higher usage threshold than a less powerful processing unit because the more powerful processing unit may have additional resources that can be dedicated to performing other operations than the less powerful processing unit. In another example, the current temperature of each processing unit may be used to determine whether the processing unit is a candidate for subsequent execution of a machine learning operation. In general, because machine learning operations may be computationally intensive and thus have the potential to increase the temperature of any processing unit on which such operations are executed, processing units whose temperatures are closer to their upper thermal limit or other defined thermal threshold may be less suitable for use in subsequent execution of the machine learning operation than processing units whose temperatures are further away from their upper thermal limit or other thermal threshold. However, it should be understood that current load, temperature, and distance to a processing unit currently executing a machine learning operation are merely examples of operating parameters that may be considered in selecting a processing unit on which to execute a subsequent machine learning operation, and that other operating parameters may be used in conjunction with or in place of the operating parameters discussed herein.

[0028] Example Neural Network Architecture

[0029] Figure 2 An example architecture of a neural network 200 is illustrated, in accordance with aspects of the present disclosure, wherein the layers in the neural network are organized into layers configured for different sets of processing units in a computing device (e.g., Figure 1 A group of processing performed on one or more of the CPU core 110, the CPU core 120, the GPU 130, the DSP 140, and the NPU 150 of the computing device 100 illustrated in FIG.

[0030] In general, the neural network 200 may include multiple layers, and each layer may have a different level of complexity. For example, a layer closer to the input for generating a feature map from the input may be the most complex layer in the neural network, and a layer that performs operations on a subsampled data set output from a previous layer may be less complex. Because the complexity involved in performing an operation in a neural network may be known or at least estimated to decrease as the neural network gets closer to generating an output representing the input (e.g., based on parameter count, node count, input size, etc. in the neural network), the layers in the neural network may be grouped into multiple groups. Each group may be configured for execution on a specific processing unit within the computing device 100, and preferences for executing operations in groups of layers in the neural network may also be defined.

[0031] For example, as illustrated, the neural network 200 may be grouped into a first group 210, a second group 220, and a third group 230. The first group 210 layers in the neural network 200 may be configured for execution on the DSP 140, the NPU 150, and the CPU cores 110 and / or 120 in order of preference. The second group 220 layers in the neural network 200 (which may be considered less computationally complex than the layers in the first group 210) may be configured for execution on the DSP 140, the NPU 150, and the GPU 130 in order of preference. Finally, the third group 230 layers (which may be considered less computationally complex than the layers in the second group 220) may be configured for execution on the CPU cores 110 and / or 120 and the GPU 130 in order of preference.

[0032] In some aspects, different layers in neural network 200 can be configured to execute using different quantization levels or different granularities at which data can be generated. To allow for configuration of different groups of layers, each layer included in a group of layers can be trained or compiled for execution using the same quantization level. For example, the first group 210 of layers (which, as discussed, can correspond to the group of layers with the highest computational complexity) can be trained or compiled for execution in a 32-bit floating point space (e.g., in the range of -3.4*10 38 and 3.4*10 382 (e.g., quantized within a space between 1 and 255). The second set 220 layers (which may correspond to a set of layers having a lower computational complexity than the first set 210 layers) may be trained or compiled for execution using a less computationally complex data type, such as quantized within an 8-bit integer space (e.g., a space ranging between -128 and 127 (if signed), or between 0 and 255 (if unsigned)). The third set 230 layers may therefore be trained or compiled for execution using a data type of even lower computational complexity, such as quantized within a smaller integer space (e.g., 6 bits, 4 bits, etc.). In general, these different quantization levels may be constraints that limit the selection of processors to which subsequent machine learning operations may be transferred and / or make some processors better targets for scheduling subsequent machine learning operations. For example, if layers in a neural network are compiled for floating point quantization, processors with better floating point processing capabilities (e.g., "performance" CPU cores, GPUs, NPUs, etc.) may be suitable for executing operations in these layers, while processors that lack floating point processing capabilities or have limited floating point processing capabilities (e.g., "efficiency" CPU cores, etc.) may not be suitable for executing operations in these layers.

[0033] Although Figure 2 The division of a neural network into multiple layer groups is illustrated, but it should be recognized that any machine learning model can be organized into similar groupings, and the division of a neural network into multiple layer groups is merely an example of dividing a machine learning model into different groups of components that can be scheduled for execution on different groups of processing units.

[0034] Example methods for adaptive scheduling of machine learning operations in multi-processor computing devices

[0035] Figure 3 300 illustrates example operations that may be performed to adaptively schedule execution of operations in a machine learning model on a multi-processor computing device, such as a processor, in accordance with aspects of the present disclosure. Figure 1 The computing device 100 illustrated in FIG.

[0036] As illustrated, operations 300 may begin at block 310, where, during execution of operations in a first portion of a machine learning model of a first processor of a multi-processor computing device, a temperature of each of a plurality of processing units is measured. These measurements may be made by querying or otherwise polling one or more temperature sensors (e.g., Figure 1The temperature of the processing unit may be determined using a plurality of temperature sensors 170 (illustrated in Figure 1 ), each of which is associated with a particular processing unit or other discrete component in the computing device. In some aspects, where a processing unit has multiple temperature sensors associated with the processing unit, various techniques may be used to determine the temperature of the processing unit. For example, an average temperature across multiple temperature sensors may be used as the temperature of the processing unit. In another example, the highest temperature measured across multiple temperature sensors may be used as the temperature of the processing unit. In some aspects, the measured temperature may correspond to an instantaneous temperature reading; in other aspects, the measured temperature may be a running average of a recent number of samples.

[0037] At block 320 , the operation 300 continues with a determination that the temperature measured for the first processing unit exceeds a threshold temperature.

[0038] At box 330, operation 300 continues with selecting a second processing unit of the computing device for performing operations in the second part of the machine learning model. In general, the second processing unit may be selected based on one or more operating parameters of the computing device. These operating parameters may include, for example, the distance between the first processing unit and the second processing unit, the current load on the second processing unit, the current temperature of the second processing unit, etc. Information such as the distance between the first processing unit and the second processing unit may be defined in a configuration file, for example. For example, the configuration file may correspond to the physical layout of the computing device on which the machine learning operations are performed, and may include information identifying the location of each processing unit in the computing device. In some aspects, the configuration file may include information identifying the specific slots in which these processors are installed, and various assumptions may be made based on this information. For example, in a computing system where processors are installed in expansion slots numbered from 0 to n, where expansion slot 0 is closest to the CPU, the relative distance between each processor in the computing system may be determined and used to select a processor to use when performing operations in the second part of the machine learning model.

[0039] In some aspects, when the distance from the first processing unit is one of the operating parameters used to select the second processing unit, the second processing unit can be selected as the processing unit that has a temperature below a threshold temperature (e.g., a thermal upper limit defined for the processing unit, one of multiple thermal thresholds that define different performance levels of the processing unit, etc.) and is farthest from the first processing unit.

[0040] In some aspects, the second processing unit can be selected further based on a ranking of types of processing units used when performing operations in the second portion of the neural network. These rankings can be based on, for example, the size of data processed in the second portion of the machine learning model (e.g., the type of data used to process the data in the second portion of the machine learning model, such as 32-bit floating point, 8-bit integer, etc.) and the performance level associated with each type of processing unit in the computing device (e.g., the number of floating point operations per second, integer operations per second, etc. supported by the processing unit of the computing device).

[0041] In some aspects, the second processing unit may be selected by identifying a set of processing units whose distance from the first processing unit exceeds a distance threshold and whose measured temperature is below a threshold temperature. The distance threshold may be an absolute distance between processing units (e.g., based on a known architectural layout of a computing device) or an assumed distance based on general rules defining the locations of processing units and expansion slots in a computing device. The second processing unit may be selected from the identified set of processing units. For example, the second processing unit may be selected from the identified set of processing units based on an ordering of the processing units (as discussed above), a current load on the processing units, and the like. In some aspects, the identified set of processing units may be further identified by identifying processing units whose current load is less than a threshold load.

[0042] At box 340, execution of operations in a second portion of the machine learning model is scheduled for execution on the second processing unit.

[0043] In some aspects, the first portion of the machine learning model and the second portion of the machine learning model can be different layers of a neural network configured for execution on the same set of processing units. For example, the first portion of the machine learning model and the second portion of the machine learning model network can be layers of a neural network configured to execute on the same type of processor using the same data type.

[0044] In some aspects, the first portion of the machine learning model can be a layer in a first set of layers of a neural network, and the second portion of the machine learning model can be a layer in a second set of layers in the neural network. The first set of layers can be configured to execute on a first set of processing units of a computing device. The second set of layers can be configured to execute on a second set of processing units of a computing device. For example, as described above with respect to Figure 2As discussed, a first set of layers of a neural network and a second set of layers of a neural network may include sets of layers having different levels of computational complexity. Typically, computational complexity information such as data types used by different parts of a machine learning model (and corresponding assumptions about the computational complexity of operations in these different parts of the machine learning model) may be known in advance (e.g., through configuration information accompanying the machine learning model) and may be used to schedule subsequent machine learning operations on a computing device. The first set of layers may be configured with a first set of quantization parameters, and the second set of layers may be configured with a second set of quantization parameters. For example, the second set of quantization parameters may correspond to quantization on a data type smaller than the first set of quantization parameters. For example, the first set of layers may include layers in a neural network configured to process data using 32-bit floating point numbers, while the second set of layers may include layers in a neural network configured to process data using 8-bit integers. Of course, it should be recognized that this is merely an example, and the first set of layers and the second set of layers may be configured to process and quantize data using varying data types.

[0045] In some aspects, the first set of processing units may include a neural processing unit (NPU), a digital signal processor (DSP), and a plurality of central processing unit (CPU) cores. Meanwhile, the second set of processing units may include a plurality of CPU cores and a plurality of graphics processing unit (GPU) processors. In this case, if the first portion of the neural network is executing on one or more CPU cores, then the second portion of the neural network may therefore be scheduled for execution using the GPU processor, because it may be assumed that the CPU core is located relatively closer to the CPU core on which the first portion of the neural network is executed and therefore the CPU may not be a suitable candidate processing unit for performing operations using the second set.

[0046] Example processing system for adaptive scheduling of machine learning operations in a multi-processor computing device

[0047] Figure 4 An example processing system 400 for adaptively scheduling execution of operations in a neural network on a multiprocessor computing device, such as described herein, for example, with respect to Figure 3 described.

[0048] Processing system 400 includes a central processing unit (CPU) 402, which in some examples may be a multi-core CPU. Instructions executed at CPU 402 may be loaded, for example, from a program memory associated with CPU 402, or may be loaded from a partition in memory 424.

[0049] The processing system 400 also includes additional processing components tailored for specific functions, such as a graphics processing unit (GPU) 404, a digital signal processor (DSP) 406, a neural processing unit (NPU) 408, a multimedia processing unit 410, a multimedia processing unit 410, and wireless connectivity components 412.

[0050] An NPU, such as 408, is typically a dedicated circuit configured to implement all necessary control and arithmetic logic for executing machine learning algorithms, such as algorithms for processing artificial neural networks (ANNs), deep neural networks (DNNs), random forests (RFs), etc. An NPU is sometimes alternatively referred to as a neural signal processor (NSP), a tensor processing unit (TPU), a neural network processor (NNP), an intelligence processing unit (IPU), a vision processing unit (VPU), or a graphics processing unit.

[0051] NPUs such as 408 are configured to accelerate the execution of common machine learning tasks such as image classification, machine translation, object detection, and various other predictive models. In some examples, multiple NPUs may be instantiated on a single chip such as a system on a chip (SoC), while in other examples, the multiple NPUs may be part of a dedicated neural network accelerator.

[0052] The NPU can be optimized for training or inference, or in some cases configured to balance performance between the two. For NPUs that can perform both training and inference, the two tasks can generally still be performed independently.

[0053] NPUs designed to accelerate training are generally configured to accelerate the optimization of new models, which is a highly computationally intensive operation that involves inputting an existing data set (usually labeled or tagged), iterating on the data set, and then adjusting model parameters (such as weights and biases) to improve model performance. Generally speaking, optimization based on error predictions involves passing back through the layers of the model and determining the gradient to reduce the prediction error.

[0054] NPUs designed to accelerate inference are generally configured to operate on complete models. Such NPUs can thus be configured to input new data slices and quickly process the data slices through the trained model to generate model outputs (e.g., inferences).

[0055] In one implementation, the NPU 408 is part of one or more of the CPU 402 , the GPU 404 , and / or the DSP 406 .

[0056] In some examples, wireless connectivity component 412 may include, for example, subcomponents for third generation (3G) connectivity, fourth generation (4G) connectivity (e.g., 4G LTE), fifth generation connectivity (e.g., 5G or NR), Wi-Fi connectivity, Bluetooth connectivity, and other wireless data transmission standards. Wireless connectivity component 412 is further connected to one or more antennas 414.

[0057] The processing system 400 may also include any type of sensor (such as Figure 1 One or more sensor processing units 416 associated with the temperature sensor 170 illustrated in FIG. 1 , one or more image signal processors (ISPs) 418 associated with any manner of image sensor, and / or a navigation processor 420, which may include satellite-based positioning system components (e.g., GPS or GLONASS) and inertial positioning system components.

[0058] The processing system 400 may also include one or more input and / or output devices 422, such as a screen, a touch-sensitive surface (including a touch-sensitive display), physical buttons, speakers, microphones, and the like.

[0059] In some examples, one or more of the processors of processing system 400 may be based on the ARM or RISC-V instruction set.

[0060] Processing system 400 also includes memory 424, which represents one or more static and / or dynamic memories, such as dynamic random access memory, flash-based static memory, etc. In this example, memory 424 includes computer-executable components that can be executed by one or more of the aforementioned processors of processing system 400.

[0061] Specifically, in this example, memory 424 includes a temperature measurement component 424A, a temperature exceeding a threshold determination component 424B, a processing unit selection component 424C, a scheduling component 424D, and a neural network 424E. The depicted components, as well as other components not depicted, may be configured to perform various aspects of the methods described herein.

[0062] In general, the processing system 400 and / or components of the processing system may be configured to perform the methods described herein.

[0063] It is worth noting that in other embodiments, aspects of the processing system 400 may be omitted, such as where the processing system 400 is a server computer, etc. For example, in other embodiments, the multimedia processing unit 410, the wireless connectivity component 412, the sensor processing unit 416, the ISP 418, and / or the navigation processor 420 may be omitted. Furthermore, aspects of the processing system 400 may be distributed, such as training a model and using the model to generate inferences, such as user-validated predictions.

[0064] Sample Clauses

[0065] Specific implementation examples are described in the following numbered clauses:

[0066] Item 1: A method implemented on a computing device having multiple processing units, the method comprising: measuring a temperature at each of a plurality of locations on the computing device during execution of operations in a first portion of a neural network on a first processing unit of the computing device; determining that the temperature measured for the first processing unit exceeds a threshold temperature; selecting a second processing unit of the computing device for execution of operations in a second portion of the neural network based on one or more operating parameters of the computing device; and scheduling execution of the operations in the second portion of the neural network on the second processing unit.

[0067] Clause 2: The method of clause 1, wherein the first portion of the neural network and the second portion of the neural network comprise layers of the neural network configured for execution on the same set of processing units.

[0068] Clause 3: A method according to any one of clauses 1 or 2, wherein the first portion of the neural network is a member of a first set of layers configured for execution on a first set of processing units of the computing device, and the second portion of the neural network is a member of a second set of layers configured for execution on a second set of processing units of the computing device.

[0069] Clause 4: The method of clause 3, wherein the first set of layers comprises a set of layers configured with a first set of quantization parameters.

[0070] Clause 5: A method according to clause 4, wherein: the second set of layers comprises a set of layers configured with a second set of quantization parameters, and the second set of quantization parameters corresponds to quantization on a smaller data type than the first set of quantization parameters.

[0071] Clause 6: A method according to any one of clauses 3 to 5, wherein the first set of processing units includes a neural processing unit (NPU), a digital signal processor (DSP), and a plurality of central processing unit (CPU) cores.

[0072] Clause 7: The method of clause 6, wherein the second set of processing units includes the plurality of CPU cores and a plurality of graphics processing unit (GPU) processors.

[0073] Clause 8: A method according to any of clauses 1 to 7, wherein selecting the second processing unit is further based on a ranking of types of processing units used to perform operations in the second portion of the neural network.

[0074] Clause 9: The method of clause 8, wherein the ordering of types of processing units is based on a size of data processed using the second portion of the neural network and a performance level associated with each type of processing unit in the computing device.

[0075] Clause 10: A method according to any one of clauses 1 to 9, wherein the one or more operating parameters include one or more of the following: the distance between the one or more processing units and the first processing unit, the temperature of the one or more processing units, or the current load on the one or more processing units.

[0076] Clause 11: The method of clause 10, wherein selecting the second processing unit comprises selecting a processing unit that is farthest from the first processing unit and has a measured temperature below a threshold temperature.

[0077] Clause 12: A method according to any one of clauses 10 or 11, wherein selecting the second processing unit comprises: identifying a set of processing units whose distance from the first processing unit exceeds a distance threshold and whose measured temperature is lower than a threshold temperature; and selecting the second processing unit from the identified set of processing units.

[0078] Clause 13: The method of clause 12, wherein identifying the set of processing units further comprises identifying processing units having a current load less than a threshold load.

[0079] Clause 14: A processing system, the processing system comprising: a memory, the memory comprising computer-executable instructions; and one or more processors, the one or more processors configured to execute the computer-executable instructions and cause the processing system to perform a method according to any one of clauses 1 to 13.

[0080] Clause 15: A processing system comprising means for performing the method according to any one of clauses 1 to 13.

[0081] Clause 16: A non-transitory computer readable medium comprising computer executable instructions which, when executed by one or more processors of a processing system, cause the processing system to perform the method of any one of clauses 1 to 13.

[0082] Clause 17: A computer program product embodied on a computer readable storage medium, the computer readable storage medium comprising code for performing the method according to any one of clauses 1 to 13.

[0083] Additional considerations

[0084] The previous description is provided to enable any person skilled in the art to practice the various embodiments described herein. The examples discussed herein are not limitations on the scope, applicability, or embodiments set forth in the claims. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the universal principles defined herein may be applied to other embodiments. For example, without departing from the scope of the present disclosure, the functions and arrangements of the elements discussed may be changed. Each example may ignore, replace, or add various processes or components as appropriate. For example, the described method may be performed in a different order than described, and various steps may be added, omitted, or combined. In addition, the features described for some examples may be combined in some other examples. For example, any number of aspects set forth herein may be used to implement a device or practice method. In addition, the scope of the present disclosure is intended to cover such devices or methods practiced using other structures, functionality, or structures and functionality that are supplementary or alternative to the various aspects of the present disclosure set forth herein. It should be understood that any aspect of the disclosure disclosed herein may be embodied by one or more elements of the claims.

[0085] As used herein, the word “exemplary” means “serving as an example, instance, or illustration.” Any aspect described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other aspects.

[0086] As used herein, a phrase referring to "at least one of" a list of items refers to any combination of those items (including single members). For example, "at least one of a, b, or c" is intended to cover a, b, c, ab, ac, bc, and abc, as well as any combination with multiple identical elements (e.g., aa, aaa, aab, aac, abb, acc, bb, bbb, bbc, cC, and cCc, or any other ordering of a, b, and c).

[0087] As used herein, the term "determining" encompasses a wide variety of actions. For example, "determining" may include calculating, computing, processing, deriving, investigating, searching (e.g., searching in a table, a database, or another data structure), ascertaining, and the like. Also, "determining" may include receiving (e.g., receiving information), accessing (e.g., accessing data in a memory), and the like. Furthermore, "determining" may include resolving, selecting, choosing, establishing, and the like.

[0088] The method disclosed herein includes one or more steps or actions for implementing the method. Method steps and / or actions can be interchangeable with each other without departing from the scope of the claims. In other words, unless a specific order of steps or actions is specified, the order and / or use of specific steps and / or actions can be modified without departing from the scope of the claims. In addition, the various operations of the method described above can be performed by any appropriate component capable of performing the corresponding function. The component may include various hardware and / or software components and / or modules, including but not limited to circuits, application specific integrated circuits (ASICs) or processors. Typically, in the presence of operations illustrated in the accompanying drawings, those operations may have corresponding corresponding components with similar numbers plus functional components.

[0089] The following claims are not intended to be limited to the embodiments shown herein, but should be granted the full scope consistent with the language of the claims. Within the claims, unless otherwise specified, reference to an element in the singular form is not intended to mean "one and only one", but "one or more". Unless otherwise specified, the term "some" refers to one or more. Any claim element should not be interpreted according to the provisions of 35 USC § 112 (f), unless the phrase "parts for..." is used to expressly record the element, or in the case of a method claim, the phrase "step for..." is used to record the element. All structural and functional equivalents of the elements of various aspects described in this disclosure that are known or will be known to a person of ordinary skill in the art are expressly incorporated herein by reference and are intended to be covered by the claims. In addition, nothing disclosed herein is intended to be disclosed to the public, regardless of whether such disclosure is explicitly stated in the claims.

Claims

1. A method implemented on a computing device having a plurality of processing units, the method comprising: During execution of operations in a first portion of a machine learning model on a first processing unit of the computing device, measuring a temperature at each of a plurality of locations on the computing device; determining that a temperature measured for the first processing unit exceeds a threshold temperature; selecting a second processing unit of the computing device for performing operations in a second portion of the machine learning model based on one or more operating parameters of the computing device; as well as Scheduling execution of operations in the second portion of the machine learning model on the second processing unit.

2. The method of claim 1 , wherein the first portion of the machine learning model and the second portion of the machine learning model comprise layers of a neural network configured to execute on the same set of processing units.

3. A method according to claim 1, wherein the first portion of the machine learning model is a member of a first layer set configured for execution on a first set of processing units of the computing device, and the second portion of the machine learning model is a member of a second layer set configured for execution on a second set of processing units of the computing device. The method of claim 3 , wherein the first set of layers comprises a set of layers configured with a first set of quantization parameters.

5. The method according to claim 4, wherein: The second layer set includes a layer set configured with a second quantization parameter set, and the second quantization parameter set corresponds to quantization on a smaller data type than the first quantization parameter set.

6. The method of claim 3, wherein the first set of processing units comprises a neural processing unit (NPU), a digital signal processor (DSP), and a plurality of central processing unit (CPU) cores.

7. The method of claim 6, wherein the second set of processing units includes the plurality of CPU cores and a plurality of graphics processing unit (GPU) processors.

8. The method of claim 1 , wherein selecting the second processing unit is further based on a ranking of types of processing units used to perform operations in the second portion of the machine learning model.

9. The method of claim 8, wherein the ordering of types of processing units is based on a size of data processed using the second portion of the machine learning model and a performance level associated with each type of processing unit in the computing device.

10. The method of claim 1, wherein the one or more operating parameters include one or more of: a distance between one or more processing units and the first processing unit, a temperature of the one or more processing units, or a current load on the one or more processing units. 11 . The method of claim 10 , wherein selecting the second processing unit comprises selecting a processing unit that is farthest from the first processing unit and has a measured temperature below a threshold temperature.

12. The method of claim 10, wherein selecting the second processing unit comprises: Identify a set of processing units whose distance from the first processing unit exceeds a distance threshold and whose measured temperature is lower than a threshold temperature; as well as The second processing unit is selected from the identified set of processing units.

13. The method of claim 12, wherein identifying the set of processing units further comprises identifying processing units whose current load is less than a threshold load.

14. A processing system, comprising: a memory including computer executable instructions; and one or more processors configured to execute the computer-executable instructions and cause the processing system to: During execution of operations in a first portion of a machine learning model on a first processing unit of a computing device, measuring a temperature at each of a plurality of locations on the computing device; determining that a temperature measured for the first processing unit exceeds a threshold temperature; selecting a second processing unit of the computing device for performing operations in a second portion of the machine learning model based on one or more operating parameters of the computing device; as well as Scheduling execution of operations in the second portion of the machine learning model on the second processing unit.

15. The processing system of claim 14, wherein the first portion of the machine learning model and the second portion of the machine learning model comprise layers of a neural network configured for execution on the same set of processing units.

16. A processing system according to claim 14, wherein the first portion of the machine learning model is a member of a first layer set configured for execution on a first set of processing units of the computing device, and the second portion of the machine learning model is a member of a second layer set configured for execution on a second set of processing units of the computing device.

17. The processing system of claim 16, wherein the first set of layers comprises a set of layers configured with a first set of quantization parameters.

18. The processing system of claim 17, wherein: The second layer set includes a layer set configured with a second quantization parameter set, and the second quantization parameter set corresponds to quantization on a smaller data type than the first quantization parameter set.

19. The processing system of claim 16, wherein the first set of processing units comprises a neural processing unit (NPU), a digital signal processor (DSP), and a plurality of central processing unit (CPU) cores.

20. The processing system of claim 19, wherein the second set of processing units includes the plurality of CPU cores and a plurality of graphics processing unit (GPU) processors.

21. The processing system of claim 14, wherein the processor is configured to select the second processing unit further based on a ranking of types of processing units used to perform operations in the second portion of the machine learning model.

22. A processing system according to claim 21, wherein the ordering of types of processing units is based on the size of data processed using the second portion of the machine learning model and the performance level associated with each type of processing unit in the computing device.

23. The processing system of claim 14, wherein the one or more operating parameters include one or more of: a distance between one or more processing units and the first processing unit, a temperature of the one or more processing units, or a current load on the one or more processing units.

24. The processing system of claim 23, wherein to select the second processing unit, the processor is configured to select a processing unit that is farthest from the first processing unit and has a measured temperature lower than a threshold temperature.

25. The processing system of claim 23, wherein to select the second processing unit, the processor is configured to: identifying a set of processing units whose distance from the first processing unit exceeds a distance threshold and whose measured temperature is lower than a threshold temperature; and The second processing unit is selected from the identified set of processing units.

26. The processing system of claim 25, wherein to identify the set of processing units, the processing system is further configured to identify processing units whose current load is less than a threshold load.

27. A processing system, the processing system comprising: means for measuring a temperature of each of a plurality of locations on a computing device during execution of operations in a first portion of a machine learning model on a first processing unit of the computing device; means for determining that a temperature measured for the first processing unit exceeds a threshold temperature; means for selecting, based on one or more operating parameters of the computing device, a second processing unit of the computing device for use in performing operations in a second portion of the machine learning model; and A component for scheduling execution of operations in the second portion of the machine learning model on the second processing unit.

28. A non-transitory computer readable medium comprising computer executable instructions which, when executed by one or more processors of a processing system, cause the processing system to perform a method comprising: During execution of operations in a first portion of a machine learning model on a first processing unit of a computing device, measuring a temperature at each of a plurality of locations on the computing device; determining that a temperature measured for the first processing unit exceeds a threshold temperature; selecting a second processing unit of the computing device for performing operations in a second portion of the machine learning model based on one or more operating parameters of the computing device; as well as Scheduling execution of operations in the second portion of the machine learning model on the second processing unit.