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

[WIP] Guidance integration for more reliable optimization #89

Merged
merged 2 commits into from
Sep 22, 2024

Conversation

mertyg
Copy link
Member

@mertyg mertyg commented Jul 20, 2024

We had a set of issues (e.g., #15 ) where the optimizer fails to follow instructions when sending the new state of a variable. This happens in particular when we have long context / variables with very long states and less capable models fail to follow the optimizer instructions.

For this purpose, we'll try integrating Guidance to directly constrain the generations.

  • Guidance Engine implementation (uses huggingface transformers)
  • GuidedTextualGradientDescent implementation
  • An example notebook / snippet to show how to use the two
  • Perhaps more broadly integrating guidance for other types of structured generation
  • Better error handling for when guidance fails

@mertyg mertyg requested a review from vinid July 20, 2024 23:49
@mertyg mertyg merged commit 495801f into main Sep 22, 2024
1 check failed
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