Loads a CompVis Latent Diffusion (LDM) checkpoint from ComfyUI/models/ldm.
This is the original 2021 LDM architecture (Rombach et al.) with a BERT-based text encoder. The model operates in a 4-channel latent space with 8Γ spatial downsampling (f8 VAE).
Outputs: MODEL / BERT / VAE.
precision controls compute dtype:
β’ fp32 β full precision (default, most stable);
β’ fp16 β half precision (2Γ less VRAM, faster on modern GPUs);
β’ bf16 β bfloat16 (better dynamic range than fp16, requires Ampere+).
memory_mode controls VRAM usage:
β’ keep β all components stay on GPU (fastest, highest VRAM);
β’ auto β keep on GPU when VRAM permits, otherwise offload after stage;
β’ offload β each component lives on GPU only during its stage;
β’ cpu β entire inference runs on CPU (no VRAM required).
By WinlenskyΒ·Created a day agoΒ·Updated about 12 hours agoΒ· 1
π° Load LDM Checkpoint
MODEL
BERT
VAE
βckpt_nameβΎβΊ
βprecisionfp32βΊ
βmemory_modeβΎβΊ
CategoryLDM
Inputs (3)
Name
Type
Default
Description
ckpt_name
COMBO
Checkpoint file from the ComfyUI/models/ldm directory.
precision
COMBO
fp32
Compute precision. fp16 halves VRAM usage and speeds up inference on modern GPUs. bf16 offers better numerical stability than fp16 but requires Ampere+ (RTX 30xx+).