SambaNova SN40L: Scaling the AI Memory Wall with Dataflow and Composition of Experts
Monolithic large language models (LLMs) like GPT-4 have paved the way for modern generative AI applications. Training, serving, and maintaining monolithic LLMs at scale, however, remains prohibitively expensive and challenging. The disproportionate increase in compute-to-memory ratio of modern AI accelerators have created a memory wall, necessitating new methods to deploy AI. Recent research has shown that a composition of many smaller expert models, each with several orders of magnitude fewer parameters, can match or exceed the capabilities of monolithic LLMs. Composition of Experts (CoE) is a modular approach that lowers the cost and complexity of training and serving. However, this approach presents two key challenges when using conventional hardware: (1) without fused operations, smaller models have lower operational intensity, which makes high utilization more challenging to achieve; and (2) hosting a large number of models can be either prohibitively expensive or slow when dynamically switching between them. In this paper, we describe how combining CoE, streaming dataflow, and a three-tier memory system scales the AI memory wall. We describe Samba-CoE, a CoE system with 150 experts and a trillion total parameters. We deploy Samba-CoE on the SambaNova SN40L Reconfigurable Dataflow Unit (RDU) -a commercial dataflow accelerator architecture that has been codesigned for enterprise inference and training applications. The chip introduces a new three-tier memory system with on-chip distributed SRAM, on-package HBM, and off-package DDR DRAM. A dedicated inter-RDU network enables scaling up and out over multiple sockets. We demonstrate speedups ranging from 2× to 13× on various benchmarks running on eight RDU sockets compared with an unfused baseline. We show that for CoE inference deployments, the 8-socket RDU Node reduces machine footprint by up to 19 ×, speeds up model switching time by 15× to 31×, and achieves an overall speedup of 3.7× over a DGX H100 and 6.6× over a DGX A100.
Authors
- Darshan Gandhi (ORCID: https://orcid.org/0000-0002-7079-450X)
- Д.Н. Соколов
- Xiaoyan Li (ORCID: https://orcid.org/0000-0002-2953-9267)
- Kunle Olukotun (ORCID: https://orcid.org/0000-0002-8779-0636)
- Arjun Sabnis (ORCID: https://orcid.org/0009-0007-5699-6117)
- Tuowen Zhao (ORCID: https://orcid.org/0000-0002-6347-7135)
- Mark Luttrell
- Swayambhoo Jain
- David Jackson (ORCID: https://orcid.org/0000-0002-1975-8132)
- Sumti Jairath
- Angela Yee‐Moon Wang (ORCID: https://orcid.org/0000-0003-2508-7117)
- Xiangyu Song (ORCID: https://orcid.org/0000-0002-5550-6354)
- Mark Gottscho (ORCID: https://orcid.org/0000-0001-8370-4158)
- Dawei Huang (ORCID: https://orcid.org/0000-0002-4496-2354)
- Kaizhao Liang
- Ram Sivaramakrishnan
- Yongning Sheng
- Apurv Vivek
- Tianren Gao
- Urmish Thakker (ORCID: https://orcid.org/0000-0002-0515-9155)
- Joshua Brot
- Calvin Leung
- Jiayu Bai (ORCID: https://orcid.org/0000-0003-3336-9464)
- Yun Du
- Kejie Zhang (ORCID: https://orcid.org/0000-0001-9783-4412)
- Zhengyu Chen (ORCID: https://orcid.org/0000-0002-9567-5881)
- Manish Shah (ORCID: https://orcid.org/0000-0002-6653-676X)
- Kevin J. Brown
- Raghu Prabhakar
- Mingran Wang
Institutions
- Universitas Ratu Samban (ID)
Publication Details
- Published
- 2024-11-02
- DOI
- https://doi.org/10.1109/micro61859.2024.00100
- Citations
- 22
- Primary Topic
- Scientific Computing and Data Management
- Type
- article
- Field-Weighted Citation Impact
- 23.12