How Long Will My Language Model Run? A Benchmark for Pre-Execution Runtime Prediction
Organizations: Texas A&M University, College Station, TX · XPerf Inc, Round Rock, TX
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.
Figures & tables
| Timing target | Total used | Fitting | Development | Held-out |
| Historical training runs | ||||
| Custom training loop (s) | 586 | 465 | 121 | – |
| Trainer-reported runtime (s) | 215 | 170 | 45 | – |
| Historical inference runs | ||||
| Forward pass (ms) | 643 | 484 | 159 | – |
| Causal LM forward sum (ms) | 667 | 502 | 165 | – |
| Training duration | Inference duration | |||||||||||
| Custom loop | Trainer | Forward pass | Causal LM forward sum | Encoder–decoder forward sum | Generation call | |||||||
| Method | MAPE | Within factor 2 | MAPE | Within factor 2 | MAPE | Within factor 2 | MAPE | Within factor 2 | MAPE | Within factor 2 | MAPE | Within factor 2 |
| Median | 149.8 | 43 | 50.5 | 80 | 87.0 | 53 | 150.2 | 43 | 135.0 | 56 | 24.8 | 100 |
| OLS | 30.9 | 92 | 27.6 | 98 | 46.6 | 81 | 22.6 | 100 | 21.8 | 100 | 8.7 | 100 |
| Ridge | 30.9 | 92 | 27.6 | 98 | 46.9 | 80 | 22.7 | 100 | 21.9 | 100 | 6.6 | 100 |
| Random Forest | 36.4 | 84 | 33.0 | 100 | 34.5 | 89 | 7.6 | 100 | 7.1 | 100 | 6.6 | 100 |
| Method | MAE (ms) | MAPE (%) | Signed RE (%) | Within factor 2 (%) |
|---|---|---|---|---|
| Median | 667.2 | 64.3 | 25.3 | 50.0 |
| OLS | 80.8 | 6.0 | 1.6 | 100.0 |
| Ridge | 83.3 | 6.2 | 1.6 | 100.0 |
| Random Forest | 59.9 | 5.0 | 1.5 | 100.0 |
| LightGBM | 64.6 | 4.6 | 3.1 | 100.0 |
| LightGBM (leaf 20) | 667.2 | 63.6 | 24.0 | 50.0 |
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Coverage | MAE (s) | MAPE (%) | Med. APE | Signed RE | Within factor 2 (%) |
|---|---|---|---|---|---|---|
| Median | 121/121 | 486.64 | 149.80 | 69.84 | 95.85 | 42.98 |
| OLS | 121/121 | 163.39 | 30.86 | 21.54 | 13.81 | 91.74 |
| Ridge | 121/121 | 161.94 | 30.94 | 22.85 | 13.69 | 91.74 |
| Random Forest | 121/121 | 221.37 | 36.43 | 23.15 | 11.56 | 84.30 |
| LightGBM (leaf 20) | 121/121 | 236.91 | 45.65 | 23.23 | 27.48 | 86.78 |
| NN lookup | 80/121 | 274.53 | 53.29 | 14.95 | 24.29 | 53.72 |
| Method | Coverage | MAE (s) | MAPE (%) | Med. APE | Signed RE | Within factor 2 (%) |
|---|---|---|---|---|---|---|
| Median | 45/45 | 336.62 | 50.54 | 47.65 | 13.43 | 80.00 |
| OLS | 45/45 | 163.32 | 27.56 | 23.95 | 14.14 | 97.78 |
| Ridge | 45/45 | 164.01 | 27.61 | 24.50 | 14.19 | 97.78 |
| Random Forest | 45/45 | 136.81 | 33.00 | 28.13 | 18.10 | 100.00 |
| LightGBM (leaf 20) | 45/45 | 162.12 | 27.52 | 25.85 | 10.64 | 100.00 |
| NN lookup | 43/45 | 210.49 | 45.74 | 37.88 | 14.96 | 84.44 |
| Method | Coverage | MAE (ms) | MAPE (%) | Med. APE | Signed RE | Within factor 2 (%) |
|---|---|---|---|---|---|---|
| Median | 159/159 | 20.11 | 87.01 | 70.29 | 30.78 | 52.83 |
| OLS | 159/159 | 10.64 | 46.56 | 34.95 | 13.95 | 81.13 |
| Ridge | 159/159 | 10.71 | 46.86 | 35.76 | 14.23 | 79.87 |
| Random Forest | 159/159 | 9.89 | 34.54 | 25.05 | 5.95 | 89.31 |
| LightGBM (leaf 20) | 159/159 | 5.63 | 29.44 | 16.41 | 9.95 | 92.45 |
| NN lookup | 159/159 | 15.30 | 62.61 | 45.61 | 14.15 | 73.58 |
| Method | Coverage | MAE (ms) | MAPE (%) | Med. APE | Signed RE | Within factor 2 (%) |
|---|---|---|---|---|---|---|
| Median | 165/165 | 1482.99 | 150.23 | 72.40 | 109.17 | 43.03 |
| OLS | 165/165 | 419.85 | 22.59 | 23.01 | 6.22 | 100.00 |
| Ridge | 165/165 | 415.57 | 22.65 | 23.03 | 6.30 | 100.00 |
| Random Forest | 165/165 | 191.36 | 7.56 | 5.07 | 0.90 | 100.00 |
| LightGBM (leaf 20) | 165/165 | 186.04 | 7.33 | 5.61 | 0.32 | 100.00 |
| NN lookup | 0/165 | – | – | – | – | 0.00 |
| Method | Coverage | MAE (ms) | MAPE (%) | Med. APE | Signed RE | Within factor 2 (%) |
|---|---|---|---|---|---|---|
| Median | 41/41 | 629.97 | 134.98 | 50.19 | 103.37 | 56.10 |
| OLS | 41/41 | 193.12 | 21.76 | 23.98 | 3.83 | 100.00 |
| Ridge | 41/41 | 187.87 | 21.86 | 23.63 | 4.11 | 100.00 |
| Random Forest | 41/41 | 85.86 | 7.12 | 6.29 | 2.15 | 100.00 |
| LightGBM (leaf 20) | 41/41 | 79.60 | 7.94 | 7.17 | 1.60 | 100.00 |
| NN lookup | 0/41 | – | – | – | – | 0.00 |
| Method | Coverage | MAE (ms) | MAPE (%) | Med. APE | Signed RE | Within factor 2 (%) |
|---|---|---|---|---|---|---|
| Median | 7/7 | 203.54 | 24.82 | 13.32 | 13.74 | 100.00 |
| OLS | 7/7 | 103.95 | 8.73 | 7.84 | 8.06 | 100.00 |
| Ridge | 7/7 | 68.23 | 6.62 | 6.54 | 4.18 | 100.00 |
| Random Forest | 7/7 | 72.25 | 6.59 | 6.19 | 4.99 | 100.00 |
| LightGBM (leaf 20) | 7/7 | 255.28 | 26.73 | 22.52 | 1.66 | 100.00 |
| NN lookup | 5/7 | 156.89 | 13.96 | 5.02 | 11.76 | 71.43 |
| Method | Coverage | MAE (ms) | MAPE (%) | Med. APE | Signed RE | Within factor 2 (%) |
|---|---|---|---|---|---|---|
| Median | 16/16 | 667.24 | 64.29 | 53.90 | 25.32 | 50.00 |
| OLS | 16/16 | 80.84 | 5.96 | 4.63 | 1.59 | 100.00 |
| Ridge | 16/16 | 83.26 | 6.20 | 4.49 | 1.62 | 100.00 |
| Random Forest | 16/16 | 59.91 | 4.97 | 4.09 | 1.48 | 100.00 |
| LightGBM | 16/16 | 64.63 | 4.61 | 4.17 | 3.09 | 100.00 |
| LightGBM (leaf 20) | 16/16 | 667.24 | 63.60 | 53.33 | 23.98 | 50.00 |
| Method | Coverage | MAE (ms) | MAPE (%) | Med. APE | Signed RE | Within factor 2 (%) |
|---|---|---|---|---|---|---|
| Median | 16/16 | 659.16 | 66.13 | 46.68 | 28.41 | 50.00 |
| OLS | 16/16 | 103.66 | 7.94 | 7.24 | 3.20 | 100.00 |
| Ridge | 16/16 | 95.64 | 8.00 | 7.55 | 3.18 | 100.00 |
| Random Forest | 16/16 | 69.14 | 5.79 | 5.25 | 3.37 | 100.00 |
| LightGBM (leaf 4) | 16/16 | 82.94 | 6.39 | 4.90 | 1.50 | 100.00 |
| LightGBM (leaf 20) | 16/16 | 659.16 | 65.42 | 46.18 | 27.03 | 50.00 |
| Method | Coverage | MAE (ms) | MAPE (%) | Med. APE | Signed RE | Within factor 2 (%) |
|---|---|---|---|---|---|---|
| Median | 8/8 | 879.91 | 38.96 | 42.18 | -38.96 | 50.00 |
| OLS | 8/8 | 127.04 | 6.49 | 4.49 | 0.88 | 100.00 |
| Ridge | 8/8 | 129.57 | 6.48 | 4.45 | -0.82 | 100.00 |
| Random Forest | 8/8 | 92.83 | 5.04 | 3.55 | 1.17 | 100.00 |
| LightGBM (leaf 4) | 8/8 | 106.02 | 5.15 | 4.13 | 2.42 | 100.00 |
| LightGBM (leaf 20) | 8/8 | 891.42 | 39.62 | 42.80 | -39.62 | 50.00 |
| Method | Coverage | MAE (ms) | MAPE (%) | Med. APE | Signed RE | Within factor 2 (%) |
|---|---|---|---|---|---|---|
| Median | 8/8 | 454.57 | 89.61 | 82.89 | 89.61 | 50.00 |
| OLS | 8/8 | 34.64 | 5.44 | 4.65 | 2.31 | 100.00 |
| Ridge | 8/8 | 36.95 | 5.92 | 4.73 | 4.06 | 100.00 |
| Random Forest | 8/8 | 26.99 | 4.90 | 4.09 | 1.79 | 100.00 |
| LightGBM (leaf 4) | 8/8 | 23.24 | 4.06 | 4.17 | 3.76 | 100.00 |
| LightGBM (leaf 20) | 8/8 | 443.07 | 87.58 | 80.93 | 87.58 | 50.00 |
| Method | Coverage | MAE (ms) | MAPE (%) | Med. APE | Signed RE | Within factor 2 (%) |
|---|---|---|---|---|---|---|
| Direct LightGBM | 42/42 | 11.91 | 18.08 | 13.48 | 3.83 | 100.00 |
| Analytical estimate | 42/42 | 22.81 | 56.04 | 60.29 | -56.04 | 26.19 |
| Learned correction | 42/42 | 2.75 | 14.45 | 6.78 | 3.62 | 100.00 |
| Stacking | 42/42 | 5.47 | 12.07 | 8.55 | 3.31 | 100.00 |
| Contrast | Common | MAE (ms), 95% CI | MAPE (pp), 95% CI |
|---|---|---|---|
| OLS Median | 16 | [-827.28, -366.57] | [-84.69, -35.46] |
| Ridge Median | 16 | [-822.54, -366.96] | [-84.52, -35.46] |
| Ridge OLS | 16 | [-13.15, 17.22] | [-0.64, 1.08] |
| Random Forest Median | 16 | [-849.59, -384.12] | [-84.44, -36.99] |
| Random Forest OLS | 16 | [-83.89, 35.33] | [-4.53, 2.32] |
| Random Forest Ridge | 16 | [-88.31, 33.84] | [-4.90, 2.24] |
| Contrast | Common | MAE (ms), 95% CI | MAPE (pp), 95% CI |
|---|---|---|---|
| Qwen zero-shot LightGBM (leaf 4) | 16 | [854.50, 1587.58] | [92.19, 95.82] |
| Qwen zero-shot NN lookup | 16 | [810.53, 1571.31] | [85.86, 92.33] |
| Qwen five-shot Median | 16 | [-261.85, 63.28] | [-37.11, 20.74] |
| Qwen five-shot OLS | 16 | [270.97, 725.24] | [23.86, 84.88] |
| Qwen five-shot Ridge | 16 | [272.34, 715.21] | [24.16, 84.16] |
| Qwen five-shot Random Forest | 16 | [276.85, 761.43] | [24.52, 86.18] |
| Contrast | Common | MAE (ms), 95% CI | MAPE (pp), 95% CI |
|---|---|---|---|
| GPT-OSS five-shot Qwen zero-shot | 16 | [-1084.46, -322.49] | [-64.78, -14.60] |
| GPT-OSS five-shot Qwen five-shot | 16 | [-285.52, 331.01] | [-31.43, 26.38] |
| GPT-OSS five-shot GPT-OSS zero-shot | 16 | [-944.29, -244.06] | [-55.97, -6.36] |
| Claude zero-shot Median | 16 | [-599.32, -192.31] | [-72.54, -20.55] |
| Claude zero-shot OLS | 16 | [68.07, 327.82] | [6.87, 18.88] |
| Claude zero-shot Ridge | 16 | [60.38, 332.90] | [6.18, 19.13] |