ComfyUI Node
LoRA Compress (Yogurt Nodes)
Compress LoRA rank with SVD for standard .lora_down/.lora_up pairs. Optionally absorb alpha/rank first to preserve the actual LoRA effect before compression.
LoRA Compress (Yogurt Nodes)
- lora
- compressed_lora
- compressed_layers_count
- report
◄target_rank-1►
◄energy_keep_ratio0.980►
◄min_rank1►
◄key_pattern.*►
◄update_alphatrue►
◄absorb_alphatrue►
CategoryYogurtNodes/Models
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| lora | LORA | LoRA to compress. | |
| target_rank | INT | -1-1–4096 | Target rank. Use -1 to auto-pick by energy_keep_ratio. |
| energy_keep_ratio | FLOAT | 0.9800–1 | Only used when target_rank=-1. Keeps this fraction of SVD energy. |
| min_rank | INT | 11–4096 | Minimum rank when auto-selecting. |
| key_pattern | STRING | .* | Regex filter for down-key names. |
| update_alpha | BOOLEAN | true | Rewrite alpha after compression so saved LoRA keeps the expected scale. |
| absorb_alpha | BOOLEAN | true | When true, reconstruct full LoRA effect using alpha/rank before SVD compression. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| compressed_lora | LORA | — |
| compressed_layers_count | INT | — |
| report | STRING | — |