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 7.5x 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.1.1

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.1.1
File Size Uploaded Provenance
cfgzip-0.1.1.tar.gz 35.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cfgzip 0.1.1
File Interpreter ABI Platform
cfgzip-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 68.6 kB

Release files / cfgzip-0.1.1.tar.gz

Download URL cfgzip-0.1.1.tar.gz
Size 35.6 kB
Tags Source
SHA-256 checksum
How to use checksums
303566803ec38b1cb4ba54935f0e462e2d3635f8a7d77f4bf50a9f67888f31e5
BLAKE2b-256 checksum
How to use checksums
2454d607f925d2f34d08964ddcbb0bffa2510c3f45bb92042005d7aa352cc3d9
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.1.1-py3-none-any.whl

Download URL cfgzip-0.1.1-py3-none-any.whl
Size 32.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0556912e55a42072599cddbe804d4ec9210d6bc2041995d1f2ce18923957892f
BLAKE2b-256 checksum
How to use checksums
66d179eb3f41647641029b19127de5c2eb7ae53bb0b1789727f14afe1a0ee01d
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.1.1

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