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
ecdf9b06
Unverified
Commit
ecdf9b06
authored
Sep 02, 2022
by
Yih-Dar
Committed by
GitHub
Sep 02, 2022
Browse files
Remove cached torch_extensions on CI runners (#18868)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
4e29b3f8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
6 deletions
+18
-6
.github/workflows/self-nightly-scheduled.yml
.github/workflows/self-nightly-scheduled.yml
+4
-1
.github/workflows/self-push.yml
.github/workflows/self-push.yml
+8
-2
.github/workflows/self-scheduled.yml
.github/workflows/self-scheduled.yml
+4
-1
docker/transformers-pytorch-deepspeed-latest-gpu/Dockerfile
docker/transformers-pytorch-deepspeed-latest-gpu/Dockerfile
+1
-1
docker/transformers-pytorch-deepspeed-nightly-gpu/Dockerfile
docker/transformers-pytorch-deepspeed-nightly-gpu/Dockerfile
+1
-1
No files found.
.github/workflows/self-nightly-scheduled.yml
View file @
ecdf9b06
...
...
@@ -179,6 +179,9 @@ jobs:
working-directory
:
/workspace/transformers
run
:
git fetch && git checkout ${{ github.sha }}
-
name
:
Remove cached torch extensions
run
:
rm -rf /github/home/.cache/torch_extensions/
# To avoid unknown test failures
-
name
:
Pre build DeepSpeed *again*
working-directory
:
/workspace
...
...
@@ -186,7 +189,7 @@ jobs:
python3 -m pip uninstall -y deepspeed
rm -rf DeepSpeed
git clone https://github.com/microsoft/DeepSpeed && cd DeepSpeed && rm -rf build
DS_BUILD_CPU_ADAM=1 DS_BUILD_AIO=1 DS_BUILD_UTILS=1 python3 -m pip install . --global-option="build_ext" --global-option="-j8" --no-cache -v --disable-pip-version-check
DS_BUILD_CPU_ADAM=1
DS_BUILD_FUSED_ADAM=1
DS_BUILD_AIO=1 DS_BUILD_UTILS=1 python3 -m pip install . --global-option="build_ext" --global-option="-j8" --no-cache -v --disable-pip-version-check
-
name
:
NVIDIA-SMI
run
:
|
...
...
.github/workflows/self-push.yml
View file @
ecdf9b06
...
...
@@ -343,12 +343,15 @@ jobs:
git checkout ${{ env.CI_SHA }}
echo "log = $(git log -n 1)"
-
name
:
Remove cached torch extensions
run
:
rm -rf /github/home/.cache/torch_extensions/
# To avoid unknown test failures
-
name
:
Pre build DeepSpeed *again*
working-directory
:
/workspace
run
:
|
python3 -m pip uninstall -y deepspeed
DS_BUILD_CPU_ADAM=1 DS_BUILD_AIO=1 DS_BUILD_UTILS=1 python3 -m pip install deepspeed --global-option="build_ext" --global-option="-j8" --no-cache -v --disable-pip-version-check
DS_BUILD_CPU_ADAM=1
DS_BUILD_FUSED_ADAM=1
DS_BUILD_AIO=1 DS_BUILD_UTILS=1 python3 -m pip install deepspeed --global-option="build_ext" --global-option="-j8" --no-cache -v --disable-pip-version-check
-
name
:
NVIDIA-SMI
run
:
|
...
...
@@ -422,12 +425,15 @@ jobs:
git checkout ${{ env.CI_SHA }}
echo "log = $(git log -n 1)"
-
name
:
Remove cached torch extensions
run
:
rm -rf /github/home/.cache/torch_extensions/
# To avoid unknown test failures
-
name
:
Pre build DeepSpeed *again*
working-directory
:
/workspace
run
:
|
python3 -m pip uninstall -y deepspeed
DS_BUILD_CPU_ADAM=1 DS_BUILD_AIO=1 DS_BUILD_UTILS=1 python3 -m pip install deepspeed --global-option="build_ext" --global-option="-j8" --no-cache -v --disable-pip-version-check
DS_BUILD_CPU_ADAM=1
DS_BUILD_FUSED_ADAM=1
DS_BUILD_AIO=1 DS_BUILD_UTILS=1 python3 -m pip install deepspeed --global-option="build_ext" --global-option="-j8" --no-cache -v --disable-pip-version-check
-
name
:
NVIDIA-SMI
run
:
|
...
...
.github/workflows/self-scheduled.yml
View file @
ecdf9b06
...
...
@@ -306,12 +306,15 @@ jobs:
working-directory
:
/workspace/transformers
run
:
git fetch && git checkout ${{ github.sha }}
-
name
:
Remove cached torch extensions
run
:
rm -rf /github/home/.cache/torch_extensions/
# To avoid unknown test failures
-
name
:
Pre build DeepSpeed *again*
working-directory
:
/workspace
run
:
|
python3 -m pip uninstall -y deepspeed
DS_BUILD_CPU_ADAM=1 DS_BUILD_AIO=1 DS_BUILD_UTILS=1 python3 -m pip install deepspeed --global-option="build_ext" --global-option="-j8" --no-cache -v --disable-pip-version-check
DS_BUILD_CPU_ADAM=1
DS_BUILD_FUSED_ADAM=1
DS_BUILD_AIO=1 DS_BUILD_UTILS=1 python3 -m pip install deepspeed --global-option="build_ext" --global-option="-j8" --no-cache -v --disable-pip-version-check
-
name
:
NVIDIA-SMI
run
:
|
...
...
docker/transformers-pytorch-deepspeed-latest-gpu/Dockerfile
View file @
ecdf9b06
...
...
@@ -26,7 +26,7 @@ RUN python3 -m pip uninstall -y deepspeed
# This has to be run (again) inside the GPU VMs running the tests.
# The installation works here, but some tests fail, if we don't pre-build deepspeed again in the VMs running the tests.
# TODO: Find out why test fail.
RUN
DS_BUILD_CPU_ADAM
=
1
DS_BUILD_AIO
=
1
DS_BUILD_UTILS
=
1 python3
-m
pip
install
deepspeed
--global-option
=
"build_ext"
--global-option
=
"-j8"
--no-cache
-v
--disable-pip-version-check
2>&1
RUN
DS_BUILD_CPU_ADAM
=
1
DS_BUILD_FUSED_ADAM
=
1
DS_BUILD_AIO
=
1
DS_BUILD_UTILS
=
1 python3
-m
pip
install
deepspeed
--global-option
=
"build_ext"
--global-option
=
"-j8"
--no-cache
-v
--disable-pip-version-check
2>&1
# When installing in editable mode, `transformers` is not recognized as a package.
# this line must be added in order for python to be aware of transformers.
...
...
docker/transformers-pytorch-deepspeed-nightly-gpu/Dockerfile
View file @
ecdf9b06
...
...
@@ -25,7 +25,7 @@ RUN python3 -m pip uninstall -y deepspeed
# This has to be run inside the GPU VMs running the tests. (So far, it fails here due to GPU checks during compilation.)
# Issue: https://github.com/microsoft/DeepSpeed/issues/2010
# RUN git clone https://github.com/microsoft/DeepSpeed && cd DeepSpeed && rm -rf build && \
# DS_BUILD_CPU_ADAM=1 DS_BUILD_AIO=1 DS_BUILD_UTILS=1 python3 -m pip install . --global-option="build_ext" --global-option="-j8" --no-cache -v --disable-pip-version-check 2>&1
# DS_BUILD_CPU_ADAM=1
DS_BUILD_FUSED_ADAM=1
DS_BUILD_AIO=1 DS_BUILD_UTILS=1 python3 -m pip install . --global-option="build_ext" --global-option="-j8" --no-cache -v --disable-pip-version-check 2>&1
# When installing in editable mode, `transformers` is not recognized as a package.
# this line must be added in order for python to be aware of transformers.
...
...
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