Why your fine-tuning job takes longer than the FLOPs say

AI-generated summary of reporting by Huggingface Blog. Read the original for the full story.

Why it matters

Teams scheduling fine-tuning jobs on shared GPU clusters can replace FLOP-based estimates with a learned predictor that cuts duration errors from over 12 hours to under 2 hours.

Read this as

Hugging Face researchers studied 272 real fine-tuning jobs on NVIDIA H200 GPUs and found the usual back-of-the-envelope math for estimating job length is badly wrong. The standard calculation, which multiplies model size by training tokens and divides by GPU speed, missed actual completion times by more than 12 hours on average. A machine learning model, a CatBoost regressor, cut that error to 1.71 hours. The paper is a preview and is not yet published on arXiv.

Poor job-duration estimates leave expensive GPUs idle or delay queued work; the authors found the common compute-only estimate explained just 31% of observed variation across 272 production jobs on H200 clusters. A CatBoost regressor using only pre-dispatch configuration data reached 98% accuracy, enabling schedulers to plan GPU allocation and deadlines reliably. It is calibrated to one GPU type and SFT jobs only.

The paper treats end-to-end SFT duration as a regression problem using 24 pre-dispatch features, including the FLOP estimate itself, evaluation token counts, and checkpoint I/O volumes. CatBoost achieved R² = 0.98, MAE 1.71 h, median error 0.51 h in stratified 5-fold cross-validation on 272 runs; the FLOP baseline (best MFU sweep at 30%) gave MAE 12.41 h, and Calculon predicted a median of only 11% of wall-clock time. Limitations: SFT only, H200-only, sparse data above 60 hours.

Questions this answers

The article above answers these:

  • Why does my fine-tuning job take longer than the FLOP estimate?
  • How can I predict training job duration before dispatching GPUs?
  • How much of training time is overhead vs the optimization loop?

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Hugging Face NVIDIA H200 CatBoost XGBoost Calculon Unsloth Dharma-AI

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading