Coder Social home page Coder Social logo

Comments (4)

erew123 avatar erew123 commented on July 24, 2024

Hiya

DeepSpeed needs to be able to find the CUDA toolkit's nvcc to compile. DeepSpeed is not a pre-built bit of code, It actually compiles the code unique to your setup on Linux and it needs to be able to use nvcc --version to confirm the version of CUDA its compiling for. Once it has installed/compiled I believe you wont need to keep the Nvidia toolkit anymore (unless you reinstalled DeepSpeed).

So you would load your custom environment. You can use pip show torch if you need to confirm what version of CUDA you may have installed e.g. cu118 (cuda 11.8) or cu121 (cuda 12.1) etc

Either use your package manager to install the Nvidia CUDA toolkit or alternatively https://developer.nvidia.com/cuda-toolkit-archive (Matching the version of Torch's cuda version).

Once that's installed, confirm the path that CUDA is in... it may be /etc/alternative/cuda (wherever your Linux puts nvcc)

Load your python environment

Set the environment path for CUDA_HOME e.g. export CUDA_HOME=/usr/local/cuda-12.1/bin or export CUDA_HOME=/etc/alternative/cuda

Then you should be able to type nvcc --version which should work and tell you the CUDA version. If it does, go ahead and pip install deepspeed and you are all sorted.

Remove the Nvidia toolkit (unless you want to keep it). Start AllTalk and you will need to activate DeepSpeed in the interface.

That's a loose guide.

from alltalk_tts.

erew123 avatar erew123 commented on July 24, 2024

Bar starting your Python environment, Steps 1, 3, 7 and 8 are the specific steps. (obviously matching the version of CUDA you have installed to the version of Pytorch).

https://github.com/erew123/alltalk_tts?tab=readme-ov-file#-linux-installation

from alltalk_tts.

q5sys avatar q5sys commented on July 24, 2024

Thanks for the response. I'll poke around with it a bit tonight. Assuming I dont run into any complexities introduced by my system, if I can get it working I'll put together a little text block about the steps I went through and file a PR to add that to the docs, so the next person who wants to do this has a clear section dedicated to the stand alone app.
Since I'm using your native UI, I wasn't sure how much I should rely on the instructions for someone using oobabooga.

from alltalk_tts.

q5sys avatar q5sys commented on July 24, 2024

So I got it installed, interestingly I ran into a bit of an odd situation.
After setting the env when I tried to install deepspeed, I got the following error:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/cuda-12.1/bin/bin/nvcc'

I dont know why it was doubling up the bin dir, but I figured instead of altering the path and potentially causing an issue for something else, I'd just set the path as part of PATH since I'll probably be using the CUDA toolkit for other things in the future.

I'm not sure if this was just an oddity about my system (Rocky 9.3) or not.

In either case I got it working so I'm going to close this ticket. Thanks for the help. PR filed with instructions submitted.

from alltalk_tts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.