RACAM:通过重用感知计算和自动映射增强DRAM用于ML推理
RACAM: Enhancing DRAM with Reuse-Aware Computation and Automated Mapping for ML Inference
AI总结:
RACAM通过重用感知计算和自动映射提升DRAM性能,实现LLM推理的高加速和高能效。
摘要:
在DRAM中的处理-in-内存(DRAM-PIM)已成为一种有前景的方法,通过减少DRAM与主机处理器之间的数据传输开销来加速内存密集型任务。位串行的DRAM-PIM架构进一步通过支持运行时可变数据精度来提高效率,这对于新兴任务,如大语言模型(LLM)推理至关重要。然而,现有工作仍存在主要限制:缺乏数据重用、大量冗余数据传输以及对任务映射的支持不足。为了解决这些问题,我们提出了RACAM,这是首个在DRAM中的位串行架构,它使用专用局部性缓冲区、位串行PE、计数减少单元和广播单元来实现数据重用并减轻冗余数据传输。此外,提出了一种任务映射机制,以充分探索DRAM架构的大量并行性,并确定给定任务的最佳映射方案。我们评估了RACAM在端到端LLM推理中的性能,与GPU和最先进的DRAM-PIM系统Proteus进行了比较。RACAM在GPU上实现了9倍到102倍的加速,并且在GPT3的情况下,每平方毫米性能比Proteus高233倍。
英文摘要:
In-DRAM Processing-In-Memory (DRAM-PIM) has emerged as a promising approach to accelerate memory-intensive workloads by mitigating data transfer overhead between DRAM and the host processor. Bit-serial DRAM-PIM architectures, further enhance efficiency by supporting runtime variable data precision, which is critical for emerging workloads, such as large language model (LLM) inference. However, existing works still have major limitations: lack of data reuse, significant amounts of redundant data transfer, and insufficient support for workload mapping. To address these issues, we propose RACAM, the first in-DRAM bit-serial architecture which uses dedicated locality buffers, bit-serial PEs, popcount reduction units and broadcast units to enable data reuse and alleviate redundant data transfers. Furthermore, a workload mapping mechanism is proposed to fully explore the massive parallelism of DRAM architecture and identify the best mapping scheme of a given workload. We evaluate RACAM against GPUs and the state-of-the-art, in-DRAM PIM system, Proteus, across end-to-end LLM inferences. RACAM achieves 9x to 102x speedup over GPUs and 233x higher performance per mm2 compared to Proteus in case of GPT3.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。