L4:通过自动化日志分析诊断大规模LLM训练故障
L4: Diagnosing Large-scale LLM Training Failures via Automated Log Analysis
AI总结:
本文提出L4框架,通过自动化分析大规模LLM训练日志,识别故障指示信息,实现高效准确的故障诊断,减少人工成本。
摘要:
随着大型语言模型(LLM)在各种应用中展现出其能力,训练定制化的LLM已成为现代企业的关键需求。然而,由于LLM训练的复杂性,其需要大量的计算资源和长时间的训练,训练过程中故障不可避免。这些故障导致了资源和时间的巨大浪费,凸显了对有效且高效的故障诊断的迫切需求,以降低LLM训练的成本。在本文中,我们首次对2023年5月至2024年4月期间生产环境Platform-X中的428个LLM训练故障报告进行了实证研究。我们的研究揭示,硬件和用户错误是主要的根本原因,而当前的诊断过程严重依赖训练日志。不幸的是,现有的基于日志的诊断方法在处理LLM训练日志方面存在不足。考虑到LLM训练的独特特征,我们识别出LLM训练日志的三种不同模式:跨作业、空间和时间模式。随后,我们介绍了基于日志的大规模LLM训练故障诊断框架L4,该框架能够自动从大量训练日志中提取故障指示信息(即日志事件、节点、阶段和迭代),从而减少人工工作量并促进故障恢复。在真实数据集上的实验结果表明,L4在识别故障指示日志和定位故障节点方面优于现有方法。此外,L4已在Platform-X中应用,并证明了其在实现准确高效故障诊断方面的有效性。
英文摘要:
As Large Language Models (LLMs) show their capabilities across various applications, training customized LLMs has become essential for modern enterprises. However, due to the complexity of LLM training, which requires massive computational resources and extensive training time, failures are inevitable during the training process. These failures result in considerable waste of resource and time, highlighting the critical need for effective and efficient failure diagnosis to reduce the cost of LLM training. In this paper, we present the first empirical study on the failure reports of 428 LLM training failures in our production Platform-X between May 2023 and April 2024. Our study reveals that hardware and user faults are the predominant root causes, and current diagnosis processes rely heavily on training logs. Unfortunately, existing log-based diagnostic methods fall short in handling LLM training logs. Considering the unique features of LLM training, we identify three distinct patterns of LLM training logs: cross-job, spatial, and temporal patterns. We then introduce our Log-based Large-scale LLM training failure diagnosis framework, L4, which can automatically extract failure-indicating information (i.e., log events, nodes, stages, and iterations) from extensive training logs, thereby reducing manual effort and facilitating failure recovery. Experimental results on real-world datasets show that L4 outperforms existing approaches in identifying failure-indicating logs and localizing faulty nodes. Furthermore, L4 has been applied in Platform-X and demonstrated its effectiveness in enabling accurate and efficient failure diagnosis.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。