arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.21233cs.LGcs.AI
收藏

AngelSlim:一个更易用、更全面且更高效的大型模型压缩工具包

AngelSlim: A more accessible, comprehensive, and efficient toolkit for large model compression

Hunyuan AI Infra Team(文心一言AI基础设施团队)

Rui Cen, QiangQiang Hu, Hong Huang, Hong Liu, Song Liu, Xin Luo, Lin Niu, Yifan Tan, Decheng Wu, Linchuan Xie, Rubing Yang, Guanghua Yu, Jianchen Zhu

AI总结:

AngelSlim 提供统一流程,整合量化、推测解码等算法,实现从模型压缩到工业部署的高效加速,同时提出训练对齐的推测解码框架和训练无关的稀疏注意力框架,提升吞吐量并优化多模态模型。

摘要:

AngelSlim 通过整合量化、推测解码、令牌剪枝和蒸馏等前沿算法,提供了一个统一的流程,实现从模型压缩到工业部署的高效加速。我们集成了最先进的FP8和INT8后训练量化(PTQ)算法,以及超低比特领域的开创性研究,HY-1.8B-int2作为首个工业级2比特大模型。除了量化外,我们提出了一种与训练对齐的推测解码框架,兼容多模态架构和现代推理引擎,实现1.8倍到2倍的吞吐量提升,而不牺牲输出准确性。此外,我们开发了一种无需训练的稀疏注意力框架,通过静态模式和动态令牌选择的混合方法,减少长上下文场景中的Time-to-First-Token(TTFT)。对于多模态模型,AngelSlim集成了专用的剪枝策略,包括IDPruner用于通过最大边际相关性优化视觉令牌,以及Samp用于自适应音频令牌合并和剪枝。通过整合这些从低层实现的压缩策略,AngelSlim使算法研究和工具辅助部署成为可能。

英文摘要:

This technical report introduces AngelSlim, a comprehensive and versatile toolkit for large model compression developed by the Tencent Hunyuan team. By consolidating cutting-edge algorithms, including quantization, speculative decoding, token pruning, and distillation. AngelSlim provides a unified pipeline that streamlines the transition from model compression to industrial-scale deployment. To facilitate efficient acceleration, we integrate state-of-the-art FP8 and INT8 Post-Training Quantization (PTQ) algorithms alongside pioneering research in ultra-low-bit regimes, featuring HY-1.8B-int2 as the first industrially viable 2-bit large model. Beyond quantization, we propose a training-aligned speculative decoding framework compatible with multimodal architectures and modern inference engines, achieving 1.8x to 2.0x throughput gains without compromising output correctness. Furthermore, we develop a training-free sparse attention framework that reduces Time-to-First-Token (TTFT) in long-context scenarios by decoupling sparse kernels from model architectures through a hybrid of static patterns and dynamic token selection. For multimodal models, AngelSlim incorporates specialized pruning strategies, namely IDPruner for optimizing vision tokens via Maximal Marginal Relevance and Samp for adaptive audio token merging and pruning. By integrating these compression strategies from low-level implementations, AngelSlim enables algorithm-focused research and tool-assisted deployment.

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

↑