Only some base models support Direct Preference Optimization.
PREFERENCE DATA
DPO trains only on a Preference dataset, and the other training methods don’t accept one. Each row holds the shared conversation inmessages, which can have one turn or several, the preferred response in chosen, and the other response in rejected:
messagesis a non-empty list of turns. It contains at least one user message with text, and it ends with a user or a tool message.chosenandrejecteddiffer, and each contains exactly one assistant message.- An assistant response may contain text, tool calls, or both. Tool calls also need top-level
toolsdefinitions, and theirargumentsmust be a JSON-encoded object string.
OTHER FORMATS YOU CAN UPLOAD
When you upload a file, Oumi converts common Hugging Face TRL preference formats to the format above. These include rows with string fields:prompt, where chosen and rejected hold the same conversation and differ only in the final assistant message:
START A DPO JOB
Follow Train a model, and selectDirect Preference Optimization as the training method. Select a Preference dataset as the training dataset, and optionally another as the validation dataset. The Preference Settings section holds the DPO settings below.