-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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] I can't using pip install deepspeed #2406
Comments
Hi, I met the same problem. Did you solve it? |
No, I still haven't solved the problem. But I no longer choose to use deepspeed when installing accelerate. |
You need to install the proper Cuda Toolkit for your pytorch version, then add the CUDA_HOME environment variable to your windows path var. Even after that, you will have limited success in getting this to work. |
Yes, please install cuda toolkit before generating DeepSpeed wheel, following is the "cuda_home" in my machine, which is returned from torch.utils.cpp_extension.CUDA_HOME. (py3.7) D:\git\ds>python setup.py bdist_wheel
|
Closing issue, please (re)open as needed. |
I meet the same problem on linux system ~~~ |
@xxllp did you manage to fix it? |
Refer to this new issue #2772 (comment). |
Describe the bug
I can't using pip install deepspeed
To Reproduce
Steps to reproduce the behavior:
To build wheel on Windows:
1. torch 1.12.1+cu113 , CUDA 11.7
2.exactly install visual cpp build tool
3. Launch cmd console with Administrator privilege.
4. using cmd execute "pip install deepspeed"
System info (please complete the following information):
Additional context
(venv) G:\Download\DeepSpeed-0.7.3\DeepSpeed-0.7.3>python setup.py bdist_wheel
DS_BUILD_OPS=1
Traceback (most recent call last):
File "G:\Download\DeepSpeed-0.7.3\DeepSpeed-0.7.3\setup.py", line 166, in
ext_modules.append(builder.builder())
File "G:\Download\DeepSpeed-0.7.3\DeepSpeed-0.7.3\op_builder\builder.py", line 596, in builder
assert_no_cuda_mismatch()
File "G:\Download\DeepSpeed-0.7.3\DeepSpeed-0.7.3\op_builder\builder.py", line 87, in assert_no_cuda_mismatch
cuda_major, cuda_minor = installed_cuda_version()
File "G:\Download\DeepSpeed-0.7.3\DeepSpeed-0.7.3\op_builder\builder.py", line 40, in installed_cuda_version
assert cuda_home is not None, "CUDA_HOME does not exist, unable to compile CUDA op(s)"
AssertionError: CUDA_HOME does not exist, unable to compile CUDA op(s)
The text was updated successfully, but these errors were encountered: