File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ name: QA Pytorch Wheel
33on :
44 push :
55 branches :
6- - main
6+ - __disabled_do_not_remove__
77 pull_request :
88 branches :
9- - main
9+ - __disabled_do_not_remove__
1010
1111concurrency :
1212 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.actor }}
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ VERSION=`cat $TE_PATH/build_tools/VERSION.txt`
2727WHL_BASE=" transformer_engine-${VERSION} "
2828
2929# Core wheel.
30+ rm -rf dist/* .whl 2> /dev/null || true # Clean up any existing wheels
3031NVTE_RELEASE_BUILD=1 pip3 wheel --no-build-isolation -vvv --wheel-dir ./dist . || error_exit " Failed to setup bdist_wheel"
3132wheel unpack dist/${WHL_BASE} -* || error_exit " Failed to unpack dist/${WHL_BASE} -*.whl"
3233sed -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
4445cd $TE_PATH
4546pip3 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+
4750python3 $TE_PATH /tests/pytorch/test_sanity_import.py || test_fail " test_sanity_import.py"
4851
4952if [ " $RET " -ne 0 ]; then
You can’t perform that action at this time.
0 commit comments