|
25 | 25 | image: nvcr.io/nvidia/cuda:12.8.1-devel-ubuntu22.04 |
26 | 26 |
|
27 | 27 | 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 | +
|
28 | 48 | - name: Checkout Code |
29 | 49 | uses: actions/checkout@v6.0.1 |
30 | 50 | with: |
|
64 | 84 | - name: Install dependencies and build transformer_engine |
65 | 85 | # timeout-minutes: 30 |
66 | 86 | env: |
67 | | - DEBIAN_FRONTEND: noninteractive |
68 | | - TZ: Asia/Shanghai |
69 | | - PYTHON_VERSION: 3.10 |
70 | 87 | NVTE_FRAMEWORK: pytorch |
71 | 88 | 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 | | -
|
87 | 89 | # =============== Install Dependencies =============== |
88 | | - apt-get install -y --no-install-recommends git cudnn9-cuda-12 |
89 | 90 | pip install cmake torch ninja pydantic packaging pybind11 numpy einops onnxscript |
90 | 91 | pip install nvidia-mathdx==25.1.1 importlib-metadata>=1.0 |
91 | 92 | pip install transformers expecttest pytest==8.2.1 tensorrt |
|
0 commit comments