Skip to content

How to use gpu when clip encoding? #10569

Description

@bbaudio-2025

Custom Node Testing

Your question

I have set 'device' as 'default' in the node 'Load CLIP', but it seemed that comfyui was using CPU to encode, and was very slow. There is no 'GPU' or 'CUDA' in device options, how can I switch to GPU for text encoding?

Logs

Using scaled fp8: fp8 matrix mult: False, scale input: False
Requested to load WanTEModel
loaded completely; 95367431640625005117571072.00 MB usable, 6419.48 MB loaded, full load: True
CLIP/text encoder model load device: cpu, offload device: cpu, current: cpu, dtype: torch.float16

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleThis issue is stale and will be autoclosed soon.User SupportA user needs help with something, probably not a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions