-
Notifications
You must be signed in to change notification settings - Fork 505
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
[BUG] xgrammar does not follow the constraint #2017
Comments
Hi, I'm researching inference-serving frameworks that implement Grammar-Constrained Decoding (GCD) for Context Free Grammar (CFG) and you guys are the first to include the recent xgrammar. I'm trying to reproduce this error with the specified branch but I get the following new one:
When deploying the container provided here with xgrammar as the backend,
I get the same Dummy() error. Is there something different I'm missing? I've traced it back to this PR. One possible solution could be to reproduce vLLM OpenAI compatible server and its workflow as they have a guided_grammar parameter. |
@roG0d You need to compile and install xgrammar: https://github.com/mlc-ai/xgrammar
|
@roG0d Yes it is not uploaded to pypi yet. We will further integrate it soon and avoid this compile step. |
xgrammar does not follow the integer constraint and generate a floating number for an integer filed.
Schema
sglang/test/srt/test_json_constrained.py
Line 30 in 1f45146
Error
Reproduce:
branch: https://github.com/sgl-project/sglang/tree/xgrammar-fail
The text was updated successfully, but these errors were encountered: