State-of-the-art Transformer-based models, with gigantic parameters, are difficult to be accommodated on resource constrained embedded devices. Moreover, with the development of technology, more and more embedded devices are available to run a Transformer model. For a Transformer model with different constraints (tight or loose), it can be deployed onto devices with different computing power. However, in previous work, designers did not choose the best device among multiple devices. Instead, they just used an existing device to deploy model, which was not necessarily the best fit and may lead to underutilization of resources. To address the deployment challenge of Transformer and the problem to select the best device, we propose an algorithm & hardware closed-loop acceleration framework. Given a dataset, a model, latency constraint LC and accuracy constraint AC, our framework can provide a best device satisfying both constraints. In order to generate a compressed model with high sparsity ratio, we propose a novel pruning technique, hierarchical pruning (HP). We optimize the sparse matrix storage format for HP matrix to further reduce memory usage for FPGA implementation. We design a accelerator that takes advantage of HP to solve the problem of concurrent random access. Experiments on Transformer and TinyBert model show that our framework can find different devices for various LC and AC, covering from low-end devices to high-end devices. Our HP can achieve higher sparsity ratio and is more flexible than other sparsity pattern. Our framework can achieve 37x, 1.9x, 1.7x speedup compared to CPU, GPU and FPGA, respectively.
翻译:此外,随着技术的开发,越来越多的嵌入装置可用于运行一个变异器模型。对于具有不同限制(严格或松散)的变异器模型,可以将其安装在具有不同计算功率的变异器模型上。然而,在以往的工作中,设计者没有选择多种设备中的最佳装置。相反,他们只是使用一个现有的装置来部署模型,这不一定是最合适的,并可能导致资源利用不足。为了应对变异器的部署挑战和选择最佳装置的问题,我们建议使用一个变异器和硬件封闭式超lo加速框架。鉴于一个有不同限制(严格或松动)的变异器模型,它可以将其安装到具有不同计算功率的变异器模型。为了生成一个压缩式的模型,我们建议采用一种新颖的裁剪裁技术,等级的裁剪裁(HPH);我们优化了HP矩阵的稀释矩阵,以进一步减少FGA执行的记忆用量,我们提出了一种变异器和硬件闭路槽的加速框架。我们分别设计了一个模型、一个液压式的模型、一个升级框架,用来覆盖了我们Orcal-C的进入各种变压器。