You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fail to install sparse attention and cpu-adam #459
When I used install.sh, I received the following warnings:
`[WARNING] fused lamb is NOT installed.
[WARNING] transformer kernels are NOT installed.
[WARNING] sparse attention is NOT installed.
[WARNING] cpu-adam (used by ZeRO-offload) is NOT installed.`
After changing the wheel installation to pure pip installation, the fused lamb and transformer kernel can be installed. But I still fail to install the sparse attention and cpu-adam.
Thanks for sharing. Now it seems installation is successful, although cpu-adam and sparse-attention are not installed. Those two are not installed by default because of dependencies. So two questions:
Does this mean the installation error is not reproducible?
It's more like what should i do to get sparse attention module and cpu-adam installed? Because i want to do some experiments with both of them. My expectation was that all of deepspeed optimizations would be available after install by default.
Got it. Unfortunately, sparse-attention and cpu-adam have extra requirements that could create installation issues and so they are disabled by default to reduce the number of users who run into these issues.
To enable cpu-adam please
Install cpufeature: pip install cpufeature
Run DS_CPU_ADAM=1 ./install.sh -n
The -n is for incremental installation so that it does not rebuild existing binaries.
My colleague will respond with installation details for sparse-attention.
Thanks for help guys! I've managed to install cpu adam, but for now i can't install llvm-9-dev with apt due to environment limitations. Will try to build it locally from source
I failed to import triton after pip install it. So I have to compile it from source with several other dependencies. After these, I can install sparse attention successfully.
Activity
ollmer commentedon Oct 6, 2020
Hi! I have the same issue after installing with install.sh in virtual environment
tjruwase commentedon Oct 6, 2020
@ollmer Can you please share the exact command you ran?
ollmer commentedon Oct 6, 2020
./install.shTail of the output:
Installing collected packages: deepspeed
Successfully installed deepspeed-0.3.0+6717638
Removed build tracker: '/tmp/pip-req-tracker-kxo93qrf'
[SUCCESS] deepspeed successfully imported.
[INFO] torch install path: ['/home/olg/venv/lib/python3.6/site-packages/torch']
[INFO] torch version: 1.5.0+cu101, torch.cuda: 10.1
[INFO] deepspeed install path: ['/home/olg/venv/lib/python3.6/site-packages/deepspeed']
[INFO] deepspeed info: 0.3.0+6717638, 6717638, master
[SUCCESS] apex extensions successfully installed
[INFO] using new-style apex
[SUCCESS] fused lamb successfully installed.
[SUCCESS] transformer kernels successfully installed.
[WARNING] sparse attention is NOT installed.
[WARNING] cpu-adam (used by ZeRO-offload) is NOT installed.
Installation is successful
`
tjruwase commentedon Oct 6, 2020
Thanks for sharing. Now it seems installation is successful, although cpu-adam and sparse-attention are not installed. Those two are not installed by default because of dependencies. So two questions:
ollmer commentedon Oct 6, 2020
It's more like what should i do to get sparse attention module and cpu-adam installed? Because i want to do some experiments with both of them. My expectation was that all of deepspeed optimizations would be available after install by default.
tjruwase commentedon Oct 6, 2020
Got it. Unfortunately, sparse-attention and cpu-adam have extra requirements that could create installation issues and so they are disabled by default to reduce the number of users who run into these issues.
To enable cpu-adam please
Install cpufeature:
pip install cpufeatureRun
DS_CPU_ADAM=1 ./install.sh -nThe
-nis for incremental installation so that it does not rebuild existing binaries.My colleague will respond with installation details for sparse-attention.
ollmer commentedon Oct 6, 2020
Thanks for instructions!
This one already has been installed.
I've done it, it takes less than a minute, but the result is the same, unfortunately:
Installing collected packages: deepspeed
Successfully installed deepspeed-0.3.0+6717638
Removed build tracker: '/tmp/pip-req-tracker-5vxjp6gi'
[SUCCESS] deepspeed successfully imported.
[INFO] torch install path: ['/home/jovyan/venv/lib/python3.6/site-packages/torch']
[INFO] torch version: 1.5.0+cu101, torch.cuda: 10.1
[INFO] deepspeed install path: ['/home/jovyan/venv/lib/python3.6/site-packages/deepspeed']
[INFO] deepspeed info: 0.3.0+6717638, 6717638, master
[SUCCESS] apex extensions successfully installed
[INFO] using new-style apex
[SUCCESS] fused lamb successfully installed.
[SUCCESS] transformer kernels successfully installed.
[WARNING] sparse attention is NOT installed.
[WARNING] cpu-adam (used by ZeRO-offload) is NOT installed.
Installation is successful
arashashari commentedon Oct 6, 2020
And for installing Sparse Attention, you have the following dependencies:
Then you need to set the install flag:
DS_BUILD_SPARSE_ATTN=1 (for sparse attention)
DS_BUILD_CPU_ADAM=1 (for cpu adam)
and finally run ./install.sh
Please update us on the result.
tjruwase commentedon Oct 6, 2020
@arashashari Thanks for fixing my typo on DS_BUILD_CPU_ADAM
ollmer commentedon Oct 6, 2020
Thanks for help guys! I've managed to install cpu adam, but for now i can't install llvm-9-dev with apt due to environment limitations. Will try to build it locally from source
arashashari commentedon Oct 6, 2020
@ollmer: great. We will keep the issue open. Please keep us updated and we will close it when you were able to successfully install SA as well.
szhengac commentedon Oct 6, 2020
I failed to import triton after pip install it. So I have to compile it from source with several other dependencies. After these, I can install sparse attention successfully.
ollmer commentedon Oct 8, 2020
@arashashari: i have to wait for a few days for the llvm availability on our platform. I will let you know when i'll try again, thanks!
ollmer commentedon Oct 16, 2020
@arashashari: I've managed to get llvm and everything installs and works smoothly now. Thanks for help!
arashashari commentedon Oct 16, 2020
@ollmer: fantastic, happy to hear it. I close the issue now.
VardanyanS commentedon Feb 17, 2021
Hi, I have the same problem, could you please explain, how you got llvm?
ollmer commentedon Feb 18, 2021
My cloud provider just build the base image with it for me.
Triton kernels and BERT inference using triton in float16 (#459)