fully powered by Jialinli
- Eyeriss is an AI accelerator, researched by Massachusetts Institute of Technology
- EyerissF is a python-made Eyeriss simulator, aiming to test eyeriss capability.
- Eyeriss: An Energy-Efficient Reconfigurable Accelerator for Deep Convolutional Neural Networks [ISSIC 2016] here
- Eyeriss: An Energy-Efficient Reconfigurable Accelerator for Deep Convolutional Neural Networks slides [ISSIC 2016] here
- Hardware Architectures for Deep Neural Networks [ISCA 2017] here
- Eyeriss: A Spatial Architecture for Energy-Efficient Dataflow for Convolutional Neural Networks [ISCA 2016] here
- DNN Accelerator Architectures slides [ISCA 2017] here
Eyeriss is an accelerator that can deliver state-of-the- art accuracy with minimum energy consumption in the system (including DRAM) in real-time, by using two key methods:
- efficient dataflow and supporting hardware (spatial array, memory hierarchy and on-chip network) that minimize data movement by exploiting data reuse and support different shapes;
- exploit data statistics to minimize energy through zeros skipping/gating to avoid unnecessary reads and computations; and data compression to reduce off-chip memory bandwidth, which is the most expensive data movement.
From CNN defined calculation to new CNN Calculation, via new ASIC chip, we found a few processes could be combine together or run parallelly.
- high parallelism
This pic shows the dataflow within the array for filter weights, image values and partial sums. If the filter height (R) equals the number of rows in the array , the logical dataflow would be as follows:
- filter weights are fed from the buffer into the left column of the array (one filter row per PE) and the filter weights move from left to right within the array.
- image values are fed into the left column and bottom row of the array (one image row per PE) and the image values move up diagonally.
- partial sums for each output row move up vertically, and can be read out of the top row at the end of the computational pass. If the partial sums are used in the next pass, they are fed into the bottom row of the array from the buffer at the beginning of the next computational pass.
- data reuse
- Convolutional reuse
- Image reuse
- Filter reuse
While existing dataflows attempt to maximize certain types of input data reuse or minimize the psum accumulation cost, they fail to take all of them into account at once. This results in inefficiency when the layer shape or hardware resources vary. Therefore, it would be desirable if the dataflow could adapt to different conditions and optimize for all types of data movement energy costs. In this section, we will introduce a novel dataflow, called row stationary (RS) that achieves this goal. The RS dataflow is a key feature of the Eyeriss architecture, which has been implemented in a fabricated chip.
- EyerissF
- PE.py ( inner single calculate processor)
- EyerissF.py (contain 168 PEs cluster charge conv2d funx)
- conf.py ( default Eyeriss config features)
- IO2.py ( Compress and Decompress funx)
- Hive
- CNN
- Lenet5_Hive.py( a Hive made Lenet CNN)
- Lenet5_Hive_Auto.ipynb
- Lenet5_Hive_Manuel.ipynb
- Lenet5_Hive_Manuel_withPics.ipynb
- other
- Extension.py ( change numpy arrary into pics)
- filterReset.py ( Reset lenet5 factors)
- Test.py ( debug file)
Hive is a new CNN platform based on Eyeriss chip or EyerissF simulator, which contains basic funxs to establish CNN. (NOT "APACHE HIVE") Eyeriss or EyerissF just only an ASIC chip and python-made simulator and can not achieve any tasks. In order to do pattern regonization tasks, it must have a mature platform to support standard input data. Hive is aiming to tranfor 3-channel jpg pics to input Eyeriss supported stream and decompress results.
If u wanna use hive to create CNN, u should do following steps:
- init EyerissF simulator
ef = EyerissF()
or
ef = EyerissF("manual")
- init Hive
hive = Hive(ef)
Other funxs from Hive
- convolution ( Eyeriss Supported)
hive.conv2d(pics,filters,number of pics, number of filters)
- Pooling
hive.Pooling(pics)
- FullConnect
hive.FullConnect(vector,vector2)
please Email [email protected] or [email protected]
Emergy model IS NOT finished YET
2019 Sep 23th
- changing name in case of any misunderstanding with 'Apache Hive'
- overriding file constructions to make basic code in src folder
- add new functions in energy stream calculation between different storage layers