LLMPrism:面向生产级LLM训练平台的黑盒性能诊断
LLMPrism: Black-box Performance Diagnosis for Production LLM Training Platforms
AI总结:
本文提出首个面向生产级LLM训练平台的黑盒性能诊断系统LLMPrism,利用底层网络流数据重构训练时间线,实现非侵入式监控并精准诊断性能问题。
摘要:
大型语言模型(LLMs)为各个领域带来了革命性变化,使得LLM训练对现代企业至关重要。为满足这一需求,已构建多租户大规模LLM训练平台以提供LLM训练服务。然而,由于LLM训练过程的复杂性与同步性,性能问题频发并可能导致大量资源浪费。平台提供商视角的有限可见性阻碍了现有的性能分析方法,并对LLM训练作业性能的监控与诊断提出了挑战。本文首次提出利用底层网络流数据,基于LLM训练过程中的显著特征来重构作业的训练时间线。我们设计了LLMPrism,这是首个面向LLM训练平台的黑盒性能诊断系统。通过逐步识别LLM训练作业、确定其并行策略并重构训练时间线,LLMPrism实现了对LLM训练系统的非侵入式、轻量级和持续监控。利用此监控能力,它还能进一步有效诊断潜在的性能问题。自2024年10月起,LLMPrism已部署于我们的大规模生产平台Platform-X上,评估与部署经验表明,LLMPrism能实现误差在0.3%以内的精确时间线重构,并有效诊断各类性能问题。
英文摘要:
Large Language Models (LLMs) have brought about revolutionary changes in diverse fields, rendering LLM training of utmost importance for modern enterprises. To meet this demand, multi-tenant large-scale LLM training platforms have been built to offer LLM training services. Nevertheless, due to the complexity and synchronous nature of LLM training process, performance issues occur frequently and can result in substantial resource wastage. The limited visibility from the perspective of platform providers impedes existing profiling methods and poses challenges to the monitoring and diagnosis of the performance of LLM training jobs. For the first time, this paper proposes the utilization of underlying network flow data to reconstruct the training timelines of jobs based on the distinct characteristics in the LLM training procedure. We design LLMPrism, the first black-box performance diagnosis system for LLM training platforms. By progressively recognizing LLM training jobs, identifying their parallelism strategies, and reconstructing the training timelines, LLMPrism achieves non-intrusive, lightweight, and continuous monitoring of LLM training systems. Leveraging this monitoring capability, it further effectively diagnoses potential performance issues. Since Oct. 2024, LLMPrism has been deployed on our large-scale production Platform-X, in which the evaluations and deployment experiences demonstrate that LLMPrism can achieve accurate timeline reconstruction with an error within 0.3% and effectively diagnose various performance issues.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。