ComfyUI_ExtraModels icon indicating copy to clipboard operation
ComfyUI_ExtraModels copied to clipboard

Force/Set CLIP Device — 'cpu' causes long delays

Open PrometheusDante opened this issue 8 months ago • 1 comments

Hey there, I found the Force/Set CLIP Device node to be causing extreme slowdown in my workflows, when set to 'cpu'. In particular this line pops up in the console: Attempting to release mmap (319) which does not happen when taking the node out of the process. This happens regardless of using regular DualClipLoader or the GGUF version from your other node pack.

Given how Comfy handles this correctly by default now, i.e. no longer defaulting to 'cuda' when VRAM is sparse, the node is not crucial to my workflow anymore, so this is more of a heads up in case others require it and run into this issue.

PrometheusDante avatar Apr 05 '25 14:04 PrometheusDante

Just in case other people are running into it, this commit attempts to fix the slowdown if the model is already on the CPU: https://github.com/city96/ComfyUI-GGUF/commit/a355f8b5eab3f83408eb95546f09cec72e028f04

city96 avatar Apr 23 '25 21:04 city96