LearnCost and ROIUpdated 26 Oct 20264 min read

What Does It Cost to Fine-Tune a Small Language Model?

distil labs bills model building pay as you go: each job is priced from the tokens it processes, at the price tier of the model that runs it. The rates, a worked example, and the configuration parameters that move the total.

What Does It Cost to Fine-Tune a Small Language Model?

About $30 for a first model in the worked example below, and a new account on distil labs starts with $50. Building a model is pay as you go from a prepaid balance: each job is priced from the tokens it processes, at the price tier of the model that runs it. The rates are on the pricing page, and --dry-run prices a job before you start it.

What does distil labs charge for?

Each job that runs a model, charged when you submit it:

Job Charged for Priced at the tier of
Teacher evaluation The tokens in the test set The teacher
Relabeling traces The tokens in the traces, once per teacher The teacher
Synthetic data generation The rows it generates, at the average length of your rows The teacher
Training The tokens in the train set, times the number of epochs The student
Deployment One charge per deployment The student

Uploads, downloads and inference endpoints are free. Every teacher and student has a tier, low, medium or high, and larger models and thinking variants sit in the higher ones. The teacher’s tier sets the price of everything that calls the teacher; the student’s tier sets the price of training and deployment.

What does a first model cost?

Here is one worked example, with the rates from the pricing page and a medium-tier teacher and student. The row counts and lengths are assumptions, so read it as the shape of the bill rather than a quote.

Job Volume Rate Cost
Teacher evaluation 200 test rows × 500 tokens = 0.1M tokens $4 per 1M $0.40
Synthetic data generation 10,000 rows × 500 tokens = 5M tokens $4 per 1M $20.00
SFT training 5M train tokens × 4 epochs = 20M tokens $0.25 per 1M $5.00
Deployment 1 $5 each $5.00
Total about $30

Generation is the largest line, and it’s teacher inference rather than student training. Most of what you pay for is the big model writing data, not the small model learning from it. With a low-tier teacher the same generation costs $5; with a high-tier one, $60.

What drives the cost?

Configuration, and mostly the generation stage. Every value below is a documented default from the config reference.

Parameter Default Effect on the bill
generation_target 10,000 Generation is priced per generated row, the dominant lever
teacher_model_name n/a Sets the tier for evaluation, relabeling and generation
num_train_epochs 4 Training scales linearly with it
student_model_name n/a Sets the tier for training and deployment
rlvr_dataset_size 0.0 Above zero, that share of the train set is priced at the higher RLVR rate

Halve the generation target and you roughly halve the largest line. Moving the teacher down a tier cuts every teacher job by the same factor, which is worth checking against teacher evaluation before you commit to the bigger model.

Does a bigger student cost more to train?

Yes, through its tier, but less than you’d expect, because training is the smaller part of the bill. A high-tier student costs five times a low-tier one per training token, which in the example above is $10 rather than $2, next to $20 of generation.

Two things keep training cheap. Adapter-based training only updates a small set of parameters: LoRA freezes the base model and trains low-rank matrices instead, and QLoRA goes further by holding the base in 4-bit while adapters stay in higher precision. Its authors fine-tuned a 65B model on a single GPU in 24 hours. And the synthetic data generation stage is identical regardless of student size.

So moving from a 1B student to a 4B one changes the fine-tuning stage, not the generation stage. What size model do you need covers choosing, and LoRA vs full fine-tuning covers the adapter trade-off.

How do you get a firm number?

Add --dry-run to the command that starts a job. It prints the price and your balance without starting anything, and the price it shows is what you’re charged. The billing docs list the commands that take it.

A single model is a one-off, but production models are retrained as data drifts, so the number that belongs in a business case is the cost per retrain times retrains per year. Calculating the ROI of a task-specific model folds that in.

The cheapest way to get a real figure is to build the first model on the $50 a new account starts with: you get downloadable weights and a measured accuracy number, which is enough to decide whether to go further. For anything at volume, on-premise, or air-gapped, pricing is custom, so get in touch. And if you have no GPU of your own at all, fine-tune an LLM without a GPU describes the managed path these figures apply to.

Sources

More in Cost and ROI

All Cost and ROI articles
← All learn articles

Build your first specialist model

Start on the platform today, or talk to us about your use case.