Hydra:一个大型多模型深度学习系统
Hydra: A System for Large Multi-Model Deep Learning
摘要:
在许多深度学习(DL)应用中,扩大模型深度和大小现在是提高准确性的常用方法,自然语言处理(NLP)研究中数十亿甚至数万亿参数模型的广泛成功就证明了这一点。尽管在深度学习研究和主要技术公司取得了成功,但在领域科学家和企业中更广泛地实际采用这种大型模型仍然受到GPU内存限制,高培训成本和低GPU可用性的影响,即使在公共云上也是如此。模型选择需要进一步加剧这些资源挑战:用户通常需要比较数十个具有不同超参数或神经架构的模型,以适应其特定任务和数据集。在本文中,我们介绍了Hydra,这是一个旨在通过以资源高效的方式在商品GPU上实现多大型模型DL工作负载的开箱即用扩展来应对这些挑战的系统。Hydra是第一种全面优化大型DL模型的多模型工作负载执行的方法。我们这样做,通过调整以前的“模型并行”执行方案,以工作与可扩展的参数卸载整个存储层次结构,并进一步混合这种方法与任务并行作业调度技术。Hydra从执行的并行性中获得了模型参数的可扩展性,从而使DL用户能够在单个商用GPU上训练甚至60亿个参数的模型。它还充分利用了多GPU设置中任务并行性的加速潜力,产生了近线性的强缩放,并使严格的模型选择对于此类模型可能更实用。我们通过微调GPT-2进行语言建模来评估端到端性能。我们发现,Hydra提供的训练吞吐量比最先进的工业框架(如DeepSpeed和GPipe)的最佳设置高出50%到100%。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。