inference/research
verifiedhigh · 0.90updated 2026-10-03

XGrammar GitHub repository (mlc-ai/xgrammar)

repo

Fields

id
sources/niche-xgrammar-repo
Publisher
MLC AI
Kind
repo
Accessed
2026-10-03
notes
XGrammar README. NOTE on naming: the canonical repo is mlc-ai/xgrammar; the older handle github.com/xgrammar-ai/xgrammar returns HTTP 404 as of 2026-10-03, so several blog posts linking it are stale. README claims near-zero overhead in JSON generation and states XGrammar is the default structured-generation backend for most LLM inference engines, listing vLLM (integrated 2024/12) and SGLang (2024/11) as adopters. Python, C++, JavaScript and Swift APIs; `pip install xgrammar[metal]` for Apple MPS. API metadata 2026-10-03: created 2024-06-28, last push 2026-09-30, v0.2.8 (2026-09-24), Apache-2.0.

Notes

XGrammar README. NOTE on naming: the canonical repo is mlc-ai/xgrammar; the older handle github.com/xgrammar-ai/xgrammar returns HTTP 404 as of 2026-10-03, so several blog posts linking it are stale. README claims near-zero overhead in JSON generation and states XGrammar is the default structured-generation backend for most LLM inference engines, listing vLLM (integrated 2024/12) and SGLang (2024/11) as adopters. Python, C++, JavaScript and Swift APIs; `pip install xgrammar[metal]` for Apple MPS. API metadata 2026-10-03: created 2024-06-28, last push 2026-09-30, v0.2.8 (2026-09-24), Apache-2.0.

Cross-references

This record references no other records.