Dharma AI estimates fine-tuning duration with CatBoost before jobs reach the GPUs
A regressor trained on 272 production fine-tuning runs forecasts job time so teams can plan GPU queues.
Shared GPU clusters usually get scheduled off a back-of-the-envelope FLOP calculation. Then a job runs hours past its estimate and everything queued behind it slips. In a Dharma AI post on fine-tuning duration, published November 18 on the Hugging Face blog, Bruno Duarte and coauthors put a number on that gap and swap the calculation for a CatBoost regressor.
The dataset covers 272 production supervised fine-tuning (SFT) runs on NVIDIA H200 GPUs shared with other training and inference workloads. The FLOP estimate explained little of the real wall-clock time, with an R² of 0.31 on a scale where 1 is a perfect fit. CatBoost, fed only information available before a job gets its GPUs, reached an R² of 0.98 and a median error of 0.51 h under 5-fold cross-validation. Queue time is excluded from the prediction.
The gap comes from work the FLOP math skips: environment setup, model download, periodic evaluations, checkpoint uploads and contention for network and storage. The heaviest-weighted input was num_eval_data: how many samples a job runs through evaluation, summed over every round.
Verdict: a practical input for a scheduler deciding which jobs to co-locate and when GPUs free up. It suits teams running SFT on shared H200 clusters. The fitted model is calibrated to that hardware and training type, and errors widen beyond 60 hours, a range with only 13 runs in the data.