diff --git a/.github/workflows/nightly-bnb.yml b/.github/workflows/nightly-bnb.yml index 3710511ea6..f0d4ccd0a0 100644 --- a/.github/workflows/nightly-bnb.yml +++ b/.github/workflows/nightly-bnb.yml @@ -46,29 +46,86 @@ jobs: git checkout tags/v$transformers_version cd .. fi + + - name: Test bnb import + id: import + if: always() + run: | + python3 -m bitsandbytes + 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 + 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() @@ -109,28 +166,73 @@ 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: | 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()