Sign In

Krea2 SVD LoRA Merger

7

Nov 18, 2026

(Updated: 6 days ago)

tool guide
Krea2 SVD LoRA Merger

Merge multiple Krea2 LoRAs into one fixed-rank LoRA - entirely on CPU.

Krea2 SVD LoRA Merger combines multiple LoRAs using individual weights and compresses the combined result into a uniform target rank using QR decomposition and SVD.

Instead of stacking several LoRAs during generation, you can merge them into a single .safetensors file with your chosen coefficients and rank.

Screen.png

Features

- Weighted merging — combine multiple LoRAs with individual coefficients, including negative weights.

- Rank compression — reduce the combined rank using QR decomposition and a small-core SVD.

- CPU-only processing — no GPU or VRAM required.

- Preflight validation — checks file structure, tensor pairs, dimensions and compatibility before merging.

- Truncation error report — mean and maximum relative error per layer to help evaluate the chosen target rank.

- Forge Neo metadata support — combines activation and negative prompts, preferred weight and notes from sidecar JSON files.

- GUI and CLI — graphical interface with progress and logging, or command-line operation.

- Safe output handling — source files remain untouched; temporary output is validated before being committed.

console_python.jpg

Requirements

Python 3.10+, PyTorch and Safetensors.

The GUI uses Tkinter and optionally ttkbootstrap for themed appearance.

Supported formats

- Kohya-style lora_down / lora_up

- PEFT / Diffusers-style lora_A / lora_B

- Linear (2D) layers

Limitations

Conv LoRAs, LoKr and LoHa are not supported.

Repository

Full documentation, installation instructions and command-line usage are available in the GitHub repository https://github.com/dbodik-git/Krea2_SVD_LoRA_Merger

25.11.2026

Krea2 SVD LoRA Merger — What's New

The project has received a major set of improvements focused on LoKr compatibility, memory management, merge accuracy, and reproducibility.

Screen-2026-11-25_15-13-31.png

Major improvements

1. Three LoKr merging strategies

The merger now supports three approaches:

  • Standard mode: converts LoKr modules to LoRA factors at the target rank before merging.

  • Full-Rank mode: preserves the original LoKr factor rank until the final SVD compression, avoiding intermediate truncation.

  • Matrix-Free mode: combines LoKr and standard LoRA through an implicit matrix operator, without explicitly expanding Kronecker products or creating full-rank LoKr factors.

2. Improved merge error diagnostics

The program now distinguishes between intermediate LoKr conversion loss and final SVD truncation error. Standard mode can also report a conservative upper bound for the combined error when it can be established.

Matrix-Free mode reports a randomized residual estimate, clearly distinguished from an exact Frobenius error measurement.

3. Improved memory management

  • Header-based memory preflight checks for Full-Rank LoKr conversion.

  • Configurable workspace limits for Matrix-Free SVD.

  • Module-by-module source tensor processing in Matrix-Free mode.

  • Process memory diagnostics, including sampled peak working set and OS-reported lifetime peak when available.

4. More consistent output

The output LoRA key style is now selected globally, based on the most common input style, with deterministic tie-breaking. This prevents mixed Kohya/PEFT key naming and makes the selection independent of input order.

Matrix-Free SVD also uses deterministic per-module random seeds, improving repeatability between runs.

5. LoKr alpha diagnostics

The merger now explicitly documents and warns about LoKr alpha scaling assumptions. Direct full-matrix LoKr is currently interpreted using the LyCORIS convention (scale = 1); compatibility with files produced by other trainers must be verified separately.

6. Improved Forge Neo integration

Forge Neo sidecar JSON handling preserves activation text, negative prompts, preferred weights, and user notes, with safer overwrite and backup behavior.

Additional improvements

  • Expanded CLI options for LoKr conversion and Matrix-Free SVD.

  • Improved cancellation handling in the GUI.

  • Additional preflight validation and safer output handling.

  • Updated documentation, including a Windows standalone executable build guide.

The goal: make Krea2 LoRA merging more flexible, transparent, memory-aware, and reliable — especially when working with mixed LoKr and standard LoRA inputs.

7

Comments