Keep models compressed in GPU memory and fit about 1.5× as many bf16 models on each card (1.26× for FP8). Switching to a resident model takes well under a second instead of a reload from disk.
| GPU | Memory | Holds bf16 models totalling |
|---|---|---|
| H100 | 80 GB | ~120 GB |
| H200 | 141 GB | ~210 GB |
| B200 | 180 GB | ~270 GB |
| Measure | Result |
|---|---|
| GPU memory saved, bf16 weights | 33.2% |
| Whole-model unpack, H100 (27B FP8 with bf16 embeddings; new decoder, next release) | 682 GB/s |
| Tensors identical to the original | all |
| Model | Format | zstd | weights.zip |
|---|---|---|---|
| Qwen2.5-1.5B | bf16 | 0.785 | 0.658 |
| Qwen2.5-0.5B | bf16 | 0.774 | 0.659 |
| Model | Expanded on the GPU in |
|---|---|
| 15 GB model | ~0.02 s |
| 40 GB model | ~0.06 s |
Switching between models already on the card avoids a reload from disk or the network entirely. Every resident model was compared bit for bit with the original.
Models are compressed once with the standard weights.zip tooling and placed in GPU memory in that form. When a request needs a model, it is expanded on the GPU and served exactly as trained.
# command line weightzip compress model.safetensors model.wzst weightzip decompress model.wzst model.safetensors weightzip verify model.safetensors model.wzst # Python from weightzip import compress_file, decompress_file, verify_file compress_file("model.safetensors", "model.wzst") assert verify_file("model.safetensors", "model.wzst")
weightzip verify restores the file and compares every tensor with the original, bit for bit, and reports any difference.import torch from safetensors.torch import load_file a = load_file("model.safetensors") # the original b = load_file("restored.safetensors") # after weightzip decompress assert a.keys() == b.keys() for name in a: x, y = a[name], b[name] assert x.dtype == y.dtype and x.shape == y.shape assert torch.equal(x.reshape(-1).view(torch.uint8), y.reshape(-1).view(torch.uint8)) print("identical:", len(a), "tensors")
All figures are measured on public models (Qwen2.5 0.5B and 1.5B, Llama-3.1 8B and 70B, Pythia-160M, GPT-2 and a 27B FP8 model) on NVIDIA H100 SXM, H200 and RTX 4060 GPUs. Every restore was checked byte for byte against the original. zstd comparisons use zstd level 19 or NVIDIA nvCOMP Zstd on the same files. Dollar figures assume S3 Standard-class storage at about $24 per TB-month and typical cloud egress pricing. Results depend on the model and data type, so the free benchmark measures yours.