Skip to content

Commit 7cd0109

Browse files
committed
Fix unbound variable
1 parent 8e1ee62 commit 7cd0109

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
@@ -219,6 +219,9 @@ def create_finetune_request(
219219
f"Parameter simpo_gamma was set to {simpo_gamma}. "
220220
"SimPO training detected. Reference logits will not be used."
221221
)
222+
else:
223+
dpo_reference_free=None
224+
222225
training_method_cls = TrainingMethodDPO(
223226
dpo_beta=dpo_beta,
224227
dpo_normalize_logratios_by_length=dpo_normalize_logratios_by_length,

0 commit comments

Comments
 (0)