Hosted fine-tuning and open-weight models
9 min read
Two routes to a tuned model
Hosted. You upload a training file, pick a base model from the provider's list and set a few options. The provider trains, then gives you a model name to call. You never see the weights, and the provider's terms decide what is stored, for how long and who can use it. Available models, formats and settings change often, so read the provider's current guide, such as OpenAI's fine-tuning guide, before you plan.
Open weights. You pick a model whose weights are published, as Choosing a base model explained, and train it on hardware you rent or own, using tools like those in LoRA in code. You get the tuned weights, or the adapter, and you decide where they run. The licence still applies. Open weight does not mean unrestricted use, and the Hugging Face licence notes explain how licences are recorded.
How they compare
Neither route wins on every point. Compare them on what matters to your project.
- Start-up effort. Hosted needs a data file and an API key. Open weights need hardware, drivers, a training stack and someone to maintain them.
- Control. With open weights you choose the method, precision and serving stack. Hosted limits you to the provider's options.
- Privacy. Hosted sends your data to a third party under its terms. Open weights can stay inside your network, though you then secure them yourself.
- Portability. A hosted tuned model usually cannot be exported. Open adapters can move between hosts, as long as you keep the base model version.
- Quality ceiling. The best hosted models may be stronger than any open model you can run. Test both on your task.
Where the money goes
Hosted tuning typically costs less to start and more per request. Self-hosting costs more to start and a fixed amount per month, and then less per request as volume grows. The program below compares the two with invented prices, so replace them with real quotes. The hosted model costs a fixed sum to train plus a price per request. The open-weight setup costs a one-off training run plus a monthly GPU server, which handles up to a stated number of requests before you need a second one.
import math
hosted_training = 72.0
hosted_per_request = 0.0018
gpu_training = 15.0
gpu_per_month = 1095.0
gpu_capacity = 5_000_000
def hosted(requests):
return hosted_per_request * requests
def open_weight(requests):
return gpu_per_month * max(1, math.ceil(requests / gpu_capacity))
print(f"one-off: hosted ${hosted_training:,.0f}, open weights ${gpu_training:,.0f}")
for requests in (10_000, 100_000, 600_000, 1_000_000, 10_000_000):
h, o = hosted(requests), open_weight(requests)
cheaper = "hosted" if h < o else "open weights"
print(f"{requests:>10,} requests a month: hosted ${h:>9,.0f} open ${o:>7,.0f} {cheaper}")
print(f"crossover near {gpu_per_month / hosted_per_request:,.0f} requests a month")It prints:
one-off: hosted $72, open weights $15
10,000 requests a month: hosted $ 18 open $ 1,095 hosted
100,000 requests a month: hosted $ 180 open $ 1,095 hosted
600,000 requests a month: hosted $ 1,080 open $ 1,095 hosted
1,000,000 requests a month: hosted $ 1,800 open $ 1,095 open weights
10,000,000 requests a month: hosted $ 18,000 open $ 2,190 open weights
crossover near 608,333 requests a monthBelow about 600 thousand requests a month, the hosted bill is lower, because an idle server still costs its full monthly price. Above it, owning the server wins, and the gap grows as volume rises. The model leaves out your engineering time, monitoring, security work and the cost of a failed run, all of which weigh against open weights at low volume. Evaluation and serving cost also differ from training cost, as Serving a fine-tuned model shows.
Moving between the two
A move needs three things to match: the data format, the tokeniser and the prompt or chat template. The training file layout from Formatting data for training often carries over, with changes to field names. Prompts do not always carry over, because a model tuned on one template can behave oddly on another. Keep your evaluation set independent of the provider, so you can run the same cases on both routes and compare.
Before you commit, check the data retention rules, who owns the tuned model, whether the model can be exported and which licences apply. Safety, licences and upkeep has the full checklist.
| Hosted | Open weights | |
|---|---|---|
| Start-up | Upload data, call an API | Set up hardware and a training stack |
| Control | Provider's options | Your choice of method and serving |
| Data location | Provider, under its terms | Where you choose |
| Portability | Usually no export | Adapters and weights move |
| Cost shape | Low start, per request | Higher start, mostly fixed |
What do open weights give you?
You consider self-hosting.
You choose where it runs, and you take on the work.
When does hosted tuning tend to cost less?
You expect 10,000 requests a month.
A server costs the same when it is idle.
What should an evaluation set be?
You compare two providers.
The same cases make the comparison fair.
Your reading position is saved
0 of 36 complete
Lesson complete
Hosted fine-tuning and open-weight models
Up next