The same 1,500,000 tokens on each model
Each base model has its own training rate. The rates below are the live ones from the model catalog.
| Base model | Training per 1M tokens | Estimated cost |
|---|---|---|
| Qwen3.8 27B | $3.30 | $4.95 |
Worked scenarios
Three illustrative dataset shapes, to show how examples, length and epochs combine. They are arithmetic, not results; the cost column uses the live rate for Qwen3.8 27B.
| Dataset | Examples | Tokens each | Epochs | Training tokens | Estimated cost |
|---|---|---|---|---|---|
| Short classification or routing examples | 5,000 | 150 | 3 | 2,250,000 | $7.43 |
| Structured extraction from one-page documents | 2,000 | 1,200 | 2 | 4,800,000 | $15.84 |
| Multi-turn support conversations | 10,000 | 800 | 1 | 8,000,000 | $26.40 |
How this is calculated
- Training tokens = training examples × average tokens per example × epochs.
- Estimated cost = training tokens ÷ 1,000,000 × the model's training rate per 1M tokens.
This is the formula the Attempts console uses for its estimate, described under Self-Service. The rate comes from the same live price list as the model catalog, and amounts are rounded up to the cent. The difference is the token count: here you enter an average, while the console counts the tokens of your uploaded file with the selected model's tokenizer.
To find your average tokens per example, tokenize a sample of your examples with the base model's tokenizer and take the mean. If you only have character counts, the rule of thumb for English is about 4 characters per token (OpenAI Help Center); treat the result as a first approximation.
What this leaves out
- Tokenization differs by model. Attempts counts tokens with the base model's own tokenizer, including the chat formatting it adds to each example, so the real count can differ from an average you worked out by hand. See Self-Service.
- The training split. Attempts trains on the training split of an uploaded file, 70% of its groups; the validation and test splits are not trained on. Enter the number of examples that will be trained. See Self-Service.
- Evaluation. Scoring the trained model on held-out examples runs on a deployment, which is billed by the hour at its own rate. See Self-Service.
- Deployment and inference. Serving the trained model is priced per GPU hour for every hour the deployment runs, separately from training. See Pricing.
- Stopped and failed runs. A run that fails before training starts is not charged; one that fails later is charged only for tokens that were actually trained. Several attempts on the same data each cost their own tokens. See Pricing.
- The work around the run: preparing and labeling data, and repeating training with different settings.
- It is an estimate, not the charge. In the console the estimate is made from your real file; you pay for the tokens actually trained, and a run trains to the end once it starts.
FAQ
How do I work out how many tokens my fine-tuning dataset has?
Add up the tokens in every training example, then multiply by the number of epochs, because each epoch reads every example once. For an exact figure, count with the base model's own tokenizer, including the chat formatting around each example. For a first approximation in English, one token is roughly 4 characters; the ratio differs in other languages and for code or JSON.
How is the cost of a fine-tuning run calculated?
On Attempts, training is priced per 1M training tokens and each base model has its own rate. The estimated cost is the training tokens divided by 1,000,000, multiplied by that rate. This page uses the live rates the model catalog shows. The result is a planning estimate, not the charge: you pay for the tokens actually trained.
How many epochs should I enter?
Attempts accepts whole numbers from 1 to 20, and the default in the console is 1. More epochs cost proportionally more, because the model reads every example once per epoch. Start low, score the trained model on held-out examples, and add epochs only if the measured result improves.
Why will my real token count differ from this estimate?
Three reasons. Tokenizers differ between models, so the same text has a different token count on each. Training adds the model's chat formatting to every example, and those tokens are counted too. And Attempts trains on the training split of an uploaded file, 70% of its groups, not on every row. The console estimate is made from your real file with the selected model's tokenizer.
Does the estimate include evaluation, deployment or inference?
No. It covers the training tokens of one run. Deploying the trained model is priced separately per active GPU hour, and an evaluation runs on a deployment and uses its active GPU time. Data preparation and repeated runs are also outside this number.
Which kind of fine-tuning does this estimate apply to?
Supervised fine-tuning (SFT) with LoRA adapters on an open-weight base model, which is the method Attempts Self-Service offers. Preference tuning (DPO) is not available, and reinforcement learning is offered only through Expert Led engagements; this page does not estimate either.
Where to go next
- Model catalog and live training rates: Every base model with its live training rate per 1M tokens.
- Pricing: Pay as you go and Enterprise, for training and inference.
- Self-Service: How training and deployment work in the console, with links to the documentation.
- Fine-tuning dataset checker: Check a JSONL file against the dataset rules in your browser, with starter templates.
- How to fine-tune an open-weight LLM with LoRA and QLoRA: What an adapter is and how a training run is set up.
- The complete guide to LLM post-training: When training is worth doing, and what to try first.