Skip to content

Commit dea0b57

Browse files
committed
Split tutorials to 3 groups
Signed-off-by: Pavel Chekin <[email protected]>
1 parent 5870dfc commit dea0b57

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

.github/workflows/build-test-reusable.yml

+33-2
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,41 @@ jobs:
299299
run: |
300300
${{ env.TRITON_TEST_CMD }} --interpreter
301301
302-
- name: Run Tutorials
302+
# FIXME: make sure new tutorials are added to one of the groups (mxfp, scaled_dot, rest)
303+
304+
- name: Select tutorials to run (mxfp)
305+
if: matrix.suite == 'mxfp'
306+
run: |
307+
cat <<EOF | tee tutorials.txt
308+
06-fused-attention
309+
EOF
310+
311+
- name: Select tutorials to run (scaled_dot)
312+
if: matrix.suite == 'scaled_dot'
313+
run: |
314+
cat <<EOF | tee tutorials.txt
315+
08-grouped-gemm
316+
10-experimental-block-pointer
317+
EOF
318+
319+
- name: Select tutorials to run (rest)
303320
if: matrix.suite == 'rest'
304321
run: |
305-
${{ env.TRITON_TEST_CMD }} --tutorial
322+
cat <<EOF | tee tutorials.txt
323+
10i-experimental-block-pointer
324+
03-matrix-multiplication
325+
03i-matrix-multiplication
326+
05-layer-norm
327+
02-fused-softmax
328+
04-low-memory-dropout
329+
01-vector-add
330+
07-extern-functions
331+
EOF
332+
333+
- name: Run Tutorials
334+
if: matrix.suite == 'mxfp' || matrix.suite == 'scaled_dot' || matrix.suite == 'rest'
335+
run: |
336+
${{ env.TRITON_TEST_CMD }} --select-from-file tutorials.txt --tutorial
306337
307338
- name: Get transformers version
308339
if: matrix.suite == 'rest'

scripts/pytest-utils.sh

+4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ pytest() {
5959
}
6060

6161
run_tutorial_test() {
62+
if [[ -v TRITON_TEST_SELECTFILE ]] && ! grep -qF "$1" "$TRITON_TEST_SELECTFILE"; then
63+
return
64+
fi
65+
6266
echo
6367
echo "****** Running $1 test ******"
6468
echo

0 commit comments

Comments
 (0)