-
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] AssertionError: Unable to pre-compile ops without torch installed. #3329
Comments
@JerryAllison I suspect you are using |
Same error here |
Can confirm. I had the same torch error, then used --no-build-isolation to get past it. The deepspeed install then couldn't find libaio, so I installed that. Now I get the same error as JerryAllison. For me, pip -V returns "pip 23.1.1" |
@JerryAllison It looks like you are trying to install on Windows? It can be a little tricky to get DeepSpeed installed on Windows (but it is possible). We highly recommend using WSL and installing DeepSpeed in that environment. However, if you don't want to use WSL: The error you are seeing now is related to libaio not being available for Windows. You must disable pre-compilation of these features with |
Correct. In my case I am installing in Windows. Where does the "set DS_BUILD_AIO=0" option go/ Is it an environment variable? |
I found a resource elsewhere with this syntax: $env:DS_BUILD_OPS = 0, which appeared to do the trick. This has got me to the next issue: sparse_attn requires a torch version >= 1.5 and < 2.0 but detected 2.0 So I'm off to try and arrange that. |
i have the same problem, this seems to be a bug with the lastest versions of the dependencies ? |
@KbKev78 If you don't need sparse attention for your install, you can also disable that with |
@alnrott and @AngelTs can you please try setting the following environment variables and try installing again?
|
After installing CUDA 11.7.0 (May 2022), not the newest CUDA 12.1.1 (April 2023) and executing of "python setup.py bdist_wheel" the errors are: csrc/transformer/inference/csrc/pt_binding.cpp(536): error C2398: Element '1': conversion from 'size_t' to '_Ty' requires a narrowing conversion C:\DeepSpeed-master> |
The not so good but working solution about above errors if use already created deepspeed-0.8.3+6eca037c-cp310-cp310-win_amd64.whl. In this case i succeeded to install DeepSpeed on Windows 10 without WSL or Anaconda, Miniconda, Maxiconda, bonbona and other shits ... |
Here is a quick tutorial how to compile on clean Windows 10 without any shits like WSL, XXXconda, dockers, mokers, fuckers, etc.: |
Deepspeed do not support windows,please use wsl.I got the same error ,and very easy to fix it by use wsl. https://docs.microsoft.com/en-us/windows/wsl/install-win10 |
Thanks,I have tried to download wsl on windows and install.I hope wsl can work. |
i have already install wsl and how can i use wsl to install DeepSpeed ?thank you~ |
DS_BUILD_AIO=0 where should i set the two params? |
i can use this command to solve : pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 |
I think this might be fixable by adding [build-system]
requires = [
"setuptools",
"torch",
]
build-backend = "setuptools.build_meta" See also https://setuptools.pypa.io/en/latest/userguide/dependency_management.html#build-system-requirement I have not tested that yet |
|
Please check out the latest version of DeepSpeed for Windows compatibility. |
Issue with installing DeepSpeed, "pip install deepspeed" resulted in the following error:
System info (please complete the following information):
OS: [Windows 11 22H2]
GPU count and types [GTX 1060 6GB]
Python 3.10.5
torch 2.0.0+cu118
torchaudio 2.0.1+cu118
torchvision 0.15.1+cu118
pls help me.
The text was updated successfully, but these errors were encountered: