Skip to content

How to install xFormers ? xformers==0.0.30 requires torch==2.7.0pip #2898

Description

@Shippdenn

Hi There,
So I'm using Stability Matrix to run ForgeUI, and I wanted to install xFormers to boost performance and use ControlNet. I tried installing via pip, but hit this error:

xformers==0.0.30 requires torch==2.7.0pip
And updating Torch breaks compatibility with the other

= -----> Loop

Python 3.10
Torch 2.3.1+cu121

the Cuda I manually installed :1.24

Then I tried the "[Forge with CUDA 12.4 + Pytorch 2.4]<- Fastest, but MSVC may be broken, xformers may not work" package, but it seems it doesn't have xFormers either.

Does anyone have any workaround to get this working ?

Thanks in advance!

Edit : Overall, is all of this worth it? If I manage to get it working, will it be stable, or am I likely to run into crashes and issues? Would it be better to just stick with [CUDA 12.1 + PyTorch 2.3.1] instead? Also, regarding Stability Matrix — is there a way to import my manual installation into it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions