Field Notes
A small, source-linked blog

2026-11-18 · AI-assisted

Why Your Fine-Tuning Job Takes Longer Than FLOPs Predict

According to a Hugging Face blog post, traditional FLOP calculations fail to predict LLM fine-tuning times, but a machine learning regressor can estimate durations before dispatch.

Why FLOP Calculations Fail

According to a Hugging Face blog post by Dharma AI, traditional back-of-the-envelope FLOP calculations explain little of the observed variance in fine-tuning jobs ($R^2 = 0.31$, with a mean absolute error of 12.41 hours). Standard estimates only model the core optimization loop and ignore pre-training setup, periodic evaluations, checkpoints, and network or storage I/O contention.

The source notes that extending Calculon—an analytical LLM training performance model—to cover features like LoRA and bfloat16 yielded estimates corresponding to a median of only 11% of observed wall-clock time.

How Machine Learning Improves Estimates

To address these gaps, the source evaluates regression models trained on configuration metadata available prior to job dispatch. A CatBoost regressor reaches an $R^2$ of 0.98, with a mean absolute error of 1.71 hours and a median error of 0.51 hours in 5-fold cross-validation.

According to feature importance and SHAP values in the source, the variables that heavily influence wall-clock duration include:

The underlying data comprises 272 real supervised fine-tuning (SFT) jobs from production NVIDIA H200 GPU clusters, totaling 7,382 GPU-hours, with run durations ranging from 1.6 to 172.4 hours.

Why Developers Might Care

Accurate duration estimates allow engineering teams to better schedule jobs on shared GPU clusters, reduce idle GPU capacity, and prevent downstream delivery delays caused by jobs running longer than anticipated. Because the CatBoost model relies entirely on configuration inputs known before job dispatch, developers can embed these predictions into cluster schedulers or experiment tracking tools without needing runtime logs.

Limitations

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

Sources