Large language models (LLMs) have demonstrated transformative capabilities across diverse artificial intelligence applications, yet their deployment is hindered by substantial memory and computational demands, especially in resource-constrained environments. Quantization techniques have emerged as a critical solution, reducing data precision to enhance memory and computational efficiency. However, existing methods often suffer from high runtime overheads and potential accuracy degradation. To address these challenges, we propose Ecco, an entropy-based cache compression technique tailored for LLMs. Ecco combines group-wise and non-uniform quantization with pre-defined shared k-means patterns and Huffman coding to exploit the inherent entropy characteristics of LLM cache data. Recognizing the inefficiencies of traditional Huffman coding in terms of parallelism and latency, we introduce a novel parallel Huffman-based decoding process with a multi-stage pipeline design, reducing latency by two orders of magnitude and achieving throughput comparable to GPU L2 caches. Comprehensive evaluations demonstrate that Ecco achieves an up to 2.9$\times$ and 1.9$\times$ speedup over the state-of-the-art AWQ and SmoothQuant framework, 2.4$\times$ over the Olive accelerator, all while increasing memory capacity by nearly 4$\times$ and maintaining state-of-the-art LLM accuracy. These results underscore the effectiveness of our entropy-based cache compression in enhancing LLM performance and efficiency, paving the way for more deployable large-scale AI models.
FlashAccel: Leveraging High-Bandwidth Flash (HBF) for High-Throughput LLM Inference
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);School of Advanced Interdisciplinary Sciences, University of Chinese Academy of Sciences(中国科学院大学交叉科学学院);Institute of Microelectronics, Chinese Academy of Sciences(中国科学院微电子研究所)
A Study of Runtime Adaptive Prefetching for STTRAM L1 Caches
自旋转移力矩RAM(STTRAM)由于其多个优点而成为片上高速缓存中SRAM的有前途的替代品。这些优点包括非易失性、低泄漏、高集成密度和CMOS兼容性。先前的研究已经表明,放宽STTRAM保留时间并使其适应运行时应用需求可以大幅降低整体缓存能量,而不会产生显著的延迟开销,这是由于在较短的保留时间内具有较低的STTRAM写入能量和延迟。在本文中,作为跨STTRAM缓存层次结构的高效预取的第一步,我们研究了预取减少保留STTRAM L1缓存。使用SPEC CPU 2017基准测试,我们分析了不同应用程序在不同STTRAM缓存保留时间下不同预取距离的能量和延迟影响。我们表明,expired_unused_prefetches-由减少的保留时间STTRAM缓存过期的未使用的预取的数量-可以准确地确定最佳的保留时间的能源消耗和访问延迟。这个新的度量还可以提供对内存带宽消耗和预取准确性的最佳预取距离的洞察。基于我们的分析和见解,我们提出了预取感知的保留时间调整(PART)和基于保留时间的预取控制(RPC)。与基本STTRAM缓存相比,PART和RPC分别将平均缓存能量和延迟降低了22.24%和24.59%。在基础架构上增加最先进的近端预取节流(NST)后,PART+RPC的平均缓存能耗和延迟分别降低了3.50%和3.59%,硬件开销降低了54.55%
Performance Modeling of Streaming Kernels and Sparse Matrix-Vector Multiplication on A64FX
A64 FX CPU是目前Top500排行榜上排名第一的超级计算机。虽然它是一个传统的基于缓存的多核处理器,但其峰值性能和内存带宽可与加速器设备相媲美。为这样一个新的体系结构生成高效的代码需要很好地理解其性能特性。利用这些功能,我们构建的执行缓存存储器(ECM)的性能模型的A64 FX处理器在FX 700超级计算机,并验证它使用流循环。我们还确定架构的特点,并获得优化提示。将ECM模型应用于稀疏矩阵向量乘法(SpMV),我们激发了CRS矩阵存储格式不合适的原因以及SELL-C-sigma格式如何通过适当的代码优化实现SpMV的带宽饱和。
InstInfer: In-Storage Attention Offloading for Cost-Effective Long-Context LLM Inference
Peking University(北京大学);Xiamen University(厦门大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Huawei Cloud(华为云);Wuhan National Laboratory for Optoelectronics of Huazhong University of Science and Technology(华中科技大学武汉光电国家研究中心)