forked from flagos-ai/TransformerEngine-FL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathascend.yml
More file actions
77 lines (64 loc) · 1.87 KB
/
Copy pathascend.yml
File metadata and controls
77 lines (64 loc) · 1.87 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
67
68
69
70
71
72
73
74
75
76
77
# Huawei Ascend NPU configuration for TransformerEngine-FL
# This file follows the same schema as cuda.yml and metax.yml.
hardware_name: ascend
display_name: 'Huawei Ascend NPU'
checkout_submodules: recursive
# CI image for the Ascend environment
ci_image: harbor.baai.ac.cn/flagos-dev/transformerengine-fl:85c2523-ascend-dev
container_pull_policy: always
# Runner labels for the self-hosted Ascend node
runner_labels:
- hw-4g-cicd-te
# Container volumes
container_volumes:
- /usr/local/Ascend/driver:/usr/local/Ascend/driver
- /usr/local/Ascend/add-ons:/usr/local/Ascend/add-ons
# Container options
container_options: >-
--privileged
--shm-size=100g
--ipc=host
--ulimit memlock=-1
--ulimit stack=67108864
--user root
--device=/dev/davinci0
--device=/dev/davinci1
--device=/dev/davinci2
--device=/dev/davinci3
--device=/dev/davinci_manager
--device=/dev/devmm_svm
--device=/dev/hisi_hdc
# Platform-specific environment setup script
setup_script: .github/scripts/setup_ascend.sh
coverage:
enabled: true
required: true
python: python3
sources:
- transformer_engine
include:
- transformer_engine/pytorch/*
- transformer_engine/debug/*
- transformer_engine/plugin/*
omit:
- '*/setup.py'
- '*/transformer_engine/plugin/core/_build_config.py'
unit_test_matrix:
- name: pytorch_debug
runner: script
path: qa/L0_pytorch_debug_unittest/test_ascend.sh
- name: pytorch_unittest
runner: script
path: qa/L0_pytorch_unittest/test_ascend.sh
- name: pytorch_distributed_unittest
runner: script
path: qa/L1_pytorch_distributed_unittest/test_ascend.sh
- name: pytorch_onnx_unittest
runner: script
path: qa/L1_pytorch_onnx_unittest/test_ascend.sh
integration_test_matrix:
- name: pytorch_mcore_integration
path: qa/L1_pytorch_mcore_integration/test.sh
# Device types to run tests on
device_types:
- ascend