Nodes/comfyui_imgtools/Merge LoRAs to File (rholdorf)
ComfyUI Node

Merge LoRAs to File (rholdorf)

Combine two LoRAs at fixed strengths into a single .safetensors by exact rank concatenation (ranks may differ). Reproduces applying both in sequence; use the merged file at strength 1.0. Standard LoRA (lora_up/lora_down) files only.

By rholdorf·Created 8 months ago·Updated 7 days ago· 0
Merge LoRAs to File (rholdorf)
    • path
    • retained_energy
    lora_name1
    strength10.50
    lora_name2
    strength20.50
    filename_prefixmerged_lora
    target_rank0
    Categoryrholdorf/lora

    Inputs (6)

    NameTypeDefaultDescription
    lora_name1COMBOFirst LoRA to combine.
    strength1FLOAT0.50-100–100Strength baked in for the first LoRA (the value you'd set in Power Lora Loader).
    lora_name2COMBOSecond LoRA to combine.
    strength2FLOAT0.50-100–100Strength baked in for the second LoRA.
    filename_prefixSTRINGmerged_loraOutput name (relative to the loras folder). '.safetensors' is added automatically.
    target_rankoptINT00–40960 = exact rank concatenation (rank = sum of both). A positive value recompresses the merged delta to that rank via truncated SVD (smaller file, approximate). E.g. 64 to match a rank-64 LoRA.

    Outputs (2)

    NameTypeDescription
    pathSTRING
    retained_energySTRING