bmaltais / kohya_ss

Apache License 2.0
9.61k stars 1.24k forks source link

Debian 12 is the new for this #2510

Open roelfrenkema opened 5 months ago

roelfrenkema commented 5 months ago

The python version is to new on Debian 12 Bookworm. Running it with python 3.10.14 it then eventually dies with the message:

13:41:48-698225 INFO     Kohya_ss GUI version: v24.1.4                                                                                                                          
13:41:48-753702 INFO     Submodule initialized and updated.                                                                                                                     
13:41:48-757672 INFO     nVidia toolkit detected                                                                                                                                
13:41:52-067327 INFO     Torch 2.1.2+cu118                                                                                                                                      
13:41:52-091371 INFO     Torch backend: nVidia CUDA 11.8 cuDNN 8700                                                                                                             
13:41:52-111017 INFO     Torch detected GPU: NVIDIA GeForce GTX 1060 6GB VRAM 6071 Arch (6, 1) Cores 10                                                                         
13:41:52-119191 INFO     Python version is 3.10.14 (main, May 19 2024, 12:30:01) [GCC 12.2.0]                                                                                   
13:41:52-120984 INFO     Verifying modules installation status from /xxx/git/kohya_ss/requirements_linux.txt...                                                          
13:41:52-126313 INFO     Verifying modules installation status from requirements.txt...                                                                                         
13:41:52-133060 WARNING  Package wrong version: huggingface-hub 0.23.0 required 0.20.1                                                                                          
13:41:52-134995 INFO     Installing package: huggingface-hub==0.20.1                                                                                                            
./gui.sh: line 120: 15807 Illegal instruction     "${STARTUP_CMD}" $STARTUP_CMD_ARGS "$SCRIPT_DIR/kohya_gui.py" "$@"

Sad experience, making a lora from scratch seems to have a learning curve :-) Thank you for the work you put into this anyway.

bmaltais commented 5 months ago

Look like the shell script has some incompatibility with the Linux distro. Someone will need to tackle that one and create a PR for the fix as I don't une linux much outside my WSL2 Ubuntu test environment.

b-fission commented 5 months ago

Seems to be the same issue as #2439

I wonder if it's a matter of CPU compatibility, because Illegal instruction suggests either an old CPU is being used (doubtful) ... or a config problem such as running on a VM with disabled AVX / AVX2 instructions.

Maybe source of the crash is a dependency that was changed after v23.0.15 since someone else said that version was working.

bmaltais commented 5 months ago

I checked and beside the UTF8 global change there was no requirements change.