arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.23635cs.DCcs.AIcs.PF
收藏

迈向构建私有 LLMs:在 Apple Silicon 上探索面向混合专家大型语言模型的多节点专家并行

Towards Building Private LLMs: Exploring Multi-Node Expert Parallelism on Apple Silicon for Mixture-of-Experts Large Language Model

National Taiwan University(国立台湾大学);National Cheng Kung University(国立成功大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)

Mu-Chi Chen, Po-Hsuan Huang, Xiangrui Ke, Chia-Heng Tu, Chun Jason Xue, Shih-Hao Hung

AI总结:

本文针对构建私有LLM系统的成本与扩展性挑战,基于配备M2 Ultra芯片的Mac Studio集群加速MoE架构的DBRX模型,通过消除内存管理开销的优化方案,使其成本效益比H100 GPU超算高1.15倍,并构建性能模型指导系统设计。

摘要:

大型语言模型(LLMs)通过 OpenAI 的 ChatGPT、Meta 的 Llama 和 Databricks 的 DBRX 等重大进展彻底改变了人工智能(AI)。本文旨在解决为个人或小群体服务构建私有 LLM 系统时遇到的成本和可扩展性挑战,正如 Apple Intelligence 所设定的目标。我们建立了一个配备 Apple M2 Ultra 芯片的 Mac Studio 集群,作为托管和加速具有混合专家架构的预训练 DBRX 模型的低成本高效益解决方案。我们的性能分析表明,在两到四个机器节点上并行执行模型专家显著减少了推理时间。我们发现,专家的计算时间与交换其输出的通信时间相当,强调了网络延迟比带宽更重要。我们还观察到,由于 Apple 软件栈的内存管理逻辑,存在显著的管理开销。基于这些发现,我们开发了优化方案以消除内存管理开销。结果表明,Mac Studio 集群在成本效益上比配备 NVIDIA H100 GPU 的最先进 AI 超级计算机高出 1.15 倍。此外,我们构建了一个性能模型来估计不同配置下的系统性能,该模型为设计私有 LLM 系统提供了有价值的见解。

英文摘要:

Large Language Models (LLMs) have revolutionized Artificial Intelligence (AI) with significant advancements such as OpenAI's ChatGPT, Meta's Llama, and Databricks' DBRX. This paper addresses the cost and scalability challenges encountered when constructing private LLM systems for personal or small group services, as aimed by Apple Intelligence. A Mac Studio cluster with Apple's M2 Ultra chips is established as a cost-efficient solution to host and accelerate the pretrained DBRX model with the Mixture-of-Experts (MoE) architecture. Our performance analysis reveal that parallel execution of the model's experts across two to four machine nodes significantly reduces inference time. We find that computation time for the experts is comparable to the communication time for exchanging their outputs, emphasizing the importance of network latency over bandwidth. We also observe significant management overhead due to Apple software stack's memory management logic. Based on these findings, we develop optimization schemes to eliminate the memory management overhead. As a result, the Mac Studio cluster is 1.15 times more cost-efficient than the state-of-the-art AI supercomputer with NVIDIA H100 GPUs. In addition, we construct a performance model to estimate system performance under varying configurations, and the model provides valuable insights for designing private LLM systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