Litcius/Paper detail

TMAC: Training-Targeted Mapping and Architecture Co-Exploration for Wafer-Scale Chips

Huizheng Wang, Qize Yang, Tingcha Wei, Xingmao Yu, Chenglong Li, Jiahao Fang, Guangyang Lu, Xu Dai, Liang Liu, Shenfei Jiang, Yang Hu, Shouyi Yin, Shaojun Wei

2024Integrated Circuits and Systems10 citationsDOIOpen Access PDF

Abstract

Transformer-based large language models (LLMs) have made significant strides in the field of artificial intelligence (AI). However, training these LLMs imposes immense demands on computational power and bandwidth for hardware systems. Wafer-scale chips (WSCs) offer a promising solution, yet they struggle with limited on-chip memory and complex tensor partitioning. To fully harness the high-bandwidth, low-latency on-chip interconnect benefits of WSCs and to alleviate the on-chip memory limitations, a specialized mapping and architecture co-exploration method is essential. Despite existing efforts in memory optimization and mapping, current approaches fall short for WSC scenarios. To bridge this gap, we introduce TMAC, an architecture-mapping co-exploration framework that integrates recomputation into the design space, fully exploiting optimization opportunities overlooked by existing works. Further, TMAC takes advantage of the superior on-chip interconnect performance of WSCs by incorporating a more flexible tensor partition scheme. TMAC then introduces a novel operator-centric encoding scheme (OCES) designed to comprehensively describe the mapping space for training LLMs. Unlike previous studies that focus solely on communication volume analysis based on mapping, TMAC explores the design space by evaluating the combined impact of mapping and architecture on training performance. However, fully accounting for these untapped optimization opportunities increases the complexity of the design space. To address this, we streamline the simulation process, reducing the time needed for exploration. Compared to AccPar, Deepspeed and Megatron, TMAC delivers a <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$3.1\times$</tex-math></inline-formula>, <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$2.9\times$</tex-math></inline-formula>, <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$1.6\times$</tex-math></inline-formula> performance gain. In terms of memory usage, TMAC requires <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$3.6\times$</tex-math></inline-formula>, <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$3.1\times$</tex-math></inline-formula> less memory than AccPar and Deepspeed, respectively and is comparable to Megatron's full recomputation method.

Topics & Concepts

Scale (ratio)ArchitectureTraining (meteorology)Computer scienceWaferComputer architectureEngineeringCartographyGeographyElectrical engineeringArchaeologyMeteorology3D IC and TSV technologiesVLSI and Analog Circuit TestingVLSI and FPGA Design Techniques
TMAC: Training-Targeted Mapping and Architecture Co-Exploration for Wafer-Scale Chips | Litcius