Home Projects xgrammar
xgrammar

xgrammar

by mlc-ai · GitHub

Fast, Flexible and Portable Structured Generation

# large-language-models# structured-generation
View on GitHub
⭐ Stars
1.8k
🍴 Forks
172
📜 License
Apache-2.0
Commercial use OK
📅 Created
2024
🔄 Last commit
today
🏷️ Category
large-language-models
💻 Language
You maintain this project?

Claim its page: indexed whatever its rank, translated into six languages, and enriched with what you write yourself.

Claim this page →
xgrammar — GitHub preview card
📈 Star history
1 7921 791
2026-07-202026-07-22
📄 About

Fast, Flexible and Portable Structured Generation

Frequently asked questions

What is xgrammar?

Fast, Flexible and Portable Structured Generation

Is xgrammar open source?

xgrammar is an open-source project. It is released under the Apache-2.0 license.

Is xgrammar free?

Yes. xgrammar is free and open source — you can use, modify and self-host it.

🏅 Maintainer of this project?
olud.ai badge — xgrammar

Add this live badge to your README — your GitHub stars and directory rank, refreshed daily.

[![olud.ai](https://olud.ai/badge.php?tool=mlc-ai-xgrammar)](https://olud.ai/project/mlc-ai-xgrammar.html)
More badge options →
🧬 Shares DNA with

Measured from GitHub topics shared by both projects, weighted by how rare each topic is.