Large deep learning models have demonstrated strong ability to solve many tasks across a wide range of applications. Those large models typically require training and inference to be distributed. Tensor parallelism is a common technique partitioning computation of an operation or layer across devices to overcome the memory capacity limitation of a single processor, and/or to accelerate computation to meet a certain latency requirement. However, this kind of parallelism introduces additional communication that might contribute a significant portion of overall runtime. Thus limits scalability of this technique within a group of devices with high speed interconnects, such as GPUs with NVLinks in a node. This paper proposes a novel method, Flux, to significantly hide communication latencies with dependent computations for GPUs. Flux over-decomposes communication and computation operations into much finer-grained operations and further fuses them into a larger kernel to effectively hide communication without compromising kernel efficiency. Flux can potentially overlap up to 96% of communication given a fused kernel. Overall, it can achieve up to 1.24x speedups for training over Megatron-LM on a cluster of 128 GPUs with various GPU generations and interconnects, and up to 1.66x and 1.30x speedups for prefill and decoding inference over vLLM on a cluster with 8 GPUs with various GPU generations and interconnects.
Tessera: Unlocking Heterogeneous GPUs through Kernel-Granularity Disaggregation
Peking University(北京大学);Key Lab of HCST (PKU), MOE(高可信软件技术教育部重点实验室(北京大学));University of Chinese Academy of Sciences(中国科学院大学);Institute for AI Industry Research, Tsinghua University(清华大学人工智能研究院);Tsinghua University(清华大学);University of Leeds(利兹大学);Huawei Cloud(华为云)
DDU-Net: A Domain Decomposition-Based CNN for High-Resolution Image Segmentation on Multiple GPUs
Delft Institute of Applied Mathematics, Delft University of Technology, Delft, 2628 CD, Zuid-Holland, The Netherlands(代尔夫特应用数学研究所,代尔夫特理工大学,荷兰代尔夫特,2628 CD,北荷兰,荷兰);Computational Mathematics Department, Sandia National Laboratories, Albuquerque, New Mexico, USA(计算数学系,桑迪亚国家实验室,新墨西哥州阿布奎克,美国)