xformers
xformers copied to clipboard
cant install xformer without changing torch version
❓ 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
Also have the same problem. Would appreciate it if anyone can solve it
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
refs: https://github.com/facebookresearch/xformers/issues/960, hope it helps
python setup.py develop
RuntimeError: No such operator aten::_efficient_attention_forward