Skip to content

Commit d19c3d5

Browse files
Update train_dpo load_state call to handle result (#65)
1 parent 22d3b2a commit d19c3d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tinker_cookbook/preference/train_dpo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def create_dpo_clients(
9797
)
9898
if load_state_path:
9999
# Load state into the training client
100-
training_client.load_state(load_state_path)
100+
training_client.load_state(load_state_path).result()
101101
logger.info(f"Loaded weights from {load_state_path}")
102102
# Create a sampling client for the reference model from the training client
103103
reference_client = training_client.save_weights_and_get_sampling_client("reference")

0 commit comments

Comments
 (0)