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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Chen, Mu-Chi, Huang, Po-Hsuan, Ke, Xiangrui, Tu, Chia-Heng, Xue, Chun Jason, Hung, Shih-Hao
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911029856829440
author Chen, Mu-Chi
Huang, Po-Hsuan
Ke, Xiangrui
Tu, Chia-Heng
Xue, Chun Jason
Hung, Shih-Hao
author_facet Chen, Mu-Chi
Huang, Po-Hsuan
Ke, Xiangrui
Tu, Chia-Heng
Xue, Chun Jason
Hung, Shih-Hao
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2506_23635
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Towards Building Private LLMs: Exploring Multi-Node Expert Parallelism on Apple Silicon for Mixture-of-Experts Large Language Model
Chen, Mu-Chi
Huang, Po-Hsuan
Ke, Xiangrui
Tu, Chia-Heng
Xue, Chun Jason
Hung, Shih-Hao
Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Performance
I.6.4; I.2.7; I.2.11
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.
title Towards Building Private LLMs: Exploring Multi-Node Expert Parallelism on Apple Silicon for Mixture-of-Experts Large Language Model
topic Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Performance
I.6.4; I.2.7; I.2.11
url https://arxiv.org/abs/2506.23635