-
Notifications
You must be signed in to change notification settings - Fork 661
Closed: supplementary unit test for XGrammarChecker #3560
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
Conversation
|
Thanks for your contribution! |
|
刚刚检查了一下log,原因如下: 原因发生在xgrammar_backend.py源码里面的 好像是CI在安装的时候没有torch? 在AIStudio上,安装好
|
可以在 |
Thx. Done |
Thx, Done |
Get ! Thx |
|
可以取消 |
好的老师,因为这个PR目前有点乱了,所以我重新提交一个,辛苦老师! |





Objective
Test Results
Analysis
guided_json: Valid schemas pass correctly. Invalid schemas correctly return an error.
guided_grammar: Valid grammar strings generate the corresponding Grammar object. Invalid grammar strings return errors as expected.
guided_json_object: Simplified JSON object patterns are generated correctly.
guided_choice: Valid choice lists are correctly converted into grammar rules. Invalid choices (e.g., containing
None) trigger exceptions.structural_tag: Correct structured tags are parsed successfully. Missing trigger fields trigger a
KeyError.regex: Regular expressions are passed through directly without validation errors.