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

set -xe

: ${TE_PATH:=/opt/transformerengine}
pytest -Wignore -v $TE_PATH/tests/jax
Jeng Bai-Cheng's avatar
Jeng Bai-Cheng committed
9
10
11

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

pytest -Wignore -v $TE_PATH/examples/jax/mnist

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