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

Stable cfg #34

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Stable cfg #34

wants to merge 2 commits into from

Conversation

lapp0
Copy link
Owner

@lapp0 lapp0 commented Jun 23, 2024

Fixes dottxt-ai#684

Fixes dottxt-ai#959

Fixes dottxt-ai#885

Problem

CFG would encounter runtime errors in main regularly to the point that it rarely succeeds.

Solution

Reimplement outlines.fsm.guide.CFGGuide using outlines.fsm.parsing.PartialLark. Credit to Brandon Willard for creating a robust module to handle our CFG structured generation needs.

CFGGuide

  • Fix early termination bug
  • Fix failure to

Grammars

  • Add outlines.grammars.sql_select. enabling integration testing with a more complex grammar

Testing

  • Add integration and ASV benchmark test samples for outlines.grammars (arithmetic, json, sql_select)

TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant