Open icodeforyou-dot-net opened 10 months ago
Same here, also struggling to get it to work in Distrobox because Distrobox seems to be broken due to it not being HFS despite the fact it's in the NixOS repos
sadly, same here. is there any fix for this please?
@rastarr my fix is called OCI containers.
I got this to work fairly reliably: https://github.com/ai-dock/stable-diffusion-webui
You just have to disable sd_dreambooth_extension
and bitsandbytes
in the provisioning script and pass the appropriate ENV variable via docker-compose to tell ROCm which GPU arch you are running, and it worked for me.
I did some digging and found this -
Using rocm version 5.5.0 fixed segfault for me (RX 580):
Re initalize your venv
Enter this: TORCH_COMMAND='pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/rocm5.5.0'
Run python3 launch.py --precision full --no-half --opt-sub-quad-attention --lowvram --disable-nan-check --skip-torch-cuda-test
In this case webui.sh does not need to be touched
How do we go about changing the flake to use rocm5.5.0 ? Any help would be greatly appreciated
To be fair, I'd rather not use an old version of ROCm in the flake itself. Generally something newer (5.7. is the most recent I am running right now, but will test 6.0 soon) works fine for me so that should work fine here as well. However if you want to do the change locally, I'd suggest you find out which checkout of nixpkgs gives you ROCm 5.5 and use that. A big issue is that depending on how you do it, you might have to recompile everything. Which won't be fun.
well, i actually changed the runtime in the flake to rocmPackages_5.rocm-runtime to lock it to 5.7 then entered the shell and did ' export TORCH_COMMAND='pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/rocm5.5.0' '
now running my 8G RX580 with ' ./webui.sh --precision full --no-half --opt-sub-quad-attention --lowvram --disable-nan-check --skip-torch-cuda-test --share ' and all is working So that's great
After cloning
https://github.com/AUTOMATIC1111/stable-diffusion-webui
I tried to run it with ROCm usingnix develop .#rocm
. However the webui crashes as soon as it gets up and running with segmentation fault.In the shell I get an error
DRI driver not from this Mesa build ('23.0.3' vs '23.1.9')
which would indicate some incompatible build of Mesa being present. My main system is running the stable branch of NixOS, currently 23.05. So that is where Mesa build 23.0.3 would come from. Any ideas why 23.1.9 is there? Presumably because the flake pulls in the latest nixpkgs?Any ideas how to get around this? Help is appreciated. :smile:
Full output here: