LyCORIS Documentation

September 1, 2026 · View on GitHub

Start here. Every document in this tree is listed below with what it answers, so you can jump straight to the one you need.

I want to …

GoalRead
Pick an algorithmalgorithms/README.md, then algorithms/guidelines.md
Understand the math behind an algorithmalgorithms/details.md
Configure a training runusage/network-args.md and usage/presets.md
Call LyCORIS from my own codeapi/README.md
Make training and merging fasterkernels/README.md
Know which backend is runningkernels/backends.md
Check numerical accuracykernels/precision.md
Reproduce the speed numberskernels/benchmarks.md
Convert between formatsusage/conversion-scripts.md
Work on LyCORIS itself, or cut a releasedevelopment/README.md
See sample resultsresources/demo.md
Learn more about fine-tuning in generalresources/README.md

Tree

docs/
├── algorithms/     what LyCORIS implements
│   ├── README.md   list of implemented algorithms, with shapes and parameters
│   ├── details.md  the math of each algorithm
│   └── guidelines.md  which algorithm to pick, and with what hyperparameters
├── usage/          how to drive it
│   ├── network-args.md       every network argument, per algorithm
│   ├── presets.md            preset files and layer selection
│   └── conversion-scripts.md format conversion tools
├── api/
│   └── README.md   module, functional and wrapper APIs
├── kernels/        the fused kernel backends (experimental)
│   ├── README.md      what is fused, what it buys, how to switch it off
│   ├── backends.md    selection order, per-op scope, environment variables
│   ├── precision.md   dtype policy and measured accuracy
│   └── benchmarks.md  the measurement harness and current results
├── development/
│   └── README.md   checks, versioning, release channels, workflows
└── resources/
    ├── README.md   external reading on fine-tuning
    └── demo.md     example outputs

Source map

PathContents
lycoris/modules/one nn.Module wrapper per algorithm, plus base.py
lycoris/functional/the same algorithms as plain functions (weight_gen, diff_weight, bypass_forward_diff)
lycoris/kernels/fused Triton and TileLang kernels, the autograd layer, and backend selection
lycoris/kernels/plans/the analytic tile planner and the measured tuner
lycoris/wrapper.pyLycorisNetwork, create_lycoris
lycoris/kohya.pythe kohya-ss/sd-scripts entry point
scripts/bench/kernels/the kernel benchmark suite (measure scripts write JSON, plot scripts draw it)
scripts/ci/the checks and version helpers the workflows call
test/functional, module, wrapper and kernel test suites