Exploiting Student Parallelism for Efficient GPU Inference of BERT-like Models in Online Services
Tencent(腾讯);Hong Kong University of Science and Technology(香港科技大学);Xiamen University(厦门大学);Macau University of Science and Technology(澳门科技大学);Zhongguancun Lab.(中关村实验室)
Weiyan Wang, Yilun Jin, Yiming Zhang, Victor Junqiu Wei, Han Tian, Li Chen, Jinbao Xue, Yangyu Tao, Di Wang, Kai Chen
Due to high accuracy, BERT-like models have been widely adopted by text mining and web searching. However, large BERT-like models suffer from inefficient online inference, facing the following two problems on GPUs: (1) their high accuracy relies on the large model depth, which linearly increases the sequential computation on GPUs; (2) stochastic and dynamic online workloads cause extra costs from batching and paddings. Therefore, we present \sys for the real-world setting of GPU inference on online workloads. At its core, \sys adopts stacking distillation and boosting ensemble, distilling the original deep model into a group of shallow but virtually stacked student models running in parallel. This enables \sys to achieve a lower model depth (e.g., two layers) than the others and the lowest inference latency while maintaining accuracy. In addition, adaptive student pruning realizes dynamic student numbers according to changing online workloads. Especially for occasional workload bursts, it can temporarily decrease the student number with minimal accuracy loss to improve system throughput. We conduct comprehensive experiments to verify the effectiveness, whose results show that \sys outperforms the baselines by $4.1\times\sim 1.6\times$ in latency while maintaining accuracy and achieves up to $22.27\times$ higher throughput for workload bursts.
Synkhronos: a Multi-GPU Theano Extension for Data Parallelism
University of California, Berkeley(加州大学伯克利分校)
我们提出了Synkhronos,一个扩展Theano的多GPU计算利用数据并行。我们的框架提供跨设备的自动执行和同步,允许用户继续编写串行程序,而不会有竞争条件的风险。NVIDIA Collective Communication Library用于GPU间的高带宽通信。Theano函数接口的进一步增强包括输入切片(具有聚合)和输入索引,它们可以有效地执行常见的数据并行计算模式。一个示例用例是同步SGD,最近已经证明它可以很好地扩展越来越多的深度学习问题。在训练ResNet-50时,我们在使用8个GPU的NVIDIA DGX-1上实现了7.5倍的近线性加速,相对于仅运行单个GPU的Theano代码。然而,Synkhronos仍然适用于Theano中可编程的任何数据并行计算。通过在单个Theano函数级别实现并行性,我们的框架独特地解决了手动多设备编程和规定的多GPU训练例程之间的利基。
jaxsgp4: GPU-accelerated mega-constellation propagation with batch parallelism
Kavli Institute for Cosmology, University of Cambridge(剑桥大学卡弗里宇宙学研究所);Institute of Astronomy, University of Cambridge(剑桥大学天文学研究所);PolyChord Ltd.(PolyChord有限公司)