arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.11796cs.CLcs.AIcs.LG
收藏

LLM剪枝与蒸馏实践:Minitron方法

LLM Pruning and Distillation in Practice: The Minitron Approach

NVIDIA(英伟达)
Sharath Turuvekere Sreenivas, Saurav Muralidharan, Raviraj Joshi, Marcin Chochowski, Ameya Sunil Mahabaleshwarkar, Gerald Shen, Jiaqi Zeng, Zijia Chen, Yoshi Su… 展开作者

Sharath Turuvekere Sreenivas, Saurav Muralidharan, Raviraj Joshi, Marcin Chochowski, Ameya Sunil Mahabaleshwarkar, Gerald Shen, Jiaqi Zeng, Zijia Chen, Yoshi Suhara, Shizhe Diao, Chenhan Yu, Wei-Chun Chen, Hayley Ross, Oluwatobi Olabiyi, Ashwath Aithal, Oleksii Kuchaiev, Daniel Korzekwa, Pavlo Molchanov, Mostofa Patwary, Mohammad Shoeybi, Jan Kautz, Bryan Catanzaro

AI总结:

本研究提出Minitron方法,通过深度剪枝与宽度联合剪枝加蒸馏,将Llama 3.1 8B、Mistral NeMo 12B分别压缩为高性能4B、SOTA级8B模型,还发现无原始数据时微调教师模型有益,并开源了权重。

摘要:

我们发布了一份关于使用剪枝与蒸馏技术将Llama 3.1 8B和Mistral NeMo 12B模型分别压缩至4B和8B参数的综合报告。我们探索了两种不同的剪枝策略:(1)深度剪枝,(2)隐藏层/注意力/MLP(宽度)联合剪枝,并在LM Evaluation Harness(语言模型评估工具集)的常用基准上评估了结果。随后模型通过NeMo Aligner进行对齐,并测试了指令微调版本。该方法从Llama 3.1 8B得到了性能出色的4B模型,从Mistral NeMo 12B得到了达到当前最优水平的Mistral-NeMo-Minitron-8B(简称MN-Minitron-8B)模型。我们发现在无法获取原始数据的情况下,在蒸馏数据集上对教师模型进行轻微微调是有益的。我们以宽松许可协议在Hugging Face上开源了基础模型权重。

英文摘要:

We present a comprehensive report on compressing the Llama 3.1 8B and Mistral NeMo 12B models to 4B and 8B parameters, respectively, using pruning and distillation. We explore two distinct pruning strategies: (1) depth pruning and (2) joint hidden/attention/MLP (width) pruning, and evaluate the results on common benchmarks from the LM Evaluation Harness. The models are then aligned with NeMo Aligner and tested in instruct-tuned versions. This approach produces a compelling 4B model from Llama 3.1 8B and a state-of-the-art Mistral-NeMo-Minitron-8B (MN-Minitron-8B for brevity) model from Mistral NeMo 12B. We found that with no access to the original data, it is beneficial to slightly fine-tune teacher models on the distillation dataset. We open-source our base model weights on Hugging Face with a permissive license.

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

↑