Closed jadechip closed 1 year ago
Just to keep the docker size down, the drivers are installed, and the final built image uses the GPU.
If there is a particular issue you are running into please provide additional information, PRs that offer improvements are always welcomed :)
sorry, it is not clear for me how cuda drivers get installed.
I am trying to build the image with docker locally, but I am getting errors because the NVidia drivers are not found.
These are some of the errors I get. I am on ubuntu 22.04 with nvidia drivers installed.
Do you see that error during the docker build?
And pytorch includes everything needed to interact with the GPU, drivers are handled at a system level. https://discuss.pytorch.org/t/is-nvidia-driver-already-included-cuda-and-cuda-toolkit/184411
ok thansk for the clarification.
Yes, I get the error during the build:
If I change RUN export COMMANDLINE_ARGS="--skip-torch-cuda-test --precision full --no-half" with ARG COMMANDLINE_ARGS="--skip-torch-cuda-test --precision full --no-half
I dunno get anymore the error during the build
Are you making changes to the repo or building from a clean clone?
It looks like something needs those build time args vs the runtime args, but I'll consider this resolved since you have a resolution.
Is there a reason a base image with CUDA drivers is not used? Such as nvidia/cuda:11.7.1-cudnn8-runtime-ubuntu20.04? Would be happy to create a PR. Thanks