-
Notifications
You must be signed in to change notification settings - Fork 46
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
Question: is there any docker image available? #1252
Comments
we build our CI docker from nvidia/cuda. you can try nvidia/cuda:12.6.3-devel-ubuntu24.04 |
Ok, I am using the next Dockerfile (Ubuntu22 instead) and it seems to work cat Dockerfile
# Use NVIDIA CUDA base image
FROM nvidia/cuda:12.6.3-devel-ubuntu22.04
# Set the working directory in the container
WORKDIR /workspace
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
# Upgrade pip
RUN python3 -m pip install --upgrade pip
# Install PyTorch and other dependencies
RUN pip3 install torch torchvision torchaudio
# Install transformers and other required packages
RUN pip3 install transformers datasets scikit-learn scipy numpy
# Clone the GPTQModel repository
RUN git clone https://github.com/ModelCloud/GPTQModel.git
# Install GPTQModel
RUN cd GPTQModel && pip3 install -v . --no-build-isolation
# Set the default command to bash
CMD ["/bin/bash"] Any suggestion would be appreciated. |
Check what version of python is installed by default in 22.04 and 24.xx . We recommend 24.xx as it would likely use python 3.12 which is faster. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think to build a docker image would not be hard.
I can do it myself, but can you please recommend some base image? maybe something like this?
Then:
docker build -t gptqmodel-image . docker run -it --gpus all --name gptqmodel-container gptqmodel-image /bin/bash
Unfortunately this image builf from huggingface is giving me the following log:
So I don't know which one to use.
Any recommendation?
The text was updated successfully, but these errors were encountered: