This repository has been archived by the owner on Oct 31, 2022. It is now read-only.
forked from openai/gpt-2
-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Dockerfile and document usage in README
- Loading branch information
1 parent
2f4816c
commit 438fab1
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM tensorflow/tensorflow:1.12.0-py3 | ||
|
||
ENV LANG=C.UTF-8 | ||
RUN mkdir /gpt-2 | ||
WORKDIR /gpt-2 | ||
COPY requirements.txt download_model.sh /gpt-2/ | ||
RUN apt-get update && \ | ||
apt-get install -y curl && \ | ||
sh download_model.sh 117M | ||
RUN pip3 install -r requirements.txt | ||
|
||
ADD . /gpt-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM tensorflow/tensorflow:1.12.0-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 | ||
COPY requirements.txt download_model.sh /gpt-2/ | ||
RUN apt-get update && \ | ||
apt-get install -y curl && \ | ||
sh download_model.sh 117M | ||
RUN pip3 install -r requirements.txt | ||
|
||
ADD . /gpt-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters