Fiddler:为快速推断专家混合物模型而进行 CPU-GPU 协调

Keisuke Kamahori, Yile Gu, Kan Zhu, Baris Kasikci
{"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}
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信