典型场景章节中关于NPU推理任务分为下面两种情况:
apiVersion: apps/v1 kind: Deployment metadata: name: infer spec: replicas: 1 selector: matchLabels: app: infers template: metadata: labels: app: infers spec: schedulerName: volcano nodeSelector: host-arch: huawei-arm containers: - image: infer:latest imagePullPolicy: IfNotPresent name: infer command: xxxx resources: requests: huawei.com/Ascend310: 1 limits: huawei.com/Ascend310: 1 volumeMounts: - name: ascend-driver mountPath: /usr/local/Ascend/driver volumes: - name: ascend-driver hostPath: path: /usr/local/Ascend/driver