Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 0 additions & 100 deletions .github/workflows/sglang-tests.yml

This file was deleted.

81 changes: 68 additions & 13 deletions .github/workflows/third-party-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Third party tests [liger-kernels, vllm]
name: Third party tests [liger-kernels, vllm, sglang]

on:
workflow_dispatch:
Expand Down Expand Up @@ -28,12 +28,12 @@ env:
TAG: ${{ inputs.tag || (github.event_name == 'pull_request' && format('pr-{0}', github.event.number)) || (github.event_name == 'schedule' && 'ci') || 'test' }}

jobs:
build:
name: Third party tests [liger-kernels, vllm]
small-tests:
name: Third party tests [vllm, sglang]
runs-on:
- linux
- ${{ inputs.runner_label || 'max1550' }}
timeout-minutes: 720
timeout-minutes: 120
defaults:
run:
shell: bash -noprofile --norc -eo pipefail -c "source /opt/intel/oneapi/setvars.sh > /dev/null; source {0}"
Expand All @@ -47,14 +47,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v5

- name: Install Python
if: ${{ !(inputs.use_pyenv_python || false) }}
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install Python (from pyenv) ${{ inputs.python_version }}
if: ${{ inputs.use_pyenv_python }}
uses: ./.github/actions/setup-pyenv-python
with:
python-version: ${{ env.PYTHON_VERSION }}
Expand Down Expand Up @@ -86,19 +79,81 @@ jobs:
mkdir reports
echo "REPORTS=$PWD/reports" >> $GITHUB_ENV

- name: Run SGLANG tests
if: ${{ steps.install.outcome == 'success' && !cancelled() }}
run: |
./scripts/test-triton.sh --sglang --skip-pip-install --skip-pytorch-install

- name: Run VLLM tests
if: ${{ steps.install.outcome == 'success' && !cancelled() }}
run: |
./scripts/test-triton.sh --vllm --skip-pip-install --skip-pytorch-install

- name: Run Liger-Kernel tests
- name: Upload test report
if: ${{ steps.install.outcome == 'success' && !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: test-main-reports
path: reports
# We run all tests for Liger, so it's slow and we test it separately
liger:
name: Liger testing
runs-on:
- linux
- ${{ inputs.runner_label || 'max1550' }}
timeout-minutes: 120
defaults:
run:
shell: bash -noprofile --norc -eo pipefail -c "source /opt/intel/oneapi/setvars.sh > /dev/null; source {0}"
steps:
- name: Print inputs
run: |
cat <<EOF
${{ toJSON(inputs) }}
EOF

- name: Checkout repository
uses: actions/checkout@v5

- name: Install Python (from pyenv) ${{ inputs.python_version }}
uses: ./.github/actions/setup-pyenv-python
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Identify Python version
run: |
PYTHON_VERSION="$(python -c 'import sys; print(f"{sys.version_info[0]}.{ sys.version_info[1]}")')"
echo "PYTHON_VERSION=$PYTHON_VERSION" | tee -a $GITHUB_ENV

- name: Install Python build dependencies
run: |
pip install cmake

- name: Setup PyTorch
uses: ./.github/actions/setup-pytorch

- name: Build Triton wheels
uses: ./.github/actions/setup-triton
with:
command: DEBUG=1 python -m build --wheel --no-isolation

- name: Install Triton
id: install
run: |
pip install dist/*.whl

- name: Create reports dir
run: |
mkdir reports
echo "REPORTS=$PWD/reports" >> $GITHUB_ENV

- name: Run Liger-Kernel tests
run: |
./scripts/test-triton.sh --liger --skip-pip-install --skip-pytorch-install

- name: Upload test report
if: ${{ steps.install.outcome == 'success' && !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: test-reports
name: test-liger-reports
path: reports
Loading
Loading