vllm_omni.diffusion.distributed.autoencoders.wan_vae_fastpath.install ¶
Instance-level installer for the Wan VAE decoder fast path.
VAE_FAST_PATH_LEVELS module-attribute ¶
WanVaeFastPathReport dataclass ¶
What :func:install_wan_vae_fastpath did to one VAE instance.
patched class-attribute instance-attribute ¶
install_wan_vae_fastpath ¶
install_wan_vae_fastpath(
vae: Module, *, level: str = "lossless"
) -> WanVaeFastPathReport
Install the Wan decoder fast path on one loaded AutoencoderKLWan. Idempotent.
level: * "off": do nothing. * "lossless": bind the bit-exact replacement forwards (Tier 1). * "channels_last": Tier 1 plus channels-last conv weights (not bit-exact).
The installer refuses (and reports why) when the VAE is not a diffusers Wan VAE, or when spatially-sharded decode is configured or already installed: wan_spatial_shard rebinds the same forwards and replaces the causal convolutions with halo-exchanging variants.
uninstall_wan_vae_fastpath ¶
Restore original forwards and tensor layouts, retaining current weight values.