# Measuring bit-exact SSD offload for Z-Image-Turbo on a 6 GB RTX 3060

> Source: <https://discuss.huggingface.co/t/measuring-bit-exact-ssd-offload-for-z-image-turbo-on-a-6-gb-rtx-3060/193216#post_1>
> Published: 2026-12-06 09:11:29+00:00

**Recommendation:** Release cached allocator blocks at the encoder-to-transformer phase boundary before testing tight VRAM budgets, since a warm prompt cache can hide out-of-memory failures at 2.3 GiB.
More in the playbook "Inference and self-hosting": <https://wpnews.pro/playbooks/inference-serving>

I built [z-image-consumer](https://github.com/4lbi3/z-image-consumer) to see how far I could lower the memory budget of Z-Image-Turbo while keeping the BF16 Diffusers output exactly reproducible.

The runtime reads transformer blocks from SSD into pinned host memory and overlaps transfers with computation. The VAE planner models cuDNN workspace separately: if it exceeds the VRAM budget, mapped host memory can hold the workspace and the reference operations still run. Tighter budgets trade generation time for memory.

One bug was easy to miss. A warm prompt cache made the 2.3 GiB budget look stable at 1024×1024. With the cache disabled, the first transformer block initially ran out of memory because encoder allocations left memory reserved and fragmented. The fix releases cached allocator blocks at the phase boundary. The cold-encoder rerun matched the reference pixels on the same RTX 3060 Laptop. [Acceptance logs and comparison method](https://github.com/4lbi3/z-image-consumer/blob/main/docs/evidence/acceptance/README.md).

The timing comparison used 5.8 GiB on that laptop. Two 1024×1024 prompts took 32 and 37 seconds after startup, compared with 185 and 213 seconds with the same-GPU Diffusers disk-offloaded reference. Separately, the Linux desktop RTX 3060 suite reported 40/40 bit-identical reference images and 84/84 matching planned VAE decodes from fixed latents.

I’m particularly interested in reports from other NVIDIA setups. Which part dominates at a tight budget on your machine, SSD reads, transfers or VAE decode? If you try it, please include the GPU, OS, VRAM/RAM budgets and whether it was the first image in the process. The project is MIT-licensed and has a CLI and a local web UI.
