PM LoRA Stack Decompose

PM LoRA Stack Decompose

Decomposes LoRA stack into tensor components for merging. Extracts (up, down, alpha) tuples from each LoRA layer and handles rank mismatches using SVD-based decomposition methods. Decomposition Methods: - none: Requires all LoRAs to have matching ranks (fastest, fails if ranks differ) - rSVD: Randomized SVD for rank reconciliation (fast, recommended for most cases) - energy_rSVD: Energy-based randomized SVD (best for DiT/large LoRAs) - SVD: Full SVD decomposition (slow but optimal) Features hash-based caching to skip recomputation when inputs haven't changed.

Pack: LoRA Power-Merger ComfyUI

custom_nodes.LoRA-Merger-ComfyUI

Inputs (4)

NameTypeRequired
key_dictsLoRAStackrequired
decomposition_methodCOMBOrequired
svd_rankINTrequired
deviceCOMBOrequired

Outputs (1)

NameType
LoRATensorsLoRATensors