Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Better HF grammar implementation #4953

Merged
merged 3 commits into from
Dec 17, 2023
Merged

Better HF grammar implementation #4953

merged 3 commits into from
Dec 17, 2023

Conversation

oobabooga
Copy link
Owner

@oobabooga oobabooga commented Dec 17, 2023

100% copied from this PR to the Transformers library: huggingface/transformers#27557

All credits go to @Saibo-creator.

This implementation is more compliant with the llama.cpp grammar examples. As a bonus, it removes the torch-grammar requirement from this project.

@Saibo-creator
Copy link

Thanks for integrating this implementation! I'm continuing to work on Grammar-Constrained Decoding. Future work included add support for unicode and better efficiency.

If there is some issues regarding this implementation, I would be happy to work on them.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants