TECHNOLOGY

Why can a model pass memory fitting and still fail to load on zDNN?

In this article
THE QUICK TAKE

Budget for the backend's transformed tensors and measure the host peak through loading and the first real request.

The llama.cpp b12820 snapshot published on November 28 exposes zTensor memory allocations to the automatic fitting logic. The maintainer describes a mismatch where CPU and zDNN tensors lived in host memory, but the backend’s transformed representation introduced extra storage that the projection omitted. The projection informs offloaded layer count and context size. The change adds visibility into a specific memory component and does not establish a universal capacity limit.

Separate checkpoint size from the working representation

Save the exact checkpoint, context setting, layer placement and backend build. List the memory consumers you can measure: file mappings, active weights, extra tensor representations and request buffers. Allocation for the backend can grow when more layers are offloaded even when the checkpoint on disk is unchanged. Moving layers back to the CPU can release the extra representation at a possible compute cost.

Observe the host across loading and use

Record the startup estimate, runtime allocation logs and host memory while loading, warming up and serving a representative request. In a restricted environment, use the process and workload memory limits in the comparison. A measurement after loading can miss transient peaks. Record concurrency as well, because multiple requests can add runtime buffers even when weights are shared.

Choose targets before increasing offload

Start with a context size that reflects the expected workload. Measure a configuration with fewer offloaded layers and one at the suggested fit. Record load reliability and first-token latency alongside decode speed. Leave an explicit margin for the host and workloads alongside the model. An auto-fit recommendation is a useful starting point once its inputs are visible.

Keep the release check tied to the backend

Retest when the runtime or model changes, and distinguish estimates from observations in the report. Record whether any workload misses its target because the fitting logic chose a smaller context. Those observations let operators choose between a lower offload count, a smaller workload and more host memory.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles