# US 2022/0284275 A1 · Task activating for accelerated deep learning

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

- Number: US 2022/0284275 A1
- Document ID: US20220284275A1
- Status: Published application
- Kind: A1
- Application number: 17/504,784
- Filed: 2021-10-19
- Published: 2022-09-08
- Earliest claimed: 2017-04-17
- Assignees: Cerebras Systems Inc.
- Applicants: Cerebras Systems Inc.
- Inventors: Sean LIE; Michael MORRISON; Srikanth AREKAPUDI; Michael Edwin JAMES; Gary R. LAUTERBACH
- Web page: https://patentgrep.com/patent/US20220284275A1

## CPC

- G06N 3/063: using electronic means
- G06F 5/06: for changing the speed of data flow, i.e. speed regularising {or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor (G06F7/78 takes precedence)}
- G06F 9/3001: {Arithmetic instructions}
- G06F 9/30014: {with variable precision}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/30087: {Synchronisation or serialisation instructions}
- G06F 9/3009: {Thread control instructions}
- G06F 9/3016: {Decoding the operand specifier, e.g. specifier format}
- G06F 9/30192: {according to data descriptor, e.g. dynamic data typing}
- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 13/00: Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units (interface circuits for specific input/output devices G06F3/00 {; multiprogram control therefor G06F9/46}; multiprocessor systems G06F15/16 )
- G06F 13/4027: {using bus bridges (G06F13/4022 takes precedence)}
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/0475: Generative networks
- G06N 3/048: Activation functions
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/08: Learning methods
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- H04L 12/56: {Packet switching systems}
- H04L 49/3018: {Input queuing}
- G06F 30/392: Floor-planning or layout, e.g. partitioning or placement
- H04L 49/3045: {Virtual queuing}
- H04L 49/506: Backpressure
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Techniques in advanced deep learning provide improvements in one or more of accuracy, performance, and energy efficiency. An array of processing elements performs flow-based computations on wavelets of data. Each processing element has a compute element and a routing element. Each router enables communication via wavelets with at least nearest neighbors in a 2D mesh. Routing is controlled by virtual channel specifiers in each wavelet and routing configuration information in each router. Execution of an activate instruction or completion of a fabric vector operation activates one of the virtual channels. A virtual channel is selected from a pool comprising previously activated virtual channels and virtual channels associated with previously received wavelets. A task corresponding to the selected virtual channel is activated by executing instructions corresponding to the selected virtual channel.

## Claims

### Claim 1

(canceled)

### Claim 2

A method comprising:
exchanging fabric packets selectively in accordance with a plurality of virtual channels between a plurality of processing elements interconnected as a fabric, one or more of the fabric packets comprising a virtual channel specifier identifying one of the virtual channels, each processing element comprising a fabric router and a compute element, each compute element comprising a memory enabled to store instructions comprising one or more associated instructions for each of the virtual channels and an activate instruction, and wherein the memory is further enabled to provide at least one of the one or more associated instructions and the activate instruction to the compute element for execution;
in each processing element, managing a local respective virtual queue for each of the virtual channels;
in each processing element and in accordance with predetermined criteria, picking ones of the virtual channels for processing, the predetermined criteria comprising selecting from a pool of active ones of the virtual channels;
in a first processing element of the processing elements, fetching and executing the activate instruction from the memory of the compute element of the first processing element;
in the first processing element and responsive to the fetching and executing the activate instruction, activating a specified virtual channel;
in the first processing element and subsequent to the activating, picking the specified virtual channel in accordance with the predetermined criteria; and
in the first processing element and responsive to the picking, fetching and executing the at least one of the one or more of the associated instructions from the memory of the compute element of the first processing element.

### Claim 3 (depends on 2)

The method of claim 2, wherein the fetching comprises using an identifier of the specified virtual channel to determine an address of the at least one of the one or more of the associated instructions in the memory of the compute element of the first processing element.

### Claim 4 (depends on 3)

The method of claim 3, wherein the address is based at least in part upon the identifier multiplied by a predetermined constant.

### Claim 5 (depends on 2)

