You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
A docker image might be easier for people to use.
Describe the solution you'd like
We could add a /docker folder or a simple dockerfile to the repo, so people could build the image by themselves. And maybe we could push the image to dockerhub so they could just pull and test.
Reacted by Saurav Maheshkar, Kevin, Ripunjay Singh, Marko Klopets, Corbin, CT, Md Mazedul Islam Khan, Martin Honermeyer, gregfr, Richard Février and 2 more
The Dockerfile above bakes the 39GB pretrained model into the image. In my opinion, it would be better to download the pretrained model into a bind mount when the container starts. The image would be much smaller and the bind mount persists the model across container restarts.
The Dockerfile above bakes the 39GB pretrained model into the image. In my opinion, it would be better to download the pretrained model into a bind mount when the container starts. The image would be much smaller and the bind mount persists the model across container restarts.
I'm just starting with OpenChat, I was checking to use Docker and I found your Dockerfile.
One question, for training the model, I understand cuda + nvidia are used if available?
If that yes, yesterday I found this, maybe useful https://blog.roboflow.com/nvidia-docker-vscode-pytorch/
Looks like there are docker-nvidia accelerated containers nvidia/cuda:11.0.3-base-ubuntu20.04 ready to be used.
(Note: Because I use docker-compose I had to update to a 1.28.0+ version to configure of '--gpus all' parameter)
Thank you
Reacted by orangetin and Joen Wallenstrøm (UnLogick)
Just mention that I had issues building the environment with package netifaces, that I solved updating environment.yml file from netifaces===0.11.0 to netifaces2==0.0.16
Just mention that I had issues building the environment with package netifaces, that I solved updating environment.yml file from netifaces===0.11.0 to netifaces2==0.0.16
Thank you
This can be fixed by installing gcc. On Ubuntu, you'd run sudo apt install gcc. That should fix your error!
If that yes, yesterday I found this, maybe useful https://blog.roboflow.com/nvidia-docker-vscode-pytorch/ Looks like there are docker-nvidia accelerated containers nvidia/cuda:11.0.3-base-ubuntu20.04 ready to be used. (Note: Because I use docker-compose I had to update to a 1.28.0+ version to configure of '--gpus all' parameter)
Thanks for the great resource @xsanz! I was able to get the model loaded onto the GPU in docker using those instructions
Activity
csris commentedon Mar 14, 2023
Thanks for the feature request. This is a great idea. Will put it on the roadmap.
rpj09 commentedon Mar 14, 2023
Hey @Jonuknownothingsnow i am new to open source . and it would be very happy to work on this idea under your guidance
kailust commentedon Mar 15, 2023
Dockerfile
Build the Docker image using the following command:
Run the Docker container using the following command:
This will start a new bash shell in the container.
Activate the OpenChatKit environment by running the following command:
You should now be able to use the OpenChatKit code and run the prepare.py script.
csris commentedon Mar 18, 2023
As I mentioned in the PR, both the pretrained model and datasets can be quite large.
The
Dockerfileabove bakes the 39GB pretrained model into the image. In my opinion, it would be better to download the pretrained model into a bind mount when the container starts. The image would be much smaller and the bind mount persists the model across container restarts.rpj09 commentedon Mar 19, 2023
Sure i will try to do it
xsanz commentedon Apr 22, 2023
Hello,
I'm just starting with OpenChat, I was checking to use Docker and I found your Dockerfile.
One question, for training the model, I understand cuda + nvidia are used if available?
If that yes, yesterday I found this, maybe useful https://blog.roboflow.com/nvidia-docker-vscode-pytorch/
Looks like there are docker-nvidia accelerated containers nvidia/cuda:11.0.3-base-ubuntu20.04 ready to be used.
(Note: Because I use docker-compose I had to update to a 1.28.0+ version to configure of '--gpus all' parameter)
Thank you
xsanz commentedon Apr 23, 2023
Hello there,
Just mention that I had issues building the environment with package netifaces, that I solved updating environment.yml file from netifaces===0.11.0 to netifaces2==0.0.16
Thank you
orangetin commentedon Apr 23, 2023
This can be fixed by installing
gcc. On Ubuntu, you'd runsudo apt install gcc. That should fix your error!orangetin commentedon Apr 25, 2023
Thanks for the great resource @xsanz! I was able to get the model loaded onto the GPU in docker using those instructions
mlaug commentedon May 6, 2023
the conda binary was not found during my docker build. If anyone runs into this issue, I had set the PATH correctly before trying to run conda
ENV PATH=/opt/conda/bin/:$PATH