Skip to content

Stable cfg#34

Draft
lapp0 wants to merge 2 commits into
mainfrom
stable-cfg
Draft

Stable cfg#34
lapp0 wants to merge 2 commits into
mainfrom
stable-cfg

Conversation

@lapp0
Copy link
Copy Markdown
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

@lapp0 lapp0 force-pushed the stable-cfg branch 22 times, most recently from ed10c1f to f63d9d2 Compare June 23, 2024 20:36
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