How Long Will My Language Model Run? A Benchmark for Pre-Execution Runtime Prediction

arXiv cs.CL Papers

Summary

The paper introduces PreRun, a benchmark for predicting deep learning training and inference runtime before execution, and finds that open-weight LLMs badly underestimate latency while a small Random Forest baseline or a few in-context examples perform substantially better.

arXiv:2611.26875v1 Announce Type: new Abstract: Researchers submitting deep learning jobs to shared GPU clusters need runtime estimates to request time limits, choose hardware, and budget compute. Large language models (LLMs) offer a tempting shortcut: describe the job and ask. We introduce PreRun, a benchmark for predicting deep learning training and inference runtime from information available before execution. PreRun contains 801 training and 1,884 inference records of language and vision models collected on a GPU cluster, paired with workload configurations and explicitly defined timing targets. It also includes 64 text-generation configurations measured under standardized conditions, each in three separate program launches. We compare three LLMs (Qwen3.5-9B, GPT-OSS-120B, and Claude Opus 5.5) with regression baselines and evaluate analytical estimates on a supported forward-pass subset. On 16 held-out generation configurations, the open-weight LLMs underestimate latency by 90-99% on average without examples. Claude's zero-shot mean absolute error is 4.5 times that of a Random Forest fit on 32 configurations. Five labeled examples substantially reduce Claude's generation error, but their benefit varies across timing targets. We will open-source our data and evaluation pipeline upon acceptance.
Original Article
View Cached Full Text

Cached at: 11/23/26, 09:15 AM

# How Long Will My Language Model Run?A Benchmark for Pre-Execution Runtime Prediction
Source: [https://arxiv.org/html/2611.26875](https://arxiv.org/html/2611.26875)
Ashish MolakalapalliKangda WeiAffiliation:Texas A&M University, College Station, TXEmail:[kangda@tamu\.edu](mailto:)Haonan DuanAffiliation:XPerf Inc, Round Rock, TXEmail:[huangrh@tamu\.edu](mailto:)Alex CarterAffiliation:XPerf Inc, Round Rock, TXEmail:[haonan\.duan@xperf\.ai](mailto:)Ruihong HuangAffiliation:Texas A&M University, College Station, TXEmail:[alex\.carter@xperf\.ai](mailto:)

###### Abstract

Researchers submitting deep learning jobs to shared GPU clusters need runtime estimates to request time limits, choose hardware, and budget compute\. Large language models \(LLMs\) offer a tempting shortcut: describe the job and ask\. We introduce PreRun, a benchmark for predicting deep learning training and inference runtime from information available before execution\. PreRun contains 801 training and 1,884 inference records of language and vision models collected on a GPU cluster, paired with workload configurations and explicitly defined timing targets\. It also includes 64 text\-generation configurations measured under standardized conditions, each in three separate program launches\. We compare three LLMs \(Qwen3\.5\-9B, GPT\-OSS\-120B, and Claude Opus 5\.5\) with regression baselines and evaluate analytical estimates on a supported forward\-pass subset\. On 16 held\-out generation configurations, the open\-weight LLMs underestimate latency by 90–99% on average without examples\. Claude’s zero\-shot mean absolute error is 4\.5 times that of a Random Forest fit on 32 configurations\. Five labeled examples substantially reduce Claude’s generation error, but their benefit varies across timing targets\. We will open\-source our data and evaluation pipeline upon acceptance\.

![Refer to caption](https://arxiv.org/html/2611.26875v1/PreRun_Main_Figure_v12.png)Figure 1:Overview of PreRun\. GPU measurements produce workload–runtime records\. Predictors receive pre\-execution descriptions; fitting records supply regressor training and five\-shot examples\. Measured query runtimes enter scoring only\. Error and coverage are evaluated separately for each timing target and collection\.## 1Introduction

Deep learning models are increasingly trained and served on shared GPU clusters\([Jeon et al\., 2019](https://arxiv.org/html/2611.26875#bib.bib13);[Hu et al\., 2021](https://arxiv.org/html/2611.26875#bib.bib10);[Weng et al\., 2022](https://arxiv.org/html/2611.26875#bib.bib46);[Hu et al\., 2024](https://arxiv.org/html/2611.26875#bib.bib11)\)\. Before submitting a job, a user has to make decisions that depend on how long it will run: what time limit to request, which GPUs to use, how large a batch to use, and whether a more expensive decoding strategy such as beam search is affordable\. Getting the estimate wrong is costly\. A job whose time limit is too short can be killed before it finishes, while requesting too much time can delay scheduling\. User\-provided runtime estimates are known to be inaccurate, and better predictions can improve scheduling\([Mu’alem and Feitelson, 2001](https://arxiv.org/html/2611.26875#bib.bib23);[Tsafrir et al\., 2007](https://arxiv.org/html/2611.26875#bib.bib42)\)\. Many deep learning schedulers likewise rely on estimates of job duration or throughput\([Peng et al\., 2018](https://arxiv.org/html/2611.26875#bib.bib29);[Narayanan et al\., 2020](https://arxiv.org/html/2611.26875#bib.bib24);[Hu et al\., 2023](https://arxiv.org/html/2611.26875#bib.bib12)\)\. As the compute cost of NLP research grows, such estimates also matter for budgeting and energy use\([Strubell et al\., 2019](https://arxiv.org/html/2611.26875#bib.bib40);[Schwartz et al\., 2020](https://arxiv.org/html/2611.26875#bib.bib38)\)\.

There are several ways to estimate runtime in advance\. Analytical models relate the floating\-point operations and memory traffic of a workload to hardware throughput\([Williams et al\., 2008](https://arxiv.org/html/2611.26875#bib.bib47);[Qi et al\., 2017](https://arxiv.org/html/2611.26875#bib.bib31)\)\. Profiling\-based predictors measure part of a workload and extrapolate, sometimes using learned models\([Zhu et al\., 2020](https://arxiv.org/html/2611.26875#bib.bib54);[Yu et al\., 2021](https://arxiv.org/html/2611.26875#bib.bib49)\)\. These approaches can require systems expertise or access to measurement hardware\. A simpler option is to describe the job to a large language model \(LLM\) and ask how long it will take\. LLMs can perform regression from in\-context examples\([Vacareanu et al\., 2024](https://arxiv.org/html/2611.26875#bib.bib43);[Song et al\., 2024](https://arxiv.org/html/2611.26875#bib.bib39)\), and recent systems use them to predict job runtimes on HPC platforms\([Liu et al\., 2025](https://arxiv.org/html/2611.26875#bib.bib19)\)and inform GPU cluster scheduling\([Wang et al\., 2025](https://arxiv.org/html/2611.26875#bib.bib44)\)\. This raises a practical question: how accurate are their estimates across deep learning workloads and timing targets?

Answering this question requires detailed workload descriptions paired with clearly defined measurements\. The cluster traces considered here record job activity and resource use but lack the full configuration, such as batch size, sequence lengths, and decoding settings, needed for these comparisons\([Jeon et al\., 2019](https://arxiv.org/html/2611.26875#bib.bib13);[Hu et al\., 2021](https://arxiv.org/html/2611.26875#bib.bib10);[Weng et al\., 2022](https://arxiv.org/html/2611.26875#bib.bib46)\)\. MLPerf and DAWNBench evaluate reference workloads\([Coleman et al\., 2017](https://arxiv.org/html/2611.26875#bib.bib5);[Mattson et al\., 2020](https://arxiv.org/html/2611.26875#bib.bib21);[Reddi et al\., 2020](https://arxiv.org/html/2611.26875#bib.bib36)\), while datasets for learned cost models measure tensor programs or computational graphs\([Zheng et al\., 2021](https://arxiv.org/html/2611.26875#bib.bib52);[Phothilimthana et al\., 2023](https://arxiv.org/html/2611.26875#bib.bib30)\)\. A runtime benchmark must also specify exactly what is timed\. A single forward pass and a fullgenerate\(\)call on the same model are different targets: generation includes repeated model computations and decoding logic\. Accuracy on one therefore need not imply accuracy on the other\. A recent survey identifies richer workload data and comparable evaluation as open challenges for runtime prediction\([Wei et al\., 2026](https://arxiv.org/html/2611.26875#bib.bib45)\)\.

We introduce PreRun, a benchmark for predicting the runtime of deep learning workloads before execution\. Our earlier measurement campaigns provide 801 training and 1,884 inference records of language and vision models; we refer to these as the historical collection\. Each record pairs a workload configuration with a measured duration whose scope is explicitly defined\. To compare generation settings using a consistent timing procedure and repeated measurements, we also collect 64 text\-generation configurations of Qwen2\.5\-0\.5B and T5\-small, each in three separate program launches\. This controlled collection measures complete generation calls under standardized conditions\. We evaluate three LLMs \(Qwen3\.5\-9B, GPT\-OSS\-120B, and Claude Opus 5\.5\) with and without five labeled examples, alongside regression and nearest\-neighbor baselines\. A separate forward\-pass study evaluates analytical estimates and learned corrections\.

Our experiments lead to three main findings:

- •Zero\-shot accuracy depends on the predictor and target\.On 16 held\-out generation configurations, Qwen3\.5\-9B and GPT\-OSS\-120B underestimate latency by 99% and 90% on average\. Claude Opus 5\.5 is far more accurate, but its mean absolute error \(MAE\) is still 4\.5 times that of a Random Forest fit on 32 configurations\. On custom training loops, however, zero\-shot Claude has the lowest observed percentage error\.
- •Examples help, but unevenly\.Even with five examples, the open\-weight LLMs have mean absolute percentage errors above 50% on held\-out generation configurations\. Claude benefits more: five examples reduce its MAE on training time reported by Hugging Face Trainer by 65%\. Across the six historical targets, its MAE improves on four, but increases on custom training loops and slightly on forward\-pass prediction\.
- •Simple regressors provide strong baselines\.The best method depends on the target and metric\. On causal LM and encoder–decoder forward sums, LightGBM’s MAE is 39–72% lower than that of Claude with five examples\. On the controlled holdout, Random Forest has the lowest observed MAE, although its paired comparison with five\-shot Claude does not establish a clear ordering\.

## 2Related Work

#### Runtime prediction for deep learning jobs\.

Trace studies of production GPU clusters, including Microsoft’s Philly\([Jeon et al\., 2019](https://arxiv.org/html/2611.26875#bib.bib13);[Microsoft Research,](https://arxiv.org/html/2611.26875#bib.bib22)\), SenseTime’s Helios\([Hu et al\., 2021](https://arxiv.org/html/2611.26875#bib.bib10)\), Alibaba PAI\([Weng et al\., 2022](https://arxiv.org/html/2611.26875#bib.bib46)\), and clusters used for LLM development\([Hu et al\., 2024](https://arxiv.org/html/2611.26875#bib.bib11)\), report job durations, GPU allocations, and utilization\. Schedulers use runtime information in different ways: Optimus builds online models of training progress\([Peng et al\., 2018](https://arxiv.org/html/2611.26875#bib.bib29)\), Gavel relies on per\-accelerator throughput estimates\([Narayanan et al\., 2020](https://arxiv.org/html/2611.26875#bib.bib24)\), Helios and Lucid predict job durations from historical jobs\([Hu et al\., 2021](https://arxiv.org/html/2611.26875#bib.bib10);[Hu et al\., 2023](https://arxiv.org/html/2611.26875#bib.bib12)\), and Tiresias is designed for the case where durations are unknown\([Gu et al\., 2019](https://arxiv.org/html/2611.26875#bib.bib9)\)\. Language models have recently entered this loop: ORA predicts HPC job runtimes with a retrieval\-augmented language model\([Liu et al\., 2025](https://arxiv.org/html/2611.26875#bib.bib19)\), and SchedMate uses LLMs to extract information from source code, logs, and historical jobs for GPU scheduling\([Wang et al\., 2025](https://arxiv.org/html/2611.26875#bib.bib44)\)\. PreRun complements these traces and systems with per\-run configurations and explicitly defined timing targets\.

#### Performance models and benchmarks\.

Analytical models estimate execution time from computation, memory traffic, and hardware capabilities, as in Paleo\([Qi et al\., 2017](https://arxiv.org/html/2611.26875#bib.bib31)\)and the roofline model\([Williams et al\., 2008](https://arxiv.org/html/2611.26875#bib.bib47)\)\. For LLM inference, analytical and simulation models capture the different costs of prefill and decoding\([Yuan et al\., 2024](https://arxiv.org/html/2611.26875#bib.bib50);[Agrawal et al\., 2024](https://arxiv.org/html/2611.26875#bib.bib1);[Zhang et al\., 2024](https://arxiv.org/html/2611.26875#bib.bib51);[Patwari et al\., 2025](https://arxiv.org/html/2611.26875#bib.bib27)\)\. Profiling\-based predictors use measured execution information to estimate performance under changed configurations or hardware\([Zhu et al\., 2020](https://arxiv.org/html/2611.26875#bib.bib54);[Yu et al\., 2021](https://arxiv.org/html/2611.26875#bib.bib49)\)\. NeuSight instead learns tile\-level performance models to predict latency on unseen GPUs without executing the query workload there\([Lee et al\., 2025](https://arxiv.org/html/2611.26875#bib.bib17)\)\. Because generation time depends on output length, several systems also predict response length before generation\([Jin et al\., 2023](https://arxiv.org/html/2611.26875#bib.bib14);[Zheng et al\., 2023](https://arxiv.org/html/2611.26875#bib.bib53)\); in PreRun, the requested output limit is an input but the realized length is not\. Relevant datasets and benchmarks include measurements of individual tensor programs and graphs\([Chen et al\., 2018](https://arxiv.org/html/2611.26875#bib.bib4);[Zheng et al\., 2021](https://arxiv.org/html/2611.26875#bib.bib52);[Phothilimthana et al\., 2023](https://arxiv.org/html/2611.26875#bib.bib30)\)and reference workloads\([Coleman et al\., 2017](https://arxiv.org/html/2611.26875#bib.bib5);[Mattson et al\., 2020](https://arxiv.org/html/2611.26875#bib.bib21);[Reddi et al\., 2020](https://arxiv.org/html/2611.26875#bib.bib36)\)\.[Wei et al\. \(2026\)](https://arxiv.org/html/2611.26875#bib.bib45)survey runtime prediction methods and datasets for LLM training and inference\.

## 3Task

Given a descriptionxxof a workload and a timing targetpp, a predictor outputs a positive durationy^=fp​\(x\)\\hat\{y\}=f\_\{p\}\(x\)before the workload runs\. The timing target specifies which part of execution is measured \(Section[4\.3](https://arxiv.org/html/2611.26875#S4.SS3)\); training targets are in seconds and inference targets in milliseconds\. We evaluate each target separately within each collection and never pool errors across targets\.

#### Inputs\.

The description contains what a user knows before launching a job: the model, the requested work \(batch size, input length or image size, epochs or steps, and requested output limit\), the hardware \(GPU type and count\), and execution settings such as precision and decoding strategy\. For historical runs, these fields are recovered from each run’s launch configuration and script; Appendix[I](https://arxiv.org/html/2611.26875#A9)lists them\. Run identifiers, file paths, and split assignments are never used as features\.

#### Excluded information\.

Outcomes of the query workload are excluded from predictor inputs: its runtime, the number of tokens actually generated, whether generation stopped early, measured memory use, and GPU utilization\. In particular, the requested output limit is an input, but the realized output length is not\. Measured runtimes from fitting records remain available for learning, lookup, and examples\.

#### Terminology\.

We call the models being timed*workload models*and the LLMs that make predictions*predictor LLMs*\. In the controlled collection, for example, Qwen2\.5\-0\.5B is a workload model, whereas Qwen3\.5\-9B is a predictor LLM\.

## 4The PreRun Dataset

![Refer to caption](https://arxiv.org/html/2611.26875v1/PreRun_Data_Example_Compact_v2.png)Figure 2:An actual development example from controlled generation, using synthetic token inputs\. Each launch excludes two warmups and averages ten timed calls\. The reported runtime averages the three launch means; generation may stop before the output limit\.PreRun pairs workload descriptions with measured runtimes\. We assembled 801 training and 1,884 inference records from our earlier GPU measurement campaigns, termed the*historical collection*\. We also measured 64 text\-generation configurations repeatedly under a common procedure, termed the*controlled generation collection*\. “Controlled” describes how measurements were collected, not a type of evaluation split\. Table[1](https://arxiv.org/html/2611.26875#S4.T1)summarizes the records used in our comparisons; Section[4\.5](https://arxiv.org/html/2611.26875#S4.SS5)explains their roles\. Figure[2](https://arxiv.org/html/2611.26875#S4.F2)illustrates one controlled\-generation configuration, its timing procedure, and the measured runtime that predictors aim to estimate\.

Timing targetTotal usedFittingDevelopmentHeld\-out*Historical training runs*Custom training loop \(s\)586465121–Trainer\-reported runtime \(s\)21517045–*Historical inference runs*Forward pass \(ms\)643484159–Causal LM forward sum \(ms\)667502165–Encoder–decoder forward sum \(ms\)16412341–Generation call \(ms\)29227–*Controlled generation configurations*Generation call \(ms\)64321616Table 1:Data used in the reported comparisons\. Historical rows count records; the controlled row counts configurations, each measured in three separate program launches\. Fitting data supply learning and examples\. Historical evaluation uses development records; controlled generation additionally has a held\-out partition\. A dash means no reported held\-out evaluation\. Trainer runtime is reported by Hugging Face Trainer; forward sums exclude other generation\-loop work\.### 4\.1Data collection

We consulted MLPerf reference workload scripts\([Mattson et al\., 2020](https://arxiv.org/html/2611.26875#bib.bib21);[Reddi et al\., 2020](https://arxiv.org/html/2611.26875#bib.bib36)\)when developing our data\-collection pipeline\. We used project\-specific scripts to vary workload configurations and collect runtime measurements on a Slurm\-managed university GPU cluster\. All reported measurements were generated through our own executions, rather than imported from an existing MLPerf measurement dataset or collected from unrelated users’ jobs\. Project generators varied models, GPU types, numerical precision, batch sizes, and workload sizes, and produced launch scripts specifying the requested resources and execution settings\.

The workload scripts use PyTorch and libraries including Torchvision, Hugging Face Transformers, and Diffusers, with project\-specific configuration, timing, and logging\. Each script records configuration metadata and measurements in a JSON report\.

Dataset builders assembled the JSON reports into CSV records and deduplicated job identifiers\. We interpreted workload configurations using retained launch arguments, source\-defined settings, and report metadata, and checked timing fields against the corresponding logs\. Appendix[A](https://arxiv.org/html/2611.26875#A1)documents historical curation, including outcome\-dependent filtering, and accounts for records outside the evaluated populations\.

### 4\.2Historical runs

Inference runs cover 22 models in three groups: text encoders \(BERT, RoBERTa, and DistilBERT; 478 runs;[Devlin et al\., 2019](https://arxiv.org/html/2611.26875#bib.bib6);[Liu et al\., 2019](https://arxiv.org/html/2611.26875#bib.bib20);[Sanh et al\., 2020](https://arxiv.org/html/2611.26875#bib.bib37)\), vision models \(convolutional networks and ViT; 329 runs;[Dosovitskiy et al\., 2021](https://arxiv.org/html/2611.26875#bib.bib7)\), and causal and encoder–decoder language models \(GPT\-2, Llama, Qwen, T5, and BART; 1,077 runs;[Radford et al\., 2019](https://arxiv.org/html/2611.26875#bib.bib34);[Touvron et al\., 2023](https://arxiv.org/html/2611.26875#bib.bib41);[Raffel et al\., 2020](https://arxiv.org/html/2611.26875#bib.bib35);[Lewis et al\., 2020](https://arxiv.org/html/2611.26875#bib.bib18)\)\. They ran on four GPU types, A100 \(509 runs\), A40 \(529\), Quadro RTX \(451\), and T4 \(395\), in FP32 \(827\), FP16 \(1,047\), or BF16 \(10\)\. Forward\-pass runs use batch sizes from 1 to 32 with text lengths from 64 to 512 tokens or224×224224\\times 224images\. Causal LM and encoder–decoder runs use batch sizes from 1 to 4, input lengths from 32 to 512, and output limits from 32 to 256\. Generation\-call runs use batch size 1, FP16, input lengths from 128 to 256, and an output limit of 64\.

Training runs fall into two groups\. Custom training loops \(586 runs\) train text encoders, GPT\-2 variants, convolutional and vision\-transformer models, and diffusion models in FP16 or FP32, covering 21 models in the fitting partition and 18 in development\. Trainer runs \(215\) fine\-tune five decoder\-only models in FP16, and their runtime is reported by the training framework\. A few summarization and synthetic\-video runs appear only in the fitting partition\.

Of the 1,041 training\-labeled records in the archive, the fixed comparison uses 801 single\-GPU, single\-process records with source\-supported timing targets, usable configuration evidence, and corroborated completion\. Appendix[A](https://arxiv.org/html/2611.26875#A1)describes the excluded runs\.

### 4\.3Timing targets

The historical scripts time different parts of execution, so we keep each as a separate target:

- •Forward pass: one synchronized forward call, with the model and inputs already on the GPU\.
- •Causal LM forward sum: during generation with a decoder\-only model, the total time of the prompt forward pass and the subsequent cached forward passes, excluding token selection and other loop overhead\.
- •Encoder–decoder forward sum: the total time of encoder and decoder forward computations during generation, excluding other loop overhead\.
- •Generation call: wall\-clock time of a completegenerate\(\)call, including decoding and token selection\.
- •Custom training loop: time spent in the training loop after the model and data are prepared, covering data loading, forward and backward passes, optimizer steps, and logging\. Most scripts do not synchronize the GPU before stopping the timer, so this is host\-side loop time\.
- •Trainer\-reported runtime: the training time returned by Hugging Face Trainer, checked against the run’s log\.

None of these targets includes scheduler queue time\. Forward sums measure selected network computations, not end\-to\-end generation\.

### 4\.4Controlled generation collection

Most historical inference records time forward computations rather than complete generation calls; the generation\-call target has only seven development records from six configuration groups\. To extend this coverage and assess measurement variability, we measured a full factorial design on one A100\-PCIE\-40GB GPU, varying generation settings under a common procedure\. Two workload models, the decoder\-only Qwen2\.5\-0\.5B\([Qwen et al\., 2025](https://arxiv.org/html/2611.26875#bib.bib32)\)and the encoder–decoder T5\-small\([Raffel et al\., 2020](https://arxiv.org/html/2611.26875#bib.bib35)\), are crossed with batch sizes\{1,2,4,8\}\\\{1,2,4,8\\\}, input lengths\{128,512\}\\\{128,512\\\}, output limits\{64,128\}\\\{64,128\\\}, and greedy or four\-beam decoding, giving2×4×2×2×2=642\\times 4\\times 2\\times 2\\times 2=64configurations\. All runs use FP32, eager attention, KV caching, and one returned sequence per input, with TF32 disabled\. Generation may stop early at an end\-of\-sequence token\.

#### Inputs\.

Each workload model uses a fixed bank of eight synthetic sequences of 512 token IDs, sampled by hashing from the model’s vocabulary with special tokens excluded\. Smaller batches and shorter inputs use prefixes of this bank\. This keeps input construction independent of measured runtimes; configurations share input prefixes\.

#### Measurement\.

Each configuration is measured in three separate program launches\. Each launch loads the model anew, runs two warm\-up calls, and then times ten calls, for 1,920 timed calls in total\. The timer encloses only thegenerate\(\)call, with GPU synchronization immediately before it starts and before it stops; model loading, tokenization, and data transfer are excluded\. The target for a configuration is the mean of its three launch means\. Across the 48 fitting and development configurations, the median coefficient of variation is 0\.27% within a launch and 3\.20% across launches, although a few configurations vary by up to 20%\. We also record how many tokens each call actually generated, as an outcome rather than an input\. Appendix[C](https://arxiv.org/html/2611.26875#A3)lists the software environment and file hashes\.

### 4\.5Partitions and evaluation roles

Fitting records, called the training split in our experiments, supply regressor training, lookup histories, and five\-shot examples\. Development records support method inspection and selection\. Held\-out records are scored after methods and predictions are fixed\. Repeated measurements of a configuration remain in the same partition \(Appendix[I](https://arxiv.org/html/2611.26875#A9)\)\.

Historical training uses 635 fitting and 166 development records\. Inference uses 1,131 fitting and 372 development records: 1,503 of the 1,884\-record inventory\. The remaining 381 were assigned to a test partition but inspected during earlier development; we exclude them from these comparisons\. Historical evaluation therefore uses 538 development queries, not an untouched test set\. The seven\-query generation\-call comparison is exploratory\.

Controlled generation uses 32 fitting, 16 development, and 16 held\-out configurations, equally divided between Qwen and T5 in each partition\. Predictions were fixed before held\-out aggregate runtimes were accessed for comparative scoring\. This evaluates combinations of known settings, not unseen models or hardware\. Earlier collection\-quality checks and shared inputs limit its independence; it is not external confirmation\. We do not pool development and held\-out results or different timing targets\.

Training durationInference durationCustom loopn=121n=121Trainern=45n=45Forward passn=159n=159Causal LMforward sumn=165n=165Encoder–decoderforward sumn=41n=41Generation calln=7n=7MethodMAPEWithinfactor 2MAPEWithinfactor 2MAPEWithinfactor 2MAPEWithinfactor 2MAPEWithinfactor 2MAPEWithinfactor 2Median149\.84350\.58087\.053150\.243135\.05624\.8100OLS30\.99227\.69846\.68122\.610021\.81008\.7100Ridge30\.99227\.69846\.98022\.710021\.91006\.6100Random Forest36\.48433\.010034\.5897\.61007\.11006\.6100LightGBM45\.78727\.510029\.4927\.31007\.910026\.7100NN lookup53\.3†5445\.7†8462\.674––––14\.0†71Qwen 0\-shot505\.13138\.762116\.14591\.7279\.42270\.443Qwen 5\-shot372\.12138\.08457\.153136\.545203\.85150\.471GPT\-OSS 0\-shot237\.6†3068\.9†2267\.64393\.9090\.4588\.10GPT\-OSS 5\-shot329\.82664\.45689\.157153\.94865\.65440\.686Claude 0\-shot27\.49341\.38020\.9†9620\.89667\.42229\.657Claude 5\-shot38\.69219\.69820\.99614\.910022\.41006\.6100Table 2:Historical development results\(nn: records\)\. Both metrics are percentages\. MAPE: mean absolute percentage error on valid predictions \(lower is better\)\. Within factor 2: predictions between half and twice measured runtime \(higher is better; failures count as misses\)\.†: partial coverage; –: no predictions\. Bold: lowest full\-coverage MAPE, including rounding ties\. Trainer: Hugging Face Trainer\. MAE and coverage: Appendix[E](https://arxiv.org/html/2611.26875#A5)\.Table 3:Generation\-call duration on the controlled holdout\(16 configurations; full coverage\)\. MAE: mean absolute error \(ms/batch\); MAPE: mean absolute percentage error; RE: signed relative error \(positive: overprediction\)\. Within factor 2 accepts 50–200 ms for a measured 100 ms\. All except MAE are percentages\. LightGBM uses minimum leaf size 4 unless specified\. Bold: lowest MAE/MAPE\.

## 5Experimental Setup

We use the partitions described in Section[4\.5](https://arxiv.org/html/2611.26875#S4.SS5)\. Within each collection and timing target, methods receive the same eligible evaluation queries\. No predictor was refit on fitting and development records combined\.

#### Regression and constant baselines\.

We compare ordinary least squares \(OLS\), Ridge regression, Random Forest\([Breiman, 2001](https://arxiv.org/html/2611.26875#bib.bib3)\), and LightGBM\([Ke et al\., 2017](https://arxiv.org/html/2611.26875#bib.bib15)\)\. Features describe*model/task identity*,*workload size*\(batch size, input dimensions, and training\-step or output limits\),*hardware*\(GPU type and, where applicable, count\), and*execution settings*\(precision, optimizer and adapter settings for training, or decoding and cache settings for controlled generation\)\. The exact fields vary by target; all four regressors use the same fields within each target \(Appendix[I](https://arxiv.org/html/2611.26875#A9)\)\. For historical runs, configuration values are recovered from job\-launch arguments and default settings in the saved workload scripts\. The regressors use no code\-analysis features, measured resource usage, or realized output lengths\. Modeled operation counts, memory traffic, and analytical runtime estimates are additional inputs only in the separate analytical comparison, not in the main regression baselines\.

The*median baseline*predicts the fitting\-set median runtime for every query of a timing target, providing a reference that ignores workload features\. The four regressors predict log runtime\. Numeric features are standardized and categorical features one\-hot encoded using fitting\-set statistics, with an explicit unknown category\. We use fixed hyperparameters \(Appendix[B](https://arxiv.org/html/2611.26875#A2)\), except for LightGBM on controlled generation: its minimum of 20 examples per leaf prevents splitting with 32 fitting configurations, so we lowered it to 4 after inspecting development results\. We retain the original setting for reference\.

#### Nearest\-neighbor lookup\.

As a history\-based reference,*NN lookup*predicts the median runtime of the closest compatible fitting records and abstains when none exists; matching rules are specified in Appendix[I](https://arxiv.org/html/2611.26875#A9)\. On historical targets,*NN lookup \+ LightGBM*falls back to LightGBM whenever lookup abstains\.

#### Analytical estimate\.

For FP32 forward passes of transformer encoders and ViT, we compute a roofline\-style estimate from modeled FLOPs, memory traffic, and nominal GPU peaks\. This separate study uses 106 fitting and 42 development records\. We compare the estimate with a LightGBM multiplicative correction, a direct LightGBM predictor, and an out\-of\-fold stack of the direct and corrected predictions\. Both fitted models receive the same additional static features, beyond the primary comparison’s inputs\. Appendix[F](https://arxiv.org/html/2611.26875#A6)details the calculation and retained A100 hardware\-label discrepancy\.

#### Predictor LLMs\.

We prompt Qwen3\.5\-9B\([Qwen Team,](https://arxiv.org/html/2611.26875#bib.bib33)\), GPT\-OSS\-120B\([OpenAI,](https://arxiv.org/html/2611.26875#bib.bib25)\), and Claude Opus 5\.5\([Anthropic, 2026](https://arxiv.org/html/2611.26875#bib.bib2)\)with the timing definition and workload configuration, asking for a number in a fixed JSON format \(Appendix[H](https://arxiv.org/html/2611.26875#A8)\)\. Five\-shot prompts also include five fitting examples with measured runtimes\. Historical examples match the query’s timing target\. For controlled generation, the same five configurations \(four Qwen and one T5 workload, chosen by fixed hash ordering\) are used for every query and LLM\. Qwen and GPT\-OSS use greedy decoding and a 512\-token output limit, with thinking disabled for Qwen and low reasoning effort for GPT\-OSS\. Claude uses adaptive thinking at medium effort and a 4,096\-token limit including reasoning\. Responses must satisfy the frozen parser’s format and unit requirements and yield a finite positive prediction; failures are retained without regeneration\. Supervision and inference budgets differ: regressors use all fitting records, whereas five\-shot LLMs receive five examples and bring pretrained knowledge\.

#### Metrics\.

Let𝒱\\mathcal\{V\}be the queries with valid predictions, with measured runtimeyi\>0y\_\{i\}\>0and predictiony^i\\hat\{y\}\_\{i\}\. We report mean absolute error \(MAE\) in the target’s unit and mean absolute percentage error \(MAPE\):

MAE=∑i∈𝒱\|y^i−yi\|\|𝒱\|,MAPE=100\|𝒱\|​∑i∈𝒱\|y^i−yi\|yi\.\\begin\{split\}\\mathrm\{MAE\}&=\\frac\{\\sum\_\{i\\in\\mathcal\{V\}\}\|\\hat\{y\}\_\{i\}\-y\_\{i\}\|\}\{\|\\mathcal\{V\}\|\},\\\\ \\mathrm\{MAPE\}&=\\frac\{100\}\{\|\\mathcal\{V\}\|\}\\sum\_\{i\\in\\mathcal\{V\}\}\\frac\{\|\\hat\{y\}\_\{i\}\-y\_\{i\}\|\}\{y\_\{i\}\}\.\\end\{split\}\(1\)MAE measures absolute timing error; MAPE measures relative error, giving greater weight to short runtimes for the same absolute error\. Both condition on valid predictions, so coverage differences can change the rows being averaged\. We report coverage separately and use common valid queries for paired comparisons\. We also report median absolute percentage error and signed relative error \(positive means overprediction\)\.*Within\-factor\-two accuracy*is the fraction of all queries withyi/2≤y^i≤2​yiy\_\{i\}/2\\leq\\hat\{y\}\_\{i\}\\leq 2y\_\{i\}: for a measured 100 ms, predictions from 50 to 200 ms qualify\. Invalid predictions count as misses\. Controlled\-generation metrics weight configurations equally\. We compute 95% confidence intervals by resampling configuration groups\([Efron and Tibshirani, 1994](https://arxiv.org/html/2611.26875#bib.bib8)\), with 2,000 bootstrap draws for historical data and 10,000 paired draws for the controlled holdout \(Appendix[B](https://arxiv.org/html/2611.26875#A2)\)\.

## 6Results

Table[2](https://arxiv.org/html/2611.26875#S4.T2)summarizes historical development MAPE and within\-factor\-two accuracy, and Table[3](https://arxiv.org/html/2611.26875#S4.T3)reports results on the 16 controlled holdout configurations\.

#### Zero\-shot accuracy varies across LLMs and targets\.

On the controlled holdout, Qwen3\.5\-9B and GPT\-OSS\-120B underestimate latency by 99% and 90% on average, and none of their predictions falls within a factor of two of the measured value \(Table[3](https://arxiv.org/html/2611.26875#S4.T3)\)\. Accuracy is also low on historical causal LM forward sums, where only 2% and 0% of their predictions fall within a factor of two\. Claude Opus 5\.5 is far more accurate, with 19\.0% MAPE on the controlled holdout, but its zero\-shot accuracy depends strongly on the target\. It has the lowest observed MAPE on custom training loops \(27\.4% MAPE\), yet on encoder–decoder forward sums only 22% of its predictions fall within a factor of two, and its MAE \(835\.0 ms\) is more than ten times that of LightGBM \(79\.6 ms\)\.

#### Five examples help, but unevenly\.

On the controlled holdout, five examples lower every LLM’s MAE and MAPE; Claude’s MAE falls from 271\.4 to 88\.8 ms\. On historical targets, Claude’s MAE and MAPE improve on four of six targets\. Its MAE falls by 65% for training time reported by Hugging Face Trainer \(238\.7 to 83\.6 s\), but rises for custom training loops \(157\.2 to 172\.8 s\)\. Forward\-pass MAE also rises slightly, from 5\.45 to 5\.51 ms on the same 158 valid queries; five\-shot answers all 159 queries, whereas zero\-shot has one invalid response\. For custom loops, absolute error increases on 69 queries, decreases on 49, and ties on three\. Predictions increase on 97 of 121 queries, but the audit does not establish why\. With five examples, the open\-weight LLMs still have 56–57% MAPE on the controlled holdout, and their factor\-two accuracy on custom loops drops \(Table[2](https://arxiv.org/html/2611.26875#S4.T2)\)\.

#### Simple regressors are hard to beat\.

Regressors trained on PreRun provide competitive predictions, but their ranking relative to LLMs depends on the target and metric\. By MAE, linear models are the best regressors on custom training loops, Random Forest on Trainer\-reported runtimes, and LightGBM on the two forward sums, where its MAE is 39% \(causal LM\) and 72% \(encoder–decoder\) lower than that of Claude five\-shot\. On the controlled holdout, Random Forest has the lowest MAE \(59\.9 ms\) and LightGBM the lowest MAPE \(4\.6%\)\. The 95% interval for Claude five\-shot minus Random Forest MAE spans zero \(−21\.3\-21\.3to73\.473\.4ms\), so it does not establish an ordering\. The corresponding MAPE interval against LightGBM is positive \(0\.1 to 7\.3 percentage points\), but these pairwise intervals are unadjusted for multiple comparisons \(Appendix[G](https://arxiv.org/html/2611.26875#A7)\)\.

#### Errors depend on the workload model\.

On the controlled holdout, Claude five\-shot has similar observed MAPE to Random Forest on Qwen2\.5\-0\.5B configurations \(5\.1% vs\. 5\.0% MAPE\), but on T5\-small configurations its MAPE is almost three times that of LightGBM \(11\.4% vs\. 4\.1%\)\. With five examples, the open\-weight LLMs overestimate T5 latency by more than 50% on average\. Four of the five examples are Qwen workloads, but this fixed example set does not establish whether its composition explains the difference\. Each slice contains only eight configurations, so this analysis is exploratory\.

#### Lookup and analytical estimates\.

NN lookup requires compatible fitting history to return a prediction\. It answers all forward\-pass queries, 80 of 121 custom\-loop queries, and 43 of 45 Trainer queries, but none of the forward\-sum queries, for which the compatibility information it needs is not recorded\. Falling back to LightGBM gives full coverage, but on custom loops and Trainer runtimes the combination has higher MAE than LightGBM alone \(286\.5 vs\. 236\.9 s and 201\.3 vs\. 162\.1 s\)\. In the FP32 forward\-pass study \(42 development runs; Table[16](https://arxiv.org/html/2611.26875#A6.T16)\), the analytical estimate alone underestimates runtime by 56% on average, but learning a correction on top of it reduces MAE from 22\.8 to 2\.75 ms, well below the 11\.9 ms of a direct LightGBM model given the same features\. Stacking the direct and corrected predictions gives the lowest MAPE \(12\.1%\) in this study\. These results retain the nominal hardware assumptions described in Appendix[F](https://arxiv.org/html/2611.26875#A6)\.

## 7Conclusion

We introduced PreRun, a benchmark for predicting deep learning training and inference runtime before execution, with explicitly defined timing targets\. Our experiments show that prediction accuracy depends on the workload, predictor, and examples provided\. Five examples substantially improve Claude’s generation estimates, but their benefit is not consistent across timing targets\. Simple regressors remain strong baselines, while open\-weight LLMs have large generation errors in the tested settings\. We hope PreRun will support predictors that combine the broad knowledge of LLMs with measured data, and we plan to extend it to more hardware, workload models, and natural prompts\.

## Limitations

The controlled collection covers two small workload models on one GPU type in FP32, with shared synthetic token inputs\. Natural prompts may change output lengths and predictor rankings\. The historical collection comes from a single cluster and was filtered partly by run outcomes \(Section[4\.1](https://arxiv.org/html/2611.26875#S4.SS1)\); it does not represent all submitted jobs\. Historical results use development records\. The controlled holdout contains only 16 configurations of known models and hardware, and prior collection\-quality checks limit its independence\. It is not external confirmation; small differences require interpretation alongside uncertainty intervals\. LLM results reflect specific versions, fixed examples, and unequal inference budgets\. Alternative examples, reasoning budgets, retrieval, and tool use remain untested\.

## References

- Agrawal et al\. \(2024\)Amey Agrawal, Nitin Kedia, Jayashree Mohan, Ashish Panwar, Nipun Kwatra, Bhargav Gulavani, Ramachandran Ramjee, and Alexey Tumanov\. 2024\.[Vidur: A Large\-Scale Simulation Framework for LLM Inference](https://arxiv.org/abs/2405.05465)\.*Preprint*, arXiv:2405\.05465\.
- Anthropic \(2026\)Anthropic\. 2026\.[Claude Opus 5\.5](https://platform.claude.com/docs/en/models/opus-5-5/overview)\.Model documentation\.
- Breiman \(2001\)Leo Breiman\. 2001\.[Random forests](https://doi.org/10.1023/A:1010933404324)\.*Machine Learning*, 45:5–32\.
- Chen et al\. \(2018\)Tianqi Chen, Lianmin Zheng, Eddie Yan, Ziheng Jiang, Thierry Moreau, Luis Ceze, Carlos Guestrin, and Arvind Krishnamurthy\. 2018\.[Learning to optimize tensor programs](https://proceedings.neurips.cc/paper_files/paper/2018/file/8b5700012be65c9da25f49408d959ca0-Paper.pdf)\.In*Advances in Neural Information Processing Systems*, volume 31\. Curran Associates, Inc\.
- Coleman et al\. \(2017\)Cody A\. Coleman, Deepak Narayanan, Daniel Kang, Tian Zhao, Jian Zhang, Luigi Nardi, Peter Bailis, Kunle Olukotun, Chris Ré, and Matei Zaharia\. 2017\.[DAWNBench: An end\-to\-end deep learning benchmark and competition](https://dawn.cs.stanford.edu/publications/dawnbench/dawnbench-end-end-deep-learning-benchmark-and-competition)\.In*NIPS Workshop on Machine Learning Systems*\.
- Devlin et al\. \(2019\)Jacob Devlin, Ming\-Wei Chang, Kenton Lee, and Kristina Toutanova\. 2019\.[BERT: Pre\-training of deep bidirectional transformers for language understanding](https://doi.org/10.18653/v1/N19-1423)\.In*Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 \(Long and Short Papers\)*, pages 4171–4186, Minneapolis, Minnesota\. Association for Computational Linguistics\.
- Dosovitskiy et al\. \(2021\)Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby\. 2021\.[An image is worth 16x16 words: Transformers for image recognition at scale](https://openreview.net/forum?id=YicbFdNTTy)\.In*International Conference on Learning Representations*\.
- Efron and Tibshirani \(1994\)Bradley Efron and Robert J\. Tibshirani\. 1994\.[*An Introduction to the Bootstrap*](https://doi.org/10.1201/9780429246593), 1 edition\.Chapman and Hall/CRC\.
- Gu et al\. \(2019\)Juncheng Gu, Mosharaf Chowdhury, Kang G\. Shin, Yibo Zhu, Myeongjae Jeon, Junjie Qian, Hongqiang Liu, and Chuanxiong Guo\. 2019\.[Tiresias: A GPU cluster manager for distributed deep learning](https://www.usenix.org/conference/nsdi19/presentation/gu)\.In*16th USENIX Symposium on Networked Systems Design and Implementation \(NSDI 19\)*, pages 485–500, Boston, MA\. USENIX Association\.
- Hu et al\. \(2021\)Qinghao Hu, Peng Sun, Shengen Yan, Yonggang Wen, and Tianwei Zhang\. 2021\.[Characterization and prediction of deep learning workloads in large\-scale GPU datacenters](https://doi.org/10.1145/3458817.3476223)\.In*Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis*, SC ’21, New York, NY, USA\. Association for Computing Machinery\.
- Hu et al\. \(2024\)Qinghao Hu, Zhisheng Ye, Zerui Wang, Guoteng Wang, Meng Zhang, Qiaoling Chen, Peng Sun, Dahua Lin, Xiaolin Wang, Yingwei Luo, Yonggang Wen, and Tianwei Zhang\. 2024\.[Characterization of large language model development in the datacenter](https://www.usenix.org/conference/nsdi24/presentation/hu)\.In*21st USENIX Symposium on Networked Systems Design and Implementation \(NSDI 24\)*, pages 709–729, Santa Clara, CA\. USENIX Association\.
- Hu et al\. \(2023\)Qinghao Hu, Meng Zhang, Peng Sun, Yonggang Wen, and Tianwei Zhang\. 2023\.[Lucid: A non\-intrusive, scalable and interpretable scheduler for deep learning training jobs](https://doi.org/10.1145/3575693.3575705)\.In*Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2*, ASPLOS 2023, pages 457–472, New York, NY, USA\. Association for Computing Machinery\.
- Jeon et al\. \(2019\)Myeongjae Jeon, Shivaram Venkataraman, Amar Phanishayee, Junjie Qian, Wencong Xiao, and Fan Yang\. 2019\.[Analysis of Large\-Scale Multi\-Tenant GPU clusters for DNN training workloads](https://www.usenix.org/conference/atc19/presentation/jeon)\.In*2019 USENIX Annual Technical Conference \(USENIX ATC 19\)*, pages 947–960, Renton, WA\. USENIX Association\.
- Jin et al\. \(2023\)Yunho Jin, Chun\-Feng Wu, David Brooks, and Gu\-Yeon Wei\. 2023\.[S3S^\{3\}: Increasing GPU utilization during generative inference for higher throughput](https://doi.org/10.52202/075280-0791)\.In*Advances in Neural Information Processing Systems*, volume 36, pages 18015–18027\. Curran Associates, Inc\.
- Ke et al\. \(2017\)Guolin Ke, Qi Meng, Thomas Finley, Taifeng Wang, Wei Chen, Weidong Ma, Qiwei Ye, and Tie\-Yan Liu\. 2017\.[LightGBM: A highly efficient gradient boosting decision tree](https://proceedings.neurips.cc/paper_files/paper/2017/file/6449f44a102fde848669bdd9eb6b76fa-Paper.pdf)\.In*Advances in Neural Information Processing Systems*, volume 30\. Curran Associates, Inc\.
- Kwon et al\. \(2023\)Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica\. 2023\.[Efficient memory management for large language model serving with PagedAttention](https://doi.org/10.1145/3600006.3613165)\.In*Proceedings of the 29th Symposium on Operating Systems Principles*, SOSP ’23, pages 611–626, New York, NY, USA\. Association for Computing Machinery\.
- Lee et al\. \(2025\)Seonho Lee, Amar Phanishayee, and Divya Mahajan\. 2025\.[Forecasting GPU performance for deep learning training and inference](https://doi.org/10.1145/3669940.3707265)\.In*Proceedings of the 30th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 1*, ASPLOS ’25, pages 493–508, New York, NY, USA\. Association for Computing Machinery\.
- Lewis et al\. \(2020\)Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Veselin Stoyanov, and Luke Zettlemoyer\. 2020\.[BART: Denoising sequence\-to\-sequence pre\-training for natural language generation, translation, and comprehension](https://doi.org/10.18653/v1/2020.acl-main.703)\.In*Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics*, pages 7871–7880, Online\. Association for Computational Linguistics\.
- Liu et al\. \(2025\)Hongyi Liu, Yinping Ma, Xiaosong Huang, Lingzhe Zhang, Tong Jia, and Ying Li\. 2025\.[ORA: Job runtime prediction for high\-performance computing platforms using the online retrieval\-augmented language model](https://doi.org/10.1145/3721145.3725757)\.In*Proceedings of the 39th ACM International Conference on Supercomputing*, ICS ’25, pages 884–894, New York, NY, USA\. Association for Computing Machinery\.
- Liu et al\. \(2019\)Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov\. 2019\.[RoBERTa: A robustly optimized BERT pretraining approach](https://arxiv.org/abs/1907.11692)\.*Preprint*, arXiv:1907\.11692\.
- Mattson et al\. \(2020\)Peter Mattson, Christine Cheng, Gregory Diamos, Cody Coleman, Paulius Micikevicius, David Patterson, Hanlin Tang, Gu\-Yeon Wei, Peter Bailis, Victor Bittorf, David Brooks, Dehao Chen, Debo Dutta, Udit Gupta, Kim Hazelwood, Andy Hock, Xinyuan Huang, Daniel Kang, David Kanter, and 13 others\. 2020\.[MLPerf training benchmark](https://proceedings.mlsys.org/paper_files/paper/2020/file/411e39b117e885341f25efb8912945f7-Paper.pdf)\.In*Proceedings of Machine Learning and Systems*, volume 2, pages 336–349\.
- \(22\)Microsoft Research\.[Philly traces](https://github.com/msr-fiddle/philly-traces)\.Dataset repository\.
- Mu’alem and Feitelson \(2001\)A\.W\. Mu’alem and D\.G\. Feitelson\. 2001\.[Utilization, predictability, workloads, and user runtime estimates in scheduling the IBM SP2 with backfilling](https://doi.org/10.1109/71.932708)\.*IEEE Transactions on Parallel and Distributed Systems*, 12\(6\):529–543\.
- Narayanan et al\. \(2020\)Deepak Narayanan, Keshav Santhanam, Fiodar Kazhamiaka, Amar Phanishayee, and Matei Zaharia\. 2020\.[Heterogeneity\-Aware cluster scheduling policies for deep learning workloads](https://www.usenix.org/conference/osdi20/presentation/narayanan-deepak)\.In*14th USENIX Symposium on Operating Systems Design and Implementation \(OSDI 20\)*, pages 481–498\. USENIX Association\.
- \(25\)OpenAI\.[gpt\-oss\-120b: Model card](https://huggingface.co/openai/gpt-oss-120b)\.
- Paszke et al\. \(2019\)Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, and 2 others\. 2019\.[PyTorch: An imperative style, high\-performance deep learning library](https://proceedings.neurips.cc/paper_files/paper/2019/file/bdbca288fee7f92f2bfa9f7012727740-Paper.pdf)\.In*Advances in Neural Information Processing Systems*, volume 32\. Curran Associates, Inc\.
- Patwari et al\. \(2025\)Rajeev Patwari, Ashish Sirasao, and Devleena Das\. 2025\.[Forecasting LLM inference performance via hardware\-agnostic analytical modeling](https://arxiv.org/abs/2508.00904)\.*Preprint*, arXiv:2508\.00904\.
- Pedregosa et al\. \(2011\)Fabian Pedregosa, Gaël Varoquaux, Alexandre Gramfort, Vincent Michel, Bertrand Thirion, Olivier Grisel, Mathieu Blondel, Peter Prettenhofer, Ron Weiss, Vincent Dubourg, Jake Vanderplas, Alexandre Passos, David Cournapeau, Matthieu Brucher, Matthieu Perrot, and Édouard Duchesnay\. 2011\.[Scikit\-learn: Machine learning in Python](http://jmlr.org/papers/v12/pedregosa11a.html)\.*Journal of Machine Learning Research*, 12\(85\):2825–2830\.
- Peng et al\. \(2018\)Yanghua Peng, Yixin Bao, Yangrui Chen, Chuan Wu, and Chuanxiong Guo\. 2018\.[Optimus: an efficient dynamic resource scheduler for deep learning clusters](https://doi.org/10.1145/3190508.3190517)\.In*Proceedings of the Thirteenth EuroSys Conference*, EuroSys ’18, New York, NY, USA\. Association for Computing Machinery\.
- Phothilimthana et al\. \(2023\)Mangpo Phothilimthana, Sami Abu\-El\-Haija, Kaidi Cao, Bahare Fatemi, Michael Burrows, Charith Mendis, and Bryan Perozzi\. 2023\.[TpuGraphs: A performance prediction dataset on large tensor computational graphs](https://doi.org/10.52202/075280-3083)\.In*Advances in Neural Information Processing Systems*, volume 36, pages 70355–70375\. Curran Associates, Inc\.
- Qi et al\. \(2017\)Hang Qi, Evan R\. Sparks, and Ameet Talwalkar\. 2017\.[Paleo: A performance model for deep neural networks](https://github.com/TalwalkarLab/paleo)\.In*Proceedings of the International Conference on Learning Representations*\.
- Qwen et al\. \(2025\)Qwen, An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, and 24 others\. 2025\.[Qwen2\.5 technical report](https://arxiv.org/abs/2412.15115)\.*Preprint*, arXiv:2412\.15115\.
- \(33\)Qwen Team\.[Qwen3\.5\-9B: Model card](https://huggingface.co/Qwen/Qwen3.5-9B)\.
- Radford et al\. \(2019\)Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever\. 2019\.[Language models are unsupervised multitask learners](https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf)\.Technical report, OpenAI\.
- Raffel et al\. \(2020\)Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J\. Liu\. 2020\.[Exploring the limits of transfer learning with a unified text\-to\-text transformer](http://jmlr.org/papers/v21/20-074.html)\.*Journal of Machine Learning Research*, 21\(140\):1–67\.
- Reddi et al\. \(2020\)Vijay Janapa Reddi, Christine Cheng, David Kanter, Peter Mattson, Guenther Schmuelling, Carole\-Jean Wu, Brian Anderson, Maximilien Breughe, Mark Charlebois, William Chou, Ramesh Chukka, Cody Coleman, Sam Davis, Pan Deng, Greg Diamos, Jared Duke, Dave Fick, J\. Scott Gardner, Itay Hubara, and 28 others\. 2020\.[MLPerf inference benchmark](https://arxiv.org/abs/1911.02549)\.*Preprint*, arXiv:1911\.02549\.
- Sanh et al\. \(2020\)Victor Sanh, Lysandre Debut, Julien Chaumond, and Thomas Wolf\. 2020\.[DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter](https://arxiv.org/abs/1910.01108)\.*Preprint*, arXiv:1910\.01108\.
- Schwartz et al\. \(2020\)Roy Schwartz, Jesse Dodge, Noah A\. Smith, and Oren Etzioni\. 2020\.[Green AI](https://doi.org/10.1145/3381831)\.*Commun\. ACM*, 63\(12\):54–63\.
- Song et al\. \(2024\)Xingyou Song, Oscar Li, Chansoo Lee, Bangding Yang, Daiyi Peng, Sagi Perel, and Yutian Chen\. 2024\.[OmniPred: Language models as universal regressors](https://openreview.net/forum?id=t9c3pfrR1X)\.*Transactions on Machine Learning Research*\.
- Strubell et al\. \(2019\)Emma Strubell, Ananya Ganesh, and Andrew McCallum\. 2019\.[Energy and policy considerations for deep learning in NLP](https://doi.org/10.18653/v1/P19-1355)\.In*Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics*, pages 3645–3650, Florence, Italy\. Association for Computational Linguistics\.
- Touvron et al\. \(2023\)Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, and 49 others\. 2023\.[Llama 2: Open foundation and fine\-tuned chat models](https://arxiv.org/abs/2307.09288)\.*Preprint*, arXiv:2307\.09288\.
- Tsafrir et al\. \(2007\)Dan Tsafrir, Yoav Etsion, and Dror G\. Feitelson\. 2007\.[Backfilling using system\-generated predictions rather than user runtime estimates](https://doi.org/10.1109/TPDS.2007.70606)\.*IEEE Transactions on Parallel and Distributed Systems*, 18\(6\):789–803\.
- Vacareanu et al\. \(2024\)Robert Vacareanu, Vlad Andrei Negru, Vasile Suciu, and Mihai Surdeanu\. 2024\.[From words to numbers: Your large language model is secretly a capable regressor when given in\-context examples](https://openreview.net/forum?id=LzpaUxcNFK)\.In*First Conference on Language Modeling*\.
- Wang et al\. \(2025\)Zerui Wang, Qinghao Hu, Ana Klimovic, Tianwei Zhang, Yonggang Wen, Peng Sun, and Dahua Lin\. 2025\.[Semantic\-aware scheduling for GPU clusters with large language models](https://arxiv.org/abs/2510.03334)\.*Preprint*, arXiv:2510\.03334\.
- Wei et al\. \(2026\)Kangda Wei, Ziqian Bi, Ashish Molakalapalli, Haonan Duan, Xiaowei Zou, Vincent Du, Alex Carter, and Ruihong Huang\. 2026\.[Predicting LLM training and inference runtime: A survey of methods, datasets, and open challenges](https://doi.org/10.5281/zenodo.19071578)\.
- Weng et al\. \(2022\)Qizhen Weng, Wencong Xiao, Yinghao Yu, Wei Wang, Cheng Wang, Jian He, Yong Li, Liping Zhang, Wei Lin, and Yu Ding\. 2022\.[MLaaS in the wild: Workload analysis and scheduling in Large\-Scale heterogeneous GPU clusters](https://www.usenix.org/conference/nsdi22/presentation/weng)\.In*19th USENIX Symposium on Networked Systems Design and Implementation \(NSDI 22\)*, pages 945–960, Renton, WA\. USENIX Association\.
- Williams et al\. \(2008\)Samuel Webb Williams, Andrew Waterman, and David A\. Patterson\. 2008\.[Roofline: An insightful visual performance model for floating\-point programs and multicore architectures](https://www2.eecs.berkeley.edu/Pubs/TechRpts/2008/EECS-2008-134.html)\.Technical Report UCB/EECS\-2008\-134, EECS Department, University of California, Berkeley\.
- Wolf et al\. \(2020\)Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Remi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, and 3 others\. 2020\.[Transformers: State\-of\-the\-art natural language processing](https://doi.org/10.18653/v1/2020.emnlp-demos.6)\.In*Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations*, pages 38–45, Online\. Association for Computational Linguistics\.
- Yu et al\. \(2021\)Geoffrey X\. Yu, Yubo Gao, Pavel Golikov, and Gennady Pekhimenko\. 2021\.[Habitat: A Runtime\-Based computational performance predictor for deep neural network training](https://www.usenix.org/conference/atc21/presentation/yu)\.In*2021 USENIX Annual Technical Conference \(USENIX ATC 21\)*, pages 503–521\. USENIX Association\.
- Yuan et al\. \(2024\)Zhihang Yuan, Yuzhang Shang, Yang Zhou, Zhen Dong, Zhe Zhou, Chenhao Xue, Bingzhe Wu, Zhikai Li, Qingyi Gu, Yong Jae Lee, Yan Yan, Beidi Chen, Guangyu Sun, and Kurt Keutzer\. 2024\.[LLM inference unveiled: Survey and roofline model insights](https://arxiv.org/abs/2402.16363)\.*Preprint*, arXiv:2402\.16363\.
- Zhang et al\. \(2024\)Hengrui Zhang, August Ning, Rohan Baskar Prabhakar, and David Wentzlaff\. 2024\.[LLMCompass: Enabling efficient hardware design for large language model inference](https://doi.org/10.1109/ISCA59077.2024.00082)\.In*2024 ACM/IEEE 51st Annual International Symposium on Computer Architecture \(ISCA\)*, pages 1080–1096\.
- Zheng et al\. \(2021\)Lianmin Zheng, Ruochen Liu, Junru Shao, Tianqi Chen, Joseph Gonzalez, Ion Stoica, and Ameer Haj\-Ali\. 2021\.[TenSet: A large\-scale program performance dataset for learned tensor compilers](https://datasets-benchmarks-proceedings.neurips.cc/paper_files/paper/2021/file/a684eceee76fc522773286a895bc8436-Paper-round1.pdf)\.In*Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks*, volume 1\.
- Zheng et al\. \(2023\)Zangwei Zheng, Xiaozhe Ren, Fuzhao Xue, Yang Luo, Xin Jiang, and Yang You\. 2023\.[Response length perception and sequence scheduling: An LLM\-empowered LLM inference pipeline](https://doi.org/10.52202/075280-2859)\.In*Advances in Neural Information Processing Systems*, volume 36, pages 65517–65530\. Curran Associates, Inc\.
- Zhu et al\. \(2020\)Hongyu Zhu, Amar Phanishayee, and Gennady Pekhimenko\. 2020\.[Daydream: Accurately estimating the efficacy of optimizations for DNN training](https://www.usenix.org/conference/atc20/presentation/zhu-hongyu)\.In*2020 USENIX Annual Technical Conference \(USENIX ATC 20\)*, pages 337–352\. USENIX Association\.

## Appendix AHistorical Data Details

#### Accounting\.

The retained archive contains 1,041 training\-labeled records and 1,884 inference records\. Our experiments use 801 training records and 1,503 inference records from the fitting and development partitions\. The remaining 381 inference records belong to the original test partition: 164 forward\-pass, 169 causal LM forward\-sum, 41 encoder–decoder forward\-sum, and seven generation\-call records\. This partition was examined during earlier development and is not evaluated here\. Including these records, the four inference targets contain 807, 836, 205, and 36 records, respectively\.

The 240 training\-labeled records outside the fixed comparison comprise 118 records with supported timing measurements and 122 records with unresolved configuration or completion\. The 118 comprise 32 custom\-loop records, 28 DataParallel\-loop records, and 58 records whose Trainer runtime was reported by the primary process \(rank zero\)\. Supported timing alone does not establish eligibility: input reconstruction for 117 of these records depends on additional assumptions, while one has an unresolved input issue\. None was added to the fixed comparison\. Of the other 122 records, 111 contain an end marker but have unresolved workload configurations, and 11 have unconfirmed application completion\. These excluded records should therefore not all be described as failed runs\.

Earlier exports contain 1,337 distinct training\-labeled job IDs, of which 1,041 are represented in the retained archive\. The 296 absent IDs are not additional verified failures\. Historical curation included outcome\-dependent filtering and protocol selection, so the retained records are not an unfiltered sample of all attempted workloads\.

#### Earlier outcome\-dependent filtering\.

Retained cleaning code groups runs by model, GPU, precision, batch size, epochs, batches per epoch, parallelism, GPU count, dataset, and sequence length\. For groups with at least two positive runtimes, it rejects deviations from the median exceeding both 40% of the median and an additional threshold: 2\.5 times the median absolute deviation \(MAD\) when MAD is at least one second, or 50% of the median otherwise\. Later passes reject positive data\-loading/runtime ratios above 0\.8 and actual/analytical runtime ratios above 100\.

An earlier curation report records 11 outlier exclusions, 185 loading\-ratio exclusions, and no ratio\-above\-100 exclusions in a revision from 1,070 to 874 records\. These counts describe that earlier version; they cannot be subtracted from the current archive or treated as the explanation for all 296 absent IDs\. Protocol selection also considered observed variability and prediction performance\. The historical collection is therefore outcome\-selected\. We preserve the fixed evaluated population without rerunning these filters or adding recovered records\.

#### Inputs and hardware\.

Historical text\-encoder inference runs use synthetic token IDs and attention masks of shape\[B,S\]\[B,S\], whereBBis batch size andSSis sequence length\. Vision inference runs use tensors of shape\[B,3,224,224\]\[B,3,224,224\]\. GPU types—A100, A40, T4, and Quadro RTX—come from the run metadata\.

Source hashes identify the retained scripts used to reconstruct configurations, rather than necessarily the exact revisions executed historically\. Packaged environment metadata records Python 3\.11 and PyTorch 2\.5\.1\+cu121, but does not establish software versions for every historical run\. Appendix[C](https://arxiv.org/html/2611.26875#A3)documents the controlled collection’s environment separately\.

#### Timing details\.

Forward\-pass scripts time one synchronized call with the model and input tensors already on the GPU\. Forward sums exclude token selection and other generation\-loop work; they measure neither time to first token nor complete generation latency\. Historical generation\-call runs include beam search and sampling, but their realized output lengths and individual call timings were not recorded\.

Custom\-loop totals start after model, data, and optimizer setup\. They include the first training step, data loading, forward and backward passes, parameter updates, and in\-loop logging\. Most scripts read the scalar loss but do not explicitly synchronize the GPU immediately before stopping the timer; the video\-training scripts do synchronize explicitly\. These targets retain the timing behavior of their source scripts\. Trainer targets use the runtime returned by Hugging Face Trainer, checked against the printed log\.

#### Training configuration fields\.

Epoch limits, per\-epoch update caps, and total update limits remain distinct\. Gradient accumulation is recorded separately from batch size\. For DataParallel records in the archive, the configured batch is not multiplied by the number of GPUs; these records are outside the reported training comparison\.

The 30 input fields describe the model, dataset, task, hardware, execution settings, workload extent, and optimization configuration\. Appendix[I](https://arxiv.org/html/2611.26875#A9)lists the fields and their encoding\. When reconstruction depends on a library default, we retain the corresponding assumption or unknown value rather than substituting a default from the current environment\. Four summarization and four synthetic\-video records occur only in the fitting partition\.

#### Grouping\.

Within each inference timing target, two records are linked when all configuration fields known for both agree\. Connected components of these links define configuration groups\. Missing fields can therefore join records whose workloads cannot be distinguished from the available evidence; this conservative rule keeps possible repetitions together\.

The fitting/development group counts are 478/159 for forward passes, 494/164 for causal LM forward sums, 123/41 for encoder–decoder forward sums, and 18/6 for generation calls\. Training records are grouped by a hash of all 30 input fields, including the timing procedure, giving 447/112 groups for custom loops and 144/37 for Trainer\-reported runtime\. These are configuration\-group counts, not record counts\. Grouping uses configuration information, not measured outcomes\. Appendix[I](https://arxiv.org/html/2611.26875#A9)specifies the partition\-assignment rules\.

## Appendix BPredictor Settings

#### Regression and constant baselines\.

The median baseline returns the median runtime of the fitting records for every query\. OLS uses minimum\-norm least squares, and Ridge uses penalty 1 with an unpenalized intercept\. Numeric preprocessing uses fitting\-partition medians for imputation and fitting\-partition means and population standard deviations for standardization, with a standard\-deviation floor of10−910^\{\-9\}\. Categorical features use full one\-hot encoding with an unknown category\. Tree models receive the same features without the intercept column\. In the controlled collection, invalid required inputs are rejected rather than imputed\.

Random Forest\([Pedregosa et al\., 2011](https://arxiv.org/html/2611.26875#bib.bib28)\)uses 200 trees, maximum depth 10, minimum leaf size 2, all features at each split, bootstrap sampling, and seed 0\. LightGBM uses 200 rounds, learning rate 0\.05, 15 leaves, maximum depth 5, maximum bin 255, L1 penalty 0, L2 penalty 1, full feature and bagging fractions, no early stopping, deterministic column\-wise CPU training, and seed 0\.

On the controlled collection, the default minimum of 20 examples per leaf prevents any split with only 32 fitting configurations\. After inspecting development results, we reduced this minimum to 4\. This variant changes only the minimum leaf size and produces 200 trees with 1,230 splits; we made no other changes and ran no further search\. We also report the default setting\. Ridge and LightGBM clip log predictions to\[−30,30\]\[\-30,30\]before exponentiation; OLS and Random Forest do not apply this clipping\.

#### NN lookup\.

NN lookup computes Euclidean distances in the standardized and one\-hot encoded feature space constructed from fitting records\. It searches compatible records with the same model, GPU, and precision and returns the median runtime of the nearest records, retaining ties under the implementation’s tie rule\. Historical lookup additionally requires matching task, strategy, and extent fields\. Appendix[I](https://arxiv.org/html/2611.26875#A9)specifies the target\-specific compatibility and tie rules\. Lookup abstains when no compatible record exists\. Its coverage is part of the result, since errors on answered queries do not describe performance on all queries\.

#### Uncertainty\.

Historical bootstrap intervals use 2,000 group\-level draws with seed 0\. Controlled intervals use 10,000 paired draws of whole configurations with seed 20261003 and the 2\.5th and 97\.5th percentiles\. Paired comparisons resample the same configurations for both methods\. We report intervals only when at least ten groups are available, following our reporting threshold, and do not adjust them for multiple comparisons\. These intervals describe variation across the sampled configuration groups; they do not capture uncertainty from new hardware, different model versions, or repeated predictor training and LLM execution\.

#### Predictor LLMs\.

We use Qwen/Qwen3\.5\-9B, openai/gpt\-oss\-120b, and Claude Opus 5\.5 as runtime predictors\.

Qwen runs in BF16 with Transformers 5\.17\.0\([Wolf et al\., 2020](https://arxiv.org/html/2611.26875#bib.bib48)\)and PyTorch 2\.5\.1\+cu121\([Paszke et al\., 2019](https://arxiv.org/html/2611.26875#bib.bib26)\), using SDPA attention, thinking disabled, greedy decoding, seed 0, an 8,192\-token context, and a 512\-token output limit\. GPT\-OSS runs with MXFP4 weights and BF16 compute on vLLM 0\.13\.0\([Kwon et al\., 2023](https://arxiv.org/html/2611.26875#bib.bib16)\)with tensor parallelism 2, PyTorch 2\.9, CUDA 12\.9, and Transformers 4\.57\.3, using low reasoning effort, greedy decoding, seed 0, an 8,192\-token context, a 512\-token output limit, eager execution, and prefix caching disabled\.

Claude is called through the API asclaude\-opus\-5\-5with adaptive thinking \(not displayed\), medium effort, and a 4,096\-token output limit that includes reasoning\. No tools or search are enabled for any LLM\. The reasoning settings and output budgets therefore differ across predictors\.

#### Demonstrations and parsing\.

For the controlled collection, the five demonstrations are fitting configurations C001, C018, C024, C030, and C047, in that order, selected by a fixed hash ranking that does not depend on prediction errors\. Four are Qwen workloads and one is a T5 workload\. The same five demonstrations are used for every controlled query and every predictor LLM\.

For historical targets, the selector excludes the query’s group, takes the lexicographically first run in each fitting group, ranks groups by the SHA\-256 hash of\["configuration\-llm\-v1", "examples", 0, procedure, group\], and uses the first five\.

Each predictor is issued 16 zero\-shot and 16 five\-shot requests for each controlled evaluation partition \(development and holdout\), and 538 historical development queries per setting\. A response must satisfy the frozen format and extraction rules and contain a finite positive number in the required unit\. Invalid responses count as failures and are never repaired or regenerated\.

## Appendix CControlled Collection Details

#### Environment\.

Measurements use Python 3\.11\.14, PyTorch 2\.5\.1\+cu121 \(CUDA 12\.1\), Transformers 5\.2\.0, and tokenizers 0\.22\.2\. The scientific manifest identifies the model weights, tokenizers, configuration files, and input banks by SHA\-256 hashes\.

#### Input construction\.

We generate synthetic inputs from each model’s sorted list of valid, non\-special vocabulary IDs\. Token selection is deterministic, using a SHA\-256 hash of the model name, seed 20261002, example index, and token position\. Token bounds, input\-bank hashes, attention masks, and model files are checked before execution\.

Stopping at the end\-of\-sequence \(EOS\) token is enabled, the minimum number of new tokens is zero, and one sequence is returned per input\. Beam search uses length penalty 1 and early stopping\. Consequently, the requested output limit need not equal the number of tokens returned\.

#### Measurement\.

The collector runs in inference mode with gradients disabled\. Each generation call builds its own cache; caches are not reused across calls\. A monotonic high\-resolution host clock times only thegenerate\(\)call, with GPU synchronization immediately before and after it\. Model loading, input preparation, and warm\-up calls are outside the timed interval\.

Startup timings and peak memory are recorded separately as diagnostics and are not predictor inputs\. A preliminary pilot using natural\-text inputs tested the collection pipeline; its measurements are excluded from the benchmark targets\.

#### Generated\-token counts\.

We count returned tokens after removing the input or decoder\-start prefix, including the first end\-of\-sequence token and excluding subsequent padding\. These counts are recorded as outcomes and are never supplied to predictors\.

#### Evaluation order\.

Split assignments were fixed before collection\. Methods, prompts, and parsers were finalized after development evaluation\. All holdout predictions were saved before aggregate runtime labels were accessed for comparative scoring\. Earlier collection\-quality access is described in Section[4\.5](https://arxiv.org/html/2611.26875#S4.SS5)\. No predictor setting was changed after holdout scoring\.

## Appendix DCompute and Release

#### Compute\.

Collecting the controlled dataset required approximately 4\.4 GPU\-hours, with another 1\.3 GPU\-hours for preliminary pilots\. Running the open\-weight predictor LLMs required approximately 0\.4 GPU\-hours on the controlled development partition and 0\.4 GPU\-hours on the holdout, using one A100 for Qwen and two A40s for GPT\-OSS\. These figures cover the controlled study, not historical data collection\. Regression fitting and scoring took a few CPU\-minutes; Claude predictions used the provider’s API\.

#### Release status\.

Reviewer data and code packages have been prepared and verified for offline reproduction of the reported scores\. Anonymous hosting and redistribution permissions remain pending\. The packages include reference collection and prediction code, but end\-to\-end regeneration has not been verified\.

## Appendix EComplete Results

The following tables report results for all evaluated methods and timing targets\. MAE is measured in the target’s time unit; MAPE and median absolute percentage error \(Med\. APE\) are percentages\. Signed relative error \(RE\) is positive for overprediction and negative for underprediction\. Coverage is the number of valid predictions divided by the number of eligible queries\.

Error metrics use valid predictions only\. Within\-factor\-2 accuracy is the percentage of all eligible queries whose predictions lie between half and twice the measured runtime; invalid responses count as misses\. Controlled results weight each configuration equally\.

Confidence intervals follow Appendix[B](https://arxiv.org/html/2611.26875#A2)\. The historical generation\-call evaluation has six configuration groups, and each controlled workload\-model slice has eight; both fall below our ten\-group threshold for reporting intervals\. The workload\-model slices are exploratory\.

Table 4:Custom training loop, historical dev split\. Errors are computed over valid predictions, and within\-2×\\timesaccuracy counts failures as misses\. Median APE and signed RE are percentages\.Table 5:Trainer\-reported runtime, historical dev split\. Errors are computed over valid predictions, and within\-2×\\timesaccuracy counts failures as misses\. Median APE and signed RE are percentages\.Table 6:Forward pass, historical dev split\. Errors are computed over valid predictions, and within\-2×\\timesaccuracy counts failures as misses\. Median APE and signed RE are percentages\.Table 7:Causal LM forward sum, historical dev split\. NN lookup abstains on every query, so NN lookup \+ LightGBM equals LightGBM\. Errors are computed over valid predictions, and within\-2×\\timesaccuracy counts failures as misses\. Median APE and signed RE are percentages\.Table 8:Encoder–decoder forward sum, historical dev split\. NN lookup abstains on every query, so NN lookup \+ LightGBM equals LightGBM\. Errors are computed over valid predictions, and within\-2×\\timesaccuracy counts failures as misses\. Median APE and signed RE are percentages\.Table 9:Generation call, historical dev split \(seven runs from six configuration groups; exploratory\)\. Errors are computed over valid predictions, and within\-2×\\timesaccuracy counts failures as misses\. Median APE and signed RE are percentages\.Table 10:Controlled holdout, all metrics \(16 configurations, milliseconds per batch\)\. LightGBM \(leaf 4\) is the setting used in the main results\. Median APE and signed RE are percentages\.Table 11:Controlled collection, development partition \(16 configurations\)\. One GPT\-OSS zero\-shot response is invalid\. Coverage and within\-factor\-two accuracy use all 16 queries; its error metrics use the 15 valid predictions\. Errors are computed over valid predictions, and within\-2×\\timesaccuracy counts failures as misses\. Median APE and signed RE are percentages\.Table 12:Controlled holdout, Qwen2\.5\-0\.5B configurations only \(eight configurations; exploratory\)\. Errors are computed over valid predictions, and within\-2×\\timesaccuracy counts failures as misses\. Median APE and signed RE are percentages\.Table 13:Controlled holdout, T5\-small configurations only \(eight configurations; exploratory\)\. Errors are computed over valid predictions, and within\-2×\\timesaccuracy counts failures as misses\. Median APE and signed RE are percentages\.
## Appendix FAnalytical Forward\-Pass Study

We evaluate analytical estimates on 106 fitting and 42 development records of FP32 forward passes from transformer encoders and ViT\. The estimate uses modeled computation, memory traffic, and nominal GPU peaks without profiling the query workload\.

We compare the analytical estimate, a learned multiplicative correction, a direct LightGBM predictor, and a stack of the two learned predictors\. The direct and correction models receive identical inputs, including the analytical estimate, but learn different targets: log runtime and log correction, respectively\. All fitting uses the fitting partition; stacking uses three internal folds\.

Table 14:FP32 forward\-pass study: 42 dev runs \(40 text encoders and two ViT runs\)\. All learned methods receive the same static features\. Median APE and signed RE are percentages\.Table 15:FP32 forward\-pass study, text\-encoder runs only \(40\)\.Table 16:FP32 forward\-pass study, ViT runs only \(two; descriptive\)\.### F\.1Analytical model specification

LetB,S,H,I,A,LB,S,H,I,A,Ldenote batch size, token count, hidden size, feed\-forward size, number of attention heads, and number of layers\. Counting a multiply–add as two FLOPs and usingq=4q=4bytes per value, the transformer blocks contributeFbF\_\{b\}FLOPs andDbD\_\{b\}bytes:

Fb\\displaystyle F\_\{b\}=L⁡\(8​B​S​H2\+4​B​S​H​I\+4​B​S2​H\),\\displaystyle=L\(8BSH^\{2\}\+4BSHI\+4BS^\{2\}H\),\(2\)Db\\displaystyle D\_\{b\}=qL\[BS\(14H\+2I\)\+4H2\\displaystyle=qL\[BS\(14H\+2I\)\+4H^\{2\}\+2HI\+2BAS2\]\.\\displaystyle\\qquad\+2HI\+2BAS^\{2\}\]\.\(3\)
Encoder embeddings add2​q​B​S​H\+16​B​S2qBSH\+16BSbytes\. BERT and RoBERTa poolers add2​B​H22BH^\{2\}FLOPs andq⁡\(2​B​H\+H2\)q\(2BH\+H^\{2\}\)bytes; DistilBERT has no pooler\. All text encoders useH=768H=768,I=3072I=3072, andA=12A=12, withL=12L=12for BERT and RoBERTa andL=6L=6for DistilBERT\.

ViT uses the sameHH,II, andAA, with 12 layers, 196 patches plus a class token from a224×224224\\times 224three\-channel image, patch size 16, and a 1,000\-class head\. Patch embedding and the classification head add

Fextra\\displaystyle F\_\{\\mathrm\{extra\}\}=2​B⋅196⋅768⋅3⋅162\\displaystyle=2B\\cdot 196\\cdot 768\\cdot 3\\cdot 16^\{2\}\+2B⋅768⋅1000\\displaystyle\\quad\+2B\\cdot 768\\cdot 1000\(4\)FLOPs and

Dextra\\displaystyle D\_\{\\mathrm\{extra\}\}=4\[B\(3⋅2242\+196⋅768\)\\displaystyle=4\\bigl\[B\(3\\cdot 224^\{2\}\+196\\cdot 768\)\+768⋅3⋅162\\displaystyle\\quad\+768\\cdot 3\\cdot 16^\{2\}\+B\(768\+1000\)\+768⋅1000\]\\displaystyle\\quad\+B\(768\+1000\)\+768\\cdot 1000\\bigr\]\(5\)bytes\.

The model assumes one weight read per batched operator and materialized attention without reuse across operators\. It omits softmax, normalization, nonlinearities, and other unlisted work, and uses no profiler measurements\.

#### Hardware constants and runtime estimate\.

The nominal GPU peaks are A100\(19\.5,1555\)\(19\.5,1555\), A40\(37\.4,696\)\(37\.4,696\), and T4\(8\.1,320\)\(8\.1,320\), in FP32 TFLOP/s and GB/s\. The retained A100 configuration is labeled SXM, whereas the run metadata identifies PCIe hardware\. This discrepancy affects 36 fitting and 15 development records\. We retain the original constants, so these results evaluate the specified nominal scenario rather than a hardware\-verified A100 model\.

WithFFthe total modeled FLOPs andDDthe total modeled bytes, including the applicable embedding and head terms, the estimate in milliseconds is

Tana,ms=1000​max⁡\(F/P,D/W\),T\_\{\\mathrm\{ana,ms\}\}=1000\\max\(F/P,D/W\),\(6\)wherePPandWWare the nominal FLOP/s and bytes/s: the values above multiplied by101210^\{12\}and10910^\{9\}, respectively\. The maximum is taken after summing over operators, with efficiency 1 and no added overhead\. Neither is calibrated on development data\.

#### Predictor inputs\.

The direct and correction models receive the same six forward\-pass inputs: batch size, GPU type, model, precision, text length \(zero for vision\), and a text\-length applicability flag\.

Both also receive 19 static features: number of layers, hidden and feed\-forward sizes, number of heads, pooler presence, class count, image height, width, and channels, patch size, a vision indicator, token count, nominal compute and bandwidth, bytes per value, modeled FLOPs and bytes, log analytical milliseconds, and the hardware scenario\. Non\-applicable static fields are encoded as zero; the vision indicator distinguishes image workloads\. Both models use preprocessing fit only on fitting records and the same fixed tree capacity\.

#### Correction and stacking\.

For a fitting labelyyin milliseconds, the direct LightGBM model learnslog⁡y\\log y, and the correction model learnsr=log⁡y−log⁡Tana,msr=\\log y\-\\log T\_\{\\mathrm\{ana,ms\}\}\. Withc⁡\(z\)=min⁡\(30,max⁡\(−30,z\)\)c\(z\)=\\min\(30,\\max\(\-30,z\)\), the predictions are

y^dir\\displaystyle\\hat\{y\}\_\{\\mathrm\{dir\}\}=exp⁡\(c⁡\(fdir​\(x\)\)\),\\displaystyle=\\exp\(c\(f\_\{\\mathrm\{dir\}\}\(x\)\)\),\(7\)y^corr\\displaystyle\\hat\{y\}\_\{\\mathrm\{corr\}\}=exp⁡\(c⁡\(log⁡Tana,ms\+fcorr​\(x\)\)\)\.\\displaystyle=\\exp\\\!\\left\(c\\\!\\left\(\\log T\_\{\\mathrm\{ana,ms\}\}\+f\_\{\\mathrm\{corr\}\}\(x\)\\right\)\\right\)\.\(8\)Both use the default LightGBM settings of Appendix[B](https://arxiv.org/html/2611.26875#A2): 200 rounds and minimum leaf size 20\.

The stacker is a Ridge regression with penalty 1 and an unpenalized intercept\. Its inputs are\[1,log⁡y^dir,log⁡y^corr\]\[1,\\log\\hat\{y\}\_\{\\mathrm\{dir\}\},\\log\\hat\{y\}\_\{\\mathrm\{corr\}\}\], and its target islog⁡y\\log y\. Fitting groups are sorted by the SHA\-256 hash of\["baseline\-oof\-v1", group\]and assigned cyclically to three folds\. For each fold, preprocessing and both base models are fit on the other two folds\. Their clipped predictions on the held\-out fold form the stacker’s training rows\.

The base models are then refit on all fitting groups\. At prediction time, the stacker combines their log predictions and returnsexp⁡\(c⁡\(zstack\)\)\\exp\(c\(z\_\{\\mathrm\{stack\}\}\)\)\. Development labels are used neither in the internal folds nor in fitting the stacker\.

## Appendix GPaired Comparisons on the Controlled Holdout

We report all 78 pairwise comparisons among the 13 methods, using the same 16 configurations for each comparison\. Differences are computed as the first method minus the second; negative values favor the first method\. An interval containing zero does not establish a clear ordering or demonstrate equivalence\.

Table 17:Paired error differences, part 1 of 3\. CI: confidence interval; pp: percentage points\. Intervals use 10,000 paired bootstrap samples of the 16 configurations and are not adjusted for multiple comparisons\. Endpoints are rounded to two decimal places\.Table 18:Paired error differences, part 2 of 3\. Definitions and interval construction follow Table[17](https://arxiv.org/html/2611.26875#A7.T17)\.Table 19:Paired error differences, part 3 of 3\. Definitions and interval construction follow Table[17](https://arxiv.org/html/2611.26875#A7.T17)\.

## Appendix HPrompt

Below is the exact system instruction used for controlled generation queries; only line breaks have been added\. Historical prompts specify their corresponding timing target and unit\.

> Predict resident\-input generation\-call wall latency in milliseconds per batched invocation\. The model and input tensors are already resident on the GPU\. The host monotonic timer surrounds the full model\.generate call with GPU synchronization immediately before start and before stop\. Exclude loading, tokenization, input transfer, startup, warmup, validation and serialization\. The target is the equally weighted mean of three fresh\-process launch means, each over ten measured calls after two warmups\. This is a controlled synthetic token\-ID input study with shared nested input banks, not natural prompts\. Natural EOS remains enabled\. Requested output cap is a limit, not an observed generated count\. Returned beam sequences are not all internal beam work\. Use only the supplied declarations and any provided fitting demonstrations; do not request tools or measurements\. Return exactly one JSON object with keys prediction\_ms \(finite positive number\) and unit \(exactly "ms\_per\_batch"\)\. No explanation or markdown\.

The following development query is shown with formatting added for readability\. It contains neither a record identifier nor the measured runtime\. Five\-shot requests include the five fitting demonstrations listed in Appendix[B](https://arxiv.org/html/2611.26875#A2)as preceding user–assistant pairs; zero\-shot requests contain no demonstrations\.

```
{
  "attention_backend": "eager",
  "batch_size": 1,
  "declared_gpu_sku":
    "NVIDIA A100-PCIE-40GB",
  "do_sample": false,
  "input_length": 128,
  "model": "qwen2.5-0.5b",
  "num_beams": 4,
  "num_return_sequences": 1,
  "precision": "float32",
  "requested_gpu_count": 1,
  "requested_output_cap": 64,
  "seed": 20261002,
  "task": "causal_generation",
  "tf32": false,
  "use_cache": true
}
```

## Appendix IInput Fields, Lookup, and Splits

The companion fileTECHNICAL\_SPECIFICATIONS\.jsonlists exact field names and source hashes\. Identifiers, split assignments, paths, hashes, measured resource use, and execution outcomes are excluded from predictor inputs\. Runtime labels are stored separately, and each timing target has its own preprocessing and model\.

#### Historical training \(30 fields\)\.

Model and task fields are model, dataset, task type, input modality, framework, and preprocessing\. Execution fields are GPU type, requested GPU count, parallelism, precision, quantization, adapter mode, gradient checkpointing, and batch semantics\. Workload and optimization fields are batch size, epochs, sequence length, image resolution, frame count, maximum steps, execution extent, step semantics, gradient accumulation, LoRA rank and alpha, optimizer, learning rate, learning\-rate schedule, and number of data\-loader workers\. The timing procedure is an explicit categorical field\.

Values come from literal launch arguments, fixed dispatch in the script, or script defaults, never from measured outcomes\. Non\-applicable numeric fields use zero; existing fields such as input modality and adapter mode distinguish their applicability\. There is no separate applicability indicator for every field\. A maximum\-step value of zero means no cap\. Unresolved Trainer worker and checkpointing defaults are represented by named unknown categories\.

Numeric columns are batch size, epochs, gradient accumulation, image resolution, learning rate, LoRA rank and alpha, maximum steps, frame count, GPU count, and sequence length\. Worker count is numeric for custom loops and categorical for Trainer runs\. All other fields, including booleans, are categorical\.

#### Historical inference\.

The forward\-pass target uses six fields: batch size, GPU type, model, precision, text length, and a flag indicating whether text length applies\. Text length is zero for vision models\.

The other inference targets use seven fields: batch size, GPU type, input length, model, precision, requested output limit, and the product of batch size and input length\. The analytical study adds the 19 static features listed in Appendix[F](https://arxiv.org/html/2611.26875#A6)\.

#### Controlled generation \(15 fields\)\.

Workload fields are model, task, batch size, and input length\. Decoding fields are requested output limit, number of beams, number of returned sequences, sampling flag, cache flag, and seed\. Execution fields are precision, attention implementation, TF32 flag, GPU model, and requested GPU count\.

All fields are required, and constant fields remain explicit\. Realized output length, measured memory use, and latency are excluded from predictor inputs\.

#### Encoding\.

Columns are ordered lexically\. For schemas without fixed column types, a column is numeric if all known fitting values are non\-boolean numbers and categorical otherwise\. Categorical vocabularies are sorted and include an unknown bucket\. Numeric preprocessing and regression settings follow Appendix[B](https://arxiv.org/html/2611.26875#A2)\. Preprocessing is fit only on fitting records and is never refit on development or holdout queries\.

#### NN lookup\.

Distances are Euclidean in the standardized and one\-hot encoded fitting matrix\. For controlled generation, candidates must match the query’s model, GPU, and precision exactly\. The prediction is the median runtime of candidates tied at the minimum distance; lookup abstains when no compatible candidate exists\. It returns observed fitting runtimes without scaling them to the query’s workload size\.

Historical inference lookup additionally requires the timing procedure and the reference implementation’s task, strategy, and execution\-extent compatibility fields\. Forward\-sum records lack some required compatibility information, so lookup abstains on these targets even when model, GPU, and precision match\.

Historical training lookup requires agreement on model, GPU, precision, task, adapter, dataset, execution extent, batch semantics, gradient accumulation, and parallelism\. It first takes the median runtime of records with identical feature vectors, then returns the median over the nearest such entries\. Ties use relative and absolute distance tolerances of10−1210^\{\-12\}\.

NN lookup \+ LightGBM uses the fixed LightGBM predictor whenever lookup abstains\. The controlled comparison includes standalone NN lookup only\.

#### Historical grouping and splits\.

Inference grouping uses normalized configuration fields: model and revision; GPU type and count; precision; task and architecture; dataset and revision; image or input shape; frames; input and output lengths; batch size and semantics; parallelism and tensor or pipeline degree; quantization and cache data type; decoding, beam, sampling, and stopping settings; serving framework, batching, and concurrency; adapters; preprocessing; and available code or environment fingerprints\.

Within a timing target, records are linked when every field known for both agrees\. Connected components of these links define configuration groups\. Groups are ranked by the SHA\-256 hash of\[seed, procedure, group\], with seedphysboost\-primary\-v1\. Approximately 60%, 20%, and 20% of groups are assigned to fitting, development, and the original test partition, with at least one group per partition when possible\. These percentages apply to groups, not individual records\. The original inference test partition was examined during earlier development and is not evaluated in this paper\.

Training records are grouped by a hash of all 30 input fields, including the timing procedure\. Within each procedure, groups are ranked by the SHA\-256 hash of\[training\-development\-v1, 0, procedure, group\]\. The first 20% of groups, rounded up, go to development and the rest to fitting, subject to a minimum fitting size\. We retain the existing grouping and assignments\.

#### Controlled splits\.

For each workload model, batch sizes1,2,4,81,2,4,8are indexed byb=0,…,3b=0,\\ldots,3, input lengths128,512128,512byi=0,1i=0,1, output limits64,12864,128byo=0,1o=0,1, and greedy or four\-beam decoding byd=0,1d=0,1\. We compute

v=\(4​i\+2​o\+d\+2​b\)mod8\.v=\(4i\+2o\+d\+2b\)\\bmod 8\.\(9\)Configurations withv∈\{0,3,5,6\}v\\in\\\{0,3,5,6\\\}go to fitting,v∈\{1,4\}v\\in\\\{1,4\\\}to development, andv∈\{2,7\}v\\in\\\{2,7\\\}to the holdout\. This gives 16 fitting, eight development, and eight holdout configurations per workload model\.

The assignment rule is deterministic and uses no random seed; the token\-bank seed is a separate input setting\. Configurations sharing the pilot settings are outside the controlled holdout\.

#### LLM output formats\.

Historical requests specify their timing target and unit and require a positivepredicted\_runtime\. Controlled requests requireprediction\_mswith unitms\_per\_batch\. Both use the fixed parsing rules described in Appendix[B](https://arxiv.org/html/2611.26875#A2)\.

Similar Articles

Reducing LLM Latency

Reddit r/AI_Agents

Techniques and methods for reducing latency in large language models, improving inference speed.

UnpredictaBench: A Benchmark for Evaluating Distributional Randomness in LLMs

arXiv cs.CL

UnpredictaBench is a benchmark for evaluating how well large language models can sample from target distributions, including statistical and natural-language random processes. Experiments show that current models struggle to capture true underlying distributions, with no model exceeding 40% on the KS@100 metric.

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

Hugging Face Blog

Dharma-AI previews its upcoming paper on predicting end-to-end LLM fine-tuning time across 272 production SFT runs on H200 GPUs, showing FLOP-based estimates poorly explain real durations (R²=0.31) while a CatBoost regressor using pre-dispatch signals achieves R²=0.98 with 1.71h mean absolute error.