test.sh 1.01 KB
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 nltk==3.8.1
8
pip install pytest==8.2.1
9
: ${TE_PATH:=/opt/transformerengine}
10
11

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
12

13
14
15
# Test without custom calls
NVTE_CUSTOM_CALLS_RE="" pytest -c $TE_PATH/tests/jax/pytest.ini -v $TE_PATH/tests/jax/test_custom_call_compute.py

Jeng Bai-Cheng's avatar
Jeng Bai-Cheng committed
16
17
pip install -r $TE_PATH/examples/jax/mnist/requirements.txt
pip install -r $TE_PATH/examples/jax/encoder/requirements.txt
18

19
pytest -c $TE_PATH/tests/jax/pytest.ini -v $TE_PATH/examples/jax/mnist
20
21

# Make encoder tests to have run-to-run deterministic to have the stable CI results
22
export XLA_FLAGS="${XLA_FLAGS} --xla_gpu_deterministic_ops"
23
24
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