NITRO:在英特尔笔记本电脑NPU上进行LLM推理
NITRO: LLM Inference on Intel Laptop NPUs
AI总结:
针对英特尔笔记本NPU仅支持静态推理的问题,提出基于OpenVINO的Python框架NITRO,通过修改Transformer架构实现LLM动态文本生成,并给出性能基准与未来优化方向。
摘要:
大型语言模型(LLM)已成为自然语言处理中不可或缺的工具,在ChatGPT和Gemini等聊天机器人中得到广泛应用,并成为研究的核心领域。一个特别受关注的领域是设计针对这些AI应用专门优化的硬件,神经处理单元(NPU)便是其中一例。2023年,英特尔发布了代号为Meteor Lake的英特尔酷睿Ultra处理器,其片上系统集成了CPU、GPU和NPU。然而,通过英特尔的OpenVINO框架对NPU的官方软件支持仅限于静态模型推理。因此,LLM中自回归词元生成的动态特性无法开箱即用地得到支持。为解决这一不足,我们提出了NITRO(面向Transformer优化的NPU推理),这是一个基于Python的框架,构建于OpenVINO之上,以支持在NPU上进行文本和聊天生成。在本文中,我们详细讨论了为使推理成为可能而对Transformer架构所做的关键修改、一些性能基准测试,以及改进该软件包的未来步骤。NITRO的代码仓库可在此处找到:https://github.com/abdelfattah-lab/nitro。
英文摘要:
Large Language Models (LLMs) have become essential tools in natural language processing, finding large usage in chatbots such as ChatGPT and Gemini, and are a central area of research. A particular area of interest includes designing hardware specialized for these AI applications, with one such example being the neural processing unit (NPU). In 2023, Intel released the Intel Core Ultra processor with codename Meteor Lake, featuring a CPU, GPU, and NPU system-on-chip. However, official software support for the NPU through Intel's OpenVINO framework is limited to static model inference. The dynamic nature of autoregressive token generation in LLMs is therefore not supported out of the box. To address this shortcoming, we present NITRO (NPU Inference for Transformers Optimization), a Python-based framework built on top of OpenVINO to support text and chat generation on NPUs. In this paper, we discuss in detail the key modifications made to the transformer architecture to enable inference, some performance benchmarks, and future steps towards improving the package. The code repository for NITRO can be found here: https://github.com/abdelfattah-lab/nitro.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。