sd-scripts (Kohya)
The underlying scripts powering Kohya & most LoRA trainers.
HARDWARE REQUIREMENTS //
Runs locally · Mid GPU (12 GB)
SD 1.5 LoRA fits in 8 GB; SDXL LoRA wants 12 GB; Flux 24 GB.
Why we recommend sd-scripts (Kohya)
- Open source
Source is public — you can audit it, fork it, and you'll never lose access to your workflows if sd-scripts (Kohya) the company changes direction.
- Runs on 8 GB
Comfortable on a mid-range consumer card — no need to remortgage for an A100.
- Apple Silicon
Native Metal / MPS support — runs on M-series Macs without CUDA gymnastics.
- Top-tier pick
Power-user score 88/100 — consistently rated highly by people who use this every day, not just benchmark chasers.
Documentation-led datasheet
This page summarizes upstream documentation, release information, and editorially reviewed catalogue fields. It is not presented as a hands-on benchmark. Verify changing requirements at the official project; report stale data through our corrections channel.
AT-A-GLANCE SIGNALS //
DERIVED FROM THIS PAGE'S DATA- Install difficultyStandard
A standard local install — download, install dependencies, point at your GPU.
- Hardware comfortMainstream
Needs 8 GB minimum — RTX 3060 12GB or 4070 territory.
- EcosystemActive community
Open source plus 4 community resources we've vetted — there are people to ask.
- VerificationRecent
Catalogue entry last updated 71 days ago — re-verification due soon.
Tutorials & deep-dives for sd-scripts (Kohya)
Hand-picked from YouTube, Reddit, GitHub, and the wider web. Each link goes straight to the source — we don't intercept or rewrite anything.
Other training & fine-tuning tools we rate
Three picks across different tradeoffs — so you don't end up with three near-clones of sd-scripts (Kohya).
What is sd-scripts (Kohya)?
Kohya's sd-scripts is the canonical reference implementation for Stable Diffusion fine-tuning — DreamBooth, LoRA, LyCORIS, TI, full fine-tune. The GUI projects (Kohya, FluxGym) wrap these scripts. Direct use suits CI, containerised training, and reproducibility.
Pros & cons
✓ PROS
- Canonical reference impl — what the GUI projects wrap
- Reproducible: configs as plain JSON/TOML
- Maintained directly by Kohya
– CONS
- CLI only — no GUI
- Documentation lives across GitHub issues + community wikis
What's actually free?
Apache 2.0.
Alternatives
AI-Toolkit (Ostris)
Modern training framework — Flux, SDXL, SD3 LoRAs in YAML.