-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[BUG] pip install DeepSeed Error #3145
Comments
@ElbekJK Are you on windows? If yes check this |
I have tried it. But I am facing this error: |
@ElbekJK - are you building on Windows or Linux? And can you share the command you are using? Since you should be able to |
I am using Windows. But I cannot create a wheel to request |
Are you building ops as well in the command, or just running |
I was building ops. I did what you suggested but it didn't work either. |
Ah, if you are using PowerShell you'll want to set the environment variable differently, I assumed that was cmd.exe. For PowerShell can you try |
Yeah, it worked. Thanks a lot. But I don't know what to do from here. Because I don't know if the deepspeed is working. |
All we did there was disable pre-compiling the ops, they should still be supported via JIT compilation. You should be able to see the status of your DeepSpeed install by running ds_report, can you paste that output here? Its possible that AIO cannot be installed (the error we got above) and if you do not need that feature, then you can simply disable it. I'd also recommend using WSL if possible, since not all features are supported on Windows. |
I reinstalled the OS, re-downloaded cuda and cudann, made sure my cuda and cudann are both certified. set DS_BUILD_AIO=0 set DS_BUILD_SPARSE_ATTN=0 Then the error evolved. No CUDA runtime is found, using CUDA_HOME='E:\00-chatGPT\CUDA' Are there other solutions? |
Hi @GalaxyHe2023 -that looks like a different error here. Are you trying to install DeepSpeed from source or via a published pip package, since I also see this in your logs: If it is failing to symlink, make sure you are following these windows directions as well. Though as before, I'd recommend using WSL here if you can as there are more features supported on that. |
I use wsl to fix the issue. |
Thanks for clarifying, @GalaxyHe2023, glad that works for you, and it should have more features available as well. @ElbekJK, is WSL something you can use in your setup or not? If not, from where you are when you build without pre-compiling ops, can you paste your output from |
Yeah, it worked. I am using it on WSL. Thank you a lot for everything! |
After setting it up this way, the compilation didn't take place and the directly generated .whl file couldn't be installed. |
@lsm03624 - Are you using PowerShell on Windows here? We recommend WSL if possible since it allows use of all features like async_io. But for Powershell, what errors were you seeing for why compilation didn't take place? |
@loadams Hello. I also have the same problem. here is my problem. I don't know how to fix it. (speech_env_one) D:\Attack\SemCom\SPEECH_TO_TEXT\DeepSC-ST_demonstration\DeepSpeed>python setup.py bdist_wheel (speech_env_one) D:\Attack\SemCom\SPEECH_TO_TEXT\DeepSC-ST_demonstration\DeepSpeed>Set-Item Env:\DS_BUILD_OPS 0 |
Hi @ccu1tn - the failure to set the environment variable seems that you are not in a Powershell environment since the powershell commands are not working currently for you? Can you confirm if you're able to open a new powershell window and run that? |
Hi @loadams, thank you for your support. It worked when I ran with PowerShell. The results are like this, Is it correct? I also have another error in this picture. |
I just went down the rabbit hole of #4729 #4669 and I'm stuck on this issue specified here and hesitant to open a new one: as text for SEO❯ pip install deepspeed --pre
Collecting deepspeed
Using cached deepspeed-0.12.6.tar.gz (1.2 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [36 lines of output]
test.c
LINK : fatal error LNK1181: cannot open input file 'aio.lib'
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.
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\User\AppData\Local\Temp\pip-install-zl23ifx7\deepspeed_74d1c763267644b39987945a8d63c94f\setup.py", line 224, in <module>
create_dir_symlink('..\\..\\csrc', '.\\deepspeed\\ops\\csrc')
File "C:\Users\User\AppData\Local\Temp\pip-install-zl23ifx7\deepspeed_74d1c763267644b39987945a8d63c94f\setup.py", line 216, in create_dir_symlink
os.remove(dest)
PermissionError: [WinError 5] Access is denied: '.\\deepspeed\\ops\\csrc'
DS_BUILD_OPS=1
[WARNING] async_io requires the dev libaio .so object and headers but these were not found.
[WARNING] If libaio is already installed (perhaps from source), try setting the CFLAGS and LDFLAGS environment variables to where it can be found.
[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] cpu_lion requires the 'lscpu' command, but it does not exist!
[WARNING] cpu_lion 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_lion requires the 'lscpu' command, but it does not exist!
[WARNING] cpu_lion 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 specify the CUTLASS repo directory as environment variable $CUTLASS_PATH
[WARNING] sparse_attn requires a torch version >= 1.5 and < 2.0 but detected 2.0
[WARNING] please install triton==1.0.0 if you want to use sparse attention
Install Ops={'async_io': False, 'fused_adam': 1, 'cpu_adam': 1, 'cpu_adagrad': 1, 'cpu_lion': 1, 'evoformer_attn': False, 'fused_lamb': 1, 'fused_lion': 1, 'inference_core_ops': 1, 'cutlass_ops': False, 'quantizer': 1, 'ragged_device_ops': False, 'ragged_ops': 1, 'random_ltd': 1, 'sparse_attn': False, 'spatial_inference': 1, 'transformer': 1, 'stochastic_transformer': 1, 'transformer_inference': 1}
[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. |
It works if I clone the repo, I published wheels here for windows https://github.com/melMass/DeepSpeed/releases/tag/v0.12.7 |
@melMass |
nice work! |
Thanks! |
Thanks :) |
Thanks ! |
I have installed in Ubuntu 22.04,anaconda。but it has some errors: but I am sure that I have installed the libaio and libaio-dev: |
We now publish official DeepSpeed wheels for Windows, please see more about that here: https://github.com/microsoft/DeepSpeed/blob/master/blogs/windows/08-2024/README.md |
When I try to download the DeepSpeed with pip, I am constantly facing with this error. I would appreciate your help!
Collecting deepspeed
Using cached deepspeed-0.8.3.tar.gz (765 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
test.c
LINK : fatal error LNK1181: cannot open input file 'aio.lib'
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\Elbek\AppData\Local\Temp\pip-install-yduslt_a\deepspeed_eacd64e4be3945869afa52e220c455fa\setup.py", line 156, in
abort(f"Unable to pre-compile {op_name}")
File "C:\Users\Elbek\AppData\Local\Temp\pip-install-yduslt_a\deepspeed_eacd64e4be3945869afa52e220c455fa\setup.py", line 48, in abort
assert False, msg
AssertionError: Unable to pre-compile async_io
DS_BUILD_OPS=1
[WARNING] async_io requires the dev libaio .so object and headers but these were not found.
[WARNING] If libaio is already installed (perhaps from source), try setting the CFLAGS and LDFLAGS environment variables to where it can be found.
[WARNING] One can disable async_io with DS_BUILD_AIO=0
[ERROR] Unable to pre-compile async_io
[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.
The text was updated successfully, but these errors were encountered: