Install this package:
emerge -a dev-python/xgrammar
<pkgmetadata> <maintainer type="person"> <email>iohann.s.titov@gmail.com</email> <name>Ivan S. Titov</name> </maintainer> <upstream> <bugs-to>https://github.com/mlc-ai/xgrammar/issues</bugs-to> <remote-id type="pypi">xgrammar</remote-id> <remote-id type="github">mlc-ai/xgrammar</remote-id> </upstream> </pkgmetadata>
Manage flags for this package:
euse -i <flag> -p dev-python/xgrammar |
euse -E <flag> -p dev-python/xgrammar |
euse -D <flag> -p dev-python/xgrammar
| Flag | Description | 0.2.5 | 0.2.3 | 0.2.2 |
|---|---|---|---|---|
| cuda | Build the CUDA (cuda_v13) llama-server GPU backend via <pkg>dev-util/nvidia-cuda-toolkit</pkg> ⚠️ | ✓ | ✓ | ✓ |
| Type | File | Size | Versions |
|---|---|---|---|
| DIST | xgrammar-0.2.5.gh.tar.gz | 1071195 bytes | 0.2.5 |
| DIST | xgrammar-dlpack-bbd2f4d32427e548797929af08cfe2a9cbb3cf12.tar.gz | 190029 bytes | 0.2.5 |
| Type | File | Size |
|---|---|---|
| DIST | xgrammar-0.2.2.tar.gz | 2430492 bytes |
| DIST | xgrammar-0.2.3.tar.gz | 2447704 bytes |