Stackness
Sign up
XGrammar

XGrammar

Framework for fast and flexible structured generation with language models.

0 members list XGrammar, unchanged over the last 12 weeks, data as of 26 November 2026

Usage on Stackness
0membersunchanged over the last 12 weeks

Members who list XGrammar in their Stack, by week.

Members who list XGrammar

010Sep 10Nov 26
Source: Stackness stacks, week of Nov 26, 2026

Be the first to add XGrammar

Nobody on Stackness runs XGrammar yet. Add it to your stack and you're the first member running it.

Sign up and add it

About XGrammar

XGrammar is a framework for structured generation with language models, designed to produce fast and flexible outputs. It enables developers to work with large language models while maintaining control over the generated content through structured constraints. The tool is built to be portable across different environments and use cases. XGrammar is developed by mlc-ai and is distributed under the Apache 2.0 license. The framework is implemented in Python, making it accessible to developers working in the Python ecosystem. It addresses the challenge of generating well-formed, constrained outputs from language models while maintaining performance efficiency.

The framework handles the complexity of ensuring that language model outputs conform to specified structures and formats. This is particularly useful when integrating language models into applications that require deterministic or validated responses. By providing a dedicated solution for structured generation, XGrammar allows developers to reduce the need for post-processing or validation of model outputs. The open-source nature of the project under Apache 2.0 licensing enables community contributions and wide adoption.

Developer
mlc-ai
GitHub
License
Apache 2.0
GitHub
Language
Python
GitHub
Latest release
0.2.9, 9 November 2026
GitHub
GitHub stars
2k
GitHub
Repository since
June 2024
GitHub

Checked 21 November 2026.

Nobody on Stackness runs XGrammar yet.

Sign up and add it