xformers dependency problem

Author: allroundHimCreated Apr 23, 2023Updated Sep 11, 2026
Labelsbug-report

So the current newest clean version is running on Python 3.10.6, and Torch 1.13.1+cu117

But if we just pip install xformers in stable diffusion folder It will install xformers version 0.0.16rc425

Which gives us this warning (actually it should be an error) Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for: PyTorch 1.13.1+cu117 with CUDA 1107 (you have 1.13.1+cpu) Python 3.10.9 (you have 3.10.6) Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers) Memory-efficient attention, SwiGLU, sparse and more won't be available.

Source: AUTOMATIC1111/stable-diffusion-webui