# US 2021/0264257 A1 · AI Accelerator Virtualization

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

- Number: US 2021/0264257 A1
- Document ID: US20210264257A1
- Status: Published application
- Kind: A1
- Application number: 16/975,685
- Filed: 2019-02-28
- Published: 2021-08-26
- Earliest claimed: 2018-03-06
- Assignees: Dinoplusai Holdings Limited
- Applicants: Dinoplusai Holdings Limited
- Inventors: Yujie HU; Xiaosong WANG; Tong WU; Steven SERTILLANGE
- Web page: https://patentgrep.com/patent/US20210264257A1

## CPC

- G06N 3/08: Learning methods
- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0499: Feedforward networks
- G06N 3/063: using electronic means
- G06F 2209/507: Low-level
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An AI (Artificial Intelligence) processor for Neural Network (NN) Processing shared by multiple users is disclosed. The AI processor comprises a Multiplier Unit (MXU), a Scalar Computing Unit (SCU), a unified buffer coupled to the MXU and SCU to store data and a control circuitry coupled to the CCU and the unified buffer. The MXU comprises a plurality of Processing Elements (PEs) responsible for computing matrix multiplications. The SCU coupled to output of the MXU is responsible for computing the activation function. The control circuitry is configured to perform the space division and time division NN processing for a plurality of users. At one time instance, at least one of the MXU and SCU is shared by two or more users; and at least one user is using a part of the MXU while the other user is using a part of the SCU.

## Claims

### Claim 1

An AI (Artificial Intelligence) processor for Neural Network (NN) Processing, comprising:
a Core Computing Unit (CCU) comprising at least two Core Computing Elements (CCEs), wherein
a first Core Computing Element (CCE), corresponding to one level of the CCU, comprises a plurality of Processing Elements (PEs), wherein each PE comprises a multiplier array, an adder tree and an accumulator;
a second CCE, corresponding to another level of the CCU, coupled to output of the first CCE, wherein the second CCE comprises a plurality of Scalar Elements (SE), and each SE is configured to generate an output of one target activation function for an input to said each SE;
a unified buffer coupled to the first CCE and the second CCE to store data;
a control circuitry coupled to the CCU and the unified buffer; and
wherein the AI processor is configured to perform the NN processing for a plurality of users;
wherein at one time instance:
at least one of said at least two CCEs is divided into at least two groups to allow at least two users of the plurality of users to share concurrently; and
at least one part of one of said at least two CCEs is allocated to a first user of the plurality of users and at least one part of another of said at least two CCEs is allocated to a second user of the plurality of users, and wherein at another time instance after said one time instance, said at least one part of one of said at least two CCEs is allocated to one next user other than the first user of the plurality of users or said at least one part of another of said at least two CCEs is allocated to one next user other than the second user of the plurality of users.

### Claim 2 (depends on 1)

The AI processor of claim 1, wherein the unified buffer stores activation data for a current layer, one or more next layers, one or more previous layers, or a combination thereof.

### Claim 3 (depends on 2)

The AI processor of claim 2, wherein the unified buffer stores output of one SE for the current layer, and wherein the output of one SE for the current layer is provided to one PE as the activation data for one next layer.

### Claim 4 (depends on 1)

The AI processor of claim 1, wherein the unified buffer can be implemented based on dual-port memory including a read port and a write port. Is this necessary? Implementation can very well vary and is not limited to 2 port memories. I would probably remove that sentence.

### Claim 5 (depends on 4)

The AI processor of claim 4, wherein the memories are coupled to a read arbiter to arbitrate read request from the first CCE, the second CCE and one data multiplexer, and also coupled to a write arbiter to arbitrate write request from the first CCE, and one data multiplexer.

### Claim 6 (depends on 1)

The AI processor of claim 1, wherein the control circuitry comprises a command sequencer to send commands to the first CCE, the second CCE and the unified buffer to move data around or to control computations for the NN processing.

### Claim 7 (depends on 1)

The AI processor of claim 1, wherein the control circuitry is coupled to a host CPU (central processing unit) to receive commands for the NN processing.

### Claim 8 (depends on 1)

The AI processor of claim 1, further comprising one or more data multiplexes coupled to the CCU, the control circuitry and the unified buffer to switch data.

### Claim 9 (depends on 1)

The AI processor of claim 1, wherein the first CCE comprises a weight buffer to store weights for the NN processing.

### Claim 10 (depends on 9)

The AI processor of claim 9, wherein the control circuitry is further configured to fetch activation data from the unified buffer and weight data from the weight buffer to compute vector multiplication of the activation data and the weight data.

### Claim 11 (depends on 1)

The AI processor of claim 1, wherein each PE comprises an array of FP16 (floating point 16-bit) multipliers and each FP16 multiplier is configured as one FP16 multiplier or two int8 (integer 8-bit) multipliers.

### Claim 12 (depends on 1)

The AI processor of claim 1, wherein said one target activation function is selected out of an activation function pool.

### Claim 13 (depends on 12)

The AI processor of claim 12, wherein each SE comprises a linear function core, a nonlinear function core, pooling function core, a cross channel function core, a programmable function core, a training core, or a combination thereof.

### Claim 14 (depends on 1)

The AI processor of claim 1, further comprising an interconnection interface access on-chip configuration registers and memories through an external bus.

### Claim 15 (depends on 14)

The AI processor of claim 14, wherein the interconnection interface corresponds to PCIe (Peripheral Component Interconnect Express)/DMA (Direct Memory Access) block.

### Claim 16 (depends on 15)

The AI processor of claim 15, wherein the PCIe/DMA block is used to transfer data between a host memory and both on-chip and off-chip memories by using AXI stream interfaces.

### Claim 17 (depends on 1)

The AI processor of claim 1, wherein said at least one of said at least two CCEs is divided into two unequal groups for two users of the plurality of users to share concurrently.

### Claim 18

An AI (Artificial Intelligence) system for Neural Network (NN) Processing, comprising:
a system processor;
a system memory device;
an interconnection interface; and
an AI (Artificial Intelligence) processor coupled to the interconnection interface; and
wherein the AI processor comprises:
a Core Computing Unit (CCU) comprising at least two Core Computing Elements (CCEs), wherein
a first Core Computing Element (CCE), corresponding to one level of the CCU, comprises a plurality of Processing Elements (PEs), wherein each PE comprises a multiplier array, an adder tree and an accumulator;
a second CCE, corresponding to another level of the CCU, coupled to output of the first CCE, wherein the second CCE comprises a plurality of Scalar Elements (SE), and each SE is configured to generate an output of one target activation function for an input to said each SE;
a unified buffer coupled to the first CCE and the second CCE to store data;
a control circuitry coupled to the CCU and the unified buffer; and
wherein the AI processor is configured to perform the NN processing for a plurality of users;
wherein at one time instance:
at least one of said at least two CCEs is divided into at least two groups to allow at least two users of the plurality of users to share concurrently; and
at least one part of one of said at least two CCEs is allocated to a first user of the plurality of users and at least one part of another of said at least two CCEs is allocated to a second user of the plurality of users, and wherein at another time instance after said one time instance, said at least one part of one of said at least two CCEs is allocated to one next user other than the first user of the plurality of users or said at least one part of another of said at least two CCEs is allocated to one next user other than the second user of the plurality of users.
