Nodes/ComfyUI-ArchAi3d-Qwen/πŸ“¦ Load CLIP (Triggered)
ComfyUI Node

πŸ“¦ Load CLIP (Triggered)

Load CLIP text encoder with memory management and execution order control. [Parameters] trigger: Connect to any output to force execution order. keep_on_vram: Pin CLIP to GPU VRAM permanently. Protected from auto-eviction. If you change the CLIP, the old one is automatically unpinned. use_dram: Check DRAM cache (CPU RAM) for previously loaded CLIP. Much faster than disk reload. replace_cached: When switching CLIPs, evict this loader's previous CLIP from DRAM. Saves RAM. device: Load CLIP on GPU (default) or CPU. Use CPU to save VRAM for diffusion model. cache_to_local_ssd: RunPod only β€” copy to local NVMe for faster loading. auto_free_vram: Before loading from disk, if free VRAM < threshold, unpin all models and free VRAM. Only triggers for different model (same model reuses cache). min_free_vram_gb: VRAM threshold in GB for auto_free_vram. auto_free_dram: Before loading from disk, if free RAM < threshold, clear DRAM cache. Only triggers on DRAM miss. min_free_dram_gb: RAM threshold in GB for auto_free_dram. [Recipes] stable_diffusion: clip-l stable_cascade: clip-g sd3: t5 xxl / clip-g / clip-l stable_audio: t5 base mochi: t5 xxl cosmos: old t5 xxl lumina2: gemma 2 2B wan: umt5 xxl hidream: llama-3.1 or t5 omnigen2: qwen vl 2.5 3B qwen_image: Qwen VL models

By amir84ferdosΒ·Created 10 months agoΒ·Updated 4 months agoΒ· 65
πŸ“¦ Load CLIP (Triggered)
  • trigger
  • clip
  • memory_stats
β—„clip_nameβ–Ύβ–Ί
β—„typeβ–Ύβ–Ί
β—„keep_on_vramfalseβ–Ί
β—„use_dramtrueβ–Ί
β—„replace_cachedtrueβ–Ί
β—„deviceβ–Ύβ–Ί
β—„cache_to_local_ssdtrueβ–Ί
β—„auto_free_vramfalseβ–Ί
β—„min_free_vram_gb10.0β–Ί
β—„auto_free_dramfalseβ–Ί
β—„min_free_dram_gb10β–Ί
CategoryArchAi3d/Loaders

Inputs (12)

NameTypeDefaultDescription
clip_nameCOMBO0 options:
typeCOMBO18 options: stable_diffusion, stable_cascade, sd3, stable_audio, mochi, ltxv, +12
triggeropt*Connect to any output to ensure this node runs after that node completes
keep_on_vramoptBOOLEANfalseKeep CLIP on GPU VRAM permanently. Skips all DRAM cache logic. Good for light models that fit in VRAM.
use_dramoptBOOLEANtrueCheck DRAM cache for previously offloaded CLIP. Much faster than disk reload.
replace_cachedoptBOOLEANtrueWhen switching CLIPs, evict THIS loader's previous CLIP from DRAM first. Saves RAM. Turn off to keep multiple CLIPs cached.
deviceoptCOMBODevice to load CLIP on. Use 'cpu' to save VRAM.
cache_to_local_ssdoptBOOLEANtrueRunPod: copy model to local SSD for faster loading. No effect on local PC.
auto_free_vramoptBOOLEANfalseBefore loading: if free VRAM is below threshold, unpin all models and let ComfyUI free VRAM.
min_free_vram_gboptFLOAT10.00–80Minimum free VRAM (GB) required. If below this, auto-free kicks in.
auto_free_dramoptBOOLEANfalseBefore loading: if free RAM is below threshold, clear DRAM cache to free system memory.
min_free_dram_gboptFLOAT100–256Minimum free RAM (GB) required. If below this, DRAM cache is cleared.

Outputs (2)

NameTypeDescription
clipCLIPβ€”
memory_statsSTRINGβ€”