Enhancing Stability for Large Language Models Training in Constrained Bandwidth Networks

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Dai, Yun, Dharamsi, Tejas, Hsu, Byron, Song, Tao, Firooz, Hamed
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866916424299053056
author Dai, Yun
Dharamsi, Tejas
Hsu, Byron
Song, Tao
Firooz, Hamed
author_facet Dai, Yun
Dharamsi, Tejas
Hsu, Byron
Song, Tao
Firooz, Hamed
contents Training extremely large language models (LLMs) with billions of parameters is a computationally intensive task that pushes the limits of current data parallel training systems. While techniques like ZeRO++ have enabled efficient distributed training of such giant models on inexpensive low-bandwidth clusters, they can suffer from convergence issues due to potential race conditions in the hierarchical partitioning (hpZ) scheme employed to reduce cross-machine communication. In this work, we first show how these race conditions cause instability when training models with billions of parameters. We then propose a modification to the partitioning algorithm that addresses these convergence challenges while maintaining competitive training efficiency. Empirical evaluation on training the multi-billion parameters Falcon Models and Llama-2 models demonstrates the updated algorithm's ability to achieve reliable convergence on these massive models, where stock ZeRO++ hpZ fails to converge. The updated algorithm enables robust training of larger models with 98\% throughput and model training speed improvement without sacrificing the quality of convergence.
format Preprint
id arxiv_https___arxiv_org_abs_2407_01614
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Enhancing Stability for Large Language Models Training in Constrained Bandwidth Networks
Dai, Yun
Dharamsi, Tejas
Hsu, Byron
Song, Tao
Firooz, Hamed
Machine Learning
Artificial Intelligence
Training extremely large language models (LLMs) with billions of parameters is a computationally intensive task that pushes the limits of current data parallel training systems. While techniques like ZeRO++ have enabled efficient distributed training of such giant models on inexpensive low-bandwidth clusters, they can suffer from convergence issues due to potential race conditions in the hierarchical partitioning (hpZ) scheme employed to reduce cross-machine communication. In this work, we first show how these race conditions cause instability when training models with billions of parameters. We then propose a modification to the partitioning algorithm that addresses these convergence challenges while maintaining competitive training efficiency. Empirical evaluation on training the multi-billion parameters Falcon Models and Llama-2 models demonstrates the updated algorithm's ability to achieve reliable convergence on these massive models, where stock ZeRO++ hpZ fails to converge. The updated algorithm enables robust training of larger models with 98\% throughput and model training speed improvement without sacrificing the quality of convergence.
title Enhancing Stability for Large Language Models Training in Constrained Bandwidth Networks
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2407.01614