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
1f2c00d6
Unverified
Commit
1f2c00d6
authored
May 19, 2023
by
Yih-Dar
Committed by
GitHub
May 19, 2023
Browse files
Fix DeepSpeed stuff in the nightly CI (#23478)
fix Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
3cb93090
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
.github/workflows/build-nightly-ci-docker-images.yml
.github/workflows/build-nightly-ci-docker-images.yml
+10
-0
docker/transformers-pytorch-deepspeed-nightly-gpu/Dockerfile
docker/transformers-pytorch-deepspeed-nightly-gpu/Dockerfile
+4
-1
No files found.
.github/workflows/build-nightly-ci-docker-images.yml
View file @
1f2c00d6
...
@@ -52,6 +52,16 @@ jobs:
...
@@ -52,6 +52,16 @@ jobs:
name
:
"
Nightly
PyTorch
+
DeepSpeed"
name
:
"
Nightly
PyTorch
+
DeepSpeed"
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
-
name
:
Cleanup disk
run
:
|
sudo ls -l /usr/local/lib/
sudo ls -l /usr/share/
sudo du -sh /usr/local/lib/
sudo du -sh /usr/share/
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/share/dotnet
sudo du -sh /usr/local/lib/
sudo du -sh /usr/share/
-
-
name
:
Set up Docker Buildx
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v2
uses
:
docker/setup-buildx-action@v2
...
...
docker/transformers-pytorch-deepspeed-nightly-gpu/Dockerfile
View file @
1f2c00d6
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel
_
22-
08
.html#rel
_
22-
08
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel
-
22-
12
.html#rel
-
22-
12
FROM
nvcr.io/nvidia/pytorch:22.12-py3
FROM
nvcr.io/nvidia/pytorch:22.12-py3
LABEL
maintainer="Hugging Face"
LABEL
maintainer="Hugging Face"
...
@@ -25,6 +25,9 @@ RUN python3 -m pip install --no-cache-dir ./transformers[deepspeed-testing]
...
@@ -25,6 +25,9 @@ RUN python3 -m pip install --no-cache-dir ./transformers[deepspeed-testing]
RUN
python3
-m
pip
install
--no-cache-dir
git+https://github.com/huggingface/accelerate@main#egg
=
accelerate
RUN
python3
-m
pip
install
--no-cache-dir
git+https://github.com/huggingface/accelerate@main#egg
=
accelerate
# Uninstall `transformer-engine` shipped with the base image
RUN
python3
-m
pip uninstall
-y
transformer-engine
# Uninstall `torch-tensorrt` and `apex` shipped with the base image
# Uninstall `torch-tensorrt` and `apex` shipped with the base image
RUN
python3
-m
pip uninstall
-y
torch-tensorrt apex
RUN
python3
-m
pip uninstall
-y
torch-tensorrt apex
...
...
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