Skip to content

Commit

Permalink
fix red CI
Browse files Browse the repository at this point in the history
  • Loading branch information
younesbelkada authored Jun 17, 2024
1 parent 50c4620 commit 4e23d95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions trl/trainer/cpo_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,4 @@ class CPOConfig(TrainingArguments):
def __post_init__(self):
if self.loss_type == "kto_pair":
raise ValueError("Support for kto_pair has been removed in CPOTrainer. Please use KTOTrainer.")
return super().__post_init__()
1 change: 1 addition & 0 deletions trl/trainer/dpo_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,4 @@ class DPOConfig(TrainingArguments):
def __post_init__(self):
if self.loss_type == "kto_pair":
raise ValueError("Support for kto_pair has been removed in DPOTrainer. Please use KTOTrainer.")
return super().__post_init__()

0 comments on commit 4e23d95

Please sign in to comment.