Hosted Fine-Tuning Services

Fine-tune through a provider API or managed platform without managing GPUs, and evaluate the result against your baseline.

Intermediate · about 4 hours · difficulty 3/5

Learn first: Preparing Fine-Tuning Datasets

The fastest way to try fine-tuning is a managed service: upload a dataset, start a job, get back a model id you call like any other. OpenAI, Google (Vertex AI), AWS Bedrock, Together, Fireworks and others offer this for selected models.

Typical workflow

  1. Validate your JSONL with the provider's format checker.
  2. Upload training and validation files.
  3. Start a job with a base model and a few hyperparameters (epochs, learning rate multiplier). Defaults are usually a good start.
  4. Watch training and validation loss. Validation loss rising while training loss falls signals overfitting.
  5. Run your eval suite against the base model with your best prompt and the fine-tuned model. Only ship if it wins on the metrics you care about, including cost and latency.

Variants

  • Supervised fine-tuning for format, style and task skill.
  • Preference fine-tuning (such as DPO) to push toward preferred responses.
  • Reinforcement fine-tuning on some platforms, where a grader scores outputs and the model is optimized against it; useful for reasoning-heavy tasks with checkable answers.
  • Vision fine-tuning for image tasks on supported models.

Trade-offs

Managed services are easy but tie you to one provider, may cost more per token for custom models, and limit which base models you can use.

Good enough to move on

You have run one hosted fine-tuning job, compared it to a prompted baseline on a held-out set, and can explain whether it was worth it.

Key concepts

  • Uploading and validating data
  • Hyperparameters and epochs
  • Reading loss curves
  • Comparing against a prompted baseline
  • Preference fine-tuning (DPO)
  • Reinforcement fine-tuning

Mini project

Fine-tune a small hosted model to classify support tickets into 12 categories, then compare accuracy, cost per 1,000 tickets and latency against a large model with a few-shot prompt.

Check yourself

Training loss keeps falling but validation loss started rising after epoch 2. What does this mean and what do you change?

Free resources