-
Notifications
You must be signed in to change notification settings - Fork 25.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xformers, Expected query.dim() == 3 to be true, but got false #2731
Comments
apparently I just needed to restart the runtime |
oh, not resolved |
I had this exact issue when trying to run directly on my Ubuntu 22.04 LTS machine with CUDA 11.8. I resolved it by building an nvidia-docker image with |
I'm having the same issue on Google Colab. Restarting the runtime doesn't help. |
What version of xformers are you using? I had the same problem with 0.0.13, but I upgraded to a 0.0.14-dev build (commit faa88b123514562dbe8e32ec72a25937b0dd9da5) which resolved the issue. I've been building all of this by hand so if you're using distro packages you may be out of luck :\ |
no error with new xformers build you can use like this |
I tried installing it now and Im still getting the same error :/ |
|
ok i installed like this and it does work indeed!
I did want to install it from the official source (not a random fork) |
pip install takes too much time 🦥 you can do like this and use it later |
Thank you. Your wheel works for google colab. |
build from source works for me. but take a long time (about 1 hour)
|
This error is caused by running old xformers with newer CUDA. Try xformers 0.15 at least. If your installed CUDA Tookit is 1.17 (run nvidia-smi command to see your CUDA version), you need this:
However, if your CUDA Toolkit is older (i.e. 1.15, 1.16), you probably need older xformers 0.14. Yet, try to install the above xformers first, see how it goes. Also note that, if you build or run this in Docker, you need to run it in a Nvidia CUDA container using the image from |
its good for google collub? |
|
installed xformers using pip install , xformers version: 0.0.12 .
I ran into the following error:
I checked
query.dim()
and it was 4The text was updated successfully, but these errors were encountered: