剪枝Pruning
Pruning
解决什么问题What problem it solves
删掉模型里不重要的连接,让它变小变快。Delete the unimportant connections in a model to make it smaller and faster.
这是什么What it is
把权重接近零的连接去掉,模型更小、推理更快。
论文实测:对预训练模型做结构化剪枝,精度损失可以很小。
Removing weights close to zero makes the model smaller and inference faster.
Measured in the paper: structured pruning of a pretrained model can lose very little accuracy.
为什么需要知道Why it matters
它和量化是两条互补的压缩路线。本地跑不动的模型,有时靠剪枝救回来。It is a compression route complementary to quantisation. A model that will not fit locally is sometimes rescued by pruning.
现在能做什么What you can do now
回到名词地图看第5站的其他 29 个词 →Back to the map: the other 29 terms in station 5 →
出处Sources
- 剪枝有效性研究论文To prune, or not to prune (paper) ↗