Training Time Estimator

Estimate AI model training time and costs.

Training Configuration

B

Estimated Training Time

5.5 hours

~$154 cloud cost

Throughput
50.6K
💰Hourly Cost
$28.00

Training Details

Total Hours5.5
Multi-GPU Efficiency79%
Estimated Cloud Cost$154

Chinchilla Optimal: 140.0B tokens recommended for this model size.

What the Training Time Estimator Does

The training time estimator predicts how long it will take to train an AI model and how much that training run will cost on rented cloud GPUs. Training a large language model is one of the most expensive and time-consuming steps in the entire machine learning lifecycle, and the difference between a good plan and a bad one can be measured in weeks of wall-clock time and tens of thousands of dollars. This tool takes five numbers you already know about your project — model size in billions of parameters, dataset size in tokens, GPU type, the number of GPUs, and the training precision — and turns them into an estimated training duration, a cloud cost estimate, an effective throughput in tokens per second, and a multi-GPU scaling efficiency.

The headline output is the estimated training time, formatted automatically into minutes, hours, days, or weeks depending on scale, alongside an approximate cloud bill. Below that, the calculator reports the aggregate throughput your cluster achieves, the hourly cost of the GPU fleet, and a multi-GPU efficiency figure that captures the communication overhead of distributed training. It also flags whether your dataset size is near the Chinchilla-optimal token budget for your model, a research-backed guideline that helps you avoid both undertraining and wasteful overtraining.

Why estimate training time before you start? Because GPUs are billed by the hour and the largest single line item in most AI budgets is compute. A 7-billion-parameter model trained on a billion tokens might finish in a few hours on a handful of A100s, while a frontier-scale pretraining run can occupy thousands of accelerators for months. Knowing the ballpark up front lets you size your cluster, choose between an H100 and a cheaper RTX 4090, decide whether mixed precision is worth enabling, and forecast spend before you ever submit a job. The GPU training time and LLM training cost figures this estimator produces are exactly the inputs a team needs to plan a run, request a budget, or compare two hardware options side by side.

The Training Time Formula

The estimator builds training time from throughput. It starts with a base per-GPU throughput in tokens per second that depends on the chosen GPU and precision, then scales it for model size, the number of GPUs, and a multi-GPU efficiency penalty. The core idea is simple: total training time equals total tokens divided by how many tokens per second the whole cluster can actually process.

First, a size multiplier adjusts the base throughput because larger models are slower per token. The tool uses the square root of the ratio of a 7B reference model to your model's parameter count, so a 28B model runs at half the per-token speed of a 7B model. Next, the per-GPU throughput is multiplied by the GPU count and by an efficiency factor that drops by three percentage points per additional GPU (floored at 70%) to reflect the communication overhead of data-parallel and tensor-parallel training. Dividing total tokens by this adjusted throughput yields seconds, which are converted to hours and days.

Training Time, Throughput, and Cost

totalHours = tokens / (baseThroughput x sqrt(7e9 / params) x gpus x efficiencyFactor) / 3600

Where:

  • tokens= Total training tokens in the dataset
  • params= Model parameters = modelSize (billions) x 1e9
  • baseThroughput= Per-GPU tokens/sec for the chosen GPU and precision (e.g. A100-80GB BF16 = 8000)
  • sqrt(7e9 / params)= Size multiplier: larger models run slower per token relative to a 7B reference
  • gpus= Number of GPUs in the cluster
  • efficiencyFactor= Multi-GPU scaling efficiency = 1 for a single GPU, else max(0.7, 1 - (gpus - 1) x 0.03)
  • totalCost= costPerHour x totalHours, where costPerHour = gpuCost x gpus

GPU Throughput and Precision

Throughput is the engine of every training-time estimate. The calculator stores a base tokens-per-second figure for each supported GPU at each precision, reflecting that newer accelerators and lower-precision arithmetic both deliver dramatically more work per second. BF16 and FP16 mixed precision roughly quadruple throughput over FP32 full precision on the same hardware, which is why almost every modern training pipeline uses mixed precision by default. The table below lists the per-GPU tokens-per-second assumptions used by this tool.

GPU FP32 BF16 / FP16 Cost/hr
NVIDIA H1004,00016,000$5.00
NVIDIA A100 80GB2,0008,000$3.50
NVIDIA A100 40GB1,5006,000$2.50
NVIDIA V1001,0003,000$1.50
RTX 40901,5006,000$1.00
RTX 30908003,000$0.80

These are deliberately conservative, planning-grade numbers for a 7B reference model. The aggregate throughput shown in the result is the per-GPU figure scaled by your model size, your GPU count, and the efficiency factor. Because throughput sits in the denominator of the time formula, anything that raises it — a faster GPU, a lower precision, more GPUs, or a smaller model — cuts training time proportionally. Switching from FP32 to BF16 alone can shrink a multi-day run into a single day on the same hardware.

Multi-GPU Scaling and Efficiency

Adding GPUs speeds up training, but not perfectly. In an ideal world, doubling the number of accelerators would halve the training time, a property called linear scaling. In practice, distributed training spends time synchronizing gradients across devices, and that communication overhead grows as the cluster gets larger. The estimator models this with an efficiency factor that starts at 100% for a single GPU and falls by three percentage points for each additional GPU, never dropping below a 70% floor.

Concretely, a single GPU runs at 100% efficiency, 8 GPUs run at about 79%, and 16 or more GPUs are pinned to the 70% floor. This means the aggregate throughput from a large cluster is always somewhat less than the simple sum of its parts. The effect is visible in the result panel as the "Multi-GPU Efficiency" percentage, and it is why throwing more hardware at a problem yields diminishing returns past a certain point. Real-world scaling depends heavily on interconnect bandwidth — NVLink and InfiniBand clusters scale far better than commodity PCIe setups — so treat the efficiency figure as a reasonable middle-of-the-road estimate rather than a guarantee.

The practical takeaway for distributed training planning is to balance speed against cost. Because the hourly cost rises linearly with GPU count while the speedup is sublinear, the cost of a training run is fairly stable as you add GPUs — you mostly trade money-now for time-saved. If a deadline is the constraint, more GPUs finish the job sooner at a modest efficiency penalty. If the budget is the constraint and the schedule is flexible, a smaller, cheaper cluster of consumer cards can deliver nearly the same total cost over a longer wall-clock window.

Chinchilla-Optimal Data and Cost Planning

How many tokens should you actually train on? The DeepMind Chinchilla study found that for compute-optimal training, the dataset should contain roughly 20 tokens per parameter. This estimator applies that rule directly: it computes a Chinchilla-optimal target of model parameters times 20 and tells you whether your configured dataset falls within 10% of that target. A 7B model, for example, is compute-optimal at around 140 billion tokens.

The Chinchilla flag is a guardrail against two common mistakes. Undertraining — using far fewer than 20 tokens per parameter — leaves model quality on the table because the network never sees enough data to fill its capacity. Overtraining beyond the optimum is not wrong, and many deployed models train past Chinchilla to squeeze out extra quality, but it costs proportionally more compute for diminishing gains. Seeing the optimal token count next to your own dataset size helps you decide whether to gather more data, prune your corpus, or proceed as configured.

On the cost side, the estimator multiplies an hourly per-GPU rental rate by the number of GPUs to get an hourly fleet cost, then multiplies by the estimated training hours for a total cloud cost estimate. These rates approximate on-demand cloud pricing and can be cut substantially with spot or reserved instances. Because cost equals hourly rate times hours, and hours fall as throughput rises, the cheapest configuration is often not the cheapest GPU — a fast H100 that finishes in a third of the time can undercut a slow card billed for three times as long. Run a few combinations through the LLM training cost estimate to find the sweet spot for your model size, dataset, and deadline before you commit real budget.

Chinchilla-Optimal Tokens and Cloud Cost

chinchillaOptimal = params x 20 | totalCost = (gpuCost x gpus) x totalHours

Where:

  • chinchillaOptimal= Compute-optimal dataset size in tokens for the chosen model
  • params= Model parameters = modelSize (billions) x 1e9
  • gpuCost= On-demand cloud rental rate per GPU per hour (e.g. H100 = $5.00, A100-80GB = $3.50)
  • gpus= Number of GPUs in the cluster
  • totalHours= Estimated training duration in hours from the throughput formula

Worked Examples

7B Model on 8x A100 80GB in BF16

Problem:

Train a 7B model on a 1-billion-token dataset using 8 A100 80GB GPUs in BF16. How long and how much?

Solution Steps:

  1. 1Size multiplier: sqrt(7e9 / 7e9) = 1, so base throughput stays 8,000 tokens/sec per GPU.
  2. 2Efficiency for 8 GPUs: max(0.7, 1 - (8 - 1) x 0.03) = max(0.7, 0.79) = 0.79.
  3. 3Adjusted throughput: 8,000 x 1 x 8 x 0.79 = 50,560 tokens/sec.
  4. 4Time: 1,000,000,000 / 50,560 = 19,778 sec = 5.49 hours; cost = ($3.50 x 8) x 5.49 = ~$154.

Result:

About 5.5 hours of training for roughly $154 in cloud GPU cost.

28B Model on 4x H100 in BF16

Problem:

