Skip to main content

Overview

The Select CLIP Device node lets you choose which device (CPU or a specific GPU) the CLIP text encoder runs on. By default, the device is assigned by the model loader, but you can override it to use the CPU or a particular GPU. If the requested device doesn’t exist on your machine, the node simply passes the CLIP through unchanged and logs a message instead of causing an error.

Inputs

ParameterDescriptionData TypeRequiredRange
clipThe CLIP text encoder to assign to a specific device.CLIPYes
deviceThe device to place the CLIP text encoder on. "default" restores the device assigned by the loader. "cpu" pins both the load and offload device to CPU. "gpu:N" pins the load device to the Nth available GPU (default: "default").COMBOYes"default"
"cpu"
"gpu:0"
"gpu:1"
"gpu:2"
"gpu:3"
"gpu:4"
"gpu:5"
"gpu:6"
"gpu:7"

Outputs

Output NameDescriptionData Type
clipThe CLIP text encoder assigned to the selected device, or the original CLIP passed through unchanged if the requested device is not available.CLIP
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 92af94d9f5eea27095cc008debdf7339d26888a0e2cc8bd71ae9c9ba8718eb01