Repository navigation
Neurzip 0.3.0
Neurzip is a model-based lossless text compressor. Each nonempty archive includes a file-specific transformer and an arithmetic-coded stream. Restored bytes are verified with SHA-256.
pip install neurzip
neurzip encode notes.txt
neurzip decode notes.txt.nzipEncoding defaults to isolated CPU training with one thread and one coding worker. Training exits and releases memory before coding starts. GPU training requires an explicit --device mps or --device cuda.
Validation: 35 Python tests, 10 browser tests, and nine independently encoded representative-file round trips. The complete Alice text compressed from 151,094 to 80,193 bytes (1.88×) with the normal 60-second CPU budget; small files trained briefly can grow due to model overhead. All restored hashes matched. See the attached acceptance report for measured timings and settings.