Why your fine-tuning job takes longer than the FLOPs say
Hugging Face researchers tested how well the common FLOP-based estimate predicts fine-tuning job duration, using 272 supervised fine-tuning runs on a shared cluster of NVIDIA H200 GPUs totaling about 7,382 GPU-hours. The compute-only estimate explained little of the variation (R² of 0.31, mean absolute error of 12.41 hours). A CatBoost regressor using only pre-dispatch information reached R² of 0.98 with a mean absolute error of 1.71 hours in 5-fold cross-validation.
The authors attribute the gap to training-specific factors that a closed-form formula misses, such as evaluation cadence, checkpoint policy, per-GPU load and fine-tuning regime, along with nonlinear interactions among them. They also found that even a more detailed analytical model, Calculon, captured only a small share of observed wall-clock time. The work is a preview of an upcoming paper.
- The standard FLOP-based estimate was far off, with a mean absolute error of 12.41 hours and R² of 0.31 across the 272 runs.
- A CatBoost model using only information available before dispatch reached R² of 0.98 and a median error of 0.51 hours.
- Overheads such as setup, evaluations, checkpoint uploads and I/O contention on shared infrastructure drive much of the difference from compute-only estimates.
Why it mattersMore accurate duration predictions let shared GPU cluster operators schedule jobs with less idle capacity and fewer delays, since the compute-only estimate used by most teams misses much of the real runtime.
Summary written by AI from the original article. It may miss nuance, so check the source before relying on it.