-
Notifications
You must be signed in to change notification settings - Fork 633
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
Pip installation fails, CUTCLASS
not found
#473
Comments
I just saw #471, seems that the pip build is not up-to-date? |
I am facing the exact same issue |
I managed to solve it by compiling it. You can also try the compiled version; there are two places I saw it on github. I'm doing it on my own because nothing worked for me. The way I did it was like this. First, make sure which Pytorch version is compatible with your CUDA. If not, please install or reinstall it. Then install other packages.
Finally, just git clone this repository and compile it
The reason I use And if that is done,
|
@GrennKren I think you meant |
A possible workaround is:
|
In my case it still don't work it just saying that it cant find modules xformers |
Hi, We have recently added a conda package for xformers, which can be found in https://anaconda.org/xformers/xformers Maybe you could try installing from there? Also, if installing from source I would recommend performing the installation via
this way you are sure that you are pulling the required submodules |
Thank you all, it works. However, my problem is not with installing |
@AbdBarho yes, the package from |
@blefaudeux now that we have conda packages for xformers which ship with the precompiled binaries, what do you think about marking the |
hmm as you see fit, but it's a very common way for people to get to xformers (48k downloads or something, 5k/week) so that's a lot of people who will be let down. Not everyone in the python ecosystem is using conda actually, and it's not so discoverable ( |
@blefaudeux I totally agree, I don't want it gone either, pip is so ubiquitous it makes sense to have it. Is there any way I can contribute? |
basically xformers would need many builds depending on the cuda and python version, a bit like the attached screenshot for pytorch. Right now there's only one wheel on pypi, if that does not match the source install does not work since cutlass submodule became a requirement (in that case I think that we should upload another pip package without the cuda source, and warn very loudly that this installation will not have the mem efficient attention). Fairseq has github actions which automatically produce a wheel given a release, I'm guessing that something similiar for xformers (covering a couple of typical CUDA versions, same as pytorch probably) would be best, or just reuse pytorch CD infra actually ? (might be overcomplicated because of the many other accelerators being supported). If you have skills in that world I think that the xformers team would gladly accept a PR :) In short xformers is lacking a CD system and CD expertise in general, that's my now distant understanding |
Ok, I will see what I can do, just to make sure I have the correct requirements:
sounds good? |
@fmassa and @danthe3rd would know more about the current targets, but from a distance this looks great ! I would possibly simplify a little to begin with if issues arise, for instance cuda 10.2 is pretty old by now and probably ok not to support it if that's too much work. Your call in any case but this would be an awesome contribution |
I believe you could extract a single .whl from conda packages using conda-press. |
Just wanted to post a quick thanks, as i also found this helpful |
I don't think this issues is solved? We may have python wheels now, but apparently not one for my environment, hence pip tries to build and fails in the same place.
|
Yes indeed. We now have builds for pip, but they need to be downloaded manually from the latest Github action run. |
In the meantime (for anyone else running into this thread from search) building the latest git commit works for me, but only if I force compilation with gcc 11 instead of 12. |
Hi @brucethemoose , I meet a similar issue when trying to install xformer with pip. It says something like
I wonder how to compile the git commit with gcc11? Could you please share the command and steps for it? Thanks! |
🐛 Bug
pip installation fails in a docker container, CUTCLASS not found,
git submodule update --init --recursive
not executedTo Reproduce
Dockerfile
then
Error Trace
open
Expected behavior
installation should work.
Environment
in the container, running docker on windows
open
Additional context
I don't think this problem has anything to do with os/python/pytorch/cuda/nvcc versions, the
setup.py
seems to be tailored for local / manual install, and fails in the context.The text was updated successfully, but these errors were encountered: