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
0fd8d2aa
Unverified
Commit
0fd8d2aa
authored
Jul 31, 2023
by
Yih-Dar
Committed by
GitHub
Jul 31, 2023
Browse files
Fix docker image build failure (#25214)
fix Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
1b4f6199
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
docker/transformers-all-latest-gpu/Dockerfile
docker/transformers-all-latest-gpu/Dockerfile
+3
-1
No files found.
docker/transformers-all-latest-gpu/Dockerfile
View file @
0fd8d2aa
...
...
@@ -22,7 +22,6 @@ RUN python3 -m pip install --no-cache-dir --upgrade pip
ARG
REF=main
RUN
git clone https://github.com/huggingface/transformers
&&
cd
transformers
&&
git checkout
$REF
RUN
python3
-m
pip
install
--no-cache-dir
-e
./transformers[dev,onnxruntime]
# TODO: Handle these in a python utility script
RUN
[
${#
PYTORCH
}
-gt
0
-a
"
$PYTORCH
"
!=
"pre"
]
&&
VERSION
=
'torch=='
$PYTORCH
'.*'
||
VERSION
=
'torch'
;
echo
"export VERSION='
$VERSION
'"
>>
~/.profile
...
...
@@ -33,6 +32,9 @@ RUN echo torch=$VERSION
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
==
2.12
protobuf
==
3.20.3 tensorflow_text tensorflow_probability
RUN
python3
-m
pip
install
--no-cache-dir
-e
./transformers[dev,onnxruntime]
RUN
python3
-m
pip uninstall
-y
flax jax
RUN
python3
-m
pip
install
--no-cache-dir
intel_extension_for_pytorch
==
$INTEL_TORCH_EXT
+cpu
-f
https://developer.intel.com/ipex-whl-stable-cpu
...
...
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