arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2302.05996cs.AR
收藏

Quark:用于子字节量化DNN推理的整数RISC-V向量处理器

Quark: An Integer RISC-V Vector Processor for Sub-Byte Quantized DNN Inference

MohammadHossein AskariHemmat, Theo Dupuis, Yoan Fournier, Nizar El Zarif, Matheus Cavalcante, Matteo Perotti, Frank Gurkaynak, Luca Benini, Francois Leduc-Prime… 展开作者

MohammadHossein AskariHemmat, Theo Dupuis, Yoan Fournier, Nizar El Zarif, Matheus Cavalcante, Matteo Perotti, Frank Gurkaynak, Luca Benini, Francois Leduc-Primeau, Yvon Savaria, Jean-Pierre David

摘要:

在本文中,我们介绍了Quark,一个专门为子字节DNN推理量身定制的整数RISC-V向量处理器。Quark采用GlobalFoundries的22 FDX FD-SOI技术实现。它是在开源64位RISC-V向量处理器Ara之上设计的。为了适应子字节DNN推断,Quark通过添加专用向量指令来扩展Ara以执行子字节量化操作。我们还从Quarks的通道中删除了浮点单元,并使用CVA 6 RISC-V标量核心进行量化神经网络推理所需的重新缩放操作。这使得Quark的每个通道比Ara的通道小2倍,功率效率高1.9倍。在本文中,我们表明,夸克可以运行量子化模型在亚字节精度。值得注意的是,对于1位和2位量化模型,Quark可以在各种输入和内核大小范围内加速Conv 2d的计算。

英文摘要:

In this paper, we present Quark, an integer RISC-V vector processor specifically tailored for sub-byte DNN inference. Quark is implemented in GlobalFoundries' 22FDX FD-SOI technology. It is designed on top of Ara, an open-source 64-bit RISC-V vector processor. To accommodate sub-byte DNN inference, Quark extends Ara by adding specialized vector instructions to perform sub-byte quantized operations. We also remove the floating-point unit from Quarks' lanes and use the CVA6 RISC-V scalar core for the re-scaling operations that are required in quantized neural network inference. This makes each lane of Quark 2 times smaller and 1.9 times more power efficient compared to the ones of Ara. In this paper we show that Quark can run quantized models at sub-byte precision. Notably we show that for 1-bit and 2-bit quantized models, Quark can accelerate computation of Conv2d over various ranges of inputs and kernel sizes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