---
title: "Why your fine-tuning job takes longer than the FLOPs say"
description: "FLOP-based estimates of fine-tuning time (6·P·D divided by GPU throughput times MFU) explain little of real end-to-end duration: across 272 production SFT runs on shared H200 clusters (about 7,382 GPU-hours), the best MFU setting gives R² = 0.31 and a 12.41 h MAE, and the Calculon analytical model does worse."
url: "https://swe.quest/articles/why-your-fine-tuning-job-takes-longer-than-the-flops-say-4c3aff3ac0fe1ddc"
canonical: "https://huggingface.co/blog/Dharma-AI/predicting-fine-tuning-time"
source: "Hugging Face"
published: "2026-11-18"
difficulty: "hard"
kind: "Research"
reading_minutes: 9
tags: ["model-training","scheduling","ml-platform","machine-learning","capacity-planning"]
---

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

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-11-18, 9 min read, Research. Original: [https://huggingface.co/blog/Dharma-AI/predicting-fine-tuning-time](https://huggingface.co/blog/Dharma-AI/predicting-fine-tuning-time)

## Summary

FLOP-based estimates of fine-tuning time (6·P·D divided by GPU throughput times MFU) explain little of real end-to-end duration: across 272 production SFT runs on shared H200 clusters (about 7,382 GPU-hours), the best MFU setting gives R² = 0.31 and a 12.41 h MAE, and the Calculon analytical model does worse. A CatBoost regressor trained only on pre-dispatch configuration reaches R² = 0.98, MAE 1.71 h and median error 0.51 h. It uses overhead-aware features such as total evaluation samples, checkpoint saves and per-GPU token volume, plus the FLOP estimate as an input. Evaluation volume and checkpoint I/O rank among the most important features, which shows that work outside the optimization loop dominates. The main limits are that the data covers SFT only, a single GPU type, and few runs longer than 60 hours.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Scheduling](https://swe.quest/tags/scheduling.md) (Distributed systems)
- [ML platforms](https://swe.quest/tags/ml-platform.md) (AI & ML)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Capacity planning](https://swe.quest/tags/capacity-planning.md) (Reliability & operations)

## Prerequisites

- LLM fine-tuning basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Model FLOPs Utilization
- gradient boosting regression
- GPU cluster scheduling ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))

## Keywords

CatBoost, XGBoost, Calculon, NVIDIA H200, LoRA, Unsloth, Hugging Face Transformers, SHAP

## Related posts

- [20x Faster TRL Fine-tuning with RapidFire AI](https://swe.quest/articles/20x-faster-trl-fine-tuning-with-rapidfire-ai-9a83eb84953b1723.md): Hugging Face · 2025-11-21 · Medium · 5 min read · Model training, LLMs, Scheduling, Python
  Hugging Face TRL now integrates RapidFire AI, which runs multiple SFT, DPO or GRPO fine-tuning configurations concurrently, even on a single GPU.
- [Productizing Large Language Models](https://swe.quest/articles/productizing-large-language-models-5be0923873af50a1.md): Replit · 2022-09-21 · Medium · 6 min read · Inference & serving, LLMs, AI for coding, Evaluation, Kubernetes
  Replit runs transformer models from ~100M parameters (search, spam) through 1-10B (GhostWriter code autocomplete) to 100B+ in production, and shares lessons on making them usable.
- [Fine-tuning Llama 2 70B using PyTorch FSDP](https://swe.quest/articles/fine-tuning-llama-2-70b-using-pytorch-fsdp-0e8dde34b4ad3fd0.md): Hugging Face · 2023-09-13 · Hard · 10 min read · Model training, LLMs, Hardware, Python
  Full fine-tuning of Llama 2 70B across two nodes of 8×A100 80GB GPUs with PyTorch FSDP, Hugging Face Accelerate, Transformers and TRL, addressing three obstacles.
- [Large Language Models: A New Moore's Law?](https://swe.quest/articles/large-language-models-a-new-moore-s-law-75eeecf7b4717327.md): Hugging Face · 2021-10-26 · Easy · 6 min read · LLMs, Model training, Inference & serving, Cost optimization
  Megatron-Turing NLG 530B and the 10x-per-year growth in language model size look like a new Moore's Law heading for diminishing returns, with roughly $100M of DGX A100 hardware, 6.5 kW per server and a large carbon footprint buying only small benchmark gains.
- [GEM Training: How Meta Doubled the Efficiency of Its LLM-Scale Ads Foundation Model](https://swe.quest/articles/gem-training-how-meta-doubled-the-efficiency-of-its-llm-scale-ads-foundation-1bf8547a323404ba.md): Meta Engineering · 2026-08-03 · Hard · 21 min read · Model training, Recommendations & ranking, Performance engineering, Hardware, Ads
  Meta doubled end-to-end training efficiency of GEM, its LLM-scale ads recommendation foundation model, to 20–25% MFU while scaling training FLOPs 4x in a year, by co-designing kernels, precision, parallelism, networking and memory.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
