# Fine-tuning infrastructure: hosted fine-tuning APIs vs running your own

> The three ways to run LLM fine-tuning, from hosted APIs and training-as-a-service to your own GPUs, with the use cases and trade-offs of each.

Published 2026-11-27 by BeeldoLabs Team · https://beeldolabs.com/blog/fine-tuning-infrastructure-api

**Fine-tuning infrastructure** is everything needed to turn your examples into a working custom model: data storage, GPUs, training code, evaluation, and the serving layer that answers requests afterwards. You can rent most of it through an API, or run it yourself. The right choice depends less on training and more on where the model needs to live once it's trained.

There are three common setups.

## Option 1: Hosted fine-tuning APIs

Model providers such as OpenAI, Google (Vertex AI), and Amazon (Bedrock) let you fine-tune some of their models through an API. You upload a dataset of examples, start a job, and receive a model ID that you call like any other model.

**Use cases**

- Testing whether fine-tuning helps at all, with minimal setup
- Teams already standardised on that provider's models
- Formatting, tone, and classification tasks on moderate volume

**Trade-offs**

- The weights stay with the provider; you can't take the model elsewhere
- Inference pricing for fine-tuned models can differ from the base model, and some platforms require dedicated capacity to serve them
- You depend on the provider's model lifecycle: when a base model is retired, plan to retrain on its successor

## Option 2: Training-as-a-service for open-weight models

A middle layer of platforms runs training jobs on open-weight models (families like Llama, Qwen, Mistral, and Gemma) for you. Some, such as Together AI and Fireworks AI, offer managed fine-tuning plus hosted inference. Others expose lower-level training primitives as an API, such as Thinking Machines' Tinker, so you write the training loop while they run the GPU cluster. General-purpose GPU platforms like Modal let you run your own training code without managing machines.

**Use cases**

- You want to own the resulting weights or adapters
- You need models or methods the big providers don't offer
- You don't want to operate a GPU cluster

**Trade-offs**

- Data still leaves your environment during training
- More choices to make: base model, method, hyperparameters, serving

## Option 3: Your own GPUs

You rent GPUs from a cloud or GPU provider, or use your own hardware, and run open-source tooling yourself:

- **Training:** Hugging Face TRL and PEFT, Axolotl, Unsloth, or PyTorch's torchtune
- **Methods:** LoRA and QLoRA for parameter-efficient tuning; full fine-tuning when you need it and can afford it
- **Serving:** inference engines such as vLLM, SGLang, or Hugging Face TGI, many of which expose an OpenAI-compatible API

**Use cases**

- Data can't leave your cloud account or premises (regulated industries, strict client contracts)
- Very high inference volume, where a dedicated small model is far cheaper per task
- Many task-specific adapters on one base model. vLLM, for example, can serve multiple LoRA adapters from a single deployment

**Trade-offs**

- You own uptime, scaling, security patches, and GPU utilisation
- Idle GPUs cost money; batch workloads and autoscaling matter

## Comparing the options

| | Hosted fine-tuning API | Training-as-a-service | Your own GPUs |
| --- | --- | --- | --- |
| Time to first model | Hours | Hours to days | Days |
| Own the weights | No | Usually yes | Yes |
| Data leaves your environment | Yes | Yes | No |
| Choice of base model | Provider's models | Wide (open-weight) | Any |
| Ops burden | Lowest | Low to medium | Highest |
| Best at high volume | Sometimes | Often | Usually |

## Infrastructure isn't the hard part

Teams often spend weeks comparing GPU prices, then discover the real work lies elsewhere:

1. **Evaluation.** A held-out test set from real traffic, scored automatically, run on every model version. Without it you can't tell whether a new model is better.
2. **Serving.** Latency, throughput, autoscaling, and a fallback when the tuned model errors.
3. **The feedback loop.** Human corrections from production flow back into the dataset so the next version improves.
4. **Versioning.** Datasets, training configs, model IDs or weights, and evaluation scores tracked together.

<Callout title="A sensible default">
Prototype with a hosted API to learn whether fine-tuning helps your task. If it does, and you need ownership, privacy, or lower cost at volume, move to an open-weight model you can host, keeping the same evaluation set so the comparison is fair.
</Callout>

## Related reading

- [API key vs fine-tuned model endpoint](/blog/api-key-vs-fine-tuned-model-endpoint): how credentials and endpoints fit together in each setup
- [LLM fine-tuning services](/blog/llm-fine-tuning-services): what a full engagement includes and what drives cost
- [API or fine-tuned model? How to choose](/blog/api-vs-fine-tuning): whether to fine-tune in the first place

If you want help choosing and running the stack, our [LLM fine-tuning service](/services/llm-fine-tuning) covers dataset preparation, training, evaluation, and private deployment, and you keep the weights.

<CTA text="Planning a fine-tuning project?" />
