IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · 2024 · 21 citations · 22 references
EngineeringComputer EngineeringComputer ScienceCompilersComputer ArchitectureEmbedded SystemsDeep LearningHardware AccelerationHeterogeneous System ArchitectureInstruction Set ArchitectureMicrocontroller ArchitectureMulticore Processor DesignMicroarchitectural OptimizationMulticore ArchitecturesMulticore Embedded SystemsMulticore SystemsRisc ArchitecturesRuntime Support
With the rise of embodied foundation models (EFMs), most notably small language models (SLMs), adapting Transformers for the edge applications has become a very active field of research. However, achieving the end-to-end deployment of SLMs on the microcontroller (MCU)-class chips without high-bandwidth off-chip main memory access is still an open challenge. In this article, we demonstrate high efficiency end-to-end SLM deployment on a multicore RISC-V (RV32) MCU augmented with ML instruction extensions and a hardware neural processing unit (NPU). To automate the exploration of the constrained, multidimensional memory versus computation tradeoffs involved in the aggressive SLM deployment on the heterogeneous (multicore+NPU) resources, we introduce Deeploy, a novel deep neural network (DNN) compiler, which generates highly optimized C code requiring minimal runtime support. We demonstrate that Deeploy generates the end-to-end code for executing SLMs, fully exploiting the RV32 cores’ instruction extensions and the NPU. We achieve leading-edge energy and throughput of <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$490 \; \mu $ </tex-math></inline-formula> J per token, at 340 token per second for an SLM trained on the TinyStories dataset, running for the first time on an MCU-class device without the external memory.
22
DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · 2023 · 76.3K citations · Full text
Llama 2: Open Foundation and Fine-Tuned Chat Models
Hugo Touvron, Louis Martin, Kevin H. Stone et al. · arXiv (Cornell University) · 2023 · 2.6K citations · Full text
Gemini: A Family of Highly Capable Multimodal Models
Gemini Robotics Team, Rohan Anil, Sebastian Borgeaud et al. · arXiv (Cornell University) · 2023 · 816 citations · Full text
MLIR: Scaling Compiler Infrastructure for Domain Specific Computation
Chris Lattner, Mehdi Amini, Uday Bondhugula et al. · 2021 · 502 citations