arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.08719cs.LG
收藏

平衡速度与稳定性:LLM中FP8与BF16训练的权衡

Balancing Speed and Stability: The Trade-offs of FP8 vs. BF16 Training in LLMs

Tokyo Institute of Technology(东京工业大学)

Kazuki Fujii, Taishi Nakamura, Rio Yokota

AI总结:

本研究探讨了在大型语言模型训练中采用FP8格式替代BF16格式在速度、训练稳定性及下游任务性能方面的实际权衡。

摘要:

大型语言模型(LLMs)因其类似人类的语言理解与生成能力,以及在各个领域的适用性而备受关注。这些模型以其庞大的规模和海量的训练数据为特征,不断突破自然语言处理的边界。例如,Llama 3系列体现了这一趋势,其旗舰模型拥有在15.6万亿个tokens上训练的4050亿个参数。训练此类模型所需的巨大计算需求推动了优化训练过程效率的持续研究,特别是通过使用低精度格式。NVIDIA的H100 GPU引入了对FP8的支持,以及更传统的FP16和BF16格式,已成为这一优化工作的焦点。初步研究表明,与BF16相比,FP8可以在不牺牲模型性能的情况下大幅减少训练时间,使其成为大规模模型训练的有力候选者。然而,采用FP8的更广泛影响,特别是在训练稳定性和下游任务性能方面,尚未被完全理解。在本研究中,我们深入探讨了在训练LLM时采用FP8而非BF16所涉及的实际权衡。

英文摘要:

Large Language Models (LLMs) have attracted significant attention due to their human-like language understanding and generation capabilities, as well as their applicability across various domains. These models, characterized by their massive scale and extensive training data, continue to push the boundaries of what is possible in natural language processing. The Llama 3 series, for instance, exemplifies this trend with its flagship model boasting 405 billion parameters trained on 15.6 trillion tokens. The immense computational demands associated with training such models have spurred ongoing research into optimizing the efficiency of the training process, particularly through the use of lower-precision formats. NVIDIA's H100 GPU, which introduces support for FP8 in addition to the more conventional FP16 and BF16 formats, has emerged as a focal point in this optimization effort. Preliminary studies suggest that FP8 could offer substantial reductions in training time without sacrificing model performance when compared to BF16, making it a promising candidate for large-scale model training. However, the broader implications of adopting FP8, particularly in terms of training stability and downstream task performance, have yet to be fully understood. In this study, we delve into the practical trade-offs involved in adopting FP8 over BF16 for training LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