Skip to content

Commit 6e4c3dc

Browse files
author
zihugithub
committed
Add workflows
1 parent 12b2077 commit 6e4c3dc

20 files changed

Lines changed: 845 additions & 473 deletions

.github/workflows/blossom-ci.yml

Lines changed: 0 additions & 84 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 14 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -8,90 +8,30 @@ on:
88
pull_request:
99
workflow_dispatch:
1010
jobs:
11-
core:
12-
name: 'Core'
13-
runs-on: ubuntu-latest
14-
container:
15-
image: nvcr.io/nvidia/cuda:12.1.0-devel-ubuntu22.04
16-
options: --user root
17-
steps:
18-
- name: 'Dependencies'
19-
run: |
20-
apt-get update
21-
apt-get install -y git python3.9 pip cudnn9-cuda-12
22-
pip install cmake==3.21.0 pybind11[global] ninja nvidia-mathdx==25.1.1
23-
- name: 'Checkout'
24-
uses: actions/checkout@v3
25-
with:
26-
submodules: recursive
27-
- name: 'Build'
28-
run: pip install --no-build-isolation . -v
29-
env:
30-
NVTE_FRAMEWORK: none
31-
MAX_JOBS: 1
32-
- name: 'Sanity check'
33-
run: python3 -c "import transformer_engine"
34-
working-directory: /
3511
pytorch:
3612
name: 'PyTorch'
37-
runs-on: ubuntu-latest
13+
runs-on: [ self-hosted, Linux, X64, nvidia, gpu-8 ]
14+
defaults:
15+
run:
16+
shell: bash
3817
container:
39-
image: nvcr.io/nvidia/cuda:12.8.0-devel-ubuntu22.04
18+
image: harbor.baai.ac.cn/flagscale/cuda12.8.1-torch2.7.1-python3.10-te2.9:20260209
4019
options: --user root
4120
steps:
42-
- name: 'Dependencies'
43-
run: |
44-
apt-get update
45-
apt-get install -y git python3.9 pip cudnn9-cuda-12
46-
pip install cmake torch ninja pydantic importlib-metadata>=1.0 packaging pybind11 numpy einops onnxscript nvidia-mathdx==25.1.1
4721
- name: 'Checkout'
4822
uses: actions/checkout@v3
4923
with:
5024
submodules: recursive
5125
- name: 'Build'
52-
run: pip install --no-build-isolation . -v --no-deps
26+
run:
27+
source /opt/miniconda3/etc/profile.d/conda.sh
28+
conda activate flagscale-train
29+
pip install --no-build-isolation . -v --no-deps
5330
env:
5431
NVTE_FRAMEWORK: pytorch
55-
MAX_JOBS: 1
56-
- name: 'Sanity check'
57-
run: python3 tests/pytorch/test_sanity_import.py
58-
jax:
59-
name: 'JAX'
60-
runs-on: ubuntu-latest
61-
container:
62-
image: ghcr.io/nvidia/jax:jax
63-
options: --user root
64-
steps:
65-
- name: 'Dependencies'
66-
run: pip install pybind11[global] nvidia-mathdx==25.1.1
67-
- name: 'Checkout'
68-
uses: actions/checkout@v3
69-
with:
70-
submodules: recursive
71-
- name: 'Build'
72-
run: pip install --no-build-isolation . -v
73-
env:
74-
NVTE_FRAMEWORK: jax
75-
MAX_JOBS: 1
76-
- name: 'Sanity check'
77-
run: python3 tests/jax/test_sanity_import.py
78-
all:
79-
name: 'All'
80-
runs-on: ubuntu-latest
81-
container:
82-
image: ghcr.io/nvidia/jax:jax
83-
options: --user root
84-
steps:
85-
- name: 'Dependencies'
86-
run: pip install torch pybind11[global] einops onnxscript nvidia-mathdx==25.1.1
87-
- name: 'Checkout'
88-
uses: actions/checkout@v3
89-
with:
90-
submodules: recursive
91-
- name: 'Build'
92-
run: pip install --no-build-isolation . -v --no-deps
93-
env:
94-
NVTE_FRAMEWORK: all
95-
MAX_JOBS: 1
32+
TE_WITH_NCCL: 1
9633
- name: 'Sanity check'
97-
run: python3 tests/pytorch/test_sanity_import.py && python3 tests/jax/test_sanity_import.py
34+
run:
35+
source /opt/miniconda3/etc/profile.d/conda.sh
36+
conda activate flagscale-train
37+
python3 tests/pytorch/test_sanity_import.py

.github/workflows/deploy_nightly_docs.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/license.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/qa-format.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: format_check
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
types: [opened, synchronize, reopened]
7+
8+
jobs:
9+
format:
10+
runs-on: ubuntu-22.04
11+
env:
12+
PRID: ${{ github.event.pull_request.number }}
13+
BRANCH: main
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
with:
19+
ref: ${{ github.event.pull_request.base.ref }}
20+
21+
- name: Merge PR to sub-branch
22+
run: |
23+
git fetch origin pull/${PRID}/merge
24+
git checkout -b test FETCH_HEAD
25+
26+
- name: Set up Python
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version: "3.10"
30+
31+
- name: Run pre-commit
32+
run: bash ./qa/format.sh

0 commit comments

Comments
 (0)