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

Refactor the FSM module #734

Merged
merged 2 commits into from
Mar 7, 2024
Merged

Refactor the FSM module #734

merged 2 commits into from
Mar 7, 2024

Conversation

rlouf
Copy link
Member

@rlouf rlouf commented Mar 6, 2024

The final states of the FSM returned by interegular are not considered as final states since a recent change. This PR reverts this change.

A recent change replaced the set of FSM final states with the state -1
that is used to represent an EOS token being generated. This could
explain the issue reported in #605.
@rlouf rlouf merged commit 05c1d56 into main Mar 7, 2024
5 checks passed
@rlouf rlouf deleted the refactor-fsm branch March 7, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement structured generation Linked to structured generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant