> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-matt-router-pricing-pika-and-guard.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SelectCLIPDevice - ComfyUI Built-in Node Documentation

> Documentation for SelectCLIPDevice node.

## 概述

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

## 输入

| 参数 | 描述 | 数据类型 | 是否必填 | 取值范围 |
| - | - | - | - | - |
| `clip` | 要分配到特定设备的 CLIP 文本编码器。 | CLIP | 是 | |
| `device` | 放置 CLIP 文本编码器的设备。`"default"` 恢复由加载器分配的设备。`"cpu"` 将加载设备和卸载设备都固定到 CPU。`"gpu:N"` 将加载设备固定到第 N 个可用的 GPU（默认值：`"default"`）。 | COMBO | 是 | `"default"`<br />`"cpu"`<br />`"gpu:0"`<br />`"gpu:1"`<br />`"gpu:2"`<br />`"gpu:3"`<br />`"gpu:4"`<br />`"gpu:5"`<br />`"gpu:6"`<br />`"gpu:7"` |

## 输出

| 输出名称 | 描述 | 数据类型 |
| - | - | - |
| `clip` | 分配到所选设备的 CLIP 文本编码器；如果请求的设备不可用，则原样传递原始 CLIP。 | CLIP |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/SelectCLIPDevice/zh.md)

***

**Source fingerprint (SHA-256):** `92af94d9f5eea27095cc008debdf7339d26888a0e2cc8bd71ae9c9ba8718eb01`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.