Open LuckyNES opened 1 month ago
If I try to install deepspeed after installing torch, I get new errors:
`(.venv) PS D:\GitRepos\CogVideo> pip install deepspeed Collecting deepspeed Using cached deepspeed-0.15.1.tar.gz (1.4 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [44 lines of output]
test.c
LINK : fatal error LNK1181: cannot open input file 'aio.lib'
test.c
LINK : fatal error LNK1181: cannot open input file 'cufile.lib'
Traceback (most recent call last):
File "
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 seems deepspeed has no WIndows support?
It seems this deepseed comes from SwissArmyTransformer
I see this in the output when installing requirements.txt Collecting deepspeed (from SwissArmyTransformer>=0.4.12->-r requirements.txt (line 8)) Downloading deepspeed-0.15.1.tar.gz (1.4 MB)
I just found out the order of requirements.txt does not guarantee the install order. Might be a clue might not.
SwissArmyTransformer uses deepspeed since the initial commit. Do we need SwissArmyTransformer? If deepspeed is not Windows compatible it's like a dead end.
In the end, this program will work without SwissArmyTransformer on Windows. Maybe we just need a special requirements_windows.txt
I've been running into this issue too. Mostly from what you've described. However, even on the main repo the requirements.txt file doesn't work and has the same problem. For this to work, we'd need to completely cut out SwissArmyTransformer somehow.
I'm using Windows 11. If I try to install requirements.txt, deepspeed will not install because it says torch needs to be installed, so maybe the instructions are out of order. Here is what happens if I try to install deepspeed.
error: (.venv) PS D:\GitRepos\CogVideo> pip install deepspeed Collecting deepspeed Using cached deepspeed-0.15.1.tar.gz (1.4 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [9 lines of output] Traceback (most recent call last): File "", line 2, in
File "", line 34, in
File "C:\Users\myusername\AppData\Local\Temp\pip-install-ryve96yo\deepspeed_08f2b14bcce04e279c8dd9b5572ff4a1\setup.py", line 155, in
assert torch_available, "Unable to pre-compile ops without torch installed. Please install torch before attempting to pre-compile ops."
AssertionError: Unable to pre-compile ops without torch installed. Please install torch before attempting to pre-compile ops.
[WARNING] Unable to import torch, pre-compiling ops will be disabled. Please visit https://pytorch.org/ to see how to properly install torch on your system.
[WARNING] unable to import torch, please install it if you want to pre-compile any deepspeed ops.
DS_BUILD_OPS=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.