@@ -74,15 +74,15 @@ jobs:
7474 echo "===== Available memory ====="
7575 free -h
7676
77- # - name: Install dependencies and build transformer_engine
78- # timeout-minutes: 30
79- # run: |
80- # apt update
81- # apt install -y wget
77+ - name : Install dependencies and build transformer_engine
78+ timeout-minutes : 30
79+ run : |
80+ apt update
81+ apt install -y wget
8282
83- # echo "\n=============== Install transformer_engine ==============="
84- # pip install --no-build-isolation -vvv . --no-deps
85- # cp -rf transformer_engine/plugins/ /usr/local/lib/python3.10/dist-packages/transformer_engine/plugins/
83+ echo "\n=============== Install transformer_engine ==============="
84+ pip install --no-build-isolation -vvv . --no-deps
85+ cp -rf transformer_engine/plugins/ /usr/local/lib/python3.10/dist-packages/transformer_engine/plugins/
8686
8787 - name : Verify installation
8888 shell : bash
@@ -102,24 +102,23 @@ jobs:
102102 TE_PATH : .
103103 MAX_JOBS : 32
104104 run : |
105- echo ""
106- # mkdir -p "$XML_LOG_DIR"
107- # pip3 install pytest==8.2.1
108- # git clone https://github.com/Dao-AILab/flash-attention.git
109- # cd flash-attention/ && git checkout 27f501d && cd hopper/ && python setup.py install
110- # python_path=`python -c "import site; print(site.getsitepackages()[0])"`
111- # mkdir -p $python_path/flash_attn_3
112- # wget -P $python_path/flash_attn_3 https://raw.githubusercontent.com/Dao-AILab/flash-attention/27f501dbe011f4371bff938fe7e09311ab3002fa/hopper/flash_attn_interface.py
113- # cd ../../
105+ mkdir -p "$XML_LOG_DIR"
106+ pip3 install pytest==8.2.1
107+ git clone https://github.com/Dao-AILab/flash-attention.git
108+ cd flash-attention/ && git checkout 27f501d && cd hopper/ && python setup.py install
109+ python_path=`python -c "import site; print(site.getsitepackages()[0])"`
110+ mkdir -p $python_path/flash_attn_3
111+ wget -P $python_path/flash_attn_3 https://raw.githubusercontent.com/Dao-AILab/flash-attention/27f501dbe011f4371bff938fe7e09311ab3002fa/hopper/flash_attn_interface.py
112+ cd ../../
114113
115- # # Run tests
116- # NVTE_TORCH_COMPILE=0 python3 -m pytest -v -s --junitxml=$XML_LOG_DIR/pytest.xml $TE_PATH/tests/pytorch/attention/test_attention.py
114+ # Run tests
115+ NVTE_TORCH_COMPILE=0 python3 -m pytest -v -s --junitxml=$XML_LOG_DIR/pytest.xml $TE_PATH/tests/pytorch/attention/test_attention.py
117116
118117 - name : Upload Installation Logs
119118 if : always() && steps.L3_pytorch_FA_versions_test.outcome == 'failure'
120119 uses : actions/upload-artifact@v4
121120 with :
122121 name : L0_pytorch-logs-${{ github.run_id }}
123- path : /logs
122+ path : /logs/pytorch/attention
124123 retention-days : 7
125124 if-no-files-found : warn
0 commit comments