| Port details |
- py-xgrammar Efficient, flexible and portable structured generation
- 0.1.33 misc
=0 Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one. - Maintainer: yuri@FreeBSD.org
 - Port Added: 2026-04-07 10:00:31
- Last Update: 2026-04-07 09:58:07
- Commit Hash: 56eb0ae
- Also Listed In: python
- License: APACHE20
- WWW:
- https://xgrammar.mlc.ai/
- https://github.com/mlc-ai/xgrammar
- Description:
- xgrammar enables efficient, flexible and portable structured generation
for large language models. It provides grammar-constrained decoding that
works with JSON schemas, regular expressions, and custom context-free grammars.
 ¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- USE_RC_SUBR (Service Scripts)
- no SUBR information found for this port
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}xgrammar>0:misc/py-xgrammar@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/misc/py-xgrammar/ && make install clean
- To add the package, run one of these commands:
- pkg install misc/py-xgrammar
- pkg install py311-xgrammar
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-xgrammar listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py311-xgrammar
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1775500352
SHA256 (xgrammar-0.1.33.tar.gz) = 8dbe5fc3d76651ab1fac7a68fc2a118b885fa0ec7189927fb6e0dce0081aea99
SIZE (xgrammar-0.1.33.tar.gz) = 2398956
No package information for this port in our database- Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link:

- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py311-scikit-build-core>=0.10.0 : devel/py-scikit-build-core@py311
- py311-nanobind>=2.5.0 : devel/py-nanobind@py311
- cmake : devel/cmake-core
- python3.11 : lang/python311
- py311-build>=0 : devel/py-build@py311
- py311-installer>=0 : devel/py-installer@py311
- Test dependencies:
-
- python3.11 : lang/python311
- py311-pytest>=0 : devel/py-pytest@py311
- Runtime dependencies:
-
- py311-numpy1>0 : math/py-numpy1@py311
- py311-pydantic2>0 : devel/py-pydantic2@py311
- py311-pytorch>=1.10.0 : misc/py-pytorch@py311
- py311-transformers>=4.38.0 : misc/py-transformers@py311
- py311-typing-extensions>=4.9.0 : devel/py-typing-extensions@py311
- python3.11 : lang/python311
- This port is required by:
- for Run
-
- misc/py-vllm
Configuration Options:
- No options to configure
- Options name:
- misc_py-xgrammar
- USES:
- cmake:indirect python pytest
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Number of commits found: 1
| Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
| Commit | Credits | Log message |
0.1.33 07 Apr 2026 09:58:07
    |
Yuri Victorovich (yuri)  |
misc/py-xgrammar: New port: Efficient, flexible and portable structured
generation |
Number of commits found: 1
|