Zuoning Zhang, Dhruv Parikh, Youning Zhang, Viktor Prasanna
{"title":"Benchmarking the Performance of Large Language Models on the Cerebras Wafer Scale Engine","authors":"Zuoning Zhang, Dhruv Parikh, Youning Zhang, Viktor Prasanna","doi":"arxiv-2409.00287","DOIUrl":null,"url":null,"abstract":"Transformer based Large Language Models (LLMs) have recently reached state of\nthe art performance in Natural Language Processing (NLP) and Computer Vision\n(CV) domains. LLMs use the Multi-Headed Self-Attention (MHSA) mechanism to\ncapture long-range global attention relationships among input words or image\npatches, drastically improving its performance over prior deep learning\napproaches. In this paper, we evaluate the performance of LLMs on the Cerebras\nWafer Scale Engine (WSE). Cerebras WSE is a high performance computing system\nwith 2.6 trillion transistors, 850,000 cores and 40 GB on-chip memory. Cerebras\nWSE's Sparse Linear Algebra Compute (SLAC) cores eliminates multiply-by-zeros\noperations and its 40 GB of on-chip memory is uniformly distributed among SLAC\ncores, enabling fast local access to model parameters. Moreover, Cerebras\nsoftware configures routing between cores at runtime, optimizing communication\noverhead among cores. As LLMs are becoming more commonly used, new hardware\narchitectures are needed to accelerate LLMs training and inference. We\nbenchmark the effectiveness of this hardware architecture at accelerating LLMs\ntraining and inference. Additionally, we analyze if Cerebras WSE can scale the\nmemory-wall associated with traditionally memory-bound compute tasks using its\n20 PB/s high bandwidth memory. Furthermore, we examine the performance\nscalability of Cerebras WSE through a roofline model. By plotting performance\nmetrics against computational intensity, we aim to assess their effectiveness\nat handling high compute-intensive LLMs training and inference tasks.","PeriodicalId":501422,"journal":{"name":"arXiv - CS - Distributed, Parallel, and Cluster Computing","volume":"7 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-08-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Distributed, Parallel, and Cluster Computing","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.00287","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Transformer based Large Language Models (LLMs) have recently reached state of
the art performance in Natural Language Processing (NLP) and Computer Vision
(CV) domains. LLMs use the Multi-Headed Self-Attention (MHSA) mechanism to
capture long-range global attention relationships among input words or image
patches, drastically improving its performance over prior deep learning
approaches. In this paper, we evaluate the performance of LLMs on the Cerebras
Wafer Scale Engine (WSE). Cerebras WSE is a high performance computing system
with 2.6 trillion transistors, 850,000 cores and 40 GB on-chip memory. Cerebras
WSE's Sparse Linear Algebra Compute (SLAC) cores eliminates multiply-by-zeros
operations and its 40 GB of on-chip memory is uniformly distributed among SLAC
cores, enabling fast local access to model parameters. Moreover, Cerebras
software configures routing between cores at runtime, optimizing communication
overhead among cores. As LLMs are becoming more commonly used, new hardware
architectures are needed to accelerate LLMs training and inference. We
benchmark the effectiveness of this hardware architecture at accelerating LLMs
training and inference. Additionally, we analyze if Cerebras WSE can scale the
memory-wall associated with traditionally memory-bound compute tasks using its
20 PB/s high bandwidth memory. Furthermore, we examine the performance
scalability of Cerebras WSE through a roofline model. By plotting performance
metrics against computational intensity, we aim to assess their effectiveness
at handling high compute-intensive LLMs training and inference tasks.