Skip to content

Conversation

@leejianwoo-collab
Copy link
Contributor

fix: correct margin calculation in DPO training

Remove redundant dpo_beta multiplication in margin computation.
The chosen_rewards and rejected_rewards already include the dpo_beta
factor, so margin should not multiply by dpo_beta again.

This fix only affects logging metrics and does not impact training.

Fixes #21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect margin calculation in DPO cookbook

1 participant