TEMP: 一种内存高效的物理感知张量分区映射框架在晶圆级芯片上
TEMP: A Memory Efficient Physical-aware Tensor Partition-Mapping Framework on Wafer-scale Chips
AI总结:
TEMP通过拓扑感知的张量流分区、流量意识映射和双层晶圆求解,提升晶圆级芯片上LLM训练的内存效率和吞吐量。
摘要:
大型语言模型(LLMs)需要大量的内存和计算资源。晶圆级芯片(WSCs)提供了强大的计算能力和芯片间(D2D)带宽,但受限于晶圆面积,面临芯片内内存与计算资源之间的独特权衡。因此,针对晶圆的张量并行策略应利用通信优势,同时保持内存效率,以最大化WSC性能。然而,现有方法未能解决这些挑战。为了解决这些挑战,我们提出了张量流分区范式(TSPP),它揭示了利用WSCs丰富的通信带宽来缓解严格的芯片内内存限制的机会。然而,WSCs的2D网格拓扑缺乏长距离和灵活的互连,导致三个挑战:1)严重的尾部延迟,2)抑制性的D2D流量竞争,3)难以解决最优设计的搜索时间。我们提出了TEMP,一种在WSCs上进行LLM训练的框架,利用拓扑感知的张量流分区、流量意识映射和双层晶圆求解,以克服硬件限制和并行性挑战。这些集成的方法优化了内存效率和吞吐量,解锁了TSPP在WSCs上的全部潜力。评估显示,TEMP在各种模型上实现了比现有最佳LLM训练系统1.7倍的平均吞吐量提升。
英文摘要:
Large language models (LLMs) demand significant memory and computation resources. Wafer-scale chips (WSCs) provide high computation power and die-to-die (D2D) bandwidth but face a unique trade-off between on-chip memory and compute resources due to limited wafer area. Therefore, tensor parallelism strategies for wafer should leverage communication advantages while maintaining memory efficiency to maximize WSC performance. However, existing approaches fail to address these challenges. To address these challenges, we propose the tensor stream partition paradigm (TSPP), which reveals an opportunity to leverage WSCs' abundant communication bandwidth to alleviate stringent on-chip memory constraints. However, the 2D mesh topology of WSCs lacks long-distance and flexible interconnects, leading to three challenges: 1) severe tail latency, 2) prohibitive D2D traffic contention, and 3) intractable search time for optimal design. We present TEMP, a framework for LLM training on WSCs that leverages topology-aware tensor-stream partition, traffic-conscious mapping, and dual-level wafer solving to overcome hardware constraints and parallelism challenges. These integrated approaches optimize memory efficiency and throughput, unlocking TSPP's full potential on WSCs. Evaluations show TEMP achieves 1.7x average throughput improvement over state-of-the-art LLM training systems across various models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。