Skip to main content
CenXiv.org
此网站处于试运行阶段,支持我们!
我们衷心感谢所有贡献者的支持。
贡献
赞助
cenxiv logo > cs > arXiv:2506.23635

帮助 | 高级搜索

计算机科学 > 分布式、并行与集群计算

arXiv:2506.23635 (cs)
[提交于 2025年6月30日 ]

标题: 面向构建私有大语言模型:在苹果硅芯片上探索专家并行的多节点混合模型

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

Authors:Mu-Chi Chen, Po-Hsuan Huang, Xiangrui Ke, Chia-Heng Tu, Chun Jason Xue, Shih-Hao Hung
摘要: 大型语言模型(LLMs)通过OpenAI的ChatGPT、Meta的Llama和Databricks的DBRX等显著进展,彻底改变了人工智能(AI)。 本文解决了在构建用于个人或小团体服务的私有LLM系统时遇到的成本和可扩展性挑战,正如Apple Intelligence所追求的那样。 建立了一个配备Apple M2 Ultra芯片的Mac Studio集群,作为托管和加速具有专家混合(MoE)架构的预训练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.
评论: 第20届自适应与汇聚系统研究国际会议(RACS '24),2024年11月5日至8日,意大利庞贝
主题: 分布式、并行与集群计算 (cs.DC) ; 人工智能 (cs.AI); 性能 (cs.PF)
ACM 类: I.6.4; I.2.7; I.2.11
引用方式: arXiv:2506.23635 [cs.DC]
  (或者 arXiv:2506.23635v1 [cs.DC] 对于此版本)
  https://doi.org/10.48550/arXiv.2506.23635
通过 DataCite 发表的 arXiv DOI(待注册)
相关 DOI: https://doi.org/10.1145/3649601.3698722
链接到相关资源的 DOI

提交历史

来自: Po-Hsuan Huang [查看电子邮件]
[v1] 星期一, 2025 年 6 月 30 日 09:04:25 UTC (1,548 KB)
全文链接:

获取论文:

    查看标题为《》的 PDF
  • 查看中文 PDF
  • 查看 PDF
  • HTML(实验性)
  • TeX 源代码
  • 其他格式
许可图标 查看许可
当前浏览上下文:
cs.DC
< 上一篇   |   下一篇 >
新的 | 最近的 | 2025-06
切换浏览方式为:
cs
cs.AI
cs.PF

参考文献与引用

  • NASA ADS
  • 谷歌学术搜索
  • 语义学者
a 导出 BibTeX 引用 加载中...

BibTeX 格式的引用

×
数据由提供:

收藏

BibSonomy logo Reddit logo

文献和引用工具

文献资源探索 (什么是资源探索?)
连接的论文 (什么是连接的论文?)
Litmaps (什么是 Litmaps?)
scite 智能引用 (什么是智能引用?)

与本文相关的代码,数据和媒体

alphaXiv (什么是 alphaXiv?)
CatalyzeX 代码查找器 (什么是 CatalyzeX?)
DagsHub (什么是 DagsHub?)
Gotit.pub (什么是 GotitPub?)
Hugging Face (什么是 Huggingface?)
带有代码的论文 (什么是带有代码的论文?)
ScienceCast (什么是 ScienceCast?)

演示

复制 (什么是复制?)
Hugging Face Spaces (什么是 Spaces?)
TXYZ.AI (什么是 TXYZ.AI?)

推荐器和搜索工具

影响之花 (什么是影响之花?)
核心推荐器 (什么是核心?)
IArxiv 推荐器 (什么是 IArxiv?)
  • 作者
  • 地点
  • 机构
  • 主题

arXivLabs:与社区合作伙伴的实验项目

arXivLabs 是一个框架,允许合作伙伴直接在我们的网站上开发和分享新的 arXiv 特性。

与 arXivLabs 合作的个人和组织都接受了我们的价值观,即开放、社区、卓越和用户数据隐私。arXiv 承诺这些价值观,并且只与遵守这些价值观的合作伙伴合作。

有一个为 arXiv 社区增加价值的项目想法吗? 了解更多关于 arXivLabs 的信息.

这篇论文的哪些作者是支持者? | 禁用 MathJax (什么是 MathJax?)
  • 关于
  • 帮助
  • contact arXivClick here to contact arXiv 联系
  • 订阅 arXiv 邮件列表点击这里订阅 订阅
  • 版权
  • 隐私政策
  • 网络无障碍帮助
  • arXiv 运营状态
    通过...获取状态通知 email 或者 slack

京ICP备2025123034号