-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finetune fix #7629
Finetune fix #7629
Conversation
i would highly appreciate a quick merge. |
# TODO(nit) Pass an identifier to the job so that we can tell the logs | ||
# coming from different fine-tune threads. | ||
|
||
key_to_job = {} | ||
for key, finetune_kwargs in finetune_dict.items(): | ||
lm = finetune_kwargs.pop("lm") | ||
# TODO: The following line is a hack. We shoul re-think how to free |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be checked
return program(**kwargs), dspy.settings.trace.copy() | ||
|
||
_, outputs = evaluator(wrapped_program, metric=wrapped_metric) | ||
_metric = metric if metric else lambda example, prediction: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this part removing the code from wrapped_program? It's there for a good reason. It avoid looping and calling the program twice.
@@ -35,7 +35,7 @@ | |||
}, | |||
{ | |||
"cell_type": "code", | |||
"execution_count": 1, | |||
"execution_count": null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a lot of changes to this file but I'm not sure if they're actually intentional
No description provided.