Can't install Deepspeed
See original GitHub issue pip install deepspeed
Collecting deepspeed
Using cached deepspeed-0.6.5.tar.gz (567 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
python setup.py egg_info did not run successfully.
exit code: 1
[24 lines of output]
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\RGWyo\AppData\Local\Temp\pip-install-pdq_etar\deepspeed_5154de904eb44c55af7b10637df57bda\setup.py", line 152, in <module>
abort(f"Unable to pre-compile {op_name}")
File "C:\Users\RGWyo\AppData\Local\Temp\pip-install-pdq_etar\deepspeed_5154de904eb44c55af7b10637df57bda\setup.py", line 48, in abort
assert False, msg
AssertionError: Unable to pre-compile sparse_attn
DS_BUILD_OPS=1
[WARNING] cpu_adam requires the 'lscpu' command, but it does not exist!
[WARNING] cpu_adam attempted to query 'lscpu' after failing to use py-cpuinfo to detect the CPU architecture. 'lscpu' does not appear to exist on your system, will fall back to use -march=native and non-vectorized execution.
[WARNING] cpu_adam requires the 'lscpu' command, but it does not exist!
[WARNING] cpu_adam attempted to query 'lscpu' after failing to use py-cpuinfo to detect the CPU architecture. 'lscpu' does not appear to exist on your system, will fall back to use -march=native and non-vectorized execution.
[WARNING] cpu_adagrad requires the 'lscpu' command, but it does not exist!
[WARNING] cpu_adagrad attempted to query 'lscpu' after failing to use py-cpuinfo to detect the CPU architecture. 'lscpu' does not appear to exist on your system, will fall back to use -march=native and non-vectorized execution.
[WARNING] cpu_adagrad requires the 'lscpu' command, but it does not exist!
[WARNING] cpu_adagrad attempted to query 'lscpu' after failing to use py-cpuinfo to detect the CPU architecture. 'lscpu' does not appear to exist on your system, will fall back to use -march=native and non-vectorized execution.
[WARNING] please install triton==1.0.0 if you want to use sparse attention
[WARNING] One can disable sparse_attn with DS_BUILD_SPARSE_ATTN=0
[ERROR] Unable to pre-compile sparse_attn
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I have Win11
Tried to disable sparse and async_io.
Issue Analytics
- State:
- Created a year ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
can not install deepspeed · Issue #397 - GitHub
When I run "bash install.sh", I got the following errors: /usr/include/c++/7/bits/move.h(48): error: identifier "__builtin_addressof" is ...
Read more >DeepSpeed Fix "Error building extension" - YouTube
This video shows you how to install DeepSpeed with optional extensions. By the end, you should know. ... Your browser can't play this...
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 >Can't install deepspeed - PyTorch Forums
Can't install deepspeed ... File “C:\Users\USER\DeepSpeed\setup.py”, line 138, in ... AssertionError: Unable to pre-compile cpu_adam
Read more >deepspeed - PyPI
PyTorch must be installed before installing DeepSpeed. ... doesn't mean your GPU will not work if it doesn't fall into this category it's...
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
@AndreyRGW I just re-read your original post and noted that you’re on Windows 11. I believe that’s why the versions of triton differ in our pip output.
I don’t currently have access to a system with Windows and GPUs, so I can’t test the install process completely… but in powershell, I can avoid the error you are seeing by disabling pre-compile altogether:
Our support for Windows is something we’re working on, so if this doesn’t work you could also try using Windows Subsystem for Linux (WSL) and install deepspeed in the linux environment that provides.
I am using the latest version of pip (22.2.2), but triton 1.0.0 still does not appear.