The method of claim 2, wherein the method is carried out via a substantially whole wafer comprising the processing elements.

### Claim 6 (depends on 2)

The method of claim 2, wherein the activate instruction comprises an immediate field that specifies the specified virtual channel.

### Claim 7 (depends on 2)

The method of claim 2, wherein the activating is a first activating and the specified virtual channel is a first specified virtual channel, and each processing element further comprises a circular memory buffer having an associated data structure descriptor comprising an identifier of a push associated one of the virtual channels; and further comprising:
in the first processing element, pushing an element onto the circular memory buffer; and
wherein a second activating is carried out responsive to the pushing and a second specified virtual channel is the push associated one of the virtual channels.

### Claim 8 (depends on 2)

The method of claim 2, wherein the activating is a first activating and the specified virtual channel is a first specified virtual channel, and each processing element further comprises a circular memory buffer having an associated data structure descriptor comprising an identifier of a pop associated one of the virtual channels; and further comprising:
in the first processing element, popping an element off of the circular memory buffer; and
wherein a second activating is carried out responsive to the popping and a second specified virtual channel is the pop associated one of the virtual channels.

### Claim 9 (depends on 2)

The method of claim 2, wherein the activating is a first activating, the specified virtual channel is a first specified virtual channel, completing a fabric vector operation in the first processing element comprises a second activating, and the fabric vector operation is specified by a data structure descriptor comprising a specification of a second specified virtual channel.

### Claim 10 (depends on 9)

The method of claim 9, wherein the specification comprises a field of the data structure descriptor.

### Claim 11 (depends on 9)

The method of claim 9, wherein the completing the fabric vector operation comprises receiving via the fabric a predetermined number of data elements from a second processing element of the processing elements.

### Claim 12 (depends on 11)

The method of claim 11, wherein the first processing element and the second processing element are fabricated via wafer-scale integration.

### Claim 13 (depends on 11)

The method of claim 11, wherein the first processing element and the second processing element are fabricated via wafer-scale integration on separate die of a single wafer.

### Claim 14 (depends on 11)

The method of claim 11, wherein the receiving is via a one of the virtual channels other than the specified virtual channel.

### Claim 15 (depends on 9)

The method of claim 9, wherein the completing the fabric vector operation comprises sending via the fabric a predetermined number of data elements to a second processing element of the processing elements.

### Claim 16 (depends on 15)

The method of claim 15, wherein the first processing element and the second processing element are fabricated via wafer-scale integration.

### Claim 17 (depends on 15)

The method of claim 15, wherein the sending is via a one of the virtual channels other than the specified virtual channel.

### Claim 18 (depends on 17)

The method of claim 17, wherein the specified virtual channel is a local virtual channel and the other one of the virtual channels is a fabric virtual channel.

### Claim 19 (depends on 2)

The method of claim 2, wherein each processing element further comprises activate indicators enabled to indicate one of a local activated state and a local inactivated state respectively for each of the virtual channels; and further comprising:
in the first processing element and further responsive to the executing the activate instruction, setting the activate indicator of the specified virtual channel to the activated state; and
in the first processing element and responsive to the fetching and executing the at least one of the one or more of the associated instructions, setting the activate indicator of the specified virtual channel to the inactivated state.

### Claim 20 (depends on 19)

The method of claim 19, wherein each of the activate indicators is in the activated state for the pool of active ones of the virtual channels and wherein the picking is based at least in part on the activate indicators.

### Claim 21 (depends on 2)

The method of claim 2, wherein the activate instruction controls at least in part one or more of: computing an activation of a neural network, computing a partial sum of activations of a neural network, computing an error of a neural network, computing a gradient estimate of a neural network, and updating a weight of a neural network.

### Claim 22 (depends on 2)

The method of claim 2, wherein the at least one of the one or more instructions associated with the specified virtual channel implement at least a portion of one or more of: computing an activation of a neural network, computing a partial sum of activations of a neural network, computing an error of a neural network, computing a gradient estimate of a neural network, and updating a weight of a neural network.

### Claim 23 (depends on 2)

