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
6690ba3f
Unverified
Commit
6690ba3f
authored
Sep 07, 2022
by
Yih-Dar
Committed by
GitHub
Sep 07, 2022
Browse files
pin TF 2.9.1 for self-hosted CIs (#18925)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
2ef77421
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
docker/transformers-all-latest-gpu/Dockerfile
docker/transformers-all-latest-gpu/Dockerfile
+1
-1
docker/transformers-cpu/Dockerfile
docker/transformers-cpu/Dockerfile
+1
-1
docker/transformers-gpu/Dockerfile
docker/transformers-gpu/Dockerfile
+1
-1
docker/transformers-tensorflow-cpu/Dockerfile
docker/transformers-tensorflow-cpu/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 @
6690ba3f
...
...
@@ -32,7 +32,7 @@ RUN echo torch=$VERSION
# TODO: We might need to specify proper versions that work with a specific torch version (especially for past CI).
RUN
[
"
$PYTORCH
"
!=
"pre"
]
&&
python3
-m
pip
install
--no-cache-dir
-U
$VERSION
torchvision torchaudio
--extra-index-url
https://download.pytorch.org/whl/
$CUDA
||
python3
-m
pip
install
--no-cache-dir
-U
--pre
torch torchvision torchaudio
--extra-index-url
https://download.pytorch.org/whl/nightly/
$CUDA
RUN
python3
-m
pip
install
--no-cache-dir
-U
tensorflow
RUN
python3
-m
pip
install
--no-cache-dir
-U
tensorflow
==
2.9.1
RUN
python3
-m
pip uninstall
-y
flax jax
# Use installed torch version for `torch-scatter` to avid to deal with PYTORCH='pre'.
...
...
docker/transformers-cpu/Dockerfile
View file @
6690ba3f
...
...
@@ -15,7 +15,7 @@ RUN apt update && \
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
&&
\
python3
-m
pip
install
--no-cache-dir
\
jupyter
\
tensorflow-cpu
\
tensorflow-cpu
==
2.9.1
\
torch
WORKDIR
/workspace
...
...
docker/transformers-gpu/Dockerfile
View file @
6690ba3f
...
...
@@ -15,7 +15,7 @@ RUN apt update && \
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
&&
\
python3
-m
pip
install
--no-cache-dir
\
jupyter
\
tensorflow
\
tensorflow
==
2.9.1
\
torch
RUN
git clone https://github.com/NVIDIA/apex
...
...
docker/transformers-tensorflow-cpu/Dockerfile
View file @
6690ba3f
...
...
@@ -15,7 +15,7 @@ RUN apt update && \
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
&&
\
python3
-m
pip
install
--no-cache-dir
\
mkl
\
tensorflow-cpu
tensorflow-cpu
==
2.9.1
WORKDIR
/workspace
COPY
. transformers/
...
...
docker/transformers-tensorflow-gpu/Dockerfile
View file @
6690ba3f
...
...
@@ -12,7 +12,7 @@ RUN git clone https://github.com/huggingface/transformers && cd transformers &&
RUN
python3
-m
pip
install
--no-cache-dir
-e
./transformers[dev-tensorflow,testing]
# If set to nothing, will install the latest version
ARG
TENSORFLOW=''
ARG
TENSORFLOW='
2.9.1
'
RUN
[
${#
TENSORFLOW
}
-gt
0
]
&&
VERSION
=
'tensorflow=='
$TENSORFLOW
'.*'
||
VERSION
=
'tensorflow'
;
python3
-m
pip
install
--no-cache-dir
-U
$VERSION
RUN
python3
-m
pip uninstall
-y
torch flax
...
...
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