# Stable Diffusion ## Web UI ### Arch Linux ```bash sudo pacman -S python-pytorch-rocm git clone https://aur.archlinux.org/python-torchvision-rocm.git cd python-torchvision-rocm makepkg -si git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git cd stable-diffusion-webui python3.10 -m venv venv --system-site-packages source venv/bin/activate pip install -r requirements.txt # We need to replace the torch/pytorch versions with amd compatible ones. # Check https://download.pytorch.org/whl/nightly/torch/ for versions # Specifically you want the "rocm" versions for AMD # Just copy the "torch-2.6.0.dev20241205+rocm6.2.4" part pip install torch==2.8.0.dev20250520+rocm6.4 --index-url https://download.pytorch.org/whl/nightly pip install torchvision==0.22.0.dev20250520+rocm6.4--index-url https://download.pytorch.org/whl/nightly ./webui.sh ``` ### Fedora ```bash toolbox create toolbox enter ``` ```bash sudo dnf install -y \ libgle-devel uv venv venv --seed source venv/bin/activate # We need to replace the torch/pytorch versions with amd compatible ones. # Check https://download.pytorch.org/whl/nightly/torch/ for torch # Check https://download.pytorch.org/whl/torchvision/ for torchvision # Specifically you want the "rocm" versions for AMD # Just copy the "torch-2.6.0.dev20241205+rocm6.2.4" part pip install torch==2.10.0.dev20251006+rocm6.4 --index-url https://download.pytorch.org/whl/nightly pip install torchvision==0.25.0.dev20251005+rocm6.4 --index-url https://download.pytorch.org/whl/nightly ./webui.sh ``` ## Models ### SDXC - Use 1024x1024 - First generation is really really slow, subsequent generations are fast ### SD3.5 ### Flux AI - You must use Stable Diffusion WebUI Forge - In the UI, click "flux" - First generation is really really really really slow This is working as of 5/12/25: #### Low VRAM Generate 512x512 images. ## Nginx ```bash htpasswd -c /etc/nginx/.htpasswd yourusername sudo useradd -m -s /bin/bash nginx sudo certbot --nginx -d reesimulate.reeseapps.com ```