Skip to content

Commit 9dfb5ee

Browse files
author
yefubao
committed
ci: QA Pytorch Wheel Debug0
1 parent 37bedc8 commit 9dfb5ee

1 file changed

Lines changed: 20 additions & 19 deletions

File tree

.github/workflows/qa_l0_pytorch_wheel.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,26 @@ jobs:
2525
image: nvcr.io/nvidia/cuda:12.8.1-devel-ubuntu22.04
2626

2727
steps:
28+
- name: Initialize Software Environment
29+
env:
30+
DEBIAN_FRONTEND: noninteractive
31+
TZ: Asia/Shanghai
32+
PYTHON_VERSION: 3.10
33+
run: |
34+
apt-get update
35+
apt-get install -y --no-install-recommends software-properties-common git cudnn9-cuda-12
36+
add-apt-repository ppa:deadsnakes/ppa
37+
apt-get install -y --no-install-recommends \
38+
python${PYTHON_VERSION} \
39+
python${PYTHON_VERSION}-dev \
40+
python${PYTHON_VERSION}-venv \
41+
python3-distutils \
42+
python3-pip && \
43+
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VERSION} 1 && \
44+
update-alternatives --set python3 /usr/bin/python${PYTHON_VERSION} && \
45+
ln -sf /usr/bin/python${PYTHON_VERSION}-config /usr/bin/python3-config && \
46+
ln -s /usr/bin/python3 /usr/bin/python
47+
2848
- name: Checkout Code
2949
uses: actions/checkout@v6.0.1
3050
with:
@@ -64,28 +84,9 @@ jobs:
6484
- name: Install dependencies and build transformer_engine
6585
# timeout-minutes: 30
6686
env:
67-
DEBIAN_FRONTEND: noninteractive
68-
TZ: Asia/Shanghai
69-
PYTHON_VERSION: 3.10
7087
NVTE_FRAMEWORK: pytorch
7188
run: |
72-
# =============== Install Python ===============
73-
apt-get update
74-
apt-get install -y --no-install-recommends software-properties-common
75-
add-apt-repository ppa:deadsnakes/ppa
76-
apt-get install -y --no-install-recommends \
77-
python${PYTHON_VERSION} \
78-
python${PYTHON_VERSION}-dev \
79-
python${PYTHON_VERSION}-venv \
80-
python3-distutils \
81-
python3-pip && \
82-
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VERSION} 1 && \
83-
update-alternatives --set python3 /usr/bin/python${PYTHON_VERSION} && \
84-
ln -sf /usr/bin/python${PYTHON_VERSION}-config /usr/bin/python3-config && \
85-
ln -s /usr/bin/python3 /usr/bin/python
86-
8789
# =============== Install Dependencies ===============
88-
apt-get install -y --no-install-recommends git cudnn9-cuda-12
8990
pip install cmake torch ninja pydantic packaging pybind11 numpy einops onnxscript
9091
pip install nvidia-mathdx==25.1.1 importlib-metadata>=1.0
9192
pip install transformers expecttest pytest==8.2.1 tensorrt

0 commit comments

Comments
 (0)