SparseGPT:大规模语言模型可以一次性精确修剪
SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shot
摘要:
我们第一次展示了大规模生成预训练的Transformer(GPT)系列模型可以在一次中修剪到至少50%的稀疏度,而无需任何重新训练,并且精度损失最小。这是通过一种名为SparseGPT的新修剪方法来实现的,该方法专门设计用于在大规模GPT系列模型上高效准确地工作。我们可以在最大的开源模型OPT-175 B和BLOOM-176 B上执行SparseGPT,时间不到4.5小时,并且可以达到60%的非结构化稀疏度,而困惑度的增加可以忽略不计:值得注意的是,这些模型中超过1000亿个权重可以在推理时忽略。SparseGPT一般化到半结构化(2:4和4:8)模式,并且与权重量化方法兼容。该代码可从以下网址获得:https://github.com/IST-DASLab/sparsegpt。
英文摘要:
We show for the first time that large-scale generative pretrained transformer (GPT) family models can be pruned to at least 50% sparsity in one-shot, without any retraining, at minimal loss of accuracy. This is achieved via a new pruning method called SparseGPT, specifically designed to work efficiently and accurately on massive GPT-family models. We can execute SparseGPT on the largest available open-source models, OPT-175B and BLOOM-176B, in under 4.5 hours, and can reach 60% unstructured sparsity with negligible increase in perplexity: remarkably, more than 100 billion weights from these models can be ignored at inference time. SparseGPT generalizes to semi-structured (2:4 and 4:8) patterns, and is compatible with weight quantization approaches. The code is available at: https://github.com/IST-DASLab/sparsegpt.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。