Image GenerationOpen source codebmaltais/kohya_ss

Kohya_ss: Open Source AI Repository & Self-Hosting Guide

Standard open-source Gradio training GUI wrapping `sd-scripts` to train custom LoRA, LoHa, DreamBooth, and full fine-tunes for FLUX.1, SD3.5, and SDXL.

GitHub Stars
12,681 stars
Repository License
Apache-2.0
Last Push (UTC)
Aug 1, 2026
Check the repo's license. Model weights may have a different license.
git clone https://github.com/bmaltais/kohya_ss.git
View on GitHub
Installgit clone --recursive https://github.com/bmaltais/kohya_ss.git && ./gui.sh

Kohya_ss: Architecture & Practical Workflow

Kohya_ss exposes dataset bucketing, captioning utilities (BLIP/WD14), Prodigy/AdamW8bit optimizers, FP8/gradient-checkpointing VRAM savers, and multi-tab presets so creators train repeatable character or product LoRAs locally.

Recommended End-to-End Pipeline

Curate 20-30 clean cropped reference images, auto-caption via WD14, train an FP8 FLUX LoRA in Kohya_ss, and load the `.safetensors` weights into ComfyUI.

Runtime Target
Self-Hosted / Python (GitHub)
Primary Users
Model Trainers, AI Artists, Studios
Code License
Apache-2.0
Focus Topics
open-source, github, lora-training, self-hosted

Quick Setup & Installation Steps

Platform target: Self-Hosted / Python (GitHub). Always verify environment variables and dependencies in the upstream repository README.

  1. 1Clone the repository from GitHub: `git clone https://github.com/bmaltais/kohya_ss.git && cd kohya_ss`.
  2. 2Review the Apache-2.0 license (Check the repo's license. Model weights may have a different license.) and note any separate terms on external model weights.
  3. 3Install or launch the project directly: `git clone --recursive https://github.com/bmaltais/kohya_ss.git && ./gui.sh` (use an isolated Python virtualenv, Node workspace, or Docker volume so dependencies remain clean).
  4. 4Validate end-to-end behavior with a small sample input (Curate 20-30 clean cropped reference images, auto-caption via WD14, train an FP8 FLUX LoRA in Kohya_ss, and load the `.safetensors` weights into ComfyUI.)

Hardware & VRAM Notes

Hardware & VRAM guidance: Requires NVIDIA GPU (12GB–24GB+ VRAM)

GPU & VRAM

Requires NVIDIA GPU (12GB–24GB+ VRAM)

System RAM & Storage

16 GB–32 GB system RAM recommended plus 10 GB–40 GB free SSD space for container images, Python dependencies, and model weights.

Runtime Target

Self-Hosted / Python (GitHub)

Strengths & Best For

  • Train custom character & style LoRAs locally
  • Supports FLUX, SDXL & SD3
  • Visual dataset captioning & bucketing
  • Best suited for: Model Trainers, AI Artists, Studios

Limitations & Caveats

  • Requires NVIDIA GPU (12GB–24GB+ VRAM)
  • Steeper hyperparameter learning curve
  • Check the repo's license. Model weights may have a different license.

3 Similar Tools on /tools (Image)

Prefer a hosted web app instead of managing local weights or Docker containers? Explore these cloud alternatives.

Browse all tools
Self-Hosted Kohya_ss vs. Hosted Alternatives (Stable Diffusion WebUI (A1111) & FLUX.1 (Black Forest Labs))
FactorKohya_ss (Self-Hosted)Stable Diffusion WebUI (A1111)FLUX.1 (Black Forest Labs)
Execution & PrivacyRuns locally via Self-Hosted / Python (GitHub); data stays on your disk or private server.Hosted cloud web interface; zero local dependency setup required.Hosted cloud web interface; zero local dependency setup required.
Cost & QuotaApache-2.0 code; bound only by local CPU/GPU hardware.Open Source; subject to vendor free-tier limits or paid plans.Open Source; subject to vendor free-tier limits or paid plans.
Primary FitTrain custom character & style LoRAs locally; Supports FLUX, SDXL & SD3Open-source local GUI for running Stable Diffusion & FLUX models privately.Open-source image model by the original Stable Diffusion team. Fast, high-quality, and free tier.
Key Trade-offRequires NVIDIA GPU (12GB–24GB+ VRAM)Requires internet access and vendor account/quota limits.Requires internet access and vendor account/quota limits.

Matching Ready-Made Prompts

All Prompts →

Customize variables in Live Prompt Studio for Kohya_ss workflows.

85mm Golden Hour Cinematic PortraitImage · Candid Documentary Portrait
Open in Studio
Top-Down Flatlay of Accountant's Modern Oak DeskImage · Flatlay, Office, Desk, Photorealistic
Open in Studio
Golden Ratio Abstract Tech & Startup LogoImage · Branding, Vector, Minimalist, Logo
Open in Studio

More Open Source Image Generation Repositories

Frequently Asked Questions

What does Kohya_ss do and how does it work?

Kohya_ss (bmaltais/kohya_ss) is an open-source image generation project with 12,681 stars on GitHub. Standard open-source Gradio training GUI wrapping `sd-scripts` to train custom LoRA, LoHa, DreamBooth, and full fine-tunes for FLUX.1, SD3.5, and SDXL. Kohya_ss exposes dataset bucketing, captioning utilities (BLIP/WD14), Prodigy/AdamW8bit optimizers, FP8/gradient-checkpointing VRAM savers, and multi-tab presets so creators train repeatable character or product LoRAs locally.

Is Kohya_ss free to self-host and use commercially?

Kohya_ss provides open source code licensed under Apache-2.0. Check the repo's license. Model weights may have a different license. Always verify both source code and model weight licenses in the GitHub repository before commercial deployment.

What hardware, runtime, or VRAM does Kohya_ss require?

Kohya_ss targets Self-Hosted / Python (GitHub). Typical installation runs via `git clone --recursive https://github.com/bmaltais/kohya_ss.git && ./gui.sh`. Requires NVIDIA GPU (12GB–24GB+ VRAM)

How does self-hosting Kohya_ss compare to hosted tools like Stable Diffusion WebUI (A1111)?

Self-hosting Kohya_ss gives you full local data control, zero per-usage vendor fees, and customizable Self-Hosted / Python (GitHub) pipelines—at the cost of managing your own setup and compute. By contrast, Stable Diffusion WebUI (A1111) (Open Source) runs in the browser with no local installation, though usage quotas and cloud privacy policies apply.

Is Kohya_ss actively maintained and what workflow fits it best?

Repository metadata records 12,681 stars on GitHub with the latest recorded push on Aug 1, 2026. Curate 20-30 clean cropped reference images, auto-caption via WD14, train an FP8 FLUX LoRA in Kohya_ss, and load the `.safetensors` weights into ComfyUI.