CPU offload
A memory optimization mechanism in inference frameworks that moves submodule weights back to CPU memory after execution and reloads them to the GPU before invocation, trading PCIe transfer time for a lower peak memory footprint.
Timeline (last 90 days)
Diffusers provides the enable_model_cpu_offload() and enable_sequential_cpu_offload() methods for CPU offloading to optimize VRAM.
The optimization measures for running Hy-Nomas on a single RTX 4090 include an INT8-quantized DiT model, an FP8 version of the video decoder, and a CPU offload strategy.
Whether a model fits entirely in VRAM is more important than the absolute size of the model file; once CPU offloading occurs, the data transfer overhead between GPU and CPU negates the space advantage of a smaller model.
The default auto-offload strategy of AI inference frameworks may not be optimal—and can even be counterproductive—under certain hardware configurations.
All Facts (4)
Diffusers provides the enable_model_cpu_offload() and enable_sequential_cpu_offload() methods for CPU offloading to optimize VRAM.
50%UnverifiedThe optimization measures for running Hy-Nomas on a single RTX 4090 include an INT8-quantized DiT model, an FP8 version of the video decoder, and a CPU offload strategy.
50%UnverifiedWhether a model fits entirely in VRAM is more important than the absolute size of the model file; once CPU offloading occurs, the data transfer overhead between GPU and CPU negates the space advantage of a smaller model.
50%UnverifiedThe default auto-offload strategy of AI inference frameworks may not be optimal—and can even be counterproductive—under certain hardware configurations.
50%