xgrammar

Install command:
brew install xgrammar

Structured generation and reasoning engine for LLMs

https://xgrammar.mlc.ai/

License: Apache-2.0

Development: Pull requests

Formula JSON API: /api/formula/xgrammar.json

Formula code: xgrammar.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate
tahoe
sequoia
Linux ARM64
x86_64

Current versions:

stable 0.2.7
head ⚡️ HEAD

Depends on:

dlpack 1.3 Common in-memory tensor structure

Depends on when building from source:

cmake 4.4.3 Cross-platform make

Analytics:

30 days90 days365 days
Installs000
Installs on Request000
Build Errors0