# Hosted Fine-Tuning API vs Self-Hosted Training

> When to upload your examples to a vendor's fine-tuning API, and when to train a model on your own GPUs, explained for your AI interview.

**In short:** A hosted fine-tuning API has the vendor train a copy of its model on your examples, and you call it through the vendor's service. Self-hosted training runs on your own GPUs, so your data and model files stay with you, but you carry the setup and the cost.

AI and LLM interview question Q310, Fine-tuning and adaptation. Intermediate, occasional (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/hosted-fine-tuning-api-vs-self-hosted-training

## Say it in 30 seconds

There are two ways to train a model on my own examples. The hosted way uploads them to a vendor, which trains a copy and gives me an ID to call. It is quick, but my data leaves my servers and the vendor sets the rules. Self-hosted training runs on my own GPUs, so the data and the trained files stay with us. It takes more setup. OpenAI is also closing its fine-tuning platform to new users, so for a new project I'd first check whether that route is open to me at all, then choose by data sensitivity and risk.

## Say it in 2 minutes

There are two ways to train a model on your own examples. The hosted way uses a vendor's fine-tuning service. You upload a file, the vendor trains a copy of its model on its hardware, and you get back an ID to call. It is the quickest start, but your data leaves your servers and the model usually runs only inside that service.

Self-hosted training means I run the job on my own GPUs, the chips that do the heavy maths, or on cloud machines I control. The data and the trained files stay with us. The cost is setup time, machines, and someone to keep the pipeline working. Methods like LoRA train a small add-on instead of the whole model, which keeps that cost down.

The hosted route has a timing risk too. OpenAI says it is winding down its fine-tuning platform. Its deprecations page says that from 15 December 2026 no organisation can create new self-serve fine-tuning jobs. For a new project, that route may not be open at all.

My rule is to build evals first, then try prompting and retrieval, and only then fine-tune. Sensitive records go to a self-hosted route. If you already have access, a quick test on public material can go hosted before the cutoff.

## What are the two routes, in plain words?

Fine-tuning means training an existing AI model a little more on your own examples, so it picks up your style, format or task. The real question is who runs that training.

Think of a hospital that wants its discharge notes in its own house style. It can send the job to an outside transcription firm, or train its own staff. The firm starts fast, but the notes leave the building. Training in-house takes longer to set up, and the records never leave.

The AI version: a claims team at a mid-size insurer wants summaries in its house format, built from 6,000 past cases. Those cases hold customer names and policy numbers. Whether the team can upload them decides the route.

- **Hosted API:** A vendor's service that runs the training on its own machines and keeps the trained model on its side.
- **GPU:** A graphics chip that does the heavy maths of training. You rent one by the hour or buy your own.
- **LoRA adapter:** A small add-on trained instead of the whole model, so it needs far less compute and storage.
- **Evals:** A fixed set of test cases, with the right answers, used to check whether a model is better.

## How does the hosted route work, and what does it cost you?

*Diagram, The same examples, two routes: The same examples can take either route. The hosted route sends them to a vendor, which trains a copy and gives back a model ID. The self-hosted route trains on your own GPUs, and you keep the files.*
1. The hosted route starts by sending your examples to a vendor.
2. The self-hosted route starts with the same examples, kept on your own machines.
3. The uploaded file goes into the vendor's training job.
4. You get back a model ID, and you call it through the vendor's service.
5. Your own GPUs run the training.
6. You keep the trained files and serve them yourself.

The hosted route means less setup for you. The vendor's hardware does the training, and OpenAI's guide breaks the job into four parts.

1. **Build the examples:** Collect real inputs and the reply you want for each. OpenAI suggests starting with 50 well-crafted examples and checking the results.
2. **Upload the file:** Send the examples to the vendor as a file, marked for fine-tuning.
3. **Start the job:** Pick a base model and the training method. The vendor trains a copy of it on your file.
4. **Test the model ID:** The finished job gives you a model ID. You call that ID through the vendor's service, then test it against your evals.

The trade-off is control. Your examples leave your servers, and the vendor's terms decide how long they are kept and what they can be used for. Two official lines show the range: OpenAI says its fine-tuning platform is closing, and Google says it won't use your data to train models without permission:

> "OpenAI is winding down the fine-tuning platform. The platform is no longer accessible to new users." (OpenAI)
>
> "Google won't use your data to train or fine-tune any AI/ML models without your prior permission or instruction." (Google Cloud)

The timetable is the vendor's too. OpenAI's deprecations page says that from 15 December 2026 no organisation can create new self-serve fine-tuning jobs. It already blocks organisations that have never run a fine-tuning job (from 7 May 2026) and those that have not run inference on a fine-tuned model in 60 days (from 2 July 2026). A model that already exists can keep serving until its base model is retired, so a finished model may outlast the service that trained it.

Hosted services bill by usage. Amazon Bedrock, for example, charges for training by the tokens processed, plus storage for the trained model.

## What does self-hosted training involve?

Self-hosting means you own every step. You pick an open model, get GPUs, write the training script, store the trained files, and serve the result. Most teams start from open-source libraries that do the heavy lifting.

Hugging Face's PEFT library is built for the small add-on approach. It says its methods train only a small number of extra model parameters, which cuts computational and storage costs while staying close to a full fine-tune. Its sibling library, TRL, supports a supervised fine-tuning trainer for language models.

Google's tuning guide makes the same trade. Parameter-efficient tuning is more resource efficient and cost effective, and it adapts faster on a smaller dataset. Full fine-tuning can reach higher quality, but it needs more compute to train and to serve.

> **Tip:** In an interview, name the hidden cost. Google's guide says full fine-tuning needs more computing power for both tuning and serving, so overall costs rise. Count serving in your estimate, not just training.

A worked example, with made-up numbers. The insurer's team strips names and policy numbers from the 6,000 cases first. It trains a LoRA adapter on a rented GPU inside its own cloud account. It holds back 200 cases to test the result against the base model. The training itself takes an afternoon. The real work is the redaction, the test set and the monthly bill for the server that keeps the model running.

- **GPUs:** Rented by the hour, or owned.
- **Storage:** For the training files and the trained weights.
- **Engineers:** For setup, checks and upgrades.
- **A server:** That keeps the model running for users.
- **Rework:** Part of the work again when the base model changes.

## Which route should you pick?

Ask three questions first: what is in the examples, how fast do you need a first test, and how long must the product run? Then use this rough guide.

- **Sensitive data: Self-host.** Records stay inside your own cloud account, and your team controls the files.
- **Quick first test: Hosted, only if you already have access.** OpenAI no longer accepts new users for fine-tuning, so check your access first. If you have it, send only public, non-sensitive examples.
- **Long-running product: Plan for a switch.** A vendor can retire a model or close its service. Keep your data and your evals so you can move.

Whatever you pick, start with evals and prompting. OpenAI puts it bluntly: "Good evals first!" Google's guide adds that more examples can help, but first check where the model makes mistakes.

### How would you choose for a bank's complaint letters?

A bank wants a model to draft replies to complaint letters. Each letter holds account details, and the bank's policy says customer data stays in its own cloud account.

- **Hosted API: Blocked by policy.** The letters would go to a third-party vendor's API, which the policy rules out before any terms are read.
- **Self-hosted: Fits the policy.** Training runs in the bank's account, with 300 past replies held back as the test set.

My answer: self-host. Then I say what it costs in machines and people, and show that the tuned model beats prompting on the same test set.

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] Two routes: the vendor trains your examples, or you train on your own GPUs.
- [ ] The trade-off: speed and ease against control of data and the model.
- [ ] What leaves your servers on the hosted route, and what you check first.
- [ ] Honest cost: GPUs, setup and upkeep, and why small add-ons like LoRA help.
- [ ] Vendor risk: services change, and OpenAI is closing self-serve fine-tuning.
- [ ] Evals first, then the route that fits the data and the risk.

