For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /nodes/12/SelectCLIPDevice.md.

选择 CLIP 设备(SelectCLIPDevice)

SelectCLIPDeviceadvanced/multigpu角色:CLIP 处理

选择 CLIP 设备节点允许您指定 CLIP 文本编码器运行的设备(CPU 或特定 GPU)。默认情况下,设备由模型加载器分配,但您可以覆盖此设置,改为使用 CPU 或特定 GPU。如果请求的设备在您的机器上不存在,该节点会直接原样传递 CLIP 而不做更改,并记录一条消息,而不会引发错误。

参数

参数类型默认 / 范围说明
clipCLIP · 文本编码器—(连线输入)分配到所选设备的 CLIP 文本编码器;如果请求的设备不可用,则原样传递原始 CLIP。
deviceCOMBOdefault、cpu放置 CLIP 文本编码器的设备。"default" 恢复由加载器分配的设备。"cpu" 将加载设备和卸载设备都固定到 CPU。"gpu:N" 将加载设备固定到第 N 个可用的 GPU(默认值:"default")。

输出

输出类型说明
CLIPCLIP文本编码器

怎么接

  • 上游:CheckpointLoaderSimple / CLIPLoader / DualCLIPLoader
  • 下游:CLIPTextEncode
  • 接线:夹在 CLIP 与 CLIPTextEncode 之间,用来改层数、权重或挂钩子;输出仍接 clip。

使用案例

属于「CLIP 处理」类节点,向下游提供文本编码器。从 clip、device(default、cpu) 开始填就能跑起来。典型接法:CheckpointLoaderSimple → 本节点 → CLIPTextEncode。输出类型是 CLIP,只能接同类型的输入端口,颜色对不上就是接错了。

端口与连线示意

SelectCLIPDevice 端口与连线示意

同类节点

多GPU CFG 拆分 · 选择模型设备 · 选择VAE设备