Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce GPU testing to JAX Triton #298

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
31 changes: 30 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ on:
pull_request:
branches:
- main

permissions:
contents: read # to fetch code
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -17,3 +21,28 @@ jobs:
with:
python-version: '3.10'
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # ratchet:pre-commit/action@v3.0.1
test:
runs-on: linux-x86-g2-48-l4-4gpu
container:
# TODO: change image based on what is needed for these tests
image: index.docker.io/tensorflow/build@sha256:7fb38f0319bda36393cad7f40670aa22352b44421bb906f5cf34d543acd8e1d2 # ratchet:tensorflow/build:latest-python3.11
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
- name: Setup Compat Driver
run: |
# This container should already have the CUDA apt repos setup
apt-get update
apt-get install -y --no-install-recommends cuda-compat-12-6
- name: Setup Released JAX
run: |
pip install -U "jax[cuda12]"
pip install pytest
- name: Test JAX Triton
run: |
echo "Running JAX Triton GPU Tests"
nvidia-smi
pip install .
# Need newer ml-dtypes because we install newer numpy
pip install --upgrade ml-dtypes
pytest -v --tb=short tests/

Loading