|
| 1 | +#!/bin/bash |
| 2 | +# Copyright 2026 Google LLC |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | + |
| 16 | +# Runs the tests of the Wan fast-inference kernels and serving path on a TPU VM |
| 17 | +# (validated on v6e-8 and tpu7x-8). Convenience entry point for running the |
| 18 | +# Pallas kernel grids and multi-device ring/Ulysses tests natively on a TPU |
| 19 | +# generation other than the CI runner's; the same tests also run in CI (the |
| 20 | +# multi-device ones self-skip below their device count). |
| 21 | +# |
| 22 | +# Usage, from the repo root of an installed checkout: |
| 23 | +# bash end_to_end/tpu/run_wan_stack_tests.sh [extra pytest args, e.g. -x --durations=20] |
| 24 | +set -euo pipefail |
| 25 | +cd "$(dirname "$0")/../.." |
| 26 | +unset GITHUB_ACTIONS |
| 27 | +T=src/maxdiffusion/tests |
| 28 | +TESTS=( |
| 29 | + # Fixed-m custom splash kernel and ring (feat/fixed-m-kernel) |
| 30 | + "$T/custom_splash_fixed_m_test.py" |
| 31 | + "$T/ring_fixed_m_test.py" |
| 32 | +) |
| 33 | +PYTHONPATH="src${PYTHONPATH:+:$PYTHONPATH}" exec "${PYTHON:-python3}" -m pytest -q -rs "${TESTS[@]}" "$@" |
0 commit comments