Unverified Commit 6ff7b704 authored by Tim Moon's avatar Tim Moon Committed by GitHub
Browse files

[PyTorch] Move Lightning-Thunder integration test to L1 (#1536)



Move Lightning-Thunder integration test to L1
Signed-off-by: default avatarTim Moon <tmoon@nvidia.com>
parent a3e6ed80
......@@ -2,11 +2,11 @@
#
# See LICENSE for license information.
set -x
: ${TE_PATH:=/opt/transformerengine}
: ${LIGHTNING_THUNDER_PATH:=/opt/pytorch/lightning-thunder}
pip install pytest==8.2.1 pytest-benchmark==5.1.0
pip install pytest==8.2.1
FAIL=0
......@@ -25,6 +25,5 @@ pytest -v -s $TE_PATH/tests/pytorch/test_fusible_ops.py || FAIL=1
pytest -v -s $TE_PATH/tests/pytorch/test_permutation.py || FAIL=1
pytest -v -s $TE_PATH/tests/pytorch/test_parallel_cross_entropy.py || FAIL=1
NVTE_DEBUG=1 NVTE_DEBUG_LEVEL=1 pytest -o log_cli=true --log-cli-level=INFO -v -s $TE_PATH/tests/pytorch/fused_attn/test_fused_attn.py || FAIL=1
pytest -v -s ${LIGHTNING_THUNDER_PATH}/thunder/tests/test_transformer_engine_executor.py
exit $FAIL
# Copyright (c) 2022-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# See LICENSE for license information.
set -x
: ${THUNDER_PATH:=/opt/pytorch/lightning-thunder}
pip3 install pytest==8.1.1 pytest-benchmark==5.1.0
python3 -m pytest -v -s ${THUNDER_PATH}/thunder/tests/test_transformer_engine_executor.py
# Check return code
# Note: Return code 5 is fine. Lightning tests are skipped on systems
# without FP8 support and Pytest returns 5 if no tests are run.
RC=$?
if [ ${RC} -eq 5 ]; then
RC=0
fi
exit ${RC}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment