Who Jabara is for

Jabara is for training checkpoints that you keep and read back later, to resume a run or to analyse it. It is not a format to serve a model from or to load a model from again and again.

A checkpoint that can resume training holds the weights and the optimizer state. With Adam and FP32 tensors, the two moments take twice the bytes of the weights. A run saves such a checkpoint many times, and a sweep of N runs that each keep K checkpoints stores N × K of them.

What it saves and what it costs

On 12 checkpoints of four fine-tuning runs of SmolLM2-135M, SmolLM2-360M, and Qwen2.5-0.5B, with FP32 weights and optimizer state, the lossless codecs that need no base, apart from raw/1, stored the tensors in 82.9% (zipnn/1) to 92.1% (zstd/1) of their bytes. The default, bytegroup-zstd/1, stored 84.1%. The results viewer shows these reports per role, and Jabara and general-purpose archivers compares them with tar and zstd on the same checkpoints.

Saving and loading take longer than without Jabara. For one 1.6 GB checkpoint of SmolLM2-135M, a save with the Trainer adapter took 6.4 s, against 0.8 s for the Trainer's own save and 4.0 s for that save followed by an fsync. A load took 5.0 s against 0.4 s with a warm page cache, and 7.4 s against 4.2 s with a cold one. All of these numbers come from short runs of small models, on one machine for each measurement.

Many runs: seed sweeps and hyperparameter searches

Jabara compresses every checkpoint of every run on its own and without loss, so a sweep saves the sum of what its checkpoints save. Attach Jabara to each run so that its checkpoints are compressed when they are saved, or compress the checkpoint directories after the runs finish (see Compress the checkpoints of many runs).

A delta against another run is a different matter. Runs that start from the same pretrained weights can store their weights against an archive of those weights. How much that saves has not been measured, and for runs that start from different random weights there is no reason to expect a gain. jabara bench --base measures it on your own checkpoints without writing a file.

Long runs that resume often

On preemptible or time-limited machines, a run saves often so that it loses little work. The Trainer adapter and the PyTorch Lightning plugin compress each checkpoint inside the save, and a resume from the archives gets back every tensor bit for bit (see Use Jabara with the Hugging Face Trainer and Use Jabara with PyTorch Lightning). In a resume test of SmolLM2-135M over 100 steps with deterministic kernels, the training loss was the same at every step as after a resume from the original checkpoint. A save with the Trainer adapter returns only after the archives are written and verified, so training waits longer at each save (see What the Trainer adapter does inside a save). The Trainer adapter supports single-process training only.

Intermediate checkpoints kept for analysis

Training dynamics, probing, checkpoint averaging, and picking the best step afterwards all read old checkpoints, and lossless storage keeps compression error out of their results. Archives restore every tensor bit for bit by default (see Lossless by default). jabara export-weights writes the weights of one archive as a plain safetensors file without restoring the optimizer state (see Export weights to a standard safetensors file). A later checkpoint of the same run can be stored as a delta against an earlier one (see Store a checkpoint as a difference against a base). Against a checkpoint 50 steps earlier, xor-delta/1 stored the weights in 69.1% of their bytes. For the first moment, both delta codecs stored more than bytegroup-zstd/1 without a base. A delta archive cannot be the base of another one, so every delta refers to a full archive. Deltas between checkpoints further apart than 50 steps were not measured.

A run that someone else resumes

A release of the weights alone lets others evaluate a model but not resume its training where it stopped. A compressed checkpoint directory keeps the optimizer state and the trainer's other files. The recipient installs Jabara, runs jabara verify on the copy, and runs jabara decompress or resumes with an adapter attached. A delta archive needs its base. Send the base with it, and run jabara verify and jabara decompress on the delta archive with --base. The Trainer adapter resumes from a delta archive when its base checkpoint is a sibling directory.

Work on checkpoint compression

To compare a new codec with the built-in ones on real optimizer state, add it with one subclass and run jabara bench on your checkpoints (see Add a codec, an assigner, a state schema, or a file format and Compare codecs on your own checkpoint). Every candidate runs on the same tensors with the same chunking and number of threads. For a lossy codec, a small measured error is not enough. In a resume test, the 8-bit quantizer with the smaller measured error raised the training loss, so check a lossy codec by resuming from it (see Opt in to a lossy codec and read the recorded error).

What it is not for

A framework cannot memory-map an archive or load it in parallel. Jabara decodes every archive first. jabara decompress and the Trainer adapter write the original files back before the framework reads them, and only then do memory-mapping and parallel loading of shards apply. For a model that you serve or load often, that restore cost cancels the fast loading of safetensors, so keep a plain safetensors copy for that, for example from jabara export-weights. In Python, Archive.read returns one tensor by name without restoring the rest.