(self)
| 84 | if hasattr(vae_decoder, "enable_async_decode"): |
| 85 | vae_decoder.enable_async_decode() |
| 86 | if not getattr(vae_decoder, "cpu_offload", False) or not torch.cuda.is_available() or (self._device is not None and self._device.type != "cuda"): |
| 87 | return |
| 88 | logger.info("[AsyncVAEChunkDecoder] keeping offloaded VAE weights on GPU until the decode session finishes") |
| 89 | self._saved_vae_cpu_offload = True |
| 90 | vae_decoder.cpu_offload = False |
nothing calls this directly
no outgoing calls
no test coverage detected