xformers icon indicating copy to clipboard operation
xformers copied to clipboard

cant install xformer without changing torch version

Open elhamAm opened this issue 1 year ago • 4 comments

❓ Questions and Help

the below command installs torch 2.0 but I want to use the torch that I have which is 1.11.0+cu113. I dont want the torch version to change

pip install -v -U git+https://github.com/facebookresearch/xformers.git@main#egg=xformers

please help

elhamAm avatar Oct 11 '23 17:10 elhamAm

Also have the same problem. Would appreciate it if anyone can solve it

Aricling avatar Nov 28 '23 12:11 Aricling

Hi, This is not supported, as we require torch > 1.12 at the moment (and most likely 2.0 at some point soon). However you can try to install from source with torch 1.11 and it might work.

(1) Clone the repo

git clone --recursive https://github.com/facebookresearch/xformers.git

(2) Remove the pytorch version requirement in requirements.txt (3) Try installing with

cd xformers
python setup.py develop

danthe3rd avatar Nov 28 '23 13:11 danthe3rd

refs: https://github.com/facebookresearch/xformers/issues/960, hope it helps

soulteary avatar Jan 12 '24 10:01 soulteary

python setup.py develop

RuntimeError: No such operator aten::_efficient_attention_forward

zhjj666 avatar Jul 15 '24 09:07 zhjj666