building a working version of gpt2 using as base the repository https://github.com/openai/gpt-2
1.6K
docker run -itd --name=gpt2-test constants/gpt:2.cpu bash
docker run -itd --name=gpt2-test constants/gpt:2.gpu bash
Dockerfile.cpu
FROM tensorflow/tensorflow:1.13.1-py3
ENV LANG=C.UTF-8
RUN mkdir /gpt-2
WORKDIR /gpt-2
ADD . /gpt-2
RUN pip3 install --upgrade pip
RUN pip3 install -r requirements.txt
RUN python3 download_model.py 124M
RUN python3 download_model.py 355M
RUN python3 download_model.py 774M
RUN python3 download_model.py 1558M
Dockerfile.gpu
FROM tensorflow/tensorflow:1.13.1-gpu-py3
# nvidia-docker 1.0
LABEL com.nvidia.volumes.needed="nvidia_driver"
LABEL com.nvidia.cuda.version="${CUDA_VERSION}"
# nvidia-container-runtime
ENV NVIDIA_VISIBLE_DEVICES=all \
NVIDIA_DRIVER_CAPABILITIES=compute,utility \
NVIDIA_REQUIRE_CUDA="cuda>=8.0" \
LANG=C.UTF-8
RUN mkdir /gpt-2
WORKDIR /gpt-2
ADD . /gpt-2
RUN pip3 install --upgrade pip
RUN pip3 install -r requirements.txt
RUN python3 download_model.py 124M
RUN python3 download_model.py 355M
RUN python3 download_model.py 774M
RUN python3 download_model.py 1558M
Content type
Image
Digest
sha256:2bb1ae88f…
Size
11.3 GB
Last updated
over 3 years ago
docker pull constants/gpt:2.gpu