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

fix: correctly index into mask when applying grammar #1618

Merged
merged 4 commits into from
Mar 1, 2024

Conversation

drbh
Copy link
Collaborator

@drbh drbh commented Feb 29, 2024

This PR fixes how the grammar mask is index when generating text and adds a new test to ensure the grammars work with non flash models

@OlivierDehaene OlivierDehaene merged commit 7dbaf9e into main Mar 1, 2024
7 checks passed
@OlivierDehaene OlivierDehaene deleted the fix-grammar-mask-indexing branch March 1, 2024 17:22
kdamaszk pushed a commit to kdamaszk/tgi-gaudi that referenced this pull request Apr 29, 2024
This PR fixes how the grammar mask is index when generating text and
adds a new test to ensure the grammars work with non flash models
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