Skip to main content

CFGzip

Lossless token vocabulary compression for fast CFG-constrained decoding.

CFGzip is an offline pre-computation technique that pairs with a constrained decoding engine (e.g. XGrammar2) to massively speed up the engine's inference: generation with CFGzip+XGrammar2 is up to 75x faster than SoTA XGrammar2 alone, and lossless — outputs are byte-identical to the unmodified grammar engine.

pip install "cfgzip[xgrammar]"

Full documentation: https://github.com/mjs227/cfgzip

Metadata

Release files for cfgzip 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cfgzip 0.2.0
File Size Uploaded Provenance
cfgzip-0.2.0.tar.gz 79.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cfgzip 0.2.0
File Interpreter ABI Platform
cfgzip-0.2.0-py3-none-manylinux_2_34_x86_64.whl Python 3 none Linux glibc 2.34+ x86-64 Details

Total release size: 2.7 MB

Release files / cfgzip-0.2.0.tar.gz

Download URL cfgzip-0.2.0.tar.gz
Size 79.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ef01bb6769d0854417a774f96dd30cb0c120d2ad73cf38890bb827a53a092949
BLAKE2b-256 checksum
How to use checksums
6f87e89770725405b17da363b456d88f7c8d4b039c4c2886da8f6ce37d20df93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.20

Release files / cfgzip-0.2.0-py3-none-manylinux_2_34_x86_64.whl

Download URL cfgzip-0.2.0-py3-none-manylinux_2_34_x86_64.whl
Size 2.6 MB
Tags Linux glibc 2.34+ x86-64 Python 3
SHA-256 checksum
How to use checksums
07df44bcb3acf94f338b29c4432d8c0d0e1a1b008f61940383165a6803989164
BLAKE2b-256 checksum
How to use checksums
0b28bd227d77325e3fc7c2756096f8f46c37ac2dbc6a472badf9975587e3f3e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.20

Security for cfgzip 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page