Skip to content

Commit 2cbd4c0

Browse files
committed
add validation to dpo_beta
1 parent 0ea183f commit 2cbd4c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/together/resources/finetune.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ def create_finetune_request(
183183
)
184184
train_on_inputs = "auto"
185185

186+
if dpo_beta is not None and training_method != "dpo":
187+
raise ValueError("dpo_beta is only supported for DPO training")
188+
186189
lr_scheduler: FinetuneLRScheduler
187190
if lr_scheduler_type == "cosine":
188191
if scheduler_num_cycles <= 0.0:

0 commit comments

Comments
 (0)