arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.19657cs.LG
收藏

LLMEasyQuant: 用于并行和分布式LLM推理的可扩展量化

LLMEasyQuant: Scalable Quantization for Parallel and Distributed LLM Inference

Yale University(耶鲁大学);Columbia University(哥伦比亚大学)

Dong Liu, Yanxuan Yu

AI总结:

LLMEasyQuant通过模块化和系统感知的量化框架,实现高效低比特LLM推理,支持多种量化方法并优化多GPU和分布式环境下的性能。

摘要:

随着大型语言模型(LLMs)的规模和部署规模不断扩大,量化已成为减少内存占用和提高推理效率的重要技术。然而,现有的量化工具包往往缺乏透明性、灵活性以及跨GPU和分布式环境的系统级可扩展性。我们提出了LLMEasyQuant,这是一个模块化、系统感知的量化框架,旨在为单节点多GPU、多节点和边缘硬件上的LLM实现高效的低比特推理。LLMEasyQuant支持多种量化方法,包括对称量化、零量化、平滑量化和SimQuant,并通过统一的接口实现每层校准、位宽分配和运行时适应。它集成了融合的CUDA内核与基于NCCL的分布式同步,并支持静态和在线量化。实验结果表明,LLMEasyQuant在GEMM执行、HBM加载时间和近线性多GPU扩展方面实现了显著的加速。消融研究进一步验证了其在多样部署条件下平衡延迟、内存和精度的能力。LLMEasyQuant提供了一个实用的量化服务系统,用于可扩展、硬件优化的LLM推理。

英文摘要:

As large language models (LLMs) grow in size and deployment scale, quantization has become an essential technique for reducing memory footprint and improving inference efficiency. However, existing quantization toolkits often lack transparency, flexibility, and system-level scalability across GPUs and distributed environments. We present \textbf{LLMEasyQuant}, a modular, system-aware quantization framework designed for efficient, low-bit inference of LLMs on single-node multi-GPU, multi-node, and edge hardware. LLMEasyQuant supports a wide range of quantization methods -- including Symmetric Quantization, ZeroQuant, SmoothQuant, and SimQuant -- with unified interfaces for per-layer calibration, bitwidth assignment, and runtime adaptation. It integrates fused CUDA kernels with NCCL-based distributed synchronization and supports both static and online quantization. Empirical results show that LLMEasyQuant can achieve substantial speedup in GEMM execution, HBM load time, and near-linear multi-GPU scaling. Ablation studies further validate its ability to balance latency, memory, and accuracy under diverse deployment conditions. LLMEasyQuant offers a practical quantization serving system for scalable, hardware-optimized LLM inference.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