Resources/Model training/What happens during training

Concept

How training is billed

Most managed fine-tuning is billed per token processed: tokens in the training file times epochs times a price. Jobs on rented GPUs are billed by time instead. Using the model afterwards is a separate cost.

Chapter 64 min read3 references

The main billing models

BilledFormulaTypical for
Per training tokenTokens in the training file × epochs × price per tokenMost managed fine-tuning services
Per GPU timeRuntime × hourly rate × number of GPUsJobs on rented GPUs, usually open models
Per training hourHours × a (high) hourly rateSome hosted reinforcement fine-tuning
Per inference tokenInput and output tokens × the model's priceEvaluations, judges, teacher models, test chats
Per training token
2,000,000tokens in the training file×3epochs=6,000,000billed training tokens×$3.00per million tokens (example)=$18.00training cost
Per GPU time
45 minutesjob runtime×$1.20per GPU-hour (example)=$0.90training cost
The two common ways training is billed, with illustrative prices. Per-token pricing is known before the job starts, once the number of epochs is fixed. GPU pricing depends on how long the job runs, which depends on model size, data size and method.

Per-token training

Managed fine-tuning services count the tokens in your training file and charge for every token the training processes. Every epoch processes the whole file again, so the bill is the file's tokens times the number of epochs times the price, usually quoted per million tokens. Read the price list closely: some services also charge for validation tokens, apply a minimum charge per job, price preference tuning higher than supervised training, or charge a monthly fee to store the trained model.

The two formulas
per training token:  cost = tokens in the training file × epochs × price per token
per GPU time:        cost = runtime in hours × hourly rate × number of GPUs
Estimating a per-token job
  1. Data: 1,500 conversations averaging 1,200 tokens each after preparation: 1,800,000 tokens.
  2. Epochs: 3, so 5,400,000 training tokens are processed.
  3. Price: at an example price of $3.00 per million training tokens, 5.4 × $3.00 = $16.20.
  4. With Auto epochs: had the provider chosen 2 or 4 epochs, the same job would cost $10.80 or $21.60. That spread is why an up-front figure is an estimate.
  5. Token count: the provider counts with its own tokenizer, so an estimate made from text length can be a few percent off in either direction.

GPU-time training

When training runs on rented GPUs, which is typical for open models, you pay for time: the job's runtime times the GPU's hourly rate, times the number of GPUs. Runtime grows with model size, the number of tokens, the epochs and the method. Methods that generate text during training, such as on-policy distillation and reinforcement learning, spend much of their time writing answers token by token, which makes them slower per example than supervised training. A larger model may also need a bigger GPU, or several, at a higher hourly rate.

Estimating a GPU job
  1. Job: LoRA fine-tuning of a small open model that runs for 45 minutes on one GPU.
  2. Rate: at an example $1.20 per GPU-hour, 0.75 h × $1.20 = $0.90.
  3. A model twice the size may need a GPU with more memory at a higher rate, and also runs longer: the two factors multiply.
  4. Overhead counts: starting up, loading the model and saving the result are usually part of the billed time, which matters most on short jobs.

What else costs money

  • Evaluation: generating answers from the base and tuned models, and a judge model scoring them, is billed per token.
  • Teacher models in distillation: the teacher's answers are billed per input and output token, on top of the student's training.
  • Serving: shared (serverless) capacity bills per token used; a dedicated deployment bills per hour while it exists, even when idle.
  • Storage: some providers charge to keep trained models or uploaded files.

Every cost figure is only as good as what it rests on, which is why each one carries a state — Final, Estimated, Pending or Not billed — saying whether it is the provider's own figure, the estimate made at the start, a job still running, or a job stopped before anything was charged.

How to keep it down

  • Clean before you train. Duplicates, error replies and over-long conversations all add billed tokens without adding signal.
  • Start small. A first run on a subset, or with fewer epochs, shows whether the approach works before you pay for the full job.
  • Use the smallest base model that passes your evaluation. Training and serving both get cheaper.
  • Prefer LoRA on open models: less memory, smaller GPUs, faster runs.
  • Delete dedicated deployments when testing is done; they bill by the hour.

Common mistakes

  • Forgetting that epochs multiply the bill: four epochs cost four times one.
  • Budgeting only for training, then leaving a dedicated deployment running for days.
  • Comparing prices per token across providers without comparing their epochs, minimum charges and storage fees.
  • Training on uncleaned data and paying for tokens that only teach noise.
  • Treating an up-front estimate as a quote. The provider's own token count and chosen epochs decide the final figure.

References and further reading

External sources open in a new tab.

  1. 01Amazon Bedrock PricingAmazon Web Services · aws.amazon.comA provider price list that spells out tokens trained as corpus tokens × epochs, plus storage and hourly pricing.
  2. 02PricingTogether AI · together.aiPer-token fine-tuning prices by model size, with minimum charges and separate preference-tuning rates.
  3. 03GPU memory usageHugging Face Transformers docs · huggingface.coWhy model size decides which GPU, and so which hourly rate, a job needs.

Turn weeks of expert work into minutes

See how Scalata fits your team, your data, and your controls.