MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / is_async

Method is_async

lightx2v/utils/async_vae.py:86–87  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected