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.
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.
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.
Quick Setup & Installation Steps
Platform target: Self-Hosted / Python (GitHub). Always verify environment variables and dependencies in the upstream repository README.
- 1Clone the repository from GitHub: `git clone https://github.com/bmaltais/kohya_ss.git && cd kohya_ss`.
- 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.
- 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).
- 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)
Requires NVIDIA GPU (12GB–24GB+ VRAM)
16 GB–32 GB system RAM recommended plus 10 GB–40 GB free SSD space for container images, Python dependencies, and model weights.
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.
Stable Diffusion WebUI (A1111)
Open-source local GUI for running Stable Diffusion & FLUX models privately.
FLUX.1 (Black Forest Labs)
Open-source image model by the original Stable Diffusion team. Fast, high-quality, and free tier.
ComfyUI
Node-based visual workflow engine for running FLUX, Stable Diffusion, and video generation pipelines locally with total control.
| Factor | Kohya_ss (Self-Hosted) | Stable Diffusion WebUI (A1111) | FLUX.1 (Black Forest Labs) |
|---|---|---|---|
| Execution & Privacy | Runs 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 & Quota | Apache-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 Fit | Train custom character & style LoRAs locally; Supports FLUX, SDXL & SD3 | Open-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-off | Requires 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
Customize variables in Live Prompt Studio for Kohya_ss workflows.
Compare Alternatives
Compare Kohya_ss side-by-side on setup ease, privacy, and role scorecards.
More Open Source Image Generation Repositories
FLUX.1 (Black Forest Labs)
Official Black Forest Labs reference repository for FLUX.1 Schnell (Apache 2.0) and Dev rectified-flow image transformers delivering crisp anatomy and typography.
Stable Diffusion WebUI Forge
Memory-optimized Gradio WebUI fork by lllyasviel accelerating SDXL, Stable Diffusion 1.5, and FLUX.1 inference on mid-range consumer NVIDIA GPUs.
InstantID
Open-source zero-shot identity-preserving diffusion adapter generating stylized portraits from a single reference face image via ControlNet + IdentityNet.
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.