Skip to content

Better HF grammar implementation#4953

Merged
oobabooga merged 3 commits into
devfrom
new-grammar
Dec 17, 2023
Merged

Better HF grammar implementation#4953
oobabooga merged 3 commits into
devfrom
new-grammar

Conversation

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

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.

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