Define the task and success metrics; build a baseline with prompting and measure it.
Collect and clean data, split into train, validation and test sets, and check for leakage and duplicates.
Choose the base model and method (full, LoRA or QLoRA), apply the chat template, mask the loss to the response tokens, and set hyperparameters.
Train with logging, watch training and validation loss, save checkpoints, then evaluate on the held-out test set and a regression suite for general abilities and safety.
Deploy behind a feature flag or canary, monitor quality, and iterate by adding failure cases to the data.
Loading…