@@ -164,45 +164,45 @@ jobs:
164164 python3 -m pip install transformer_engine
165165
166166
167- echo "===== Step 5: Install Metax Binary Backend ====="
168- # Check if transformer_engine_metax is already installed
169- if pip list | grep -q transformer_engine_metax; then
170- echo "transformer_engine_metax already installed, skip installation"
171- else
172- echo "transformer_engine_metax not found, installing..."
173-
174- WHL_PATH=/transformer_engine_metax-2.9.0-cp312-cp312-linux_x86_64.whl
175-
176- if [ ! -f "$WHL_PATH" ]; then
177- echo "ERROR: wheel not found: $WHL_PATH"
178- exit 1
167+ echo "===== Step 5: Install Metax Binary Backend ====="
168+ # Check if transformer_engine_metax is already installed
169+ if pip list | grep -q transformer_engine_metax; then
170+ echo "transformer_engine_metax already installed, skip installation"
171+ else
172+ echo "transformer_engine_metax not found, installing..."
173+
174+ WHL_PATH=/transformer_engine_metax-2.9.0-cp312-cp312-linux_x86_64.whl
175+
176+ if [ ! -f "$WHL_PATH" ]; then
177+ echo "ERROR: wheel not found: $WHL_PATH"
178+ exit 1
179+ fi
180+
181+ # Install without dependencies to avoid breaking MACA environment
182+ python3 -m pip install "$WHL_PATH" --no-deps
179183 fi
180184
181- # Install without dependencies to avoid breaking MACA environment
182- python3 -m pip install "$WHL_PATH" --no-deps
183- fi
184-
185- # echo "===== Step 6: Verify Metax Backend ====="
186- # # Ensure transformer_engine_torch is correctly loaded
187- # python3 - <<'EOF'
188- # import transformer_engine_torch as te
189- # print("Backend loaded successfully:", te)
190- # EOF
185+ # echo "===== Step 6: Verify Metax Backend ====="
186+ # # Ensure transformer_engine_torch is correctly loaded
187+ # python3 - <<'EOF'
188+ # import transformer_engine_torch as te
189+ # print("Backend loaded successfully:", te)
190+ # EOF
191191
192192 echo "===== Step 7: Install TE-FL Plugin Layer ====="
193193 cd /workspace/TransformerEngine-FL
194194 TE_FL_SKIP_CUDA=1 python3 setup.py install
195195
196- # echo "===== Step 8: Final Verification ====="
197- # # Verify both TE Python API and backend are functional
198- # python3 - <<'EOF'
199- # import transformer_engine
200- # import transformer_engine_torch as te
201- # print("transformer_engine:", transformer_engine)
202- # print("transformer_engine_torch:", te)
203- # EOF
196+ # echo "===== Step 8: Final Verification ====="
197+ # # Verify both TE Python API and backend are functional
198+ # python3 - <<'EOF'
199+ # import transformer_engine
200+ # import transformer_engine_torch as te
201+ # print("transformer_engine:", transformer_engine)
202+ # print("transformer_engine_torch:", te)
203+ # EOF
204204
205- echo "===== Environment Setup Complete ====="
205+ echo "===== Environment Setup Complete ====="
206206
207207 - name : Execute Tests
208208 if : steps.should_run.outputs.should_run == 'true'
0 commit comments