test.sh 866 Bytes
Newer Older
1
# Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
3
4
5
6
#
# See LICENSE for license information.

set -xe

7
pip install pytest==7.2
8
: ${TE_PATH:=/opt/transformerengine}
9
10

pytest -c $TE_PATH/tests/jax/pytest.ini -v $TE_PATH/tests/jax -k 'not distributed'
Jeng Bai-Cheng's avatar
Jeng Bai-Cheng committed
11
12
13

pip install -r $TE_PATH/examples/jax/mnist/requirements.txt
pip install -r $TE_PATH/examples/jax/encoder/requirements.txt
14

15
pytest -c $TE_PATH/tests/jax/pytest.ini -v $TE_PATH/examples/jax/mnist
16
17

# Make encoder tests to have run-to-run deterministic to have the stable CI results
18
export XLA_FLAGS="${XLA_FLAGS} --xla_gpu_deterministic_ops"
19
20
pytest -c $TE_PATH/tests/jax/pytest.ini -v $TE_PATH/examples/jax/encoder --ignore=$TE_PATH/examples/jax/encoder/test_multiprocessing_encoder.py
pytest -c $TE_PATH/tests/jax/pytest.ini -v $TE_PATH/examples/jax/encoder/test_multiprocessing_encoder.py