lly onloaded and offloaded as needed, resulting in a large number of memory transfers. Consider using model offloading if you want to optimize for speed because it is much faster. The tradeoff is your memory savings won’t be as large. When using enable_sequential_cpu_offload(), don’t move the pipeline to CUDA beforehand or else the gain in memory consumption will only be minimal (see this issue for more information). enable_sequential_cpu_offlo