This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
GrillyCompression
Activation, KV-cache, and communication compression pipelines — optional grilly extension.
Features
- Block DCT Codec — 4x4 DCT + scalar quantization with configurable error bounds
- Activation Compression — 30-60% VRAM savings on intermediate tensors
- KV-Cache Compression — 3-5x compression on cached K/V pages
- Communication Compression — 19-37% gradient volume reduction for multi-GPU
- Adaptive Quality — tight bounds for embeddings, looser for FFN activations
- Error Feedback — residual compression for gradient communication
Quick Start
pip install grillycompression
from grillycompression import BlockDCTCodec, ActivationCompressor, KVCacheCompressor
# Compress activations
compressor = ActivationCompressor(quality=32, adaptive=True)
compressed = compressor.compress(activation_tensor, layer_type="activation")
restored = compressor.decompress(compressed)
# Compress KV-cache pages
kv_comp = KVCacheCompressor(quality=48)
compressed_page = kv_comp.compress_page(k_data, v_data)
k_restored, v_restored = kv_comp.decompress_page(compressed_page)
Requirements
- Python 3.12+
- grilly >= 0.4.0
- numpy
License
MIT
Metadata
Release files for grillycompression 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| grillycompression-0.1.0.tar.gz | 16.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| grillycompression-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.9 kB
Release files / grillycompression-0.1.0.tar.gz
| Download URL | grillycompression-0.1.0.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9d86a6207bb00c3f89d651a02fba888ebf6bb8c8275c2fbe610f75c2efeaf8a
|
|
BLAKE2b-256 checksum How to use checksums |
e6de3e409107f7ee87806a010fca0f4905db56d393c13723ea05b74053b9444d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 22, 2026.
Transparency logRelease files / grillycompression-0.1.0-py3-none-any.whl
| Download URL | grillycompression-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4468d89bc00f73972e62b054f7b5c3dc9ed18d653106fdcb6ad2327a2f7c47ef
|
|
BLAKE2b-256 checksum How to use checksums |
3126b219e905f5acb2693377ce76ee480f0099c8b44c237819fcf7f30fe04039
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 22, 2026.
Transparency log