-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
DeepSpeed Won't Install! #199
Comments
Enter your choice: 8 Select a requirements file to check against (or press Enter for default 'requirements.txt'):
Enter the number of your choice: |
ok you can probably close this I've found a guide on the epic mission involved in making deepspeed work on windows, thanks for the great plug in btw. |
interesting new problem!
Running on local URL: http://127.0.0.1:7860 Closing server running on port: 7860
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates Running on local URL: http://127.0.0.1:7860 Trying to get microsoft stuff to run on window haha. |
Hi @sigma7eaven Without a diagnostic file Im unable to say what version of Pytorch you are running. I do however provide versions of precompiled deepspeed e.g. https://github.com/erew123/alltalk_tts/releases/tag/DeepSpeed-14.0 There is also a main section of the front Github page related to DeepSpeed compilation and setup https://github.com/erew123/alltalk_tts?tab=readme-ov-file#-deepspeed-installation-options Regarding the "curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012)" this is am issue relating to your internet connection and something being filtered between yourself and girhub or a github problem. I answered this and discussed it with someone else on this ticket here That aside, DeepSpeed has to be compiled correctly for the version of PyTorch and the Python requirements you have on your system otherwise it will error. I know that PyTorch 2.3.x has recently been released, though I am not sure if Text-gen-webui has moved up to that version currently. I would need a diagnostics report from your system to be able to understand your Python environment, You can run it against the "requirements_textgen.txt" file. Thanks |
Enter the number of your choice: 4 OS Version: Windows 10.0.17763 GPU Information: Thu May 2 21:45:32 2024 +-----------------------------------------------------------------------------------------+ Port Status: Port 7851 is in use. CUDA Working: Success - CUDA is available and working. Torch Version: 2.3.0+cu121 Python Search Path: Requirements file package comparison: On Nvidia Graphics cards machines, if your Installed version of Torch and Torchaudio does Requirements file specifier meanings: Diagnostic log created: diagnostics.log. A brief summary of results is displayed above on Please upload the log file with any support ticket. Diagnostics.log generated. Please scroll up to look over the log. |
I see all the package miss matching I re apply the extensions\alltalk_tts\system\requirements requirements_textgen.txt and the C:\deepspeed\requirements requirements for DeepSpeed. I tried to update my base package from python 3.10 to 3.11 python -v shows 3.11 but diagnostics showing 3.10? |
Hi @sigma7eaven The main issue is that you have So, DeepSpeed has to be compiled/built specific to a machines Python environment. Its basically a real pain. You can get away with point revisions of things with DeepSpeed e.g. if its compiled for Pytorch 2.2.1 then it will be fine with Pytorch 2.2.2 and Pytorch 2.2.3, but it wont be fine with Pytorch 2.3.x Because the only way to compile/build DeepSpeed is to actually create that Python environment that you want to compile it for, well that takes time as you have to install the Python version, then all the underlying bits like PyTorch with the CUDA version you want etc etc. In short, that means if you wanted to build for Python 3.10 with CUDA 11.8 and then CUDA 12.1, that's already 2x environments you have to build, but then you have the complexity of the PyTorch versions, so if you want to build for Pytorch 2.1.x, 2.2.x, 2.3.x then that's now 12x Python environments you have to build to cover all variables. Plus the build time of DeepSpeed. Aka, just doing that alone would be about 12 hours work. As such, I only build DeepSpeed versions for whatever Text-generation-webui is currently installing as a default installation. I want to be 1000% clear here Python environments are complicated and a pain in the ass. They are very easy to screw up and can be a real pain to get your head around. I have no idea of your understanding or tech abilities, I would only advise doing what you personally feel comfortable with and I will be unable to support you to a deep level with this. AKA you do any changes at your own risk. There is a short Python environments primer here https://github.com/erew123/alltalk_tts?tab=readme-ov-file#installation-and-setup-issues which I wrote. But as I say, at your own risk. So, you have 4x choices from here:
If it builds and when I upload it, you can try that version. It may or may not be happy about you being on Python version being 3.10.
Again, it may not be happy about being on Python 3.10
When you run the You would however find that it installs a new, up to date Python environment: However, I will still need to compile a new version of DeepSpeed before it will work on Pytorch 2.3.x
Thanks |
RESULT This helped a lot, only thing is it says Deepspeed version can't be detected... And port issue duplicate connection. I still have to read your reply just wanted to show the progress. 23:08:07-129772 INFO Starting Text generation web UI
Running on local URL: http://127.0.0.1:7860 Closing server running on port: 7860 Running on local URL: http://127.0.0.1:7860 |
Hi @sigma7eaven I've tested compiling DeepSpeed for PyTorch 2.3.x and it just wont at the moment. Something to do with I've wiped and reinstalled text-gen-webui fresh and it currently installs: PYTHON & PYTORCH: As such, as your system is showing PyTorch 2.3.0 see your post here I would suggest the "option 3" route that I listed above as that would at least get you to a factory stage. Until there is a clear/easy way to compile flash_attn 2.5.8 that doesn't require 1+hours time on a persons system, I cant see an upgrade package for DeepSpeed on Windows to support PyTorch 2.3.x. I also believe that the flash_attn will also impact some of text-gen-webui's loaders e.g. ExLlama etc, so upgrading it anyway isnt a good option until those have been flagged as working. For reference, here is the current full package list that Text-gen-webui installs for Nvidia card systems running CUDA 12.1 PYTHON PACKAGES: Thanks |
🔴 If you have installed AllTalk in a custom Python environment, I will only be able to provide limited assistance/support. AllTalk draws on a variety of scripts and libraries that are not written or managed by myself, and they may fail, error or give strange results in custom built python environments. Seems un related.
🔴 Please generate a diagnostics report and upload the "diagnostics.log" as this helps me understand your configuration. If I work this out will add later?
https://github.com/erew123/alltalk_tts/tree/main?#-how-to-make-a-diagnostics-report-file
Describe the bug
atsetup.bat Deepspeed Install Fail
Please ensure you have started your Text-generation-webui Python
environment. If you have NOT done this, please run cmd_windows.bat
in the text-generation-webui folder and then re-run this script.
To Reproduce
Steps to reproduce the behaviour: Choose option 6
Screenshots
If applicable, add screenshots to help explain your problem.
Text/logs
If applicable, copy/paste in your logs here from the console.
BASE REQUIREMENTS
OPTIONAL
2) Git Pull the latest AllTalk updates from Github
DEEPSPEED FOR PyTorch 2.1.x
4) Install DeepSpeed v11.2 for CUDA 11.8 and Python-3.11.x and PyTorch 2.1.x.
5) Install DeepSpeed v11.2 for CUDA 12.1 and Python-3.11.x and PyTorch 2.1.x.
DEEPSPEED FOR PyTorch 2.2.x (March 2024 builds of Text-gen-webui and later)
6) Install DeepSpeed v14.0 for CUDA 12.1 and Python-3.11.x and PyTorch 2.2.x.
7) Install DeepSpeed v14.0 for CUDA 11.8 and Python-3.11.x and PyTorch 2.2.x.
U) Uninstall DeepSpeed.
OTHER
8) Generate a diagnostics file.
Enter your choice: 6
Downloading DeepSpeed...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
Failed to download DeepSpeed wheel file.
Please check your internet connection or try again later.
Press any key to return to the menu.
Press any key to continue . . .
BASE REQUIREMENTS
OPTIONAL
2) Git Pull the latest AllTalk updates from Github
DEEPSPEED FOR PyTorch 2.1.x
4) Install DeepSpeed v11.2 for CUDA 11.8 and Python-3.11.x and PyTorch 2.1.x.
5) Install DeepSpeed v11.2 for CUDA 12.1 and Python-3.11.x and PyTorch 2.1.x.
DEEPSPEED FOR PyTorch 2.2.x (March 2024 builds of Text-gen-webui and later)
6) Install DeepSpeed v14.0 for CUDA 12.1 and Python-3.11.x and PyTorch 2.2.x.
7) Install DeepSpeed v14.0 for CUDA 11.8 and Python-3.11.x and PyTorch 2.2.x.
U) Uninstall DeepSpeed.
OTHER
8) Generate a diagnostics file.
Enter your choice: 6
Downloading DeepSpeed...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
Failed to download DeepSpeed wheel file.
Please check your internet connection or try again later.
Press any key to return to the menu.
Press any key to continue . . .
Desktop (please complete the following information):
AllTalk was updated: [approx. date] Aquired within past few weeks
Custom Python environment: [yes/no give details if yes] Python 3.11.9 | packaged by Anaconda, Inc. | (main, Apr 19 2024, 16:40:41) [MSC v.1916 64 bit (AMD64)] on win32
Text-generation-webUI was updated: [approx.] latest release within last week
Additional context
Add any other context about the problem here.
I'm getting the same error from pip install deepspeed
The text was updated successfully, but these errors were encountered: