---
title: "Why your fine-tuning job takes longer than the FLOPs say"
description: "Predicting end-to-end fine-tuning time on shared GPU clusters is critical for scheduling, but the common FLOP-based estimate is highly inaccurate. A study of 272 supervised fine-tuning runs on NVIDIA H200 GPUs found that the standard FLOP calculation explains little of observed duration (R²=0.31, MAE=12.41h) even after sweeping MFU. A CatBoost regressor using 24 pre-dispatch features—including evaluation cadence, checkpoint policy, per-GPU load, and fine-tuning regime—reaches R²=0.98 with a mean absolute error of 1.71h and median error of 0.51h in 5-fold cross-validation. The gap arises because production jobs spend significant time on overheads outside the optimization loop, such as evaluation and checkpoint I/O, which the analytical model cannot capture. The predictor enables schedulers to plan job ordering and GPU allocation with far less idle capacity."
---

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

[Hugging Face](https://yomu.fyi/company/hugging-face) · Bruno Duarte, Gabriel Pimenta de Freitas Cardoso, Isis F Carvalho, Breno de Almeida Beleza, Felipe Lima · Nov 18, 2026

**Type:** Benchmark

## Summary

Predicting end-to-end fine-tuning time on shared GPU clusters is critical for scheduling, but the common FLOP-based estimate is highly inaccurate. A study of 272 supervised fine-tuning runs on NVIDIA H200 GPUs found that the standard FLOP calculation explains little of observed duration (R²=0.31, MAE=12.41h) even after sweeping MFU. A CatBoost regressor using 24 pre-dispatch features—including evaluation cadence, checkpoint policy, per-GPU load, and fine-tuning regime—reaches R²=0.98 with a mean absolute error of 1.71h and median error of 0.51h in 5-fold cross-validation. The gap arises because production jobs spend significant time on overheads outside the optimization loop, such as evaluation and checkpoint I/O, which the analytical model cannot capture. The predictor enables schedulers to plan job ordering and GPU allocation with far less idle capacity.

## Context

Predicting end-to-end fine-tuning job duration on shared GPU clusters is critical for scheduling, but the common FLOP-based estimate is highly inaccurate. A study of 272 SFT runs on H200 GPUs found that the standard FLOP calculation explains little of observed duration (R²=0.31, MAE=12.41h) even after sweeping MFU. The gap arises because production jobs spend significant time on overheads outside the optimization loop, such as evaluation and checkpoint I/O.

## Approach / What changed

A CatBoost regressor was trained on 272 supervised fine-tuning runs from production NVIDIA H200 clusters. The model uses 24 features known before dispatch, including evaluation cadence, checkpoint policy, per-GPU load, and fine-tuning regime, to predict end-to-end wall-clock time. Feature selection combined correlation filtering, mutual information, and permutation importance. The model was evaluated with stratified 5-fold cross-validation.

## Takeaways

- The standard FLOP-based estimate for fine-tuning job duration has R²=0.31 and MAE=12.41h, even after sweeping MFU, because it ignores overheads like evaluation and checkpointing.
- A CatBoost regressor using 24 pre-dispatch features achieves R²=0.98 with MAE=1.71h and median error of 0.51h, enabling accurate scheduling.
- The most important features for prediction are evaluation volume (num\_eval\_data), trainable parameter count, and checkpoint I/O (num\_params\_saved), not just model size and dataset size.

## FAQ

### Why are FLOP-based estimates so inaccurate for fine-tuning jobs?

FLOP estimates only account for the optimization loop, ignoring overheads like environment setup, evaluation cycles, checkpoint uploads, and network/storage contention on shared clusters. These overheads depend on configuration and do not scale neatly with compute, causing large discrepancies.

### What features are most important for predicting fine-tuning duration?

The most important features are num\_eval\_data (total evaluation samples), num\_trainable\_params, batch\_eval\_size\_percent, num\_all\_params, and num\_params\_saved. Evaluation and checkpoint variables dominate, showing that overheads outside the training loop are key.

### Can this predictor be used on other GPU types or clusters?

The fitted model is calibrated to H200s and should not transfer numerically without retraining. However, the method—overhead-aware features, multicollinearity-aware selection, and the comparison protocol—transfers to any execution-log dataset with similar structure.

**Tags:** [Benchmark](https://yomu.fyi/topic/benchmark), [CatBoost](https://yomu.fyi/topic/catboost), [Fine-Tuning](https://yomu.fyi/topic/fine-tuning), [GPU](https://yomu.fyi/topic/gpu), [Machine Learning](https://yomu.fyi/topic/machine-learning)

- Source: [Hugging Face](https://huggingface.co/blog/Dharma-AI/predicting-fine-tuning-time)
- Source URL: https://huggingface.co/blog/Dharma-AI/predicting-fine-tuning-time
- Ingested by Yomu: 2026-11-18T21:00:14.868Z

[Read original post](https://huggingface.co/blog/Dharma-AI/predicting-fine-tuning-time)
