test.sh 897 Bytes
Newer Older
1
# Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Przemek Tredak's avatar
Przemek Tredak committed
2
3
4
5
6
7
8
#
# See LICENSE for license information.

set -e

: ${TE_PATH:=/opt/transformerengine}

9
pip install pytest==6.2.5 onnxruntime==1.13.1
10
pytest -v -s $TE_PATH/tests/pytorch/test_sanity.py
11
pytest -v -s $TE_PATH/tests/pytorch/test_deferred_init.py
12
13
PYTORCH_JIT=0 NVTE_TORCH_COMPILE=0 NVTE_ALLOW_NONDETERMINISTIC_ALGO=0 pytest -v -s $TE_PATH/tests/pytorch/test_numerics.py
PYTORCH_JIT=0 NVTE_TORCH_COMPILE=0 NVTE_ALLOW_NONDETERMINISTIC_ALGO=0 pytest -v -s $TE_PATH/tests/pytorch/test_cuda_graphs.py
14
pytest -v -s $TE_PATH/tests/pytorch/test_jit.py
15
NVTE_TORCH_COMPILE=0 pytest -v -s $TE_PATH/tests/pytorch/fused_attn/test_fused_attn.py
16
pytest -v -s $TE_PATH/tests/pytorch/test_fused_rope.py
17
NVTE_TORCH_COMPILE=0 pytest -v -s $TE_PATH/tests/pytorch/test_onnx_export.py
18
pytest -v -s $TE_PATH/tests/pytorch/test_float8tensor.py