PyTorch中张量精简和网络剪枝
Streamlining Tensor and Network Pruning in PyTorch
摘要:
为了对比可以归因于过度参数化的经验优势的最先进的机器学习模型的大小爆炸,并且由于在资源受限的设备上部署快速、可持续和私有的设备上模型的必要性,社区已经将诸如修剪、量化和蒸馏之类的技术作为模型压缩的中心策略。为了促进PyTorch中神经网络修剪的通用接口的采用,本文描述了最近添加的PyTorch torch.nn.utils.prune模块,该模块提供共享的开源修剪功能,以降低在训练之前,期间和/或之后减少模型大小和容量的技术实现障碍。我们提出了模块的用户界面,阐明实施细节,举例说明使用,并建议如何扩展新的修剪方法的功能。
英文摘要:
In order to contrast the explosion in size of state-of-the-art machine learning models that can be attributed to the empirical advantages of over-parametrization, and due to the necessity of deploying fast, sustainable, and private on-device models on resource-constrained devices, the community has focused on techniques such as pruning, quantization, and distillation as central strategies for model compression. Towards the goal of facilitating the adoption of a common interface for neural network pruning in PyTorch, this contribution describes the recent addition of the PyTorch torch.nn.utils.prune module, which provides shared, open source pruning functionalities to lower the technical implementation barrier to reducing model size and capacity before, during, and/or after training. We present the module's user interface, elucidate implementation details, illustrate example usage, and suggest ways to extend the contributed functionalities to new pruning methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。