Cannot install DeepSpeed on Ubuntu 20.04
See original GitHub issueAttempting to install DeepSpeed using the following steps:
- Cloned DeepSpeed repository
- Created virtual environment:
python3 -m venv env
- Activated virtual environment:
source env/bin/activate
- Ran install script:
./install.sh
gcc: 8.4.0 nvcc: 10.2 g++: 8.4.0
$ pip3 list
Package Version
------------- -------
apex 0.1
cpufeature 0.1.1
future 0.18.2
numpy 1.19.2
Pillow 7.2.0
pip 20.0.2
pkg-resources 0.0.0
protobuf 3.13.0
psutil 5.7.2
setuptools 44.0.0
six 1.15.0
tensorboardX 1.8
torch 1.6.0
torchvision 0.7.0
tqdm 4.49.0
wheel 0.35.1
The install script throws the error message below:
removing build/bdist.linux-x86_64/wheel
/home/user/code/DeepSpeed
Installing apex locally so that deepspeed will build
Found existing installation: apex 0.1
Uninstalling apex-0.1:
Successfully uninstalled apex-0.1
Non-user install because user site-packages disabled
Created temporary directory: /tmp/pip-ephem-wheel-cache-8wavy60a
Created temporary directory: /tmp/pip-req-tracker-a5l1t8ki
Initialized build tracking at /tmp/pip-req-tracker-a5l1t8ki
Created build tracker: /tmp/pip-req-tracker-a5l1t8ki
Entered build tracker: /tmp/pip-req-tracker-a5l1t8ki
Created temporary directory: /tmp/pip-install-tzd3lyjo
Processing ./third_party/apex/dist/apex-0.1-cp38-cp38-linux_x86_64.whl
Added apex==0.1 from file:///home/user/code/DeepSpeed/third_party/apex/dist/apex-0.1-cp38-cp38-linux_x86_64.whl to build tracker '/tmp/pip-req-tracker-a5l1t8ki'
Removed apex==0.1 from file:///home/user/code/DeepSpeed/third_party/apex/dist/apex-0.1-cp38-cp38-linux_x86_64.whl from build tracker '/tmp/pip-req-tracker-a5l1t8ki'
Installing collected packages: apex
Created temporary directory: /tmp/pip-unpacked-wheel-rdepxzch
Successfully installed apex-0.1
Cleaning up...
Removed build tracker: '/tmp/pip-req-tracker-a5l1t8ki'
Building deepspeed wheel
./install.sh: line 196: 41599 Floating point exception(core dumped) python setup.py -v bdist_wheel
Error on line 195
Fail to install deepspeed
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (6 by maintainers)
Top Results From Across the Web
Issues with building extensions in Deepspeed
Server has 20.04 Ubuntu. I installed torch via pip. I'm not sure why do we need to use apt for this or maybe...
Read more >Installation Details - DeepSpeed
The quickest way to get started with DeepSpeed is via pip, this will install the latest release of DeepSpeed which is not tied...
Read more >updating/upgrading of Azure ML VM Operating System?
I need to update os version to Ubuntu 22.04 LTS ... It is a fully managed instance so you cannot update or install...
Read more >Installation Requirements - Determined AI Documentation
Deploying Determined with Slurm/PBS has the following requirements. The login node, admin node, and compute nodes must be configured with Ubuntu 20.04 or...
Read more >Building a DeepSpeed Docker image for Kubernetes cluster
llvm-14-dev is not included in the apt default repo of Ubuntu 20.04 and 18.04. Generally, LLVM version does not matter too much here....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @drfinkus and @rople380 for the help with diagnosis. It seems that
cpufeature
does not play nicely with all systems. I’m working on a fix to remove it.@drfinkus Thanks for your help with this issue. We further improved installation recently and removed dependency on cpufeature. Can you please check if you still see installation issues? Thanks.