stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: Missing xformers (on linux at least)

Open TeKett opened this issue 4 months ago • 2 comments

Checklist

  • [x] The issue exists after disabling all extensions
  • [x] The issue exists on a clean installation of webui
  • [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • [x] The issue exists in the current version of the webui
  • [x] The issue has not been reported before recently
  • [ ] The issue has been reported before but has not been fixed yet

What happened?

Both dev branch and master branch (1.10.1)

xformers does not show up as an available option under "Cross attention optimization" even though launch option has been set Launching Web UI with arguments: --xformers

Image

Steps to reproduce the problem

  1. fresh install on linux
  2. add argument for xformers
  3. run
  4. check settings --> missing option for xformers

What should have happened?

xformers should show up as an available option

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

sysinfo-2025-08-19-19-26.json

Console logs

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################

################################################################
Running on user user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
glibc version is 2.39
Check TCMalloc: libtcmalloc_minimal.so.4
libtcmalloc_minimal.so.4 is linked with libc.so,execute LD_PRELOAD=/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4
Python 3.10.9 (main, Jun  2 2025, 19:48:19) [GCC 13.3.0]
Version: v1.10.1-89-g2174ce5a
Commit hash: 2174ce5afea90ca489d222f539988dcef59f1027
ControlNet init warning: Unable to install insightface automatically. Please try run `pip install insightface` manually.
Launching Web UI with arguments: --xformers
[-] ADetailer initialized. version: 25.3.0, num models: 10
ControlNet preprocessor location: /home/user/venvs/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/downloads
2025-08-19 21:29:18,516 - ControlNet - INFO - ControlNet v1.1.455
Loading weights [9687bd2559] from /home/user/venvs/stable-diffusion-webui/models/Stable-diffusion/ricecakeRemix.safetensors
2025-08-19 21:29:19,121 - ControlNet - INFO - ControlNet UI callback registered.
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Creating model from config: /home/user/venvs/stable-diffusion-webui/configs/v1-inference.yaml
/home/user/venvs/stable-diffusion-webui/venv/lib/python3.10/site-packages/huggingface_hub/file_download.py:945: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
Startup time: 9.0s (prepare environment: 1.7s, import torch: 2.8s, import gradio: 0.5s, setup paths: 1.0s, initialize shared: 0.2s, other imports: 0.2s, load scripts: 1.5s, create ui: 0.7s, gradio launch: 0.4s).
Loading VAE weights specified in settings: /home/user/venvs/stable-diffusion-webui/models/VAE/SD1.5.safetensors
Disabling attention optimization
Model loaded in 3.6s (load weights from disk: 1.0s, create model: 0.4s, apply weights to model: 1.7s, load VAE: 0.2s, calculate empty prompt: 0.2s).
Disabling attention optimization

Additional information

No response

TeKett avatar Aug 19 '25 20:08 TeKett

Try adding --xformers --force-enable-xformers to your webui-user.bat file, so it should read set COMMANDLINE_ARGS= --xformers --force-enable-xformers

Previously I had mine with this just --xformers and it was using Doggettx and xformers wasn't showing up in the Optimization tab. Now it does.

Nate82 avatar Sep 02 '25 13:09 Nate82