Model parallelism has become a necessity for training modern large-scale deep language models. In this work, we identify a new and orthogonal dimension from existing model parallel approaches: it is possible to perform pipeline parallelism within a single training sequence for Transformer-based language models thanks to its autoregressive property. This enables a more fine-grained pipeline compared with previous work. With this key idea, we design TeraPipe, a high-performance token-level pipeline parallel algorithm for synchronous model-parallel training of Transformer-based language models. We develop a novel dynamic programming-based algorithm to calculate the optimal pipelining execution scheme given a specific model and cluster configuration. We show that TeraPipe can speed up the training by 5.0x for the largest GPT-3 model with 175 billion parameters on an AWS cluster with 48 p3.16xlarge instances compared with state-of-the-art model-parallel methods. The code for reproduction can be found at https://github.com/zhuohan123/terapipe
Parallelism and Generation Order in Masked Diffusion Language Models: Limits Today, Potential Tomorrow
Zhejiang University(浙江大学);Ant Group(蚂蚁集团);Shanghai Jiao Tong University(上海交通大学);University of Chinese Academy of Social Sciences(中国社会科学院大学);Westlake University(西湖大学)
Learning to Keep a Promise: Scaling Language Model Decoding Parallelism with Learned Asynchronous Decoding
DeepMind, London, UK(深度思维公司,伦敦,英国);Google Research, New York, NY, USA(谷歌研究院,纽约,纽约州,美国);Stanford University, Stanford, CA, USA(斯坦福大学,斯坦福,加利福尼亚州,美国);University of Toronto, Toronto, Ontario, Canada(多伦多大学,多伦多,安大略省,加拿大);University of Washington, Seattle, WA, USA(华盛顿大学,西雅图,华盛顿州,美国)
d3LLM: Ultra-Fast Diffusion LLM using Pseudo-Trajectory Distillation
University of California, San Diego(加州大学圣地亚哥分校);School of Artificial Intelligence, Nanjing University(南京大学人工智能学院);National Key Laboratory for Novel Software Technology, Nanjing University(南京大学新型软件技术国家实验室);Shanghai Jiao Tong University(上海交通大学)
Unleashing Transformers: Parallel Token Prediction with Discrete Absorbing Diffusion for Fast High-Resolution Image Generation from Vector-Quantized Codes
Mean-Field Parallel Decoding for Discrete Diffusion Language Models
School of Electrical & Computer Engineering, Tel Aviv University(特拉维夫大学电气与计算机工程学院);School of Computer Science and AI, Tel Aviv University(特拉维夫大学计算机科学与人工智能学院);Department of Computer Science, Technion, Israel Institute of Technology(以色列理工学院计算机科学系)
PAPI: Exploiting Dynamic Parallelism in Large Language Model Decoding with a Processing-In-Memory-Enabled Computing System
Institute of Computing Technology, CAS(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);King’s College London(伦敦国王学院);ETH Zürich(苏黎世联邦理工学院);University of Toronto(多伦多大学);Vector Institute(向量研究所);NVIDIA(英伟达公司)
LocateAnything: Fast and High-Quality Vision-Language Grounding with Parallel Box Decoding
The Hong Kong Polytechnic University(香港理工大学);Princeton University(普林斯顿大学);Nanjing University(南京大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)