# US 2021/0081019 A1 · Power Optimization In An Artificial Intelligence Processor

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0081019 A1
- Document ID: US20210081019A1
- Status: Published application
- Kind: A1
- Application number: 16/951,487
- Filed: 2020-11-18
- Published: 2021-03-18
- Earliest claimed: 2018-12-11
- Assignees: Groq, Inc.
- Applicants: Groq, Inc.
- Inventors: Sushma Honnavara-Prasad
- Web page: https://patentgrep.com/patent/US20210081019A1

## CPC

- G06F 1/329: by task scheduling
- G06N 3/063: using electronic means
- G06F 1/28: Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
- G06F 8/31: {Programming languages or programming paradigms}
- G06F 8/4432: {Reducing the energy consumption}
- G06F 9/4893: {taking into account power or heat criteria (power management in computers in general G06F1/3203; thermal management in computers in general G06F1/206)}
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

In one embodiment, the present disclosure includes a method of reducing power in an artificial intelligence processor. For each cycle, over a plurality of cycles, an AI model is translated into operations executable on an artificial intelligence processor. The translating is based on power parameters that correspond to power consumption and performance of the artificial intelligence processor. The AI processor is configured with the executable operations, and input activation data sets are processed. Accordingly, result sets, power consumption data, and performance data are generated and stored over the plurality of cycles. The method further includes training an AI algorithm using the stored parameters, the power consumption data, and the performance data. A trained AI algorithm outputs a plurality of optimized parameters to reduce power consumption of the AI processor. The AI model is then translated into optimized executable operations based on the plurality of optimized parameters.

## Claims

### Claim 1

A non-transitory computer-readable storage medium having stored thereon computer executable instructions, which when executed by a compiler operating on at least one computer processor, cause the at least one computer processor to be operable for:
receiving a set of parameters produced using at least power consumption data and performance data generated by executing a first plurality of operations on an artificial intelligence (AI) processor over a first time period; and
translating a model for the AI processor into a second plurality of operations by using at least a subset of the parameters from the set controlling utilization of resources in the AI processor over a second time period during execution of the second operations on the AI processor,
wherein a power consumed for executing the second operations on the AI processor over the second time period is less than another power consumed for executing the first operations on the AI processor over the first time period, the power consumed over the second time period maintained below a threshold level.

### Claim 2 (depends on 1)

The computer-readable storage medium of claim 1, wherein the at least one computer processor is further operable for training an AI algorithm using at least the power consumption data and the performance data to produce the set of parameters.

### Claim 3 (depends on 2)

The computer-readable storage medium of claim 2, wherein the trained AI algorithm comprises a plurality of elements representing values and mathematical operations associated with the second operations.

### Claim 4 (depends on 1)

The computer-readable storage medium of claim 1, wherein the compiler comprises a plurality of stages, and the at least one computer processor is further operable for:
reconfiguring the model into another model for the AI processor; and
translating the other model into the second operations.

### Claim 5 (depends on 4)

The computer-readable storage medium of claim 4, wherein the at least one computer processor is further operable for:
reconfiguring the model into the other model by selectively mapping a plurality of elements of the model modeling other resources in the AI processor utilized over the first time period into a plurality of elements of the other model modeling the resources utilized over the second time period using at least the subset of the parameters to reduce an amount of power consumed by the AI processor over the second time period.

### Claim 6 (depends on 4)

The computer-readable storage medium of claim 4, wherein the at least one computer processor is further operable for:
translating the other model into the second operations by selectively scheduling the second operations for execution on the AI processor over the second time period using at least the subset of the parameters.

### Claim 7 (depends on 4)

The computer-readable storage medium of claim 4, wherein the at least one computer processor is further operable for:
translating the other model into the second operations by scheduling one or more no operation (NOOP) operations using at least the subset of the parameters to reduce an amount of power consumed by the AI processor over the second time period.

### Claim 8 (depends on 4)

The computer-readable storage medium of claim 4, wherein the at least one computer processor is further operable for:
reconfiguring the model into the other model by converting convolutions into matrix multiplications performed by a first portion of the resources and into vector operations performed by a second portion of the resources resulting into fewer matrix multiplications, more vector operations, and the consumed power over the second time period below the threshold level.

### Claim 9 (depends on 4)

The computer-readable storage medium of claim 4, wherein the at least one computer processor is further operable for:
reconfiguring the model into the other model by selectively controlling modifications of the model using least the subset of the parameters, the modifications reducing an amount of power consumed at the AI processor over the second time period.

### Claim 10 (depends on 1)

The computer-readable storage medium of claim 1, wherein the at least one computer processor is further operable for:
resolving dependencies in the model to determine a plurality of operations for parallel execution on the AI processor; and
including the plurality of operations into the other model.

### Claim 11 (depends on 1)

The computer-readable storage medium of claim 1, wherein the at least one computer processor is further operable for:
dynamically configuring the resources for performing the second operations over the second time period, based on at least the subset of the parameters.

### Claim 12 (depends on 1)

The computer-readable storage medium of claim 1, wherein the at least one computer processor is further operable for:
determining data paths to be utilized in the AI processor during the execution of the second operations based on at least the subset of the parameters.

### Claim 13 (depends on 1)

The computer-readable storage medium of claim 1, wherein the at least one computer processor is further operable for:
determining sub-circuits in a plurality of circuits to be utilized in the AI processor during the execution of the second operations based on at least the subset of the parameters.

### Claim 14 (depends on 1)

The computer-readable storage medium of claim 1, wherein the at least one computer processor is further operable for:
dynamically turning on and off the resources at predetermined time during the execution of the second operations on the AI processor, based on at least the subset of the parameters.

### Claim 15

A system comprising:
an artificial intelligence (AI) processor comprising a plurality of circuits for inferring a solution to an AI problem defined by a model for the AI processor by executing a plurality of operations to perform convolutions; and
a dynamic compiler having means for:
receiving a set of parameters produced using at least power consumption data and performance data generated by executing a first plurality of operations on the AI processor over a first time period, and
translating a model for the AI processor into a second plurality of operations by using at least a subset of the parameters from the set controlling utilization of resources in the AI processor over a second time period during execution of the second operations on the AI processor,
wherein a power consumed for executing the second operations on the AI processor over the second time period is less than another power consumed for executing the first operations on the AI processor over the first time period, the power consumed over the second time period maintained below a threshold level.

### Claim 16 (depends on 15)

The system of claim 15, wherein the model comprises a tensor flow model for the AI processor.

### Claim 17 (depends on 15)

The system of claim 15, wherein the AI processor comprises a matrix multiplier circuit, a memory circuit, a vector processor circuit, and a switch matrix circuit.

### Claim 18

A method comprising:
receiving, at a compiler operating on a computer, a set of parameters produced using at least power consumption data and performance data generated by executing a first plurality of operations on an artificial intelligence (AI) processor over a first time period; and
translating, in the compiler, a model for the AI processor into a second plurality of operations by using at least a subset of the parameters from the set controlling utilization of resources in the AI processor over a second time period during execution of the second operations on the AI processor,
wherein a power consumed for executing the second operations on the AI processor over the second time period is less than another power consumed for executing the first operations on the AI processor over the first time period, the power consumed over the second time period maintained below a threshold level.

### Claim 19 (depends on 18)

The method of claim 18, wherein an AI algorithm is trained using at least the power consumption data and the performance data to produce the set of parameters, the trained AI algorithm comprises a plurality of elements representing values and mathematical operations associated with the second operations.

### Claim 20 (depends on 18)

The method of claim 18, further comprising:
reconfiguring the model into the other model by selectively mapping a plurality of elements of the model modeling other resources in the AI processor utilized over the first time period into a plurality of elements of the other model modeling the resources utilized over the second time period using at least the subset of the parameters to reduce an amount of power consumed by the AI processor over the second time period; and
translating the other model into the second operations.
