Skip to content

Commit bddb4d8

Browse files
committed
add validation to dpo_beta
1 parent 458270f commit bddb4d8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/together/resources/finetune.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ def create_finetune_request(
171171
)
172172
train_on_inputs = "auto"
173173

174+
if dpo_beta is not None and training_method != "dpo":
175+
raise ValueError("dpo_beta is only supported for DPO training")
176+
174177
lr_scheduler: FinetuneLRScheduler
175178
if lr_scheduler_type == "cosine":
176179
if scheduler_num_cycles <= 0.0:

0 commit comments

Comments
 (0)