Nodes/Corza LoRA Loader (Clean)/Corza LoRA Loader (Clean)
ComfyUI Node

Corza LoRA Loader (Clean)

LoRA loader with optional spectral cleanup: drops the noisy low-energy tail of each layer (kohya resize math) and tames outlier layers. Helps with blocky/crunchy artifacts, especially on distilled/turbo models and stacked LoRAs. With cleaning off it behaves exactly like the stock loader.

By CoreyCorza·Created about a month ago·Updated about a month ago· 7
Corza LoRA Loader (Clean)
  • model
  • clip
  • model
  • clip
lora_name
strength_model1.00
strength_clip1.00
keep_energy100.0
max_rank0
tame_layers0.00
star_rescalefalse
gate_strength1.00
Categorycorza/lora

Inputs (10)

NameTypeDefaultDescription
modelMODEL
lora_nameCOMBO0 options:
strength_modelFLOAT1.00-100–100
strength_clipFLOAT1.00-100–100
keep_energyFLOAT100.050–100Per layer, keep only the strongest SVD components adding up to this % of the update's energy; the rest is mostly training noise. 100 = off. Try 95, then 90 if artifacts persist.
max_rankINT00–1024Hard cap on each layer's rank after the energy cut. 0 = off.
tame_layersFLOAT0.000–1Compress layers whose update is much stronger than the rest (above the LoRA's 90th percentile) back toward the pack. 0 = off, 1 = fully clamped. Try 0.5 for crunchy edges.
star_rescaleBOOLEANfalseSTAR (arXiv:2502.10339): after keep_energy trims a layer, boost the kept components so the layer's total strength matches the original — trims the conflict-prone tail without weakening the LoRA. Only does something when keep_energy < 100.
gate_strengthFLOAT1.000–1How much of the LoRA's effect reaches 'gate' layers only (Krea 2's gated attention + SwiGLU gates, etc.). Gates are multiplicative sigmoid controls, so LoRA edits there have outsized, compounding effect — a big source of artifacts and of stacked LoRAs fighting, which the norm-based tame_layers misses. 1 = full effect (default), 0 = strip the LoRA from gates (they stay at base). Try 0.5 if stacked LoRAs deform. No effect on LoRAs without gate layers.
clipoptCLIP

Outputs (2)

NameTypeDescription
modelMODEL
clipCLIP