SCALE-Sim TPU:对TPU加速器的SCALE-Sim进行验证与扩展
SCALE-Sim TPU: Validating and Extending SCALE-Sim for TPUs
AI总结:
本文提出SCALE-Sim TPU,通过验证和扩展SCALE-Sim v3,提升了TPU加速器的仿真精度与实用性,包括验证GEMM模型、引入轻量级学习延迟模型以及集成StableHLO前端。
摘要:
周期精确的仿真器广泛用于研究张量计算加速器,但其精度和实用性常受限于对真实硬件的验证不足和与现代机器学习编译器栈的整合不佳。本文提出了SCALE-Sim TPU,即对TPU风格加速器的SCALE-Sim v3的验证和扩展版本。具体而言,我们做出了三个贡献:(1)我们验证了SCALE-Sim的张量计算GEMM模型,基于Google TPU v4的测量数据,证明模拟的周期计数与硬件延迟之间存在强线性相关性,从而实现了简单的周期到延迟映射。(2)我们引入了轻量级学习延迟模型,用于非张量计算的逐元素操作,仅使用张量大小和形状即可实现中位相对误差低于3%的延迟估计。(3)我们集成了基于StableHLO的前端,允许现代机器学习框架如JAX和PyTorch的工作负载通过统一的编译器中间表示直接进行仿真。这些贡献共同提升了对TPU上完整模型性能分析的周期精确仿真的保真度、覆盖范围和实用性。
英文摘要:
Cycle-accurate simulators are widely used to study systolic accelerators, yet their accuracy and usability are often limited by weak validation against real hardware and poor integration with modern ML compiler stacks. This paper presents SCALE-Sim TPU, a validated and extended version of SCALE-Sim v3 for TPU-style accelerators. Specifically, we make three contributions: (1) We validate SCALE-Sim's systolic GEMM model against measurements on Google TPU v4 and show that simulated cycle counts exhibit a strong linear correlation with hardware latency, enabling a simple cycle-to-latency mapping. (2) We introduce lightweight learned latency models for non-systolic elementwise operations, achieving median relative errors below 3 percent using only tensor size and shape, substantially improving end-to-end latency estimation. (3) We integrate a StableHLO-based frontend that allows workloads from modern ML frameworks such as JAX and PyTorch to be simulated directly via a unified compiler IR. Together, these contributions improve the fidelity, coverage, and practicality of cycle-accurate simulation for whole-model performance analysis on TPUs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。