forked from flagos-ai/TransformerEngine-FL
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (60 loc) · 1.77 KB
/
Copy pathbuild.yml
File metadata and controls
66 lines (60 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright (c) 2022-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# See LICENSE for license information.
# A workflow to trigger TE build on GitHub
name: 'Build'
on:
pull_request:
workflow_dispatch:
jobs:
pytorch:
name: 'PyTorch'
runs-on: [ nv-8g-cicd-te ]
defaults:
run:
shell: bash
container:
image: harbor.baai.ac.cn/flagscale/cuda12.8.1-torch2.7.1-python3.10-te2.9:20260209
ports:
- 80:80
options: >-
--gpus all
--shm-size=500g
--privileged
--ipc=host
--ulimit memlock=-1
--ulimit stack=67108864
--ulimit nofile=65535:65535
--user root
--pull never
steps:
- name: Configure Git Safe Directory on Cuda
run: /usr/bin/git config --global safe.directory '*'
- name: 'Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
set-safe-directory: true
- name: 'Setup Environment'
run: |
source /opt/miniconda3/etc/profile.d/conda.sh
conda activate flagscale-train
echo "PATH=$PATH" >> $GITHUB_ENV
- name: 'Build'
run: |
pip uninstall transformer_engine transformer_engine_torch -y || true
echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE"
cd $GITHUB_WORKSPACE
pip install nvdlfw-inspect
pip install expecttest
pip install . -v --no-deps --no-build-isolation
env:
NVTE_FRAMEWORK: pytorch
TE_WITH_NCCL: '1'
NVTE_WITH_CUDA: '1'
CUDA_HOME: /usr/local/cuda-12.8
NVCC: /usr/local/cuda-12.8/bin/nvcc
- name: 'Sanity check'
run:
python3 tests/pytorch/test_sanity_import.py