Skip to content
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

Merged
merged 8 commits into from
Feb 20, 2025
Merged

Finetune fix #7629

merged 8 commits into from
Feb 20, 2025

Conversation

dilarasoylu
Copy link
Collaborator

No description provided.

@dilarasoylu dilarasoylu requested a review from okhat January 31, 2025 23:41
@ratzrattillo
Copy link

i would highly appreciate a quick merge.
Currently finetuning is not possible and its one of the essential parts of dspy.

# 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
Copy link
Collaborator

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
Copy link
Collaborator

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,
Copy link
Collaborator

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

@okhat okhat merged commit b109e72 into main Feb 20, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants