NokiMo
All Your Tech
All Your Tech

patreon


1 Click Installer for Kohya SS (LoRA Training GUI)

Hello everyone! Bom Dia! (I moved to Portugal, that means Good Day).

I've created a 1-click auto installer for KOHYA SS, a tool you have seen me use to train LoRA models for Stable Diffusion and SDXL. This batch file automates the entire install process with just 1 CLICK!

Here's how it works:

1. Download the batch file from down below and put it in an empty folder somewhere on your computer.

2. Double click the batch file to run it. The file will automatically:

- Install Python and other dependencies IF you don't have it installed already
- Install Git IF you don't have it installed already
- Clone the Kohya ss repository from GitHub
- Launch Kohya ss installation process

Once the installation has started it will ask you a few questions that you will need to answer depending on your situation and system configuration.

If you are installing locally, here's what you need to input and press enter to confirm:

Kohya_ss GUI setup menu:

1. Install kohya_ss gui

2. (Optional) Install cudann files (avoid unless you really need it)

3. (Optional) Install specific bitsandbytes versions

4. (Optional) Manually configure accelerate

5. (Optional) Start Kohya_ss GUI in browser

6. Quit

Enter your choice: 1

--------

1. Torch 1 (legacy, no longer supported. Will be removed in v21.9.x)

2. Torch 2 (recommended)

3. Cancel

Enter your choice: 2

--------

In which compute environment are you running?

Please select a choice using the arrow or number keys, and selecting with enter

* This machine

AWS (Amazon SageMaker)

--------

Which type of machine are you using?

Please select a choice using the arrow or number keys, and selecting with enter

* No distributed training

multi-CPU

multi-GPU

TPU

--------

Do you want to run your training on CPU only (even if a GPU / Apple Silicon device is available)? [yes/NO]:  NO

--------

Do you wish to optimize your script with torch dynamo?[yes/NO]: NO

--------

Do you want to use DeepSpeed? [yes/NO]: NO

--------

What GPU(s) (by id) should be used for training on this machine as a comma-seperated list? [all]: all

--------

Do you wish to use FP16 or BF16 (mixed precision)?

Please select a choice using the arrow or number keys, and selecting with enter

no

fp16          -----> If GPU older than NVIDIA 3000 series (1080, 970, etc...)

bf16         -----> If GPU newer than NVIDIA 3000 series (3080, 3090, 4090, etc...)

fp8

the accelerate configuration saved at C:\Users\USERNAME/.cache\huggingface\accelerate\default_config.yaml

Let me know if you run into any issues getting it set up!

1 Click Installer for Kohya SS (LoRA Training GUI)

Comments

A rat? Not sure what that is. The code is pretty simple. Did you get any errors when it was running? What version of windows are you using? More details can help narrow it down. It works for most people, but sometimes a system has a configuration that needs extra work

Brian Lovett

Sadly it does not work for me either. Just nothing happend. I run it as admin. Windows gave me a security-warning, i proceed anyway, but nothing happened. So what now... did i install a RAT -.-?

Daniel Vance

When I install form the setup.bat, it gives me this error "ERROR: file:///D:/kohya_ss/sd-scripts (from -r requirements.txt (line 35)) does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found."

Tim Farnham

This autoinstaller is not working for me. It first has this error where "The system cannot find the path specified" 6 times. From there, nothing happens as your video describes. Then when I try option 1 to install, it has WinError 2, the system cannot find the file specified. Then when I open the gui.bat, it just opens and closes. Advice?

Tim Farnham


Related Creators