Why your fine-tuning job takes longer than the FLOPs say
In one sentence
Analyzing 272 production fine-tuning runs, researchers found traditional FLOPs estimates fail to predict actual duration, while a CatBoost model using pre-dispatch configurations achieves R² = 0.98.
Key points
- Based on 272 real supervised fine-tuning (SFT) runs on NVIDIA H200 GPUs, traditional FLOPs-based estimates yield a high mean absolute error of 12.41 hours (R² = 0.31).
- Actual job duration is heavily impacted by non-compute overheads, including environment setup, tokenization, periodic evaluations, checkpoint uploads, and multi-tenant I/O contention.
- Researchers built 24 features using only pre-dispatch configuration data (e.g., hyperparameters, evaluation cadence, checkpoint policies) to predict wall-clock time without runtime logs.
- In 5-fold cross-validation, a CatBoost regressor outperformed analytical and linear baselines, achieving R² = 0.98, a mean absolute error of 1.71 hours, and a median error of 0.51 hours.
- Feature importance analysis reveals that total evaluation samples (num_eval_data), trainable parameters, and checkpointed parameter volumes are key drivers of end-to-end duration.
In depth
An AI-written overview of the original article, not the article itself.
Dharma-AI R&D previewed a study analyzing 272 production supervised fine-tuning (SFT) runs on NVIDIA H200 GPUs. The research shows that traditional FLOP-based time estimates are highly inaccurate, whereas a CatBoost model using only pre-dispatch configuration data predicts end-to-end duration with a median error of 0.51 hours. Accurate predictions help shared cluster operators schedule jobs efficiently and reduce idle GPU capacity.
Why FLOP Estimates Fall Short
Standard FLOP formulas only capture the optimization loop and rely on an unknown Model FLOPs Utilization (MFU). Even when sweeping MFU, the best FLOP baseline (at 30% MFU) achieved an R² of just 0.31 and a mean absolute error (MAE) of 12.41 hours on jobs averaging 23.43 hours. A more detailed analytical model, Calculon, also missed the mark with an MAE of 20.36 hours.
According to the article, the discrepancy stems from non-compute overheads. Real jobs require environment setup, model downloading, tokenization, periodic evaluations, checkpoint uploads, and final storage writes, all while competing for network and storage I/O on multi-tenant clusters.
Pre-Dispatch Prediction with CatBoost
Using 272 SFT jobs totaling 7,382 GPU-hours (models up to 15B parameters, LoRA and full fine-tuning, Transformers and Unsloth), the team trained regression models strictly on information available before a job starts. They engineered 24 features, including derived overhead metrics like total evaluation samples, checkpoint saves, and the baseline FLOP estimate itself.
In 5-fold cross-validation, CatBoost achieved an R² of 0.98 and an MAE of 1.71 hours, outperforming linear models and slightly edging out XGBoost. Feature importance analysis revealed that total evaluation samples ranked highest, alongside trainable parameters and checkpoint volume.
Limitations and Applicability
For jobs under 60 hours, CatBoost kept median errors around one hour or less. However, accuracy dropped for the 13 runs exceeding 60 hours, where the median error rose to 5.19 hours.
The authors note that the trained model is calibrated specifically for SFT workloads on H200 GPUs and does not cover RLHF, DPO, or other hardware without retraining. However, the overhead-aware feature engineering and selection pipeline can be applied to other cluster logs.
This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.