ForgeTrain: Forging Production-Grade Training Frameworks via Harness-Driven AI Development
Qingfeng He, Zhui Zhu, Shangzhan Li, Yaojian Chen, Haojun Sun, Xu Chen, Leshan Li, Yifei Shen, Changjingxing Zhao, Mengyuan Fan, Wenyu Guan, Yiyun Zheng, Yuxuan Zuo, Zhen Li, Zhenghang Luo, Yuxuan Li, Xu Han, Zhiyuan Liu
Abstract
Training large models still relies on general-purpose frameworks such as Megatron-LM, whose generality tax constrains scenario-specific optimization and adds runtime overhead through accumulated abstraction. AI code generation reduces the cost of building a framework, and makes it affordable to forge one per scenario. We propose Forge Engineering: building a dedicated implementation from scratch for each scenario and iteratively optimizing it toward peak performance under correctness and usability constraints. Dedicated implementations inherit no abstraction boundaries, so they can integrate optimizations across the stack and reach a higher performance ceiling. We instantiate this paradigm for training frameworks as ForgeTrain, which holds a trusted framework as a golden reference and relaxes equivalence monotonically from Bit-for-Bit to Surpass. Experiments across multiple model--hardware configurations show that ForgeTrain consistently produces correct training engines and improves MFU over established training frameworks by 4.7--33.2%. To our knowledge this is the first production-grade training framework forged end-to-end by AI to match or surpass its human reference.
Create a lesson
Metadata
- Categories
- cs.SE, cs.DC
- Comments
- 21 pages, 9 figures
Related papers
Introducing Consort: A Spec-First Agent Framework for Enforced, Test-Driven Development on Live Database Branches
Shared title terminologycs.SEKevin Hartman
An Agent-Based Approach for Automating Behavior-Driven Development
Shared title terminologycs.SELuciano Belo de Alcântara Júnior, Diego Elias Costa, João Eduardo Montandon
A Lean and Spec-Driven AI-Assisted Software Development Lifecycle for Applied AI Education: The AI-SDLC Approach
Shared title terminologycs.SEAndreas Martin, Sandro Schwander
A Carbon-Aware Quantum Computing Framework for LCA-Driven Sustainability in Quantum Cloud Services
Shared title terminologycs.SEMuhammad Umar, Nauman Arshad, Azeem Akbar et al.
Fragmented Markers, Mixed Results: A Systematic Review of AI Coding Assistants and Developer Productivity
Shared title terminologycs.SEAnnemarie Wittig, Alina Mailach, Norbert Siegmund
Bridging UVM and Tessent: An Automated Co-Verification Framework for MBIST Designs
Shared title terminologycs.SEDo Ngoc Tiep, Cao Ngoc Thanh Do, Luu Danh Minh et al.