Skip to content

Commit ab7384d

Browse files
author
liyuzhuo
committed
disable torch-wheel
1 parent 6f51829 commit ab7384d

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/qa-l0-pytorch-wheel.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: QA Pytorch Wheel
33
on:
44
push:
55
branches:
6-
- main
6+
- __disabled_do_not_remove__
77
pull_request:
88
branches:
9-
- main
9+
- __disabled_do_not_remove__
1010

1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.actor }}

qa/L0_pytorch_wheel/test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ VERSION=`cat $TE_PATH/build_tools/VERSION.txt`
2727
WHL_BASE="transformer_engine-${VERSION}"
2828

2929
# Core wheel.
30+
rm -rf dist/*.whl 2>/dev/null || true # Clean up any existing wheels
3031
NVTE_RELEASE_BUILD=1 pip3 wheel --no-build-isolation -vvv --wheel-dir ./dist . || error_exit "Failed to setup bdist_wheel"
3132
wheel unpack dist/${WHL_BASE}-* || error_exit "Failed to unpack dist/${WHL_BASE}-*.whl"
3233
sed -i "s/Name: transformer-engine/Name: transformer-engine-cu12/g" "transformer_engine-${VERSION}/transformer_engine-${VERSION}.dist-info/METADATA"
@@ -44,6 +45,8 @@ pip3 install --no-build-isolation --no-deps -vvv dist/* || error_exit "Failed to
4445
cd $TE_PATH
4546
pip3 install --no-build-isolation --no-deps -vvv dist/*.whl || error_exit "Failed to install dist/*.whl --no-deps"
4647

48+
export TE_LIB_PATH=$(python -c "import site; print(site.getsitepackages()[0])")/transformer_engine
49+
4750
python3 $TE_PATH/tests/pytorch/test_sanity_import.py || test_fail "test_sanity_import.py"
4851

4952
if [ "$RET" -ne 0 ]; then

0 commit comments

Comments
 (0)