From 4477b0ba05f25f529ae8906e7293703cd58a8495 Mon Sep 17 00:00:00 2001 From: jiahao su Date: Mon, 4 Nov 2024 09:51:27 +0800 Subject: [PATCH] Update deepspeed.yaml --- .github/workflows/deepspeed.yaml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deepspeed.yaml b/.github/workflows/deepspeed.yaml index ba4eea1c3..f6217ea33 100644 --- a/.github/workflows/deepspeed.yaml +++ b/.github/workflows/deepspeed.yaml @@ -11,11 +11,7 @@ on: - 'requirements/**' schedule: - cron: "0 0 * * *" - push: - paths: - - '.github/workflows/deepspeed.yaml' - concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -70,13 +66,18 @@ jobs: EOF - name: Install transformers - run: | - source /root/.bashrc - echo "y" | apt-get install git - git clone https://github.com/huggingface/transformers - cd transformers - git rev-parse --short HEAD - pip install . + uses: nick-fields/retry@v3 + with: + timeout_minutes: 30 + max_attempts: 3 + retry_on: error + command: | + source /root/.bashrc + echo "y" | apt-get install git + git clone https://github.com/huggingface/transformers + cd transformers + git rev-parse --short HEAD + pip install . - name: Install deepspeed uses: nick-fields/retry@v3 @@ -129,4 +130,4 @@ jobs: - \ No newline at end of file +