Skip to content

Conversation

isaacbmiller
Copy link
Collaborator

The zeroshot_opt option, which determines if the proposer should use demos or not, was being set before applying the compile time arguments passed into the .compile function

Fixes #8508

@isaacbmiller
Copy link
Collaborator Author

@codex review

)

# Update max demos if specified
initial_max_bootstrapped_demos = self.max_bootstrapped_demos
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should avoid updating instance attributes as much as possible. Can we update methods that rely on these attributes (e.g., _bootstrap_fewshot_examples) to receive them as arguments?

@isaacbmiller isaacbmiller force-pushed the isaac/mipro-few-shot-bug branch from 9e6d5df to 2e898bc Compare October 7, 2025 13:37
@isaacbmiller
Copy link
Collaborator Author

Needs testing DNM

Copy link
Collaborator

@TomeHirata TomeHirata left a comment

Choose a reason for hiding this comment

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

LGTM

@TomeHirata
Copy link
Collaborator

@isaacbmiller feel free to merge once you run MIPRO with this code to confirm no regression!

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.

[Bug] Setting max_bootstrapped_demos and max_labeled_demos to 0 still results in few shot examples being generated for MiproV2

2 participants