Saved in:
Bibliographic Details
Main Authors: Zhao, Lu, Shi, Rong, Zhang, Shaoqing, Su, Shangchao, Yin, Ziqing, Cui, Zhiyan, Sun, Hongfeng, He, Baoguo, Chen, Yueqiang, Dong, Liang, Li, Xiyuan, Wang, Lingbin, Ma, Lijun, Huang, Qiang, Liu, Ting, Wang, Chong, Wei, Can
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2511.09837
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914165280473088
author Zhao, Lu
Shi, Rong
Zhang, Shaoqing
Su, Shangchao
Yin, Ziqing
Cui, Zhiyan
Sun, Hongfeng
He, Baoguo
Chen, Yueqiang
Dong, Liang
Li, Xiyuan
Wang, Lingbin
Ma, Lijun
Huang, Qiang
Liu, Ting
Wang, Chong
Wei, Can
author_facet Zhao, Lu
Shi, Rong
Zhang, Shaoqing
Su, Shangchao
Yin, Ziqing
Cui, Zhiyan
Sun, Hongfeng
He, Baoguo
Chen, Yueqiang
Dong, Liang
Li, Xiyuan
Wang, Lingbin
Ma, Lijun
Huang, Qiang
Liu, Ting
Wang, Chong
Wei, Can
contents The exponential growth in LLM scales, with parameters soaring from billions to trillions, has necessitated distributed pretraining across large clusters comprising thousands to tens of thousands of devices. While hybrid parallelization strategies enable such pretraining, the vast combinatorial strategy space introduces significant optimization challenges. Traditional manual tuning methods incur prohibitive trial-and-error costs, and existing performance modeling approaches exhibit critical limitations: they fail to comprehensively account for prevalent optimization features and ignore the substantial overhead imposed by essential fault tolerance mechanisms like checkpoint recovery in long-duration pretraining. To address these gaps, we propose MoFa, a novel pretraining performance modeling framework that unifies multi-dimensional optimization features and fault tolerance. MoFa incorporates an enhanced cost model to accurately capture the effects of key optimizations and integrates a fault tolerance model based on historical cluster reliability data. Besides, a MoFa-based tuning system is developed to explore optimal pretraining performance and potential bottlenecks in various scenarios. Extensive modeling evaluations demonstrate that MoFa can achieve high prediction accuracy across various scenarios. In addition, through comprehensive tuning experiments, our framework systematically reveals the key factors influencing pretraining performance under different configurations, which provides solid a priori guidance for LLM pretraining system design and deployment.
format Preprint
id arxiv_https___arxiv_org_abs_2511_09837
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MoFa: A Unified Performance Modeling Framework for LLM Pretraining
Zhao, Lu
Shi, Rong
Zhang, Shaoqing
Su, Shangchao
Yin, Ziqing
Cui, Zhiyan
Sun, Hongfeng
He, Baoguo
Chen, Yueqiang
Dong, Liang
Li, Xiyuan
Wang, Lingbin
Ma, Lijun
Huang, Qiang
Liu, Ting
Wang, Chong
Wei, Can
Distributed, Parallel, and Cluster Computing
The exponential growth in LLM scales, with parameters soaring from billions to trillions, has necessitated distributed pretraining across large clusters comprising thousands to tens of thousands of devices. While hybrid parallelization strategies enable such pretraining, the vast combinatorial strategy space introduces significant optimization challenges. Traditional manual tuning methods incur prohibitive trial-and-error costs, and existing performance modeling approaches exhibit critical limitations: they fail to comprehensively account for prevalent optimization features and ignore the substantial overhead imposed by essential fault tolerance mechanisms like checkpoint recovery in long-duration pretraining. To address these gaps, we propose MoFa, a novel pretraining performance modeling framework that unifies multi-dimensional optimization features and fault tolerance. MoFa incorporates an enhanced cost model to accurately capture the effects of key optimizations and integrates a fault tolerance model based on historical cluster reliability data. Besides, a MoFa-based tuning system is developed to explore optimal pretraining performance and potential bottlenecks in various scenarios. Extensive modeling evaluations demonstrate that MoFa can achieve high prediction accuracy across various scenarios. In addition, through comprehensive tuning experiments, our framework systematically reveals the key factors influencing pretraining performance under different configurations, which provides solid a priori guidance for LLM pretraining system design and deployment.
title MoFa: A Unified Performance Modeling Framework for LLM Pretraining
topic Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2511.09837