Jabara

Jabara compresses the checkpoints of a training run: the model weights and the optimizer state. Lossless compression, deltas against an earlier checkpoint, and quantization all implement one codec interface, so you can use, compare, and add codecs in the same way.

Jabara is for checkpoints that you keep and read back, to resume a run or to analyse it, such as the checkpoints of a seed sweep. It is not a format to serve a model from. Who Jabara is for describes each case, what Jabara does in it, and what it costs.

By default, every tensor is restored bit for bit, and every read checks a CRC-32 per chunk. Writing an archive with a lossy codec requires allow_lossy=True, and the archive records the largest error that the codec introduced.

You can use Jabara from the jabara command, from Python, or through the adapters for the Hugging Face Trainer and PyTorch Lightning.

How-to guides