What the pipeline is
Fine-tuning is rarely a single action. A useful result needs the right examples, prepared in the right format, trained with sensible settings, and then checked against the model you started from. Scalata breaks this into stages, each of which takes the output of the previous one and produces something you can open and inspect.
- 01Sessionspick chats
- 02Datasetcollect examples
- 03Providerwhere it trains
- 04Data prepclean + convert
- 05Trainrun the job
- 06Evaluateprove it improved
- 07Test chattry it yourself
- 08Useput it to work
The stages, one by one
| Stage | What goes in | What comes out |
|---|---|---|
| Sessions | Your chats in Scalata, or chats imported from other apps | The conversations to learn from |
| Dataset | Selected chats, synthetic or imported examples, optional documents, and the replies chosen as targets | A frozen snapshot of examples |
| Provider | Where the model will be trained and served | A platform and the models it offers |
| Data prep | A dataset and cleaning settings | Cleaned, redacted, split JSONL files in the provider's format |
| Train | Prepared files, a base model, a method and settings | A trained model, its loss curves and its cost |
| Evaluate | The trained model, its starting model and held-out questions | Side-by-side answers, judge scores and a win rate |
| Test chat | A trained model | A temporary deployment you can talk to |
| Use | A model that passed evaluation | The model at work in Scalata (coming soon) |
Why every stage is a separate record
Each stage writes a record that later work does not change. A dataset is a copy of the chats, not a link to them. A data prep keeps the exact files it produced. A training run keeps the prep it used, its settings and the price quoted when it started. That makes results reproducible — months later you can still say which chats, which cleaning settings and which hyperparameters produced a given model — and makes comparisons fair, because two runs trained from the same prep really did see the same data.
It also lets you branch. One dataset can be prepared twice with different settings, one prep can train several models, and one trained model can be the starting point for another run.
Where problems usually come from
Disappointing results usually trace back to the early stages rather than to the training settings:
- Wrong or inconsistent targets in the dataset — the model learns them faithfully.
- Nothing held out in data prep, so the evaluation measures memory instead of skill.
- A mismatch between training and use — a different system prompt, or real questions that look nothing like the training chats.
- Several changes at once between runs, so you cannot tell which one helped.
- Sessions → Dataset: 400 support chats are reviewed; 320 contain replies good enough to be targets.
- Provider → Data prep: cleaning removes error replies and duplicates, personal data is redacted, 10% of conversations are kept aside as a test set for evaluation, and 10% of the rest are held out for validation.
- Train: supervised fine-tuning with Auto settings, as a baseline.
- Evaluate: the trained model and the base model answer the held-out test questions. A judge prefers the trained model on most of them, and its reasons point to a weakness with billing questions.
- Next round: more billing chats go into a new dataset, and the cycle repeats. Only one thing changed, so the next evaluation shows whether it helped.
Common mistakes
- Tuning training settings before checking the dataset.
- Changing the dataset, the prep settings and the hyperparameters in the same run.
- Skipping evaluation because the training loss went down.
- Deleting old runs instead of archiving them, which loses the record of what was tried and why it lost.
References and further reading
External sources open in a new tab.
- 01Datasheets for DatasetsGebru et al., 2018 · arXiv · arxiv.orgWhy every dataset should come with a record of where it came from and how it was made.
- 02Model Cards for Model ReportingMitchell et al., 2018 · arXiv · arxiv.orgThe same idea for trained models: document what they were trained and evaluated on.
- 03Supervised fine-tuningOpenAI API docs · developers.openai.comA hosted provider's version of the same pipeline: prepare data, train, evaluate.
- 04Customize your model to improve its performance for your use caseAmazon Bedrock User Guide · docs.aws.amazon.comHow another provider structures customisation jobs.