Skip to content

Split tutorials to 3 groups #4220

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

Merged
merged 4 commits into from
May 16, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
36 changes: 34 additions & 2 deletions .github/workflows/build-test-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,42 @@ jobs:
run: |
${{ env.TRITON_TEST_CMD }} --interpreter

- name: Run Tutorials
# FIXME: make sure new tutorials are added to one of the groups (mxfp, scaled_dot, rest)

- name: Select tutorials to run (mxfp)
if: matrix.suite == 'mxfp'
run: |
cat <<EOF | tee tutorials.txt
09-persistent-matmul
EOF

- name: Select tutorials to run (scaled_dot)
if: matrix.suite == 'scaled_dot'
run: |
cat <<EOF | tee tutorials.txt
06-fused-attention
EOF

- name: Select tutorials to run (rest)
if: matrix.suite == 'rest'
run: |
${{ env.TRITON_TEST_CMD }} --tutorial
cat <<EOF | tee tutorials.txt
01-vector-add
02-fused-softmax
03-matrix-multiplication
03i-matrix-multiplication
04-low-memory-dropout
05-layer-norm
07-extern-functions
08-grouped-gemm
10-experimental-block-pointer
10i-experimental-block-pointer
EOF

- name: Run Tutorials
if: matrix.suite == 'mxfp' || matrix.suite == 'scaled_dot' || matrix.suite == 'rest'
run: |
${{ env.TRITON_TEST_CMD }} --select-from-file tutorials.txt --tutorial

- name: Get transformers version
if: matrix.suite == 'rest'
Expand Down
4 changes: 4 additions & 0 deletions scripts/pytest-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ pytest() {
}

run_tutorial_test() {
if [[ -v TRITON_TEST_SELECTFILE ]] && ! grep -qF "$1" "$TRITON_TEST_SELECTFILE"; then
return
fi

echo
echo "****** Running $1 test ******"
echo
Expand Down