lycoris-lora
Lora beYond Conventional methods, Other Rank adaptation Implementations for Stable diffusion
What it is and what it does
LyCORIS is a PyTorch library that wraps Stable Diffusion models with parameter-efficient fine-tuning adapters. Instead of training all model weights, it applies low-rank or other structured modifications to a subset of layers, dramatically reducing memory and storage requirements while maintaining output quality. The library supports multiple adaptation algorithms (LoRA, LoHa, LoKr, DyLoRA, and native fine-tuning) with different trade-offs between fidelity, flexibility, diversity, and model size.
You can use it three ways: as a training backend for kohya-ss scripts (the most common path for Stable Diffusion practitioners), as a standalone PyTorch wrapper for custom training loops, or as pre-trained adapter weights loaded into inference tools like sd-webui, ComfyUI, or InvokeAI. The library handles the adapter lifecycle—creation, application to models, stacking multiple adapters, and restoration—leaving your base model untouched.
Use it for:
- Train custom Stable Diffusion adapters on specific visual styles or concepts using kohya scripts without full model fine-tuning.
- Reduce storage footprint of fine-tuned models from gigabytes to megabytes by using low-rank adapters instead of full checkpoints.
- Stack multiple LyCORIS adapters on a single base model to combine different trained concepts or styles at inference time.
- Integrate parameter-efficient tuning into custom PyTorch training pipelines via the standalone wrapper API.
- Fine-tune Stable Diffusion models on consumer GPUs with limited VRAM by using adapter-based training instead of full model training.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Implements parameter-efficient fine-tuning algorithms (LoRA, LoHa, LoKr, DyLoRA, and others) for Stable Diffusion models, enabling training and inference with reduced memory and storage overhead.
Yes. LyCORIS is actively maintained, has no known vulnerabilities, installs cleanly with minimal dependencies, and is widely adopted in the Stable Diffusion community. Choose it if you need to train or use parameter-efficient adapters for Stable Diffusion; the multiple algorithm options and integration with popular training frameworks make it the standard tool for this task.
Install
lycoris-lora on PyPI
pip
pip install lycoris-lorauv
uv add lycoris-lorapoetry
poetry add lycoris-loraInstalling lycoris-lora
Before you install
Low friction: pure Python wheel with four straightforward runtime dependencies (torch, einops, toml, tqdm). Actively maintained with recent commits and a stable release cadence.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for both open-source and proprietary projects.
Quickstart
pip install lycoris-lora
from lycoris import create_lycoris, LycorisNetwork
LycorisNetwork.apply_preset({"target_name": [".*attn.*"]})
lycoris_net = create_lycoris(
your_model, 1.0, linear_dim=16, linear_alpha=2.0, algo="lokr"
)
lycoris_net.apply_to()
output = your_model(x)
Requires PyTorch and a compatible GPU (CUDA 11.8, 12, or 12.1 recommended). Python >= 3.10 required.
Verify before relying
- Whether all newer LyCORIS model types are supported across all listed inference platforms (ComfyUI, InvokeAI, CivitAI, Tensor.Art) or if some lag behind.
- Specific CUDA version compatibility constraints beyond the classifiers (11.8, 12, 12.1) listed in metadata.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — torch, einops, toml, tqdm |
| Maintenance | actively maintained — 275 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 120,050/month — #12,045 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: lycoris_lora-3.4.0-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
peftPEFT implements parameter-efficient fine-tuning…
permissive · top 5,000 on PyPI
loralibloralib provides PyTorch modules that implement…
permissive · top 15,000 on PyPI
adaptersAdapters adds parameter-efficient fine-tuning…
permissive · top 15,000 on PyPI
k-diffusionk-diffusion is a PyTorch library implementing…
permissive · top 15,000 on PyPI
torchaoTorchAO applies quantization and sparsity…
unclear · top 5,000 on PyPI
diffusersDiffusers provides pretrained diffusion models…
permissive · top 5,000 on PyPI
tomesdSpeeds up Stable Diffusion image generation by…
permissive · top 15,000 on PyPI
unslothUnsloth accelerates training and fine-tuning of…
permissive · top 5,000 on PyPI
ms-swiftms-swift is a framework for training,…
permissive · top 15,000 on PyPI
liger-kernelLiger Kernel provides optimized Triton kernels…
permissive · top 15,000 on PyPI