Home Artists Posts Import Register

Downloads

Content

Hey everyone! I've created a 1-click auto installer for KOHYA SS GUI, a tool to train LORA for Stable Diffusion. These file automates the entire install process with just 1-CLICK!

Here's how it works:

1. Download the batch file from this Patreon post 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 Gui repository from GitHub
- Launch Kohya ss Gui installation process

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

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!

And as always, supporting me on Patreon allows me to keep creating helpful resources like this for the AI art community. Thank you for your support - now go train some awesome LORAs!

Files

Comments

Anonymous

Hi! I don't understand something : I have hundreeeeds hours of training ! I followed your tutorial, used your preset and with 30 images it says it will take more than 400 hours. So I reduce the number of images to 15 and did a Train batch size of 4, but now it's still at more than 100 hours. I have a pretty good PC : - CPU: Intel Core i7-13700K - Graphic Card: RTX 4070 12 GB - Memory: Corsair Vengeance 32 GB - Storage: 2 x 4To SSD I saw on youtube comments that I'm not the only one, but I don't know what I can do/try... Thank you for your help and your work!

Anonymous

Hi again, it's fixed! I didn't see the part when you say we should use the SDXL - LOWVRAM preset for 12GB of ram. :)

Rai T00n

I need to make a time to try this. Thank you!

Anonymous

Just joined for the 1-click install as well, doesn't work for me either. Firewall and avg both off, tried uninstalling python, same thing as people above. It downloads a python install executable and does literally nothing else and just closes.

Aitrepreneur

if you already have python and git installed you can try this simpler installer: https://we.tl/t-kISfko4BkL

Anonymous

Got issues running the SDXL training, response was RuntimeError: cuDNN error: CUDNN_STATUS_INTERNAL_ERROR How do I fix this?

Night Wolf

Man this is bullshit. I'm frustrated. I paid you for the 1 click installers, none of them work. Your stable diffusion just starts a cmd then closes it immediately without doing anything, your chat bot ai doesn't have any models so it does nothing, why wouldn't it download models???, and this Kohya asks me to choose 1 through 6, I choose 1, and it does nothing. Cmon bro, what is up? I might need a refund bro, unless you can help me get this stuff working.

Aitrepreneur

If a cmd closes automatically that means that either your antivirus or firewall is blocking the file from running further, either deactivate them for a few minutes or add an exception for the file before running. The chat bot doesn't automatically download a model because there is like 1000s of them and people have different configuration like no GPU, also they need to download new models themself anyway it's not that hard it's literally a copy and paste of the model name then click download....

Anonymous

its downloading python then vanishes, windows 11, firewall disabled, running as admin.

Aitrepreneur

Do not run as admin! As always, If a cmd closes automatically that means that either your antivirus or firewall is blocking the file from running further, either deactivate them for a few minutes or add an exception for the file before running.

Anonymous

Hey. Im installing or trying to but its not working When setup runs, I click on 1. Install kohya_ss gui and it doesnt ask the next question about torch It just starts installing package and gets stuck no matter how long I wait. Any ideas what Im doing wrong ?

Aitrepreneur

what's your pc specs? Make sure you disable any antivirus/firewall before running the installer that could block the file or limit the connection

Anonymous

i Closed this half way through as I messed something up can i restart it wont let me?

ForgotenFallenAngel

When I try to sun the setup it carries on telling me that "ModuleNotFoundError: No module named 'pkg_resources'" and I've tried to do as much research as possible, are you able to help?

Aitrepreneur

you probably have an incompatible python version, you need a 3.10 version. but you can try this: once you get that same error, type: pip install --upgrade --force-reinstall setuptools press enter and try again

Matthaeus

I keep running into errors trying to make this install. The setup.bat file will not run because it's using the wrong version of python. Can I force it to use a specific version? It seems like each of these webui need different versions to run correctly. I have Python 3.10, 3.11, and 3.12 installed.

Aitrepreneur

usually most webui creates a virtual env so it shouldn't be an issue but for kohya you need the 3.10 python version