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

Dharma-AI, publishing on the Hugging Face Blog, has previewed a paper titled Predicting End-to-End Fine-Tuning Time for Generative Language Models, with the full version promised for arXiv. The work asks a practical question for anyone scheduling work on shared accelerators: before a job is dispatched, how accurately can its wall-clock duration be known? The team's answer comes from 272 real supervised fine-tuning (SFT) runs drawn from a production pool of NVIDIA H200 GPUs, totaling roughly 7,382 GPU-hours. The headline result is that the standard compute-only estimate badly under-describes what actually happens, and a learned model built only on pre-dispatch configuration data does far better.
The conventional approach is a closed-form calculation. For a dense Transformer, training cost is approximated as 6·P·D floating-point operations, where P is parameter count and D is training tokens. Dividing by the number of GPUs, their peak throughput and an assumed Model FLOPs Utilization (MFU) yields a training-loop time. MFU is the share of peak the job actually reaches; real hardware typically lands somewhere between 30% and 60% because of memory traffic, inter-device communication and kernel inefficiencies, and the right value for a given job is not known ahead of time. The team tested this baseline while counting evaluation tokens as well as training tokens and sweeping MFU across a wide range from 0.25 to 0.65. At its best setting, 30%, the mean absolute error was 12.41 hours with R² of 0.31, on jobs whose mean duration was 23.43 hours.
They also tested a more elaborate analytical baseline, Calculon (Isaev et al., SC '23), which builds an explicit layer graph and accounts for compute, memory traffic and communication. The team extended the public implementation to cover LoRA, grouped-query attention, fused attention, bfloat16 and SwiGLU. Its estimates corresponded to a median of only 11% of observed wall-clock time. The authors are careful to note this does not count against Calculon as a step-level tool, since that is what it was designed to do; rather it shows how much of a production job sits outside the optimization step, including environment setup, model download and loading, tokenization, periodic evaluation, checkpoint uploads and final model export, all of which contend for network and storage with other jobs on a multi-tenant cluster.
The learned approach treats end-to-end duration as supervised regression. The target is wall-clock time between a job receiving its GPUs and finishing, excluding queue time. Two design choices matter. First, every input is available before dispatch: hyperparameters, dataset sizes, model identifiers and GPU allocation, with no runtime logs or partial progress, which is what makes the prediction usable for scheduling. Second, features are engineered to expose overheads, such as total samples processed in evaluation, checkpoint counts and I/O, per-GPU token volumes, and the FLOP estimate itself with MFU fixed at 0.45 as a baseline feature so the model learns corrections on top of it.
The comparison covered Linear Regression, Ridge, XGBoost and CatBoost, with feature selection combining correlation filtering, mutual information and permutation importance across 18 candidate feature sets, followed by grid search with MAE as the criterion. The final CatBoost model uses 24 features. Linear models help but plateau: Ridge reached an MAE of 7.23 hours, suggesting the configuration-to-duration relationship is not well captured linearly. CatBoost and XGBoost performed within one standard deviation of each other on every metric; CatBoost was carried forward for having the lowest mean error across the board.
The dataset spans several model families up to 15 billion parameters, both LoRA and full fine-tuning, and a wide range of dataset sizes. Jobs ran on 1, 2 or 4 GPUs drawn from a pool of 8 to 32 H200s across 1 to 4 nodes, alongside other training and inference workloads, so measured times include real contention. Durations ranged from 1.6 to 172.4 hours, with a mean of 23.43 hours and a median of 15.29 hours. The software stack, Hugging Face Transformers and Unsloth, is treated as a categorical feature with no assumed fixed speedup between the two.
All reported figures come from stratified 5-fold cross-validation. CatBoost reached R² of 0.98 with a mean absolute error of 1.71 hours and a median error of 0.51 hours. Across all 272 out-of-fold predictions, 80% fell within 2.20 hours and 90% within 4.31 hours. Below 60 hours of true duration, median error stayed at about an hour or less; the tail above 60 hours is where errors widen, and with only 13 runs in that range the team attributes this to limited data. On a fixed 20% holdout, going from 85% to 100% of the training partition lowered MAE from 1.63 to 1.50 hours with no clear plateau, suggesting more data should keep helping.
Feature importance concentrates in a handful of inputs. Total evaluation samples over the job's life ranks first, followed by trainable parameter count, evaluation batch size percentage, total parameters and the product of GPU count and training batch percentage, with parameters saved for checkpoints close behind. SHAP values show the same pattern: high evaluation volume consistently raises predicted time, while trainable parameter count acts nonlinearly and only becomes large for the biggest models. The authors note feature importance is not a causal claim, though the pattern matches how jobs actually spend time. They also flag that larger GPU allocations show positive contributions partly because bigger allocations go with bigger jobs in this data; num_gpus is acting as a proxy for scale, not evidence that adding GPUs slows things down.
This is a useful correction to a common intuition. The practical lesson for practitioners is that evaluation cadence and checkpoint policy, often set by habit in a training config, are first-order determinants of wall-clock time. A job that evaluates on a large held-out set every few hundred steps can spend hours outside the optimization loop, which the FLOP math never sees.
The stated limitations are firm. The model covers SFT only, with RLHF, DPO and RLVR excluded. Every run used H200s, so the fitted model is calibrated to that infrastructure and should not be expected to transfer numerically to other GPU generations without retraining; a mixed pool would need hardware descriptors such as compute throughput, memory capacity, bandwidth and interconnect topology. Very long runs are sparse. What does transfer, the authors argue, is the method: overhead-aware features, multicollinearity-aware selection and the comparison protocol. The full paper will publish feature formulas, the selection procedure, search spaces and final hyperparameters so the pipeline can be rebuilt on other execution-log datasets. Next steps listed are hardware-specific descriptors, validation on other GPU types, transfer learning for configurations with few observations, other training objectives and more long-run data.
Why it matters: teams running shared GPU clusters currently size queues and reserve capacity with compute-only math that, on this dataset, missed by over 12 hours on average. A pre-dispatch predictor with a median error near half an hour turns scheduling into planning: which jobs colocate, when capacity frees up, and whether a run meets a deadline. Inference: the biggest near-term gains for most teams may come not from a new model but from auditing evaluation and checkpoint settings, and from logging enough run history to fit a predictor of their own.
Based on reporting from the original publisher. Visit the source for full context and later updates.