Add MultiGPU support for various model loaders and encoders

This commit is contained in:
John Pollock
2025-10-13 02:10:41 -05:00
parent 01b41f4514
commit fd60ae6f65
25 changed files with 648 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
# WanVideoVACEEncodeMultiGPU
`WanVideoVACEEncodeMultiGPU` encodes VACE reference inputs for WanVideo workflows while respecting your chosen device. It patches the base encoder to run on the MultiGPU device and to reuse Wan offload settings automatically.
## Inputs
### Required
| Parameter | Data Type | Description |
| --- | --- | --- |
| `vae` | `WANVAE` | VAE pair to use during encoding. |
| `load_device` | `MULTIGPUDEVICE` | Device that will execute encoding. |
| `width` | `INT` | Target latent width. |
| `height` | `INT` | Target latent height. |
| `num_frames` | `INT` | Number of frames to encode. |
| `strength` | `FLOAT` | Overall conditioning strength. |
| `vace_start_percent` | `FLOAT` | Step fraction where VACE influence begins. |
| `vace_end_percent` | `FLOAT` | Step fraction where VACE influence ends. |
### Optional
| Parameter | Data Type | Description |
| --- | --- | --- |
| `input_frames` | `IMAGE` | Input frames used for conditioning. |
| `ref_images` | `IMAGE` | Reference imagery to encode. |
| `input_masks` | `MASK` | Masks applied during encoding. |
| `prev_vace_embeds` | `WANVIDIMAGE_EMBEDS` | Prior VACE embeds to reuse or blend. |
| `tiled_vae` | `BOOLEAN` | Enable tiled encode for lower VRAM usage. |
## Outputs
| Output Name | Data Type | Description |
| --- | --- | --- |
| `vace_embeds` | `WANVIDIMAGE_EMBEDS` | Encoded VACE embeddings for Wan samplers. |