-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Dockerfile #174
Comments
I can't seem to connect to the instance locally once it's up. What is your docker run command? |
I think the problem is that there's no entry point or |
If anyone happens to want to use Podman instead, I have a repo here called Text-Generation-Webui-Podman. It compiles and installs the GPTQ-for-LLaMa repo so 4bit works too. In theory the Containerfile should be compatible with Docker, but I haven't tested it. |
Does anyone know, is it possible to run multiple instance of this dockerfile using a single GPU? I'm not able to run multiple instances from bash; when I try, the second task exits with no error: (with first instance already running)
Related to #58 |
I am interested in making this the default installation method to avoid all the setup trouble. Here is what I have tried:
I get the error
|
By default, Docker will not pass in the GPU. What happens if you try to run:
from https://docs.docker.com/engine/reference/commandline/run/#gpus ? |
No luck:
In your link, it is said that
Which I guess needs to be installed on the host operating system. Would that work on Windows? |
I think that Docker instruction might be a bit old and/or a specific to Linux. Try these more specific instructions specifically for WSL2: https://docs.nvidia.com/cuda/wsl-user-guide/index.html#getting-started-with-cuda-on-wsl |
I managed to get 4-bit working with the Dockerfile below based on the original by @slush0. Two preliminary steps were necessary:
pytorch/extension-cpp#71 (comment) Otherwise I would get the error
Dockerfile
ConnectingI used this command to connect to it:
Not the most user friendly setup because of the preliminary steps, but for people who already have experience with Docker this should be useful. Building the image itself is trivial. |
Valorant won't run on my Windows PC for some stupid reason at the moment and I was planning to reformat and reinstall my PC with another SSD as a temporary test to see if that was the path to get it working. It's been long overdue. I bring this up because I'll also see if I can get the most minimal steps re: Docker + Nvidia + WSL2 + Windows going as well. I think |
@oobabooga If it helps your cause, I updated my repo to also support Docker. It has some extras goodies like persisting the container's data, having a smaller final build size, and makes sure to cache downloaded pip packages. Containerfile and small Conversion Script so it works with Docker. I'd like to make sure it's helpful for people so if anyone has a problem with it feel free to open an issue. |
I finally figured out my port passing issue. |
When I try to run it in docker I get the following error:
|
Error response from daemon: could not select device driver "nvidia" with capabilities: [[gpu]] |
It would be great to have a CPU-only installation with Dockers! |
This issue has been closed due to inactivity for 6 weeks. If you believe it is still relevant, please leave a comment below. You can tag a developer in your comment. |
If there's any interest (to use it or add into this repo), I've knocked up Dockerfile.
https://github.com/slush0/docker-misc/blob/master/text-generation-webui/Dockerfile
It is also available at https://hub.docker.com/r/slush0/text-generation-webui.
The text was updated successfully, but these errors were encountered: