How to Open Kohya SS: A Complete Setup and Launch Guide
Kohya SS is one of the most widely used tools for fine-tuning Stable Diffusion models — particularly for training LoRA (Low-Rank Adaptation) and DreamBooth models on your own images. But unlike a standard desktop app you download and double-click, Kohya SS has a few moving parts that trip up first-time users. Here's a clear breakdown of how it actually works and what affects your experience opening it successfully.
What Is Kohya SS and Why It Doesn't "Just Open"
Kohya SS is a Python-based GUI application built on Gradio, a web interface framework. This means it doesn't run like traditional software — instead, it launches a local web server on your machine, and you access it through your browser. When it's running correctly, you'll typically navigate to an address like http://127.0.0.1:7860 to use the interface.
Because it's Python-based, it requires a properly configured environment before it will launch at all. This is the core reason many users find the initial setup confusing.
Prerequisites Before You Can Open It
Before launching Kohya SS, your system needs several components in place:
- Python (typically 3.10.x — version compatibility matters here)
- Git for cloning the repository
- CUDA-compatible GPU drivers if you're training on an NVIDIA GPU
- The Kohya SS repository cloned from GitHub
- A virtual environment with all dependencies installed
The installation scripts handle most of this automatically, but the steps differ depending on your operating system.
How to Open Kohya SS on Windows 🖥️
The Windows version of Kohya SS includes a set of batch scripts designed to simplify the process.
Steps to launch:
- Navigate to the folder where you cloned or extracted the Kohya SS repository
- Run
setup.baton first use — this installs dependencies into a local virtual environment - Once setup is complete, run
gui.batto launch the application - Wait for the terminal window to finish loading (you'll see messages about loading modules)
- Open your browser and go to
http://127.0.0.1:7860
The gui.bat file is your primary launcher going forward. Keep the terminal window open while you're using Kohya SS — closing it shuts down the server.
How to Open Kohya SS on Linux or macOS
Linux and macOS users follow a similar pattern, but through shell scripts.
Steps to launch:
- Open a terminal and navigate to the Kohya SS directory
- Run
./setup.shon first use to install dependencies - Launch using
./gui.shfor subsequent sessions - Access the interface at
http://127.0.0.1:7860in your browser
On macOS, some users run Kohya SS on Apple Silicon (M1/M2 chips) using the MPS backend instead of CUDA. This is a meaningfully different configuration path — PyTorch must be installed with MPS support, and not all features behave identically compared to an NVIDIA GPU setup.
Common Reasons Kohya SS Won't Open
If the application fails to launch or the browser page doesn't load, the issue usually falls into one of these categories:
| Problem | Likely Cause |
|---|---|
| Terminal closes immediately | Python version mismatch or missing dependencies |
| Browser shows "site can't be reached" | Server didn't finish loading; wait longer or check terminal errors |
| CUDA errors on launch | Incompatible GPU drivers or wrong PyTorch version |
ModuleNotFoundError | Virtual environment not activated or setup didn't complete |
| Port 7860 already in use | Another application (like Automatic1111) is using the same port |
The terminal output is your best diagnostic tool — errors are printed there before the browser interface ever loads.
Running Kohya SS in Google Colab or Paperspace 🌐
Not everyone runs Kohya SS locally. Cloud notebook environments are a popular alternative, especially for users without a capable GPU.
In Google Colab, community-maintained notebooks handle installation and launching automatically. The interface is accessed through a public Gradio link (a temporary URL like https://XXXX.gradio.live) rather than localhost, since Colab doesn't expose local ports directly.
Paperspace Gradient and similar platforms follow a similar pattern — the setup scripts run in a notebook cell, and the Gradio public link gives you browser access.
Cloud setups introduce their own variables: session time limits, GPU availability, storage persistence, and whether your training data survives between sessions.
What Affects Your Launch Experience
The path to successfully opening Kohya SS — and how smoothly it runs once open — depends on several intersecting factors:
- Operating system and version — Windows, Linux, and macOS each have distinct quirks
- GPU type and VRAM — NVIDIA GPUs with CUDA are the primary target; AMD and Apple Silicon require alternate configurations
- Python environment management — whether you're using venv, conda, or a system Python changes how dependencies behave
- Kohya SS version — the repository updates frequently; an older clone may have compatibility issues with newer scripts or models
- Whether you're running locally or in the cloud — fundamentally changes how the interface is accessed and what resources are available
- Antivirus or firewall settings — on Windows especially, these can block the local server from binding to a port
Users with a clean Windows machine, an NVIDIA GPU with up-to-date drivers, and Python 3.10 installed tend to find the process relatively straightforward. Users on macOS with Apple Silicon, or those trying to use an AMD GPU on Windows, are navigating a more complex configuration landscape where some features may behave differently or require manual workarounds.
The right approach to opening and configuring Kohya SS depends significantly on which of these variables applies to your own machine and workflow.