版本:v2.5.1
启用 Ascend 共享
基于虚拟化模板支持显存切片,自动使用可用的租赁模板。有关详细信息,请查看设备模板。
先决条件
- Ascend 设备类型:910B, 910A, 310P
- 驱动版本 >= 24.1.rc1
- Ascend docker 运行时
启用 Ascend-sharing 支持
-
由于与 HAMi 的依赖关系,你需要在 HAMi 安装期间设置以下参数:
devices.ascend.enabled=true有关更多详细信息,参阅 values.yaml 中的 'devices' 部分:
devices:ascend:enabled: trueimage: "ascend-device-plugin:master"imagePullPolicy: IfNotPresentextraArgs: []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