-
Notifications
You must be signed in to change notification settings - Fork 118
No GPUs found #157
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
Comments
Hi, I'm getting the same issue trying to build from a Dockerfile. I don't mean to be a LLM noob but this is not my area of expertise so this is what I got from Gemini:
This Dockerfile works for me if I checkout that commit mentioned above:
|
Looks like there are some ways to make GPU accessible during build but it's quite a pain considering it's the only library that needs it: https://stackoverflow.com/questions/59691207/docker-build-with-nvidia-runtime Especially since the working logic is right there and it needs to be brought back. I'd be totally okay if the variable is renamed etc. if it should be for whatever reason. Just let me build an image for my GPU, I swear I actually have it plugged in and working! 😂 |
I meet the same problem, how to make it when docker build. |
I resorted to doing a one-time install in the entrypoint script like this: #!/bin/sh
if [ ! -f /home/sd/deps_installed ]
then
export TORCH_CUDA_ARCH_LIST='8.9;12.0'
pip install git+https://github.com/thu-ml/SageAttention.git && touch /home/sd/deps_installed
fi
cd /app
python main.py "$@" The actual script I use installs more dependencies. It simply checks for a file presence and if it's absent it installs SageAttention and creates that file. The container should of course have GPU access for this to work but it's expected anyway. Make sure you have a correct arch list in the |
Commit 4b0824d breaks compilation for my 3090Ti. I'm building in Docker using
nvidia/cuda:12.8.1-cudnn-devel-ubuntu24.04
as the base. The commands are:which results in the following error:
Using the parent commit 2aecfa8 succeeds. Without
ENV TORCH_CUDA_ARCH_LIST=8.6
even 2aecfa8 fails with the same error about GPUs not being found. So I can only build sage attention with it.Torch version doesn't seem to matter, I remember getting it with 2.6.0 and now I use nightly 2.8.0, the behavior is the same.
The text was updated successfully, but these errors were encountered: