π¦ 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
- trigger
- clip
- memory_stats
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| clip_name | COMBO | 0 options: | |
| type | COMBO | 18 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_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 | β |