Skip to content

Conversation

JamesSand
Copy link

In the compile function of MIPROv2, the parameters max_bootstrapped_demos and max_labeled_demos are intended to override the defaults and update the zeroshot_opt value.

However, in the main branch, zeroshot_opt is assigned before self.max_bootstrapped_demos and self.max_labeled_demos are updated. This makes the passed-in parameters ineffective.

This PR fixes the issue by moving the update of self.max_bootstrapped_demos and self.max_labeled_demos before assigning zeroshot_opt.

move "# Update max demos if specified" to the front of setting "zeroshot_opt" in MIPRO_v2 compile function
Copy link
Collaborator

@chenmoneygithub chenmoneygithub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@klopsahlong qq - do we expect to override the self.max_bootstrapped_demos at every call? maybe we should keep the attribute value unchanged?

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.

2 participants