Skip to content

Commit 84895fe

Browse files
phu0ngngzlsh80826
andcommitted
Move test distributed encoder to L0 distributed testsuit
Signed-off-by: Phuong Nguyen <[email protected]> Co-authored-by: Reese Wang <[email protected]>
1 parent 518d071 commit 84895fe

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
#
3+
# See LICENSE for license information.
4+
5+
set -xe
6+
7+
: ${TE_PATH:=/opt/transformerengine}
8+
9+
pip install -r $TE_PATH/examples/jax/encoder/requirements.txt
10+
11+
# Make encoder tests to have run-to-run deterministic to have the stable CI results
12+
export XLA_FLAGS="${XLA_FLAGS} --xla_gpu_deterministic_ops"
13+
pytest -c $TE_PATH/tests/jax/pytest.ini -v $TE_PATH/examples/jax/encoder/test_multigpu_encoder.py
14+
pytest -c $TE_PATH/tests/jax/pytest.ini -v $TE_PATH/examples/jax/encoder/test_model_parallel_encoder.py
15+
pytest -c $TE_PATH/tests/jax/pytest.ini -v $TE_PATH/examples/jax/encoder/test_multiprocessing_encoder.py
16+

qa/L0_jax_unittest/test.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ pytest -c $TE_PATH/tests/jax/pytest.ini -v $TE_PATH/examples/jax/mnist
2020

2121
# Make encoder tests to have run-to-run deterministic to have the stable CI results
2222
export XLA_FLAGS="${XLA_FLAGS} --xla_gpu_deterministic_ops"
23-
pytest -c $TE_PATH/tests/jax/pytest.ini -v $TE_PATH/examples/jax/encoder --ignore=$TE_PATH/examples/jax/encoder/test_multiprocessing_encoder.py
24-
pytest -c $TE_PATH/tests/jax/pytest.ini -v $TE_PATH/examples/jax/encoder/test_multiprocessing_encoder.py
23+
pytest -c $TE_PATH/tests/jax/pytest.ini -v $TE_PATH/examples/jax/encoder/test_single_gpu_encoder.py

0 commit comments

Comments
 (0)