From 55ed228c11cf753ac9b65aff7ae261993b207e7d Mon Sep 17 00:00:00 2001 From: ydshieh Date: Fri, 19 May 2023 11:36:09 +0200 Subject: [PATCH 1/3] fix --- .github/workflows/self-nightly-scheduled.yml | 12 ++++++++++++ .github/workflows/self-past.yml | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/.github/workflows/self-nightly-scheduled.yml b/.github/workflows/self-nightly-scheduled.yml index aea6bf44d27..3458211d0bd 100644 --- a/.github/workflows/self-nightly-scheduled.yml +++ b/.github/workflows/self-nightly-scheduled.yml @@ -115,6 +115,10 @@ jobs: working-directory: /transformers run: git fetch && git checkout ${{ github.sha }} + - name: Reinstall transformers in edit mode (removed the one during docker image build) + working-directory: /transformers + run: python3 -m pip uninstall -y transformers && python3 -m pip install -e . + - name: NVIDIA-SMI run: | nvidia-smi @@ -172,6 +176,10 @@ jobs: working-directory: /transformers run: git fetch && git checkout ${{ github.sha }} + - name: Reinstall transformers in edit mode (removed the one during docker image build) + working-directory: /transformers + run: python3 -m pip uninstall -y transformers && python3 -m pip install -e . + - name: NVIDIA-SMI run: | nvidia-smi @@ -217,6 +225,10 @@ jobs: working-directory: /workspace/transformers run: git fetch && git checkout ${{ github.sha }} + - name: Reinstall transformers in edit mode (removed the one during docker image build) + working-directory: /transformers + run: python3 -m pip uninstall -y transformers && python3 -m pip install -e . + - name: Remove cached torch extensions run: rm -rf /github/home/.cache/torch_extensions/ diff --git a/.github/workflows/self-past.yml b/.github/workflows/self-past.yml index 08be58b93a9..f7f2dec29bd 100644 --- a/.github/workflows/self-past.yml +++ b/.github/workflows/self-past.yml @@ -111,6 +111,10 @@ jobs: working-directory: /transformers run: git fetch && git checkout ${{ inputs.sha }} + - name: Reinstall transformers in edit mode (removed the one during docker image build) + working-directory: /transformers + run: python3 -m pip uninstall -y transformers && python3 -m pip install -e . + - name: Echo folder ${{ matrix.folders }} shell: bash # For folders like `models/bert`, set an env. var. (`matrix_folders`) to `models_bert`, which will be used to @@ -183,6 +187,10 @@ jobs: working-directory: /transformers run: git fetch && git checkout ${{ inputs.sha }} + - name: Reinstall transformers in edit mode (removed the one during docker image build) + working-directory: /transformers + run: python3 -m pip uninstall -y transformers && python3 -m pip install -e . + - name: Echo folder ${{ matrix.folders }} shell: bash # For folders like `models/bert`, set an env. var. (`matrix_folders`) to `models_bert`, which will be used to @@ -255,6 +263,10 @@ jobs: working-directory: /transformers run: git fetch && git checkout ${{ github.sha }} + - name: Reinstall transformers in edit mode (removed the one during docker image build) + working-directory: /transformers + run: python3 -m pip uninstall -y transformers && python3 -m pip install -e . + - name: Install working-directory: /transformers run: | From 3970cd5c464d159698a578a4af51eab86afad109 Mon Sep 17 00:00:00 2001 From: ydshieh Date: Fri, 19 May 2023 19:56:26 +0200 Subject: [PATCH 2/3] fix --- .github/workflows/self-nightly-scheduled.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/self-nightly-scheduled.yml b/.github/workflows/self-nightly-scheduled.yml index 3458211d0bd..1bd5b1e8295 100644 --- a/.github/workflows/self-nightly-scheduled.yml +++ b/.github/workflows/self-nightly-scheduled.yml @@ -226,7 +226,7 @@ jobs: run: git fetch && git checkout ${{ github.sha }} - name: Reinstall transformers in edit mode (removed the one during docker image build) - working-directory: /transformers + working-directory: /workspace/transformers run: python3 -m pip uninstall -y transformers && python3 -m pip install -e . - name: Remove cached torch extensions From c6cda51fc7fcfdd0c3e2b6a70e4c996f62f38c95 Mon Sep 17 00:00:00 2001 From: ydshieh Date: Fri, 19 May 2023 22:08:55 +0200 Subject: [PATCH 3/3] fix --- .github/workflows/self-nightly-scheduled.yml | 6 +++--- .github/workflows/self-past.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/self-nightly-scheduled.yml b/.github/workflows/self-nightly-scheduled.yml index 1bd5b1e8295..34c1ee59f4d 100644 --- a/.github/workflows/self-nightly-scheduled.yml +++ b/.github/workflows/self-nightly-scheduled.yml @@ -115,7 +115,7 @@ jobs: working-directory: /transformers run: git fetch && git checkout ${{ github.sha }} - - name: Reinstall transformers in edit mode (removed the one during docker image build) + - name: Reinstall transformers in edit mode (remove the one installed during docker image build) working-directory: /transformers run: python3 -m pip uninstall -y transformers && python3 -m pip install -e . @@ -176,7 +176,7 @@ jobs: working-directory: /transformers run: git fetch && git checkout ${{ github.sha }} - - name: Reinstall transformers in edit mode (removed the one during docker image build) + - name: Reinstall transformers in edit mode (remove the one installed during docker image build) working-directory: /transformers run: python3 -m pip uninstall -y transformers && python3 -m pip install -e . @@ -225,7 +225,7 @@ jobs: working-directory: /workspace/transformers run: git fetch && git checkout ${{ github.sha }} - - name: Reinstall transformers in edit mode (removed the one during docker image build) + - name: Reinstall transformers in edit mode (remove the one installed during docker image build) working-directory: /workspace/transformers run: python3 -m pip uninstall -y transformers && python3 -m pip install -e . diff --git a/.github/workflows/self-past.yml b/.github/workflows/self-past.yml index f7f2dec29bd..5e3aa3152b6 100644 --- a/.github/workflows/self-past.yml +++ b/.github/workflows/self-past.yml @@ -111,7 +111,7 @@ jobs: working-directory: /transformers run: git fetch && git checkout ${{ inputs.sha }} - - name: Reinstall transformers in edit mode (removed the one during docker image build) + - name: Reinstall transformers in edit mode (remove the one installed during docker image build) working-directory: /transformers run: python3 -m pip uninstall -y transformers && python3 -m pip install -e . @@ -187,7 +187,7 @@ jobs: working-directory: /transformers run: git fetch && git checkout ${{ inputs.sha }} - - name: Reinstall transformers in edit mode (removed the one during docker image build) + - name: Reinstall transformers in edit mode (remove the one installed during docker image build) working-directory: /transformers run: python3 -m pip uninstall -y transformers && python3 -m pip install -e . @@ -263,7 +263,7 @@ jobs: working-directory: /transformers run: git fetch && git checkout ${{ github.sha }} - - name: Reinstall transformers in edit mode (removed the one during docker image build) + - name: Reinstall transformers in edit mode (remove the one installed during docker image build) working-directory: /transformers run: python3 -m pip uninstall -y transformers && python3 -m pip install -e .