Skip to content

Predicting End-to-End Fine-Tuning Time for Generative Language Models

Breno Beleza, Felipe Lima, Isis Carvalho, Moises Dantas dos Santos, Gabriel Pimenta de Freitas Cardoso

cs.LG

Abstract

As organizations increasingly adopt the AI Factory paradigm, in which GPU-accelerated environments serve as production infrastructure for fine-tuning generative language models (GLMs), including large language models (LLMs) and small language models (SLMs), unpredictable training duration becomes an operational bottleneck. Under GPU scarcity and prohibitive compute costs, accurate estimation of end-to-end training time becomes critical for efficient resource utilization. However, estimating GLM fine-tuning duration is a multifactorial problem. Real-world pipelines also add orchestration overheads, such as model loading, periodic evaluation, and checkpointing, that affect wall-clock time. Existing analytical estimates fail to capture the end-to-end duration of full jobs running on a shared, multi-tenant production cluster. We present a machine learning-based methodology for predicting GLM fine-tuning job duration on GPU clusters, built on a feature set encompassing model, dataset, hardware, and fine-tuning configurations known before job dispatch, including engineered features that expose these overheads. Using production executions lasting 1.6 to 172.4 h (mean 23.43 h), we compare analytical baselines with linear and gradient-boosting regressors. The best analytical baseline reaches R2=0.31R^2 = 0.31 (MAE = 12.41 h), whereas the best predictor, based on CatBoost, achieved a mean absolute error (MAE) of 1.71 h, a median absolute error of 0.51 h, and a coefficient of determination (R2R^2) of 0.98 in 5-fold cross-validation.

Create a lesson

Metadata

Categories
cs.LG, cs.AI, cs.DC, cs.PF
Comments
21 pages, 8 figures, 8 tables