版本:v2.6.0
启用 Ascend 共享
基于虚拟化模板支持显存切片,自动使用可用的租赁模板。有关详细信息,请查看设备模板。
先决条件
- Ascend 设备类型:910B, 910A, 310P
- 驱动版本 >= 24.1.rc1
- Ascend docker 运行时
启用 Ascend-sharing 支持
-
由于与 HAMi 的依赖关系,您需要在 HAMi 安装期间设置以下参数:
devices.ascend.enabled=true有关更多详细信息,请参阅 values.yaml 中的 'devices' 部分:
devices:
ascend:
enabled: true
image: "ascend-device-plugin:master"
imagePullPolicy: IfNotPresent
extraArgs: []
nodeSelector:
ascend: "on"
tolerations: []
resources:
- huawei.com/Ascend910A
- huawei.com/Ascend910A-memory
- huawei.com/Ascend910B
- huawei.com/Ascend910B-memory
- huawei.com/Ascend310P
- huawei.com/Ascend310P-memory -
使用以下命令标记 Ascend 节点:
kubectl label node {ascend-node} ascend=on -
从 HAMi 项目下载 Ascend-vgpu-device-plugin 的 yaml,并执行以下命令来部署:
wge https://raw.githubusercontent.com/Project-HAMi/ascend-device-plugin/refs/heads/main/ascend-device-plugin.yaml
kubectl apply -f ascend-device-plugin.yaml