How to Install SuperCompress in Your Python Project
Install SuperCompress from GitHub with pip — requires Python 3.10+ and PyTorch. Optional extras add dev tooling, an HTTP server, and Firebase storage.
SuperCompress is distributed directly from its GitHub repository. A single pip install pulls in the core library, its two runtime dependencies, and the pretrained checkpoint — no separate model download step is needed. Optional extras are available for development, running the local HTTP server, and production Firebase key storage.
The first command is the standard install for production use. The dev,serve variant is for contributors or anyone who wants to run the local HTTP API server alongside the test suite. The firebase variant adds the firebase-admin SDK for production-grade API key storage.
SuperCompress runs its eviction policy entirely on CPU before inference, so a GPU is not required. PyTorch is used to load and run the small (~5K-parameter) trained policy checkpoint bundled in checkpoints/default.pt.
You should see SuperCompress ready printed without errors. If PyTorch or NumPy are missing you will see an ImportError — re-run the install command above to resolve it.
The trained checkpoint is included in the repository at checkpoints/default.pt and is loaded automatically by compress_context(). No separate download or environment variable is required. If the checkpoint file is missing (for example in a stripped clone), the library falls back gracefully to the H2OPolicy baseline and logs a warning.