Insight
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.
By BeeldoLabs Team ·
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:
- 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.
- Serving. Latency, throughput, autoscaling, and a fallback when the tuned model errors.
- The feedback loop. Human corrections from production flow back into the dataset so the next version improves.
- Versioning. Datasets, training configs, model IDs or weights, and evaluation scores tracked together.
Related reading
- API key vs fine-tuned model endpoint: how credentials and endpoints fit together in each setup
- LLM fine-tuning services: what a full engagement includes and what drives cost
- API or fine-tuned model? How to choose: whether to fine-tune in the first place
If you want help choosing and running the stack, our LLM fine-tuning service covers dataset preparation, training, evaluation, and private deployment, and you keep the weights.
Planning a fine-tuning project?
Discuss a workflowFrequently asked questions
What is a fine-tuning infrastructure API?
It's a service that lets you train a custom model by calling an API, uploading data, starting a job, and getting a model or weights back, while the provider runs the GPUs, scheduling, and storage. Some return a hosted model ID; others return weights you can serve anywhere.
When should I use a hosted fine-tuning API instead of my own GPUs?
Use a hosted API when you want to test fine-tuning quickly, your data can be processed by the provider, and you're happy serving the model on their platform. Run your own when you need full control of weights, data residency, or very high inference volume.
Do I need multiple GPUs to fine-tune an LLM?
Not usually for business tasks. Parameter-efficient methods like LoRA and QLoRA let you fine-tune small and mid-sized open-weight models on a single modern GPU. Large models and full fine-tuning need multi-GPU setups.
What's the hardest part of fine-tuning infrastructure?
Usually not training. It's evaluation, serving the model reliably at the right cost, and building the loop that turns production corrections into the next training set.