Train a 28B model on 2 billion tokens using 4 H100 GPUs in BF16.

Solution Steps:

  1. 1Size multiplier: sqrt(7e9 / 28e9) = sqrt(0.25) = 0.5, halving per-token speed.
  2. 2Efficiency for 4 GPUs: max(0.7, 1 - (4 - 1) x 0.03) = 0.91.
  3. 3Adjusted throughput: 16,000 x 0.5 x 4 x 0.91 = 29,120 tokens/sec.
  4. 4Time: 2,000,000,000 / 29,120 = 68,681 sec = 19.08 hours; cost = ($5.00 x 4) x 19.08 = ~$382.

Result:

About 19.1 hours of training for roughly $382 in cloud GPU cost.

Single RTX 4090, 7B Model, FP32

Problem:

Train a 7B model on 500 million tokens using one RTX 4090 in FP32.

Solution Steps:

  1. 1Size multiplier: sqrt(7e9 / 7e9) = 1; base FP32 throughput for RTX 4090 = 1,500 tokens/sec.
  2. 2Efficiency for 1 GPU: 1.0 (no multi-GPU overhead).
  3. 3Adjusted throughput: 1,500 x 1 x 1 x 1.0 = 1,500 tokens/sec.
  4. 4Time: 500,000,000 / 1,500 = 333,333 sec = 92.6 hours; cost = ($1.00 x 1) x 92.6 = ~$93.

Result:

About 92.6 hours (3.9 days) of training for roughly $93 in cloud cost.

Tips & Best Practices

  • Enable BF16 mixed precision whenever your hardware supports it; it roughly quadruples throughput over FP32 at minimal quality cost.
  • Compare total cost, not just hourly rate: a fast H100 that finishes in a third of the time can beat a cheap card billed three times longer.
  • Aim near the Chinchilla target of 20 tokens per parameter to avoid undertraining without overspending on compute.
  • Remember multi-GPU efficiency drops as you add GPUs; past 16 GPUs the tool floors scaling at 70%, so check whether more hardware is worth it.
  • Use spot or preemptible instances for fault-tolerant runs with checkpointing to cut the cloud cost estimate substantially.
  • Profile a short run on your real code to calibrate the estimate, since data loading and architecture can shift throughput by a factor of two.
  • If you face a deadline, add GPUs to finish sooner; total cost stays fairly flat because speedup is sublinear while hourly cost rises linearly.
  • Larger models scale by roughly the square root of the size ratio, so doubling parameters does not double training time at fixed token count.

Frequently Asked Questions

It is a planning-grade approximation, typically accurate within a factor of about two. Real throughput depends on data loading, model architecture, optimizer, interconnect bandwidth, and software stack, none of which are fully modeled here. Use the estimate to size a cluster and budget, then refine it with a short profiling run on your actual code.
Bigger models have more weights, so each token requires more floating point operations to process in both the forward and backward passes. The estimator captures this with a square-root size multiplier relative to a 7B reference, so a 28B model runs at roughly half the per-token throughput of a 7B model. That is why scaling up model size increases training time even when the token count stays fixed.
No. Distributed training has communication overhead, so doubling the GPU count yields less than double the speed. The tool models this with an efficiency factor that drops three points per added GPU and floors at 70%, meaning large clusters give diminishing returns. Fast interconnects like NVLink and InfiniBand scale better than commodity PCIe setups.
DeepMind's Chinchilla research found that compute-optimal training uses roughly 20 tokens per model parameter. This calculator computes that target and flags whether your dataset is within 10% of it. A 7B model is compute-optimal at around 140 billion tokens, so far fewer means undertraining and far more means spending extra compute for smaller quality gains.
Mixed precision, usually BF16, is the default for modern training because it roughly quadruples throughput over FP32 while preserving stability through full-precision master weights. BF16 has a wider dynamic range than FP16 and is preferred on hardware that supports it, such as A100 and H100. FP32 is only needed for numerically sensitive workloads where stability outweighs speed.
The estimator multiplies a per-GPU hourly rate by the number of GPUs to get an hourly fleet cost, then multiplies by the estimated training hours. The rates approximate on-demand cloud pricing and can be cut significantly with spot or reserved instances. Because a faster GPU finishes sooner, the cheapest total cost is often not the cheapest hourly card.

Sources & References

Last updated: 2026-06-05

💡

Help us improve!

How would you rate the Training Time Estimator?

<>

Editorial Note

MyCalcBuddy Editorial Team

This page is maintained as an educational calculator reference.

Source

Formula Source: Standard Mathematical References

by Various

UpdatedLast reviewed: May 2026
CheckedFormula checks are based on standard references and internal QA review.