π¦ 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
- trigger
- clip
- memory_stats
Inputs (13)
| Name | Type | Default | Description |
|---|---|---|---|
| clip_name1 | COMBO | 0 options: | |
| clip_name2 | COMBO | 0 options: | |
| type | COMBO | 11 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_vramopt | BOOLEAN | false | Keep CLIP on GPU VRAM permanently. Skips all DRAM cache logic. Good for light models that fit in VRAM. |
| use_dramopt | BOOLEAN | true | Check DRAM cache for previously offloaded CLIP. Much faster than disk reload. |
| replace_cachedopt | BOOLEAN | true | When switching CLIPs, evict THIS loader's previous CLIP from DRAM first. Saves RAM. Turn off to keep multiple CLIPs cached. |
| deviceopt | COMBO | Device to load CLIP on. Use 'cpu' to save VRAM. | |
| cache_to_local_ssdopt | BOOLEAN | true | RunPod: copy model to local SSD for faster loading. No effect on local PC. |
| auto_free_vramopt | BOOLEAN | false | Before loading: if free VRAM is below threshold, unpin all models and let ComfyUI free VRAM. |
| min_free_vram_gbopt | FLOAT | 10.00β80 | Minimum free VRAM (GB) required. If below this, auto-free kicks in. |
| auto_free_dramopt | BOOLEAN | false | Before loading: if free RAM is below threshold, clear DRAM cache to free system memory. |
| min_free_dram_gbopt | FLOAT | 100β256 | Minimum free RAM (GB) required. If below this, DRAM cache is cleared. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| clip | CLIP | β |
| memory_stats | STRING | β |