Hydra: A System for Large Multi-Model Deep Learning
Not on the map. Why?
Abstract (arXiv)
Scaling up model depth and size is now a common approach to raise accuracy in many deep learning (DL) applications, as evidenced by the widespread success of multi-billion or even trillion parameter models in natural language processing (NLP) research. Despite success in DL research and at major technology companies, broader practical adoption of such large models among domain scientists and businesses is still bottlenecked by GPU memory limits, high training costs, and low GPU availability, even on public clouds. Model selection needs further compound these resource challenges: users often need to compare dozens of models with different hyper-parameters or neural architectures to suit their specific task and dataset. In this paper, we present Hydra, a system designed to tackle such challenges by enabling out-of-the-box scaling for multi-large-model DL workloads on even commodity GPUs in a resource-efficient manner. Hydra is the first approach to holistically optimize the execution of multi-model workloads for large DL models. We do this by adapting prior "model-parallel" execution schemes to work with scalable parameter offloading across the memory hierarchy and further hybridizing this approach with task-parallel job scheduling techniques. Hydra decouples scalability of model parameters from parallelism of execution, thus enabling DL users to train even a 6-billion parameter model on a single commodity GPU. It also fully exploits the speedup potential of task parallelism in multi-GPU setups, yielding near-linear strong scaling and making rigorous model selection perhaps more practical for such models. We evaluate end-to-end performance by fine-tuning GPT-2 for language modeling. We find that Hydra offers between 50% and 100% higher training throughput than even the best settings of state-of-the-art industrial frameworks such as DeepSpeed and GPipe for multi-large-model training.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 28 of its 62 references that are in the map. First posted on arXiv 16 Oct 2021.
Builds on
28 of 62 references.
References · 28
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,593
- 2016Training Deep Nets with Sublinear Memory Costcited by 848
- 2020TaBERT: Pretraining for Joint Understanding of Textual and Tabular Datacited by 398
- 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 341
- 2021ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learningcited by 256
- 2018Dataset Distillationcited by 230
16 more
- 2018A System for Massively Parallel Hyperparameter Tuningcited by 202
- 2018Beyond Data and Model Parallelism for Deep Neural Networkscited by 179
- 2018Demystifying Parallel and Distributed Deep Learning: An In-Depth Concurrency Analysiscited by 156
- 2020Memory-Efficient Pipeline-Parallel DNN Trainingcited by 134
- 2018PipeDream: Fast and Efficient Pipeline Parallel DNN Trainingcited by 117
- 2019Hello, It's GPT-2 -- How Can I Help You? Towards the Use of Pretrained Language Models for Task-Oriented Dialogue Systemscited by 110
- 2019Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerializationcited by 91
- 2016Memory-Efficient Backpropagation Through Timecited by 78
- 2021Chimera: Efficiently Training Large-Scale Neural Networks with Bidirectional Pipelinescited by 68
- 2019Low-Memory Neural Network Training: A Technical Reportcited by 57
- 2019PipeMare: Asynchronous Pipeline Parallel DNN Trainingcited by 55
- 2019Language Models with Transformerscited by 36
- 2020Training Large Neural Networks with Constant Memory using a New Execution Algorithmcited by 34
- 2020torchgpipe: On-the-fly Pipeline Parallelism for Training Giant Modelscited by 26
- 2017AMPNet: Asynchronous Model-Parallel Training for Dynamic Neural Networkscited by 12
- 2021Model-Parallel Model Selection for Deep Learning Systemscited by 6
Built on by
Citing papers per year: 2023: 3.
3 papers.