The method of claim 2, further comprising:
specifying communications and computations respectively corresponding to a plurality of nodes of a dataflow graph;
initializing the fabric with all parameters and task software required for the concurrent execution of the communications and computations respectively corresponding to the dataflow graph; and
concurrently executing all layers of the dataflow graph using all-digital techniques for one or more of inference and training.

### Claim 24 (depends on 23)

The method of claim 23, wherein except for defects, the fabric is homogeneous, the plurality of processing elements numbers in the hundreds of thousands, each processing element comprises in the tens of kB of private local storage for instructions and data, and the parameters and task software comprises in the tens of GB of instruction and data storage for one or more of inference and training.

### Claim 25 (depends on 23)

The method of claim 23, wherein the concurrently executing does not require any access to storage external to the fabric for any intermediate state or additional parameters of the dataflow graph.

### Claim 26 (depends on 23)

The method of claim 23, wherein the dataflow graph is a neural network, the nodes correspond to neurons, and at least some of parameters of the dataflow graph correspond to a plurality of weights of the neural network.

### Claim 27

An apparatus comprising:
means for exchanging fabric packets selectively in accordance with a plurality of virtual channels between a plurality of processing elements interconnected as a fabric, one or more of the fabric packets comprising a virtual channel specifier identifying one of the virtual channels, each processing element comprising a fabric router and a compute element, each compute element comprising a memory enabled to store instructions comprising one or more associated instructions for each of the virtual channels and an activate instruction, and wherein the memory is further enabled to provide at least one of the one or more associated instructions and the activate instruction to the compute element for execution;
in each processing element, means for managing a local respective virtual queue for each of the virtual channels;
in each processing element and in accordance with predetermined criteria, means for picking ones of the virtual channels for processing, the predetermined criteria comprising selecting from a pool of active ones of the virtual channels;
in a first processing element of the processing elements, means for fetching and executing the activate instruction from the memory of the compute element of the first processing element;
in the first processing element and responsive to the means for fetching and executing the activate instruction, means for activating a specified virtual channel;
in the first processing element and operable subsequent to the activating, means for picking the specified virtual channel in accordance with the predetermined criteria; and
in the first processing element and responsive to the means for picking, means for fetching and executing the at least one of the one or more of the associated instructions from the memory of the compute element of the first processing element.

### Claim 28 (depends on 27)

The apparatus of claim 27, wherein the fetching comprises using an identifier of the specified virtual channel to determine an address of the at least one of the one or more of the associated instructions in the memory of the compute element of the first processing element.

### Claim 29 (depends on 28)

The apparatus of claim 28, wherein the address is based at least in part upon the identifier multiplied by a predetermined constant.

### Claim 30 (depends on 27)

The apparatus of claim 27, wherein a substantially whole wafer comprises the apparatus.

### Claim 31 (depends on 27)

The apparatus of claim 27, wherein the activate instruction comprises an immediate field that specifies the specified virtual channel.

### Claim 32 (depends on 27)

The apparatus of claim 27, wherein the means for activating is a first means for activating and the specified virtual channel is a first specified virtual channel, and each processing element further comprises a circular memory buffer having an associated data structure descriptor comprising an identifier of a push associated one of the virtual channels; and further comprising:
in the first processing element, means for pushing an element onto the circular memory buffer; and
wherein a second means for activating is responsive to the means for pushing and a second specified virtual channel is the push associated one of the virtual channels.

### Claim 33 (depends on 27)

The apparatus of claim 27, wherein the means for activating is a first means for activating and the specified virtual channel is a first specified virtual channel, and each processing element further comprises a circular memory buffer having an associated data structure descriptor comprising an identifier of a pop associated one of the virtual channels; and further comprising:
in the first processing element, means for popping an element off of the circular memory buffer; and
wherein a second means for activating is responsive to the means for popping and a second specified virtual channel is the pop associated one of the virtual channels.

### Claim 34 (depends on 27)

