forked from huggingface/trl
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DPO] add SLiC hinge loss to DPOTrainer (huggingface#866)
* add SLiC hinge loss * fix links * beta when loss is hinge is reciprocal of margin * fix tests * fix docs * doc strings * fix method name * raise error if loss_type is not correct * Update trl/trainer/dpo_trainer.py Co-authored-by: Leandro von Werra <[email protected]> * fix formatting --------- Co-authored-by: Leandro von Werra <[email protected]>
- Loading branch information
Showing
3 changed files
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters