|
1 | | -name: Third party tests [liger-kernels, vllm] |
| 1 | +name: Third party tests [liger-kernels, vllm, sglang] |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | workflow_dispatch: |
|
28 | 28 | TAG: ${{ inputs.tag || (github.event_name == 'pull_request' && format('pr-{0}', github.event.number)) || (github.event_name == 'schedule' && 'ci') || 'test' }} |
29 | 29 |
|
30 | 30 | jobs: |
31 | | - build: |
32 | | - name: Third party tests [liger-kernels, vllm] |
| 31 | + small-tests: |
| 32 | + name: Third party tests [vllm, sglang] |
33 | 33 | runs-on: |
34 | 34 | - linux |
35 | 35 | - ${{ inputs.runner_label || 'max1550' }} |
36 | | - timeout-minutes: 720 |
| 36 | + timeout-minutes: 120 |
37 | 37 | defaults: |
38 | 38 | run: |
39 | 39 | shell: bash -noprofile --norc -eo pipefail -c "source /opt/intel/oneapi/setvars.sh > /dev/null; source {0}" |
|
47 | 47 | - name: Checkout repository |
48 | 48 | uses: actions/checkout@v5 |
49 | 49 |
|
50 | | - - name: Install Python |
51 | | - if: ${{ !(inputs.use_pyenv_python || false) }} |
52 | | - uses: actions/setup-python@v6 |
53 | | - with: |
54 | | - python-version: ${{ env.PYTHON_VERSION }} |
55 | | - |
56 | 50 | - name: Install Python (from pyenv) ${{ inputs.python_version }} |
57 | | - if: ${{ inputs.use_pyenv_python }} |
58 | 51 | uses: ./.github/actions/setup-pyenv-python |
59 | 52 | with: |
60 | 53 | python-version: ${{ env.PYTHON_VERSION }} |
@@ -86,19 +79,81 @@ jobs: |
86 | 79 | mkdir reports |
87 | 80 | echo "REPORTS=$PWD/reports" >> $GITHUB_ENV |
88 | 81 |
|
| 82 | + - name: Run SGLANG tests |
| 83 | + if: ${{ steps.install.outcome == 'success' && !cancelled() }} |
| 84 | + run: | |
| 85 | + ./scripts/test-triton.sh --sglang --skip-pip-install --skip-pytorch-install |
| 86 | +
|
89 | 87 | - name: Run VLLM tests |
90 | 88 | if: ${{ steps.install.outcome == 'success' && !cancelled() }} |
91 | 89 | run: | |
92 | 90 | ./scripts/test-triton.sh --vllm --skip-pip-install --skip-pytorch-install |
93 | 91 |
|
94 | | - - name: Run Liger-Kernel tests |
| 92 | + - name: Upload test report |
95 | 93 | if: ${{ steps.install.outcome == 'success' && !cancelled() }} |
| 94 | + uses: actions/upload-artifact@v4 |
| 95 | + with: |
| 96 | + name: test-main-reports |
| 97 | + path: reports |
| 98 | + # We run all tests for Liger, so it's slow and we test it separately |
| 99 | + liger: |
| 100 | + name: Liger testing |
| 101 | + runs-on: |
| 102 | + - linux |
| 103 | + - ${{ inputs.runner_label || 'max1550' }} |
| 104 | + timeout-minutes: 120 |
| 105 | + defaults: |
| 106 | + run: |
| 107 | + shell: bash -noprofile --norc -eo pipefail -c "source /opt/intel/oneapi/setvars.sh > /dev/null; source {0}" |
| 108 | + steps: |
| 109 | + - name: Print inputs |
| 110 | + run: | |
| 111 | + cat <<EOF |
| 112 | + ${{ toJSON(inputs) }} |
| 113 | + EOF |
| 114 | +
|
| 115 | + - name: Checkout repository |
| 116 | + uses: actions/checkout@v5 |
| 117 | + |
| 118 | + - name: Install Python (from pyenv) ${{ inputs.python_version }} |
| 119 | + uses: ./.github/actions/setup-pyenv-python |
| 120 | + with: |
| 121 | + python-version: ${{ env.PYTHON_VERSION }} |
| 122 | + |
| 123 | + - name: Identify Python version |
| 124 | + run: | |
| 125 | + PYTHON_VERSION="$(python -c 'import sys; print(f"{sys.version_info[0]}.{ sys.version_info[1]}")')" |
| 126 | + echo "PYTHON_VERSION=$PYTHON_VERSION" | tee -a $GITHUB_ENV |
| 127 | +
|
| 128 | + - name: Install Python build dependencies |
| 129 | + run: | |
| 130 | + pip install cmake |
| 131 | +
|
| 132 | + - name: Setup PyTorch |
| 133 | + uses: ./.github/actions/setup-pytorch |
| 134 | + |
| 135 | + - name: Build Triton wheels |
| 136 | + uses: ./.github/actions/setup-triton |
| 137 | + with: |
| 138 | + command: DEBUG=1 python -m build --wheel --no-isolation |
| 139 | + |
| 140 | + - name: Install Triton |
| 141 | + id: install |
| 142 | + run: | |
| 143 | + pip install dist/*.whl |
| 144 | +
|
| 145 | + - name: Create reports dir |
| 146 | + run: | |
| 147 | + mkdir reports |
| 148 | + echo "REPORTS=$PWD/reports" >> $GITHUB_ENV |
| 149 | +
|
| 150 | + - name: Run Liger-Kernel tests |
96 | 151 | run: | |
97 | 152 | ./scripts/test-triton.sh --liger --skip-pip-install --skip-pytorch-install |
98 | 153 |
|
99 | 154 | - name: Upload test report |
100 | 155 | if: ${{ steps.install.outcome == 'success' && !cancelled() }} |
101 | 156 | uses: actions/upload-artifact@v4 |
102 | 157 | with: |
103 | | - name: test-reports |
| 158 | + name: test-liger-reports |
104 | 159 | path: reports |
0 commit comments