You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HAMi currently has a [built-in share configuration](https://github.com/Project-HAMi/HAMi/blob/master/charts/hami/templates/scheduler/device-configmap.yaml) for ascend.
38
+
39
+
You can customize the ascend share configuration by following the steps below:
40
+
41
+
<details>
42
+
<summary>customize ascend config</summary>
43
+
44
+
### Create a new directory files in hami charts, the directory structure is as follows
45
+
46
+
```bash
47
+
tree -L 1
48
+
.
49
+
├── Chart.yaml
50
+
├── files
51
+
├── templates
52
+
└── values.yaml
53
+
```
54
+
55
+
### Create the ascend-config.yaml file, the content is as follows
56
+
57
+
```yaml
58
+
vnpus:
59
+
- chipName: 910B
60
+
commonWord: Ascend910A
61
+
resourceName: huawei.com/Ascend910A
62
+
resourceMemoryName: huawei.com/Ascend910A-memory
63
+
memoryAllocatable: 32768
64
+
memoryCapacity: 32768
65
+
aiCore: 30
66
+
templates:
67
+
- name: vir02
68
+
memory: 2184
69
+
aiCore: 2
70
+
- name: vir04
71
+
memory: 4369
72
+
aiCore: 4
73
+
- name: vir08
74
+
memory: 8738
75
+
aiCore: 8
76
+
- name: vir16
77
+
memory: 17476
78
+
aiCore: 16
79
+
- chipName: 910B3
80
+
commonWord: Ascend910B
81
+
resourceName: huawei.com/Ascend910B
82
+
resourceMemoryName: huawei.com/Ascend910B-memory
83
+
memoryAllocatable: 65536
84
+
memoryCapacity: 65536
85
+
aiCore: 20
86
+
aiCPU: 7
87
+
templates:
88
+
- name: vir05_1c_16g
89
+
memory: 16384
90
+
aiCore: 5
91
+
aiCPU: 1
92
+
- name: vir10_3c_32g
93
+
memory: 32768
94
+
aiCore: 10
95
+
aiCPU: 3
96
+
- chipName: 310P3
97
+
commonWord: Ascend310P
98
+
resourceName: huawei.com/Ascend310P
99
+
resourceMemoryName: huawei.com/Ascend310P-memory
100
+
memoryAllocatable: 21527
101
+
memoryCapacity: 24576
102
+
aiCore: 8
103
+
aiCPU: 7
104
+
templates:
105
+
- name: vir01
106
+
memory: 3072
107
+
aiCore: 1
108
+
aiCPU: 1
109
+
- name: vir02
110
+
memory: 6144
111
+
aiCore: 2
112
+
aiCPU: 2
113
+
- name: vir04
114
+
memory: 12288
115
+
aiCore: 4
116
+
aiCPU: 4
117
+
```
118
+
### Helm installation and updates will be based on the configuration in this file, overwriting the built-in configuration of Helm
0 commit comments