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
@@ -0,0 +1,25 @@
# LoadWanVideoClipTextEncoderMultiGPU
`LoadWanVideoClipTextEncoderMultiGPU` loads WanVideo CLIP vision/text encoders on the device you specify, making it easy to keep encoders off your primary compute GPU when memory is tight.
## Inputs
### Required
| Parameter | Data Type | Description |
| --- | --- | --- |
| `model_name` | `STRING` | CLIP vision or text encoder model from `ComfyUI/models/clip_vision` or `ComfyUI/models/text_encoders`. |
| `precision` | `STRING` | Weight precision for the model (`fp16`, `fp32`, or `bf16`). |
### Optional
| Parameter | Data Type | Description |
| --- | --- | --- |
| `device` | `STRING` | Target MultiGPU device to host the encoder. |
## Outputs
| Output Name | Data Type | Description |
| --- | --- | --- |
| `wan_clip_vision` | `CLIP_VISION` | Loaded CLIP vision/text module ready for image conditioning. |
| `load_device` | `MULTIGPUDEVICE` | Device that now owns the encoder; feed into `WanVideoClipVisionEncode`. |