The apparatus of claim 27, wherein the means for activating is a first means for activating, the specified virtual channel is a first specified virtual channel, means for completing a fabric vector operation in the first processing element comprises a second means for activating and the fabric vector operation is specified by a data structure descriptor comprising a specification of a second specified virtual channel.

### Claim 35 (depends on 34)

The apparatus of claim 34, wherein the specification comprises a field of the data structure descriptor.

### Claim 36 (depends on 34)

The apparatus of claim 34, wherein the means for completing the fabric vector operation comprises means for receiving via the fabric a predetermined number of data elements from a second processing element of the processing elements.

### Claim 37 (depends on 36)

The apparatus of claim 36, wherein the first processing element and the second processing element are fabricated via wafer-scale integration.

### Claim 38 (depends on 36)

The apparatus of claim 36, wherein the first processing element and the second processing element are fabricated via wafer-scale integration on separate die of a single wafer.

### Claim 39 (depends on 36)

The apparatus of claim 36, wherein the means for receiving is operable via a one of the virtual channels other than the specified virtual channel.

### Claim 40 (depends on 34)

The apparatus of claim 34, wherein the means for completing the fabric vector operation comprises means for sending via the fabric a predetermined number of data elements to a second processing element of the processing elements.

### Claim 41 (depends on 40)

The apparatus of claim 40, wherein the first processing element and the second processing element are fabricated via wafer-scale integration.

### Claim 42 (depends on 40)

The apparatus of claim 40, wherein the means for sending is operable via a one of the virtual channels other than the specified virtual channel.

### Claim 43 (depends on 42)

The apparatus of claim 42, wherein the specified virtual channel is a local virtual channel and the other one of the virtual channels is a fabric virtual channel.

### Claim 44 (depends on 27)

The apparatus of claim 27, wherein each processing element further comprises activate indicators enabled to indicate one of a local activated state and a local inactivated state respectively for each of the virtual channels; and further comprising:
in the first processing element and further responsive to the means for executing the activate instruction, means for setting the activate indicator of the specified virtual channel to the activated state; and
in the first processing element and responsive to the means for fetching and executing the at least one of the one or more of the associated instructions, means for setting the activate indicator of the specified virtual channel to the inactivated state.

### Claim 45 (depends on 44)

The apparatus of claim 44, wherein each of the activate indicators is in the activated state for the pool of local currently active ones of the virtual channels and wherein the picking is based at least in part on the activate indicators.

### Claim 46 (depends on 27)

The apparatus of claim 27, wherein the activate instruction controls at least in part one or more of: computing an activation of a neural network, computing a partial sum of activations of a neural network, computing an error of a neural network, computing a gradient estimate of a neural network, and updating a weight of a neural network.

### Claim 47 (depends on 27)

The apparatus of claim 27, wherein the at least one of the one or more instructions associated with the specified virtual channel implement at least a portion of one or more of: computing an activation of a neural network, computing a partial sum of activations of a neural network, computing an error of a neural network, computing a gradient estimate of a neural network, and updating a weight of a neural network.

### Claim 48 (depends on 27)

The apparatus of claim 27, further comprising:
means for specifying communications and computations respectively corresponding to a plurality of nodes of a dataflow graph;
means for initializing the fabric with all parameters and task software required for the concurrent execution of the communications and computations respectively corresponding to the dataflow graph; and
means for concurrently executing all layers of the dataflow graph using all-digital techniques for one or more of inference and training.

### Claim 49 (depends on 48)

The apparatus of claim 48, wherein except for defects, the fabric is homogeneous, the plurality of processing elements numbers in the hundreds of thousands, each processing element comprises in the tens of kB of private local storage for instructions and data, and the parameters and task software comprises in the tens of GB of instruction and data storage for one or more of inference and training.

### Claim 50 (depends on 48)

The apparatus of claim 48, wherein the means for concurrently executing does not require any access to storage external to the fabric for any intermediate state or additional parameters of the dataflow graph.

### Claim 51 (depends on 48)

The apparatus of claim 48, wherein the dataflow graph is a neural network, the nodes correspond to neurons, and at least some of parameters of the dataflow graph correspond to a plurality of weights of the neural network.
