[FlagTune] Add (XGB+GA) FlagTune support for Triton v3.6.x #348
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Thrive3.6-Build-And-Test | |
| on: | |
| push: | |
| branches: [ "main", "triton_v3.6.x" ] | |
| pull_request: | |
| branches: [ "main", "triton_v3.6.x" ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| thrive36x-unit-test: | |
| runs-on: thrive3.6 | |
| if: ${{ github.repository == 'FlagTree/flagtree' || github.repository == 'flagos-ai/flagtree' }} | |
| steps: | |
| - name: Smart Checkout | |
| uses: flagos-ai/FlagTree/.github/actions/smart-checkout@main | |
| with: | |
| checkout_version: 'v6' | |
| - name: Check if backend-relevant files changed | |
| id: check_backend | |
| uses: flagos-ai/FlagTree/.github/actions/check-backend-changed@main | |
| with: | |
| backend: thrive | |
| - name: Build FlagTree | |
| if: steps.check_backend.outputs.should_skip != 'true' | |
| shell: bash | |
| run: | | |
| set -x | |
| export FLAGTREE_BACKEND=thrive | |
| MAX_JOBS=32 python3 setup.py bdist_wheel | |
| ssh -p 1024 root@localhost "rm -f /work/flagtree-*.whl" | |
| scp -P 1024 dist/flagtree-*.whl root@localhost:/work | |
| ssh -p 1024 root@localhost "pip3 install /work/flagtree-*.whl --force-reinstall" | |
| - name: Unit Test | |
| if: steps.check_backend.outputs.should_skip != 'true' | |
| shell: bash | |
| run: | | |
| set -x | |
| ssh -p 1024 root@localhost "cd /usr/local/lib/python3.10/dist-packages/triton/backends/thrive/test && \ | |
| python3 -m pytest unit/language/test_standard.py --device thrive -v -s" |