From 91d5e8c271a0c6c524c5d373f974b2c91d838e23 Mon Sep 17 00:00:00 2001 From: Younes Belkada <49240599+younesbelkada@users.noreply.github.com> Date: Wed, 5 Jun 2024 15:44:23 +0200 Subject: [PATCH 1/4] Update nightly-bnb.yml --- .github/workflows/nightly-bnb.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/nightly-bnb.yml b/.github/workflows/nightly-bnb.yml index 3710511ea6..94e1303d42 100644 --- a/.github/workflows/nightly-bnb.yml +++ b/.github/workflows/nightly-bnb.yml @@ -46,6 +46,22 @@ jobs: git checkout tags/v$transformers_version cd .. fi + + - name: Test bnb import + id: import + if: always() + run: | + python3 -c "import bitsandbytes as bnb" + + - name: Post to Slack + if: always() + uses: huggingface/hf-workflows/.github/actions/post-slack@main + with: + slack_channel: ${{ env.BNB_SLACK_CHANNEL_ID }} + title: 🤗 Results of bitsandbytes import + status: ${{ steps.import.status }} + slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} + - name: Run examples on single GPU if: always() run: | @@ -109,6 +125,21 @@ jobs: cd .. fi + - name: Test bnb import + id: import + if: always() + run: | + python3 -c "import bitsandbytes as bnb" + + - name: Post to Slack + if: always() + uses: huggingface/hf-workflows/.github/actions/post-slack@main + with: + slack_channel: ${{ env.BNB_SLACK_CHANNEL_ID }} + title: 🤗 Results of bitsandbytes import + status: ${{ steps.import.status }} + slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} + - name: Run core GPU tests on multi-gpu if: always() run: | From 3c416362fe9ea4b39d873f1f8d8c24a30bc18f9b Mon Sep 17 00:00:00 2001 From: Younes Belkada <49240599+younesbelkada@users.noreply.github.com> Date: Thu, 6 Jun 2024 10:49:24 +0200 Subject: [PATCH 2/4] Update nightly-bnb.yml --- .github/workflows/nightly-bnb.yml | 70 +++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/.github/workflows/nightly-bnb.yml b/.github/workflows/nightly-bnb.yml index 94e1303d42..e1a5f72d4e 100644 --- a/.github/workflows/nightly-bnb.yml +++ b/.github/workflows/nightly-bnb.yml @@ -63,28 +63,68 @@ jobs: slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} - name: Run examples on single GPU + id: examples_tests if: always() run: | source activate peft make tests_examples_single_gpu_bnb + + - name: Post to Slack + if: always() + uses: huggingface/hf-workflows/.github/actions/post-slack@main + with: + slack_channel: ${{ env.BNB_SLACK_CHANNEL_ID }} + title: 🤗 Results of bitsandbytes examples tests - single GPU + status: ${{ steps.examples_tests.status }} + slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} - name: Run core tests on single GPU + id: core_tests if: always() run: | source activate peft make tests_core_single_gpu_bnb + - name: Post to Slack + if: always() + uses: huggingface/hf-workflows/.github/actions/post-slack@main + with: + slack_channel: ${{ env.BNB_SLACK_CHANNEL_ID }} + title: 🤗 Results of bitsandbytes core tests - single GPU + status: ${{ steps.core_tests.status }} + slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} + - name: Run BNB regression tests on single GPU + id: regression_tests if: always() run: | source activate peft make tests_gpu_bnb_regression + - name: Post to Slack + if: always() + uses: huggingface/hf-workflows/.github/actions/post-slack@main + with: + slack_channel: ${{ env.BNB_SLACK_CHANNEL_ID }} + title: 🤗 Results of bitsandbytes regression tests - single GPU + status: ${{ steps.regression_tests.status }} + slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} + - name: Run transformers tests on single GPU + id: transformers_tests if: always() run: | source activate peft make transformers_tests + + - name: Post to Slack + if: always() + uses: huggingface/hf-workflows/.github/actions/post-slack@main + with: + slack_channel: ${{ env.BNB_SLACK_CHANNEL_ID }} + title: 🤗 Results of bitsandbytes transformers tests - single GPU + status: ${{ steps.transformers_tests.status }} + slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} - name: Generate Report if: always() @@ -146,22 +186,52 @@ jobs: source activate peft - name: Run examples on multi GPU + id: examples_tests if: always() run: | source activate peft make tests_examples_multi_gpu_bnb + + - name: Post to Slack + if: always() + uses: huggingface/hf-workflows/.github/actions/post-slack@main + with: + slack_channel: ${{ env.BNB_SLACK_CHANNEL_ID }} + title: 🤗 Results of bitsandbytes examples tests - multi GPU + status: ${{ steps.examples_tests.status }} + slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} - name: Run core tests on multi GPU + id: core_tests if: always() run: | source activate peft make tests_core_multi_gpu_bnb + - name: Post to Slack + if: always() + uses: huggingface/hf-workflows/.github/actions/post-slack@main + with: + slack_channel: ${{ env.BNB_SLACK_CHANNEL_ID }} + title: 🤗 Results of bitsandbytes core tests - multi GPU + status: ${{ steps.core_tests.status }} + slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} + - name: Run transformers tests on multi GPU + id: transformers_tests if: always() run: | source activate peft make transformers_tests + + - name: Post to Slack + if: always() + uses: huggingface/hf-workflows/.github/actions/post-slack@main + with: + slack_channel: ${{ env.BNB_SLACK_CHANNEL_ID }} + title: 🤗 Results of bitsandbytes transformers tests - multi GPU + status: ${{ steps.transformers_tests.status }} + slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} - name: Generate Report if: always() From 8e054d525d18f033f3f8d90cbcfd1e36a3f4ae0b Mon Sep 17 00:00:00 2001 From: Younes Belkada <49240599+younesbelkada@users.noreply.github.com> Date: Fri, 7 Jun 2024 11:27:53 +0200 Subject: [PATCH 3/4] Update .github/workflows/nightly-bnb.yml --- .github/workflows/nightly-bnb.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/nightly-bnb.yml b/.github/workflows/nightly-bnb.yml index e1a5f72d4e..16fa978334 100644 --- a/.github/workflows/nightly-bnb.yml +++ b/.github/workflows/nightly-bnb.yml @@ -52,6 +52,7 @@ jobs: if: always() run: | python3 -c "import bitsandbytes as bnb" + python3 -m bitsandbytes - name: Post to Slack if: always() From a136acedf1c2cdef8fddd6be7b48f171045846fc Mon Sep 17 00:00:00 2001 From: Younes Belkada <49240599+younesbelkada@users.noreply.github.com> Date: Fri, 7 Jun 2024 11:55:24 +0200 Subject: [PATCH 4/4] Update .github/workflows/nightly-bnb.yml --- .github/workflows/nightly-bnb.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly-bnb.yml b/.github/workflows/nightly-bnb.yml index 16fa978334..f0d4ccd0a0 100644 --- a/.github/workflows/nightly-bnb.yml +++ b/.github/workflows/nightly-bnb.yml @@ -51,8 +51,8 @@ jobs: id: import if: always() run: | - python3 -c "import bitsandbytes as bnb" python3 -m bitsandbytes + python3 -c "import bitsandbytes as bnb" - name: Post to Slack if: always()