mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-04 21:30:07 +06:00
Remove cached torch_extensions on CI runners (#18868)
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
parent
4e29b3f884
commit
ecdf9b06bc
5
.github/workflows/self-nightly-scheduled.yml
vendored
5
.github/workflows/self-nightly-scheduled.yml
vendored
@ -179,6 +179,9 @@ jobs:
|
|||||||
working-directory: /workspace/transformers
|
working-directory: /workspace/transformers
|
||||||
run: git fetch && git checkout ${{ github.sha }}
|
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
|
# To avoid unknown test failures
|
||||||
- name: Pre build DeepSpeed *again*
|
- name: Pre build DeepSpeed *again*
|
||||||
working-directory: /workspace
|
working-directory: /workspace
|
||||||
@ -186,7 +189,7 @@ jobs:
|
|||||||
python3 -m pip uninstall -y deepspeed
|
python3 -m pip uninstall -y deepspeed
|
||||||
rm -rf DeepSpeed
|
rm -rf DeepSpeed
|
||||||
git clone https://github.com/microsoft/DeepSpeed && cd DeepSpeed && rm -rf build
|
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
|
- name: NVIDIA-SMI
|
||||||
run: |
|
run: |
|
||||||
|
10
.github/workflows/self-push.yml
vendored
10
.github/workflows/self-push.yml
vendored
@ -343,12 +343,15 @@ jobs:
|
|||||||
git checkout ${{ env.CI_SHA }}
|
git checkout ${{ env.CI_SHA }}
|
||||||
echo "log = $(git log -n 1)"
|
echo "log = $(git log -n 1)"
|
||||||
|
|
||||||
|
- name: Remove cached torch extensions
|
||||||
|
run: rm -rf /github/home/.cache/torch_extensions/
|
||||||
|
|
||||||
# To avoid unknown test failures
|
# To avoid unknown test failures
|
||||||
- name: Pre build DeepSpeed *again*
|
- name: Pre build DeepSpeed *again*
|
||||||
working-directory: /workspace
|
working-directory: /workspace
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip uninstall -y deepspeed
|
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
|
- name: NVIDIA-SMI
|
||||||
run: |
|
run: |
|
||||||
@ -422,12 +425,15 @@ jobs:
|
|||||||
git checkout ${{ env.CI_SHA }}
|
git checkout ${{ env.CI_SHA }}
|
||||||
echo "log = $(git log -n 1)"
|
echo "log = $(git log -n 1)"
|
||||||
|
|
||||||
|
- name: Remove cached torch extensions
|
||||||
|
run: rm -rf /github/home/.cache/torch_extensions/
|
||||||
|
|
||||||
# To avoid unknown test failures
|
# To avoid unknown test failures
|
||||||
- name: Pre build DeepSpeed *again*
|
- name: Pre build DeepSpeed *again*
|
||||||
working-directory: /workspace
|
working-directory: /workspace
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip uninstall -y deepspeed
|
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
|
- name: NVIDIA-SMI
|
||||||
run: |
|
run: |
|
||||||
|
5
.github/workflows/self-scheduled.yml
vendored
5
.github/workflows/self-scheduled.yml
vendored
@ -306,12 +306,15 @@ jobs:
|
|||||||
working-directory: /workspace/transformers
|
working-directory: /workspace/transformers
|
||||||
run: git fetch && git checkout ${{ github.sha }}
|
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
|
# To avoid unknown test failures
|
||||||
- name: Pre build DeepSpeed *again*
|
- name: Pre build DeepSpeed *again*
|
||||||
working-directory: /workspace
|
working-directory: /workspace
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip uninstall -y deepspeed
|
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
|
- name: NVIDIA-SMI
|
||||||
run: |
|
run: |
|
||||||
|
@ -26,7 +26,7 @@ RUN python3 -m pip uninstall -y deepspeed
|
|||||||
# This has to be run (again) inside the GPU VMs running the tests.
|
# 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.
|
# 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.
|
# 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.
|
# 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.
|
# this line must be added in order for python to be aware of transformers.
|
||||||
|
@ -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.)
|
# 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
|
# Issue: https://github.com/microsoft/DeepSpeed/issues/2010
|
||||||
# RUN git clone https://github.com/microsoft/DeepSpeed && cd DeepSpeed && rm -rf build && \
|
# 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.
|
# 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.
|
# this line must be added in order for python to be aware of transformers.
|
||||||
|
Loading…
Reference in New Issue
Block a user