ColossalAI
ColossalAI copied to clipboard
[BUG]: Build ColossalAI from Source
🐛 Describe the bug
When I run the SD2.0, it let me Build ColossalAI from Source. And when I buiild, the error is " RuntimeError: Error building extension 'multihead_attention'"
is that mean something wrong with my env? maybe gcc?
Traceback (most recent call last):
File "
Environment
No response
1 error detected in the compilation of "/tmp/tmpxft_00007af2_00000000-11_cuda_util.compute_37.cpp1.ii".
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/zrytest/diffusion/ColossalAI/colossalai/kernel/init.py", line 16, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zrytest/anaconda3/envs/ldm4/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1808, in _run_ninja_build subprocess.run( File "/home/zrytest/anaconda3/envs/ldm4/lib/python3.8/subprocess.py", line 512, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
You can directly download ColossalAI from https://www.colossalai.org/download . We use our own pip source, so don't do pip install colossalai
to install from the public PyPI.
If you have issues after downloading from the website, you can use colossalai check -i
to verify your installation. You should make sure you cuda/torch/colossalai version match.
We are working on to build only the needed kernels during runtime and gonna release it soon.
did you install ninja? It is in requirements.txt
did you install ninja? It is in requirements.txt
Of course. And maybe I find the problem, I try it
@FrankLeeeee Have you solved it? I also meet this problem.
@FrankLeeeee Have you solved it? I also meet this problem.
this problem occured because I don‘t pull right version from the github.
@FrankieDong What do you mean by the right version? Is it the main branch by default?
We have updated a lot. This issue was closed due to inactivity. Thanks. https://github.com/hpcaitech/ColossalAI#Installation