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

πŸ“¦ Load Dual CLIP (Triggered)

Load two CLIP text encoders with memory management and execution order control. [Parameters] trigger: Connect to any output to force execution order. keep_on_vram: Pin dual CLIP to GPU VRAM permanently. Protected from auto-eviction. If you change either CLIP, the old one is automatically unpinned. use_dram: Check DRAM cache (CPU RAM) for previously loaded dual 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] sdxl: clip-l, clip-g sd3: clip-l + clip-g / clip-l + t5 / clip-g + t5 flux: clip-l, t5 hidream: t5 + llama (recommended) hunyuan_image: qwen2.5vl 7b, byt5 small newbie: gemma-3-4b-it, jina clip v2

By amir84ferdosΒ·Created 10 months agoΒ·Updated 4 months agoΒ· 65
πŸ“¦ Load Dual CLIP (Triggered)
  • trigger
  • clip
  • memory_stats
β—„clip_name1β–Ύβ–Ί
β—„clip_name2β–Ύβ–Ί
β—„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 (13)

NameTypeDefaultDescription
clip_name1COMBO0 options:
clip_name2COMBO0 options:
typeCOMBO11 options: sdxl, sd3, flux, hunyuan_video, hidream, hunyuan_image, +5
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β€”