Skip to content

Commit 24c5938

Browse files
committed
add validation to dpo_beta
1 parent 14ba59d commit 24c5938

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
@@ -175,6 +175,9 @@ def create_finetune_request(
175175
)
176176
train_on_inputs = "auto"
177177

178+
if dpo_beta is not None and training_method != "dpo":
179+
raise ValueError("dpo_beta is only supported for DPO training")
180+
178181
lr_scheduler: FinetuneLRScheduler
179182
if lr_scheduler_type == "cosine":
180183
if scheduler_num_cycles <= 0.0:

0 commit comments

Comments
 (0)