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

Add Xgrammar Support #701

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

flyinglandlord
Copy link
Contributor

@flyinglandlord flyinglandlord commented Jan 7, 2025

Change:

  • change launch argument from --simple_constraint_mode to --output_constraint_mode, now user can choose the constriant decode backend from ['outlines', 'xgrammar']
  • add XgrammarBackend used for xgrammar constraint decode, maybe we should merge it with SimpleConstraintBackend later?
  • now we adopt the same request logic the same as vLLM with xgrammar(https://docs.vllm.ai/en/stable/serving/openai_compatible_server.html), user can add guided_grammar to pass a EBNF grammar and execute the constraint decode

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.

1 participant