Compress LoRAs by 65β94%. Load 10β20Γ more. Unlock exponential knowledge combinations.
π Quick Start β’ πΌ Pro $49 β’ π’ Studio $149 β’ π Full Docs
LoRA files are 144β487 MB each. You can load maybe 2β3 at a time before your VRAM is gone. That means your model is only accessing a fraction of the specialized knowledge available to it.
LoRA Lens fixes this. Compress your LoRAs by 65β94%, load 10β20 simultaneously on the same hardware, and unlock exponentially more knowledge combinations:
3 LoRAs loaded β 7 combinations
10 LoRAs loaded β 1,023 combinations
15 LoRAs loaded β 32,767 combinations
Same GPU. Same model. Thousands of times more capability.
Tested on real, publicly available LoRAs. Verify these yourself β download links below.
| Format | Original | After Rank Opt | After Quantization | Total Reduction |
|---|---|---|---|---|
| SD 1.5 | 144 MB | 18 MB | 9 MB | 93.8% |
| SDXL | 144 MB | 16 MB | 8 MB | 94.4% |
| FLUX | 487 MB | 175 MB | 87 MB | 82.1% |
| Metric | SD 1.5 | SDXL | FLUX |
|---|---|---|---|
| Variance Retained | 99.2% | 99.4% | 99.1% |
| SNR | 48.2 dB | 51.7 dB | 46.8 dB |
| MSE | 0.0012 | 0.0008 | 0.0015 |
| LoRA | Original | Compressed | Reduction |
|---|---|---|---|
| flux_koda_style | 342.0 MB | 1.4 MB | 99.6% |
| flux_anime_style | 42.8 MB | 1.9 MB | 95.6% |
| dmd2_sdxl_4step | 750.9 MB | 154.3 MB | 79.4% |
| hypersd_sdxl_2step | 750.9 MB | 186.0 MB | 75.2% |
| hypersd_sdxl_1step | 750.9 MB | 193.9 MB | 74.2% |
| hypersd_sdxl_8step | 750.9 MB | 239.6 MB | 68.1% |
| hypersd_sdxl_4step | 750.9 MB | 245.4 MB | 67.3% |
| lcm_lora_sd15 | 128.4 MB | 71.0 MB | 44.7% |
| hypersd_sd15_4step | 256.7 MB | 142.8 MB | 44.4% |
| hypersd_sd15_8step | 256.7 MB | 143.1 MB | 44.3% |
| TOTAL | 4,780.9 MB | 1,379.3 MB | 71.2% |
All 10 extract with max weight difference < 0.001. Full database as .loradb: 727.9 MB (47% additional reduction).
π Download source LoRAs to verify
- Hyper-SD (ByteDance): https://huggingface.co/ByteDance/Hyper-SD
- DMD2 (tianweiy): https://huggingface.co/tianweiy/DMD2
- LCM-LoRA SD1.5: https://huggingface.co/latent-consistency/lcm-lora-sdv1-5
- FLUX Style LoRAs: Available on CivitAI
Singular Value Decomposition identifies and removes unused dimensions in each layer's weight matrices. Most LoRAs are trained at higher ranks than they need β LoRA Lens finds the optimal rank automatically.
β 30β90% reduction depending on format. Quality retention: 99%+.
Converts BFloat16/Float16 weights to Int8 with per-tensor symmetric scale factors. Designed specifically for visual model LoRAs, not adapted from LLM quantization.
β Additional 50% reduction on top of Stage 1.
A new single-file format that stores collections of LoRAs using differential compression β only the weight deltas between LoRAs are stored. Related LoRAs (character variants, style series) compress dramatically:
Traditional: .loradb:
ββ character_1.safetensors 144 MB ββ Base (compressed) 20 MB
ββ character_2.safetensors 144 MB ββ Diff 1 (delta only) 2 MB
ββ character_3.safetensors 144 MB ββ Diff 2 (delta only) 3 MB
ββ Total: 432 MB ββ Total: 25 MB (94% smaller)
| Collection | Individual | As .loradb | Reduction |
|---|---|---|---|
| 50 character LoRAs | 7.2 GB | 380 MB | 94.7% |
| 100 style LoRAs | 14.4 GB | 890 MB | 93.8% |
| 20 lighting LoRAs | 2.88 GB | 145 MB | 95.0% |
Reconstruct any individual LoRA on-demand in milliseconds. Compatible with ComfyUI, A1111, and all standard tools after extraction.
π .loradb format specification
.loradb File Structure:
ββ Header (magic bytes: 'LORA', version, count, metadata length)
ββ Metadata (JSON: collection info, LoRA manifest, offsets)
ββ Base LoRA (first LoRA, fully compressed)
ββ Differential LoRA #2 (weight deltas from base, sparse format)
ββ Differential LoRA #3 (weight deltas from base)
ββ ...
Reconstruction: base + diff_N = original LoRA_N
git clone https://github.com/intuitivation/LoRA-Lens.git
cd LoRA-Lens
pip install -r requirements.txt
python run_lens.pyOpens automatically at http://localhost:8501. Windows users: just run launch_lens.bat.
Requirements: Python 3.8+ Β· 8 GB RAM (16 GB recommended) Β· Works on CPU, faster with GPU
Try it now: The repo includes demo_collection.loradb β a mini database with 2 FLUX LoRAs (3.3 MB) you can extract and inspect immediately.
See QUICKSTART.md for a full walkthrough with screenshots.
| Tab | What It Does |
|---|---|
| Dashboard | Real-time LoRA analysis β health score, efficiency metrics, format auto-detection |
| Analytics | Layer-by-layer weight distributions, correlation heatmaps, sparsity visualization |
| 3D Topology | UMAP projection of weight patterns with interactive cluster exploration |
| Conflict Scanner | Test two LoRAs for layer conflicts before merging β get ratio recommendations |
| AI Consultant | Ask questions about your LoRA in plain English, get optimization advice |
| Optimize | One-click SVD rank optimization with batch processing support |
| Surgery (Pro) | 8-bit/4-bit quantization, Ultra Compress mode, real-time quality metrics |
| Export | Download optimized LoRAs, create and extract .loradb collections |
| π Free | πΌ Pro Β· $49 | π’ Studio Β· $149 | |
|---|---|---|---|
| SVD rank optimization | β | β | β |
| All formats (SD 1.5 / SDXL / FLUX) | β | β | β |
| Analysis, visualizations, AI consultant | β | β | β |
| Conflict detection & batch processing | β | β | β |
| 8-bit / 4-bit quantization | β | β | β |
| Ultra Compress (rank + quant combined) | β | β | β |
| Real-time quality metrics (SNR, MSE, MAE) | β | β | β |
| .loradb creation | Up to 5 | Up to 50 | Unlimited |
| .loradb extraction | β Unlimited | β Unlimited | β Unlimited |
| Commercial use | β | β | β |
| Sell/distribute .loradb files | β | β | β |
| Users per license | 1 | 1β10 | 1β25 |
| Priority email support | β | 48hr | 24hr |
One-time payment. Lifetime updates. No subscription.
| Version | What's Coming |
|---|---|
| v1.7 | Batch .loradb creation Β· marketplace integration Β· collection management UI |
| v2.0 | REST API + Python SDK Β· cloud processing Β· collaborative collections |
| Future | Automatic LoRA categorization Β· version control Β· direct tool integrations |
Have a feature idea? Open an issue.
Bugs & feature requests: GitHub Issues Pro/Studio priority support: jonwright.24@gmail.com
Contributions welcome β bug fixes, documentation, feature suggestions. Open an issue to discuss before submitting major changes.
MIT for personal and educational use. Commercial license required for business use. Studio license required to sell .loradb files. Full terms in LICENSE and COMMERCIAL_LICENSE.md.
LoRA Lens is built and maintained by Jon Wright. If this tool helps your workflow:
β Star this repo β helps others find it β Buy me a coffee β support development πΌ Buy a license β funds continued development π£ Share your results β post compression wins on Reddit, CivitAI, X
LoRA Lens v1.6 Β· Made with β€οΈ for the AI community, Zoey, and Robl β¨ Β·
