Hugging FaceBruno Duarte, Gabriel Pimenta de Freitas Cardoso, Isis F Carvalho, Breno de Almeida Beleza, Felipe LimaBenchmark
Why your fine-tuning job takes longer than the FLOPs say
Summary
Predicting end-to-end fine-tuning time on shared GPU clusters is critical for scheduling, but the common FLOP-based estimate is highly inaccurate. A study of 272 supervised fine-tuning runs on NVIDIA H200 GPUs found that the standard FLOP calculation explains little of observed duration (R²=0.31, MAE=12.41h) even after sweeping MFU. A CatBoost regressor using 24 pre-dispatch features—including evaluation cadence, checkpoint policy, per-GPU load, and fine-tuning regime—reaches R²=0.98 with a mean absolute error of 1.71h and median error of 0.51h in 5-fold cross-validation. The gap arises because production jobs spend significant time on overheads outside the optimization loop, such as evaluation and checkpoint I/O, which the analytical model cannot capture. The predictor enables schedulers to plan job ordering and GPU allocation with far less idle capacity.
Context
Predicting end-to-end fine-tuning job duration on shared GPU clusters is critical for scheduling, but the common FLOP-based estimate is highly inaccurate. A study of 272 SFT runs on H200 GPUs found that the standard FLOP calculation explains little of observed duration (R²=0.31, MAE=12.41h) even after sweeping MFU. The gap arises because production jobs spend significant time on overheads outside the optimization loop, such as evaluation and checkpoint I/O.
Approach / What changed
A CatBoost regressor was trained on 272 supervised fine-tuning runs from production NVIDIA H200 clusters. The model uses 24 features known before dispatch, including evaluation cadence, checkpoint policy, per-GPU load, and fine-tuning regime, to predict end-to-end wall-clock time. Feature selection combined correlation filtering, mutual information, and permutation importance. The model was evaluated with stratified 5-fold cross-validation.
Takeaways
The standard FLOP-based estimate for fine-tuning job duration has R²=0.31 and MAE=12.41h, even after sweeping MFU, because it ignores overheads like evaluation and checkpointing.
A CatBoost regressor using 24 pre-dispatch features achieves R²=0.98 with MAE=1.71h and median error of 0.51h, enabling accurate scheduling.
The most important features for prediction are evaluation volume (num_eval_data), trainable parameter count, and checkpoint I/O (num_params_saved), not just model size and dataset size.
FAQ
Why are FLOP-based estimates so inaccurate for fine-tuning jobs?
FLOP estimates only account for the optimization loop, ignoring overheads like environment setup, evaluation cycles, checkpoint uploads, and network/storage contention on shared clusters. These overheads depend on configuration and do not scale neatly with compute, causing large discrepancies.
What features are most important for predicting fine-tuning duration?
The most important features are num_eval_data (total evaluation samples), num_trainable_params, batch_eval_size_percent, num_all_params, and num_params_saved. Evaluation and checkpoint variables dominate, showing that overheads outside the training loop are key.
Can this predictor be used on other GPU types or clusters?
The fitted model is calibrated to H200s and should not transfer numerically without retraining. However, the method—overhead-aware features, multicollinearity-aware selection, and the comparison protocol—transfers to any execution-log dataset with similar structure.
Source and freshness
- Source
- huggingface.co
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.