2.4.2. Neutron v4 Architecture#
Neutron v4 consists of 1 NPU Core containing 1 CONV, 1 TENG, and 1 SDMA. Unlike Neutron v3, which forms vNPUs by combining physical resource groups, Neutron v4 uses hardware time-division multiplexing to virtualize 2 vNPUs on the same group of physical EUs.
CONVandTENGare compute EUs responsible for convolution and tensor or vector computation during model inference.SDMAis a data-movement EU responsible for reads and writes between DDR and OCM and for on-chip data transfers.The hardware time-division multiplexing mechanism schedules compute and data-movement EUs between two logical vNPUs, allowing the computation and communication stages of different inference tasks to overlap. For example, while one vNPU performs
CONVorTENGcomputation, the other can useSDMAto prepare inputs, load weights, or write results, improving overall utilization of the physical EUs. When time-division multiplexing is enabled, the two logical vNPUs share on-chip resources, so each vNPU has less OCM available than a complete NPU resource with multiplexing disabled.
2.4.2.1. Runtime modes and npu_mode#
2.4.2.1.1. AXEngine runtime modes#
AXEngine runtime mode |
Compute resources |
|---|---|
|
Enables logical vNPU partitioning and virtualizes two vNPUs on the same group of physical EUs. The two logical vNPUs share physical EUs and OCM, reducing the OCM available to each vNPU. |
|
Disables logical vNPU partitioning and hardware time-division multiplexing. One complete NPU resource is exposed at runtime, and the model uses all NPU resources for inference. |
2.4.2.1.2. Offline npu_mode and hardware resources#
Chip platform |
|
Hardware compute resources |
|---|---|---|
|
|
Compilation resources for one logical vNPU in time-division multiplexing mode, with less OCM available than in complete NPU resource mode. |
|
|
Complete NPU compilation resources with time-division multiplexing disabled. All NPU resources are used for inference, with more OCM available than to one logical vNPU in multiplexing mode. |
|
|
Compilation resources for one logical vNPU in time-division multiplexing mode, with less OCM available than in complete NPU resource mode. |
|
|
Complete NPU compilation resources with time-division multiplexing disabled. All NPU resources are used for inference, with more OCM available than to one logical vNPU in multiplexing mode. |
|
|
Compilation resources for one logical vNPU in time-division multiplexing mode, with less OCM available than in complete NPU resource mode. |
|
|
Complete NPU compilation resources with time-division multiplexing disabled. All NPU resources are used for inference, with more OCM available than to one logical vNPU in multiplexing mode. |