By Team Edtoolkits · AI learning
Follow the winner, loser and reference probabilities in the router-support example.
Use the guide alongside the working tool.
Open DPO: Learning From Better-vs-Worse Pairs →Explore the lesson
Watch two arrows pull an answer up and push another down.
Pick one preferred and one rejected answer.
Train and compare with the starting model.
A comparison to try
Choose the clearer router answer as preferred and an unhelpful answer as rejected. Start from the reference scores and take an update. Compare the two chosen scores and the DPO loss before changing the pair.
Read the result
The update increases preference for the chosen winner relative to the rejected answer and reference. A falling loss shows success on that pair's objective; it does not evaluate every property of the answer.
A mistake to avoid
Preference data can reward the wrong thing. The four scripted replies and score updates do not constitute training a general assistant, and a preferred reply still needs factual and practical review.
Teaching model and privacy
A teaching toy: one question, four fixed answers and a single probability table. Real DPO changes the weights of a large language model using many thousands of pairs. Nothing leaves your browser.
Ready to apply this workflow?
Try DPO: Learning From Better-vs-Worse Pairs →Explore a related workflow
- Choose a course entry point and verify saved progress
Use prior knowledge to select a starting chapter while distinguishing local progress from an account or a qualification.
- AI Tokens: Inspect Pieces, Spaces and Stable Teaching IDs
Compare common words, rare words and numbers without using the playground as an exact provider counter.
- Inspect candidates before continuing text
Compare normalized next-word probabilities with the choices sampled from them.
- Choose complexity using held-out error
Compare training and test curves before calling a detailed fit an improvement.
Found unclear instructions or an unexpected result? Contact Team Edtoolkits.