**Common traps**

- Trap: "Hosted is always the cheap option." Better: Not always. Add up the training bill, storage and your team's time, then compare the total.
- Trap: "The vendor keeps my data private, so it's safe." Better: Check the terms first: how long data is kept, whether it trains anything, and where it is stored.
- Trap: "Self-hosting is free because the model is open." Better: The model file is free. The GPUs, storage, engineers and upkeep cost money.

## Can you spot the risk?

**Spot the risk:** A team plans its first tuning run this week. Which line is the risk?

A. Use 300 replies from our public help centre as the training set.
B. Upload 6,000 claim files with names and policy numbers, unredacted, today.
C. Hold back 200 cases, kept in our own storage, to test the result.
D. Compare the tuned model with the base model on the same test set.

**Answer:** B. Personal data goes to a vendor before anyone checks its terms or removes the names. Redact the files, read the contract for training and retention, and only then upload.

**Quick check:** A bank wants a model for complaint replies. Customer data must stay in the bank's own cloud account. Which route fits?

A. Hosted API with the vendor's default settings
B. Self-hosted training inside the bank's own cloud account
C. Upload the letters, then delete the copies a week later
D. A larger model, which is safer with customer data

**Answer:** B. Self-hosted training keeps the data and the trained files in the bank's account. A hosted route sends the examples to a vendor, which breaks that rule. A bigger model or a default setting doesn't change where the data goes.

## Can you answer these from memory?

**Flash cards**

- **What is a hosted fine-tuning API?** The vendor trains a copy of its model on your examples, and you call it through its service.
- **What is self-hosted training?** You train on your own GPUs and keep the data and the trained files.
- **Biggest risk of the hosted route?** Your data goes to the vendor, and the vendor can change or close the service.
- **Biggest cost of self-hosting?** Machines, setup and upkeep. The model file itself is free.
- **What is LoRA in one line?** A small add-on trained instead of the whole model, so it costs less.
- **What comes before any tuning?** Evals: a fixed test set that shows whether the tuned model is better.

## Likely follow-up questions

- Q281 Fine-tune vs RAG vs prompting: when to use which? https://designervenkat.online/interview/ai/fine-tuning-vs-rag-vs-prompting
- Q284 What is LoRA? https://designervenkat.online/interview/ai/what-is-lora
- Q285 What is QLoRA? https://designervenkat.online/interview/ai/what-is-qlora
- Q303 How do you serve many LoRA adapters? https://designervenkat.online/interview/ai/how-do-you-serve-many-lora-adapters
- Q308 Fine-tuning cost vs inference savings? https://designervenkat.online/interview/ai/fine-tuning-cost-vs-inference-savings
- Q309 Can fine-tuning weaken safety behaviour? https://designervenkat.online/interview/ai/can-fine-tuning-weaken-safety-behaviour

## Learn it in depth

- [Fine-tuning](https://designervenkat.online/learn/ai-engineering/fine-tuning)
- [RAG vs Fine-tuning](https://designervenkat.online/learn/ai-engineering/rag-vs-fine-tuning)
