灵活的深度学习专业化的硬件-软件蓝图
A Hardware-Software Blueprint for Flexible Deep Learning Specialization
摘要:
专门针对特定框架、模型架构、运算符和数据类型设计的专用深度学习(DL)加速堆栈,在牺牲灵活性的同时提供高性能的吸引力。算法、模型、运算符或数值系统的变化威胁着专用硬件加速器的生存能力。我们提出了VTA,这是一种可编程的深度学习架构模板,旨在面对不断变化的工作负载进行扩展。VTA通过可参数化的架构、两级ISA和JIT编译器实现了这种灵活性。两级ISA基于(1)明确编排并发计算和存储器任务的任务ISA和(2)实现具有单周期张量-张量运算的各种运算符的微代码ISA。接下来,我们提出了一个运行时系统配备了一个JIT编译器,灵活的代码生成和异构执行,使有效地使用VTA架构。VTA集成并开源到Apache TVM中,这是一个最先进的深度学习编译堆栈,为不同的模型和不同的硬件后端提供了灵活性。我们提出了一个流程,执行设计空间探索,以生成一个定制的硬件架构和软件运营商库,可以利用主流的学习框架。我们通过在边缘级FPGA上部署用于对象分类和样式转换的优化深度学习模型来演示我们的方法。
英文摘要:
Specialized Deep Learning (DL) acceleration stacks, designed for a specific set of frameworks, model architectures, operators, and data types, offer the allure of high performance while sacrificing flexibility. Changes in algorithms, models, operators, or numerical systems threaten the viability of specialized hardware accelerators. We propose VTA, a programmable deep learning architecture template designed to be extensible in the face of evolving workloads. VTA achieves this flexibility via a parametrizable architecture, two-level ISA, and a JIT compiler. The two-level ISA is based on (1) a task-ISA that explicitly orchestrates concurrent compute and memory tasks and (2) a microcode-ISA which implements a wide variety of operators with single-cycle tensor-tensor operations. Next, we propose a runtime system equipped with a JIT compiler for flexible code-generation and heterogeneous execution that enables effective use of the VTA architecture. VTA is integrated and open-sourced into Apache TVM, a state-of-the-art deep learning compilation stack that provides flexibility for diverse models and divergent hardware backends. We propose a flow that performs design space exploration to generate a customized hardware architecture and software operator library that can be leveraged by mainstream learning frameworks. We demonstrate our approach by deploying optimized deep learning models used for object classification and style transfer on edge-class FPGAs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。