Skip to main content
SuperCompress reduces the number of tokens that reach your LLM’s KV cache prefill step. Fewer tokens means less GPU work, less energy consumed, and lower CO₂ emissions for the exact same workflow. The learned eviction policy runs on CPU in sub-millisecond time before any GPU inference begins, so the overhead of compression is negligible compared to the prefill cost it avoids on long contexts.
The figures produced by SuperCompress’s metrics module are illustrative estimates, not live per-deployment measurements. All assumptions are explicit and documented so you can adjust them for your hardware and grid. Do not present these numbers as measured carbon accounting without independent verification.

What we measure

Every compression call produces an original_tokens and kept_tokens value. The sustainability module converts the difference into an energy and emissions estimate using a simple linear model: Only the KV context portion of prefill is attributed to savings (controlled by kv_share_of_prefill). This avoids over-claiming: embedding lookup, attention over new tokens, and other prefill work are excluded.

Default assumptions

The defaults are defined in supercompress/benchmarks/metrics.py as a frozen dataclass so every estimate is fully reproducible and traceable: You can override any of these by constructing a custom SustainabilityAssumptions object and passing it to sustainability_from_tokens_saved().

Python API

Use sustainability_from_tokens_saved() to compute an estimate for any number of tokens saved:
To use custom hardware assumptions — for example, a datacenter GPU at higher wattage or a greener grid:

Scale example

At 1 million compressions with approximately 800 tokens saved per run:
  • 800 million tokens avoided from GPU prefill
  • ~29 kWh of GPU energy saved (default assumptions)
  • ~12 kg CO₂ avoided (US grid average)
These numbers scale linearly — 10M compressions avoids roughly 120 kg CO₂, comparable to driving a petrol car about 500 km.
Use the Projection calculator on the SuperCompress website (#impact) to adjust compression volume, tokens-per-run, and grid intensity interactively without writing any code.

Honesty guidance for submissions and reports

When citing SuperCompress sustainability metrics in papers, demos, or hackathon submissions, follow these principles to avoid misleading claims:
  1. State assumptions clearly — quote the SustainabilityAssumptions values used; do not present estimates as live metering.
  2. Report quality alongside savings — token reduction without answer quality data is not a fair comparison. Use answer_quality_score() or an equivalent evaluation.
  3. Scope the claim correctly — SuperCompress targets edge-CPU policy inference and measurable KV cache reduction, not datacenter-wide carbon accounting.