Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
c1000e70
Unverified
Commit
c1000e70
authored
Mar 14, 2022
by
Lysandre Debut
Committed by
GitHub
Mar 14, 2022
Browse files
Dcoker images runtime -> devel (#16141)
* Runtime -> Devel * Torch before DeepSpeed
parent
10cf1ffd
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
docker/transformers-all-latest-gpu/Dockerfile
docker/transformers-all-latest-gpu/Dockerfile
+1
-1
docker/transformers-doc-builder/Dockerfile
docker/transformers-doc-builder/Dockerfile
+4
-1
docker/transformers-pytorch-gpu/Dockerfile
docker/transformers-pytorch-gpu/Dockerfile
+1
-1
docker/transformers-tensorflow-gpu/Dockerfile
docker/transformers-tensorflow-gpu/Dockerfile
+1
-1
No files found.
docker/transformers-all-latest-gpu/Dockerfile
View file @
c1000e70
FROM
nvidia/cuda:11.2.2-cudnn8-
runtime
-ubuntu20.04
FROM
nvidia/cuda:11.2.2-cudnn8-
devel
-ubuntu20.04
LABEL
maintainer="Hugging Face"
ARG
DEBIAN_FRONTEND=noninteractive
...
...
docker/transformers-doc-builder/Dockerfile
View file @
c1000e70
...
...
@@ -4,9 +4,12 @@ LABEL maintainer="Hugging Face"
RUN
apt update
RUN
git clone https://github.com/huggingface/transformers
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
&&
python3
-m
pip
install
--no-cache-dir
git+https://github.com/huggingface/doc-builder ./transformers[dev
,deepspeed
]
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
&&
python3
-m
pip
install
--no-cache-dir
git+https://github.com/huggingface/doc-builder ./transformers[dev]
RUN
apt-get
-y
update
&&
apt-get
install
-y
libsndfile1-dev
&&
apt
install
-y
tesseract-ocr
# Torch needs to be installed before deepspeed
RUN
python3
-m
pip
install
--no-cache-dir
./transformers[deepspeed]
RUN
python3
-m
pip
install
--no-cache-dir
torch-scatter
-f
https://data.pyg.org/whl/torch-
$(
python
-c
"from torch import version; print(version.__version__.split('+')[0])"
)
+cpu.html
RUN
python3
-m
pip
install
--no-cache-dir
torchvision git+https://github.com/facebookresearch/detectron2.git pytesseract https://github.com/kpu/kenlm/archive/master.zip
RUN
python3
-m
pip
install
--no-cache-dir
pytorch-quantization
--extra-index-url
https://pypi.ngc.nvidia.com
...
...
docker/transformers-pytorch-gpu/Dockerfile
View file @
c1000e70
FROM
nvidia/cuda:11.2.2-cudnn8-
runtime
-ubuntu20.04
FROM
nvidia/cuda:11.2.2-cudnn8-
devel
-ubuntu20.04
LABEL
maintainer="Hugging Face"
ARG
DEBIAN_FRONTEND=noninteractive
...
...
docker/transformers-tensorflow-gpu/Dockerfile
View file @
c1000e70
FROM
nvidia/cuda:11.2.2-cudnn8-
runtime
-ubuntu20.04
FROM
nvidia/cuda:11.2.2-cudnn8-
devel
-ubuntu20.04
LABEL
maintainer="Hugging Face"
ARG
DEBIAN_FRONTEND=noninteractive
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment