Skip to content
All topics

Domain

Fine-tuning

When fine-tuning beats prompting or retrieval, and how to prepare data, train, evaluate and deploy tuned models.

0 of 10 articles published. Topics are listed in reading order: each comes after the topics it builds on.

Deciding to fine-tune

Whether fine-tuning is the right tool for the problem.

  1. What fine-tuning changes in a modelComing soon

    Fine-tuning shapes format, style and narrow skills; it is a poor way to add facts that change.

    Fundamentals · Intermediate

  2. When to fine-tune instead of prompting or retrievalComing soon

    Exhausting prompting and retrieval first, and the signals (cost, latency, consistency) that justify tuning.

    Comparison · Advanced

Training data

Preparing the examples a tuned model learns from.

  1. Preparing a fine-tuning datasetComing soon

    Collecting, formatting and splitting examples into training, validation and held-out test sets.

    Implementation · Advanced

  2. Data quality for fine-tuningComing soon

    Deduplicating, fixing labels, balancing cases and removing personal data, since the model copies its examples.

    Operations · Advanced

  3. Synthetic training dataComing soon

    Generating examples with a stronger model, filtering them, and the licensing and collapse risks involved.

    Advanced engineering · Production

Training methods

The techniques used to adapt a model.

  1. Parameter-efficient fine-tuning with LoRAComing soon

    Training small adapter weights instead of the whole model, and why that cuts memory and cost.

    Fundamentals · Advanced

  2. Fine-tuning hyperparameters and overfittingComing soon

    Epochs, learning rate and batch size, reading loss curves, and spotting overfitting early.

    Configuration · Production

  3. Preference tuningComing soon

    Training from chosen-versus-rejected pairs to shape behaviour, and how it differs from supervised tuning.

    Advanced engineering · Principal / Architect

Evaluating and shipping tuned models

Proving a tuned model is better, then running it.

  1. Evaluating a fine-tuned modelComing soon

    Comparing against the base model and the best prompt on held-out data, and checking general skills didn't regress.

    Operations · Production

  2. Serving fine-tuned models and adaptersComing soon

    Hosting tuned models or many adapters on one base model, and versioning them like code.

    Operations · Production