{"title":"Fiddler:为快速推断专家混合物模型而进行 CPU-GPU 协调","authors":"Keisuke Kamahori, Yile Gu, Kan Zhu, Baris Kasikci","doi":"arxiv-2402.07033","DOIUrl":null,"url":null,"abstract":"Large Language Models (LLMs) based on Mixture-of-Experts (MoE) architecture\nare showing promising performance on various tasks. However, running them on\nresource-constrained settings, where GPU memory resources are not abundant, is\nchallenging due to huge model sizes. Existing systems that offload model\nweights to CPU memory suffer from the significant overhead of frequently moving\ndata between CPU and GPU. In this paper, we propose Fiddler, a\nresource-efficient inference engine with CPU-GPU orchestration for MoE models.\nThe key idea of Fiddler is to use the computation ability of the CPU to\nminimize the data movement between the CPU and GPU. Our evaluation shows that\nFiddler can run the uncompressed Mixtral-8x7B model, which exceeds 90GB in\nparameters, to generate over $3$ tokens per second on a single GPU with 24GB\nmemory, showing an order of magnitude improvement over existing methods. The\ncode of Fiddler is publicly available at\n\\url{https://github.com/efeslab/fiddler}","PeriodicalId":501333,"journal":{"name":"arXiv - CS - Operating Systems","volume":"96 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-02-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Fiddler: CPU-GPU Orchestration for Fast Inference of Mixture-of-Experts Models\",\"authors\":\"Keisuke Kamahori, Yile Gu, Kan Zhu, Baris Kasikci\",\"doi\":\"arxiv-2402.07033\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Large Language Models (LLMs) based on Mixture-of-Experts (MoE) architecture\\nare showing promising performance on various tasks. However, running them on\\nresource-constrained settings, where GPU memory resources are not abundant, is\\nchallenging due to huge model sizes. Existing systems that offload model\\nweights to CPU memory suffer from the significant overhead of frequently moving\\ndata between CPU and GPU. In this paper, we propose Fiddler, a\\nresource-efficient inference engine with CPU-GPU orchestration for MoE models.\\nThe key idea of Fiddler is to use the computation ability of the CPU to\\nminimize the data movement between the CPU and GPU. Our evaluation shows that\\nFiddler can run the uncompressed Mixtral-8x7B model, which exceeds 90GB in\\nparameters, to generate over $3$ tokens per second on a single GPU with 24GB\\nmemory, showing an order of magnitude improvement over existing methods. The\\ncode of Fiddler is publicly available at\\n\\\\url{https://github.com/efeslab/fiddler}\",\"PeriodicalId\":501333,\"journal\":{\"name\":\"arXiv - CS - Operating Systems\",\"volume\":\"96 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-02-10\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Operating Systems\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2402.07033\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Operating Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2402.07033","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
摘要
基于专家混合物(MoE)架构的大型语言模型(LLM)在各种任务中表现出良好的性能。然而,在资源受限的环境下(GPU 内存资源并不充裕),由于模型规模巨大,运行这些模型非常困难。现有的将模型重量卸载到 CPU 内存的系统在频繁地在 CPU 和 GPU 之间移动数据的过程中开销巨大。在本文中,我们提出了Fiddler,一个针对MoE模型的CPU-GPU协调的源高效推理引擎。Fiddler的关键理念是利用CPU的计算能力,最大限度地减少CPU和GPU之间的数据移动。我们的评估结果表明,Fiddler可以运行参数超过90GB的未压缩Mixtral-8x7B模型,在单个24GB内存的GPU上每秒生成超过3美元的令牌,与现有方法相比有数量级的提升。Fiddler 的代码可在以下网址公开获取:\url{https://github.com/efeslab/fiddler}。
Fiddler: CPU-GPU Orchestration for Fast Inference of Mixture-of-Experts Models
Large Language Models (LLMs) based on Mixture-of-Experts (MoE) architecture
are showing promising performance on various tasks. However, running them on
resource-constrained settings, where GPU memory resources are not abundant, is
challenging due to huge model sizes. Existing systems that offload model
weights to CPU memory suffer from the significant overhead of frequently moving
data between CPU and GPU. In this paper, we propose Fiddler, a
resource-efficient inference engine with CPU-GPU orchestration for MoE models.
The key idea of Fiddler is to use the computation ability of the CPU to
minimize the data movement between the CPU and GPU. Our evaluation shows that
Fiddler can run the uncompressed Mixtral-8x7B model, which exceeds 90GB in
parameters, to generate over $3$ tokens per second on a single GPU with 24GB
memory, showing an order of magnitude improvement over existing methods. The
code of Fiddler is publicly available at
\url{https://github.com/efeslab/fiddler}