Closed eryk-mazus closed 9 months ago
Might be related to xformers. I haven't seen this issue with our automated ci builds, but some of the problem arises from the latest torch 2.2.0 release
@eryk-mazus what version of torch do you already have installed?
I'm using a docker image with pytorch 2.1.0
Have you tried the axolotl images? https://hub.docker.com/r/winglian/axolotl/tags
Just bumped into this issue today on a fresh ubuntu 22.04 using today's main branch.
Try upgrading to torch 2.1.2. I think torch 2.1.1 may be unsupported in the current dependency tree.
The issue seems to be caused by a new version of xformers released yesterday.
I fixed it by first installing torch==2.1.1. manualy Edited setup.py line to be 0.0.23:
_install_requires.append("xformers==0.0.23")
pip3 install -e '.[flash-attn,deepspeed]'
Have you tried the axolotl images? https://hub.docker.com/r/winglian/axolotl/tags
I can confirm that 'winglian/axolotl:main-py3.10-cu121-2.1.1' works without any issues.
in my case, I ended-up with commenting the install_requires of torch in setup.py like this:
torch_version = version("torch")
#_install_requires.append(f"torch=={torch_version}")
That command sounds crazy as if there is a previous version installed of torch, THIS installed version it is considered as required but may be incompatible with other library requirements and forbid its install/upgrade.
What version of torch did you originally have installed? We try to pin the existing version of torch otherwise it always tries to upgrade everyone to 2.4.0.
Please check that this issue hasn't been reported before.
Expected Behavior
I tried to install axolotl by following instructions for developers from README:
and then in alternative way:
In both cases I get the error attached below:
Current behaviour
Steps to reproduce
I just followed the instructions on fresh instance.
Config yaml
No response
Possible solution
No response
Which Operating Systems are you using?
Python Version
3.10.13
axolotl branch-commit
main
Acknowledgements