1. 首页
  2. 人工智能
  3. 论文/代码
  4. 深度学习的稀疏GPU内核

深度学习的稀疏GPU内核

上传者: 2021-01-22 05:47:28上传 .PDF文件 1.49 MB 热度 28次

传统上,科学工作负载利用高水平的稀疏性来加速计算并减少内存需求。虽然可以使稀疏的神经网络稀疏,但在GPU上实现实际的加速却很困难,因为这些应用程序具有相对中等的稀疏度,不足以使现有的稀疏内核胜过密集的稀疏内核。..

Sparse GPU Kernels for Deep Learning

Scientific workloads have traditionally exploited high levels of sparsity to accelerate computation and reduce memory requirements. While deep neural networks can be made sparse, achieving practical speedups on GPUs is difficult because these applications have relatively moderate levels of sparsity that are not sufficient for existing sparse kernels to outperform their dense counterparts.In this work, we study sparse matrices from deep learning applications and identify favorable properties that can be exploited to accelerate computation. Based on these insights, we develop high-performance GPU kernels for two sparse matrix operations widely applicable in neural networks: sparse matrix-dense matrix multiplication and sampled dense-dense matrix multiplication. Our kernels reach 27% of single-precision peak on Nvidia V100 GPUs. Using our kernels, we demonstrate sparse Transformer and MobileNet models that achieve 1.2-2.1x speedups and up to 12.8x memory savings without sacrificing accuracy.

用户评论