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
5c341d45
Unverified
Commit
5c341d45
authored
Feb 27, 2024
by
Yih-Dar
Committed by
GitHub
Feb 27, 2024
Browse files
Use torch 2.2 for deepspeed CI (#29246)
update Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
63a0c8f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
docker/transformers-pytorch-deepspeed-latest-gpu/Dockerfile
docker/transformers-pytorch-deepspeed-latest-gpu/Dockerfile
+4
-6
No files found.
docker/transformers-pytorch-deepspeed-latest-gpu/Dockerfile
View file @
5c341d45
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel-23-11.html#rel-23-11
FROM
nvcr.io/nvidia/pytorch:23.
11
-py3
FROM
nvcr.io/nvidia/pytorch:23.
04
-py3
LABEL
maintainer="Hugging Face"
ARG
DEBIAN_FRONTEND=noninteractive
ARG
PYTORCH='2.
1
.0'
ARG
PYTORCH='2.
2
.0'
# Example: `cu102`, `cu113`, etc.
ARG
CUDA='cu121'
...
...
@@ -15,14 +15,12 @@ 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
un
install
-
y
torch torchvision torchaudio
RUN
python3
-m
pip
install
-
-no-cache-dir
./transformers[deepspeed-testing]
# Install latest release PyTorch
# (PyTorch must be installed before pre-compiling any DeepSpeed c++/cuda ops.)
# (https://www.deepspeed.ai/tutorials/advanced-install/#pre-install-deepspeed-ops)
RUN
python3
-m
pip
install
--no-cache-dir
-U
torch
==
$PYTORCH
torchvision torchaudio
--extra-index-url
https://download.pytorch.org/whl/
$CUDA
RUN
python3
-m
pip
install
--no-cache-dir
./transformers[deepspeed-testing]
RUN
python3
-m
pip uninstall
-y
torch torchvision torchaudio
&&
python3
-m
pip
install
--no-cache-dir
-U
torch
==
$PYTORCH
torchvision torchaudio
--extra-index-url
https://download.pytorch.org/whl/
$CUDA
RUN
python3
-m
pip
install
--no-cache-dir
git+https://github.com/huggingface/accelerate@main#egg
=
accelerate
...
...
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