Reproduce “LazyTrain: Limited-resource Allocation toward Zero-waste Yield Optimization in Large Language Model Training” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Xiaojun Wu, Cehao Yang, Honghao Liu, Xueyuan Lin, Xuhui Jiang, Chengjin Xu, Jia Li, Jian Guo
LazyTrain introduces an optimization-guided scheduler for training large language models on limited hardware, framing resource allocation across GPU, CPU, and NVMe as a mixed-integer program. This approach improved training throughput by 1.24x on H800 GPUs and enabled larger feasible batch sizes on RTX 3090s compared to prior heuristic-based methods, while maintaining model quality.
Key insights
- Optimized scheduling via a MILP formulation is crucial for maximizing throughput in limited-resource LLM training, outperforming heuristic-based approaches by effectively hiding communication costs behind computation.
- The full memory hierarchy (GPU, CPU, NVMe) must be considered as an integrated system, where data transfers are explicitly modeled and optimized to minimize exposed latency.
- Combining memory-efficient 8-bit optimizer states with performance-aware optimizations like fast gradient clipping can synergistically improve overall system efficiency without compromising throughput.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.