HAMi on Ascend NPU (whole-card)
Use this scenario when Ascend workloads need exclusive whole-card allocation but should still use HAMi scheduling and resource management. For direct Ascend allocation without HAMi, use Request Ascend NPU resources directly. For hard or soft slicing, use HAMi on Ascend vNPU.
Before you create a workload
Confirm that:
Alauda Build of HAMiis installed with Enable Ascend enabled;Alauda Build of HAMi Ascend Device Pluginis installed and selects the target node, commonly withascend=on;- the NPU Operator Driver, OCI Runtime, and
ascendRuntimeClass remain available, but its native Ascend Device Plugin is disabled for this node pool.
Check the exposed resources:
The node must report the model-specific Ascend count resource. A count-only request selects whole-card allocation regardless of the node's partial-memory mode. Use HAMi on Ascend vNPU and Configure Ascend Slicing Mode when the workload needs hard or soft slicing.
Run a whole-card workload
The following Pod manifest uses Ascend 310P3 as a concrete example. This hardware model is exposed through the huawei.com/Ascend310P resource key delivered with HAMi v2.9.0 and HAMi Ascend Device Plugin v1.4.0. Replace the image with an ARM64 Ascend image that contains the CANN libraries and npu-smi required by the test application.
Do not add a memory resource, core resource, or huawei.com/vnpu-mode annotation to this whole-card request.
Create and inspect the Pod:
Interpret the results as follows:
scheduler=hami-schedulerandruntimeClass=ascendconfirm the expected scheduling and Ascend runtime paths.- A non-empty
hami.io/Ascend310P-devices-allocatedannotation confirms that HAMi allocated the device. - The absence of
ASCEND_VNPU_SPECSandNPU_MEM_QUOTA, together with the count-only resource request, confirms that the workload did not select hard or soft slicing. - Successful
npu-smi infoconfirms basic device access. Run a representative CANN or inference workload for end-to-end verification.
For an Ascend 910-series device, obtain the model mapping from hami-scheduler-device, confirm its count resource in node allocatable resources, and replace huawei.com/Ascend310P plus the allocation-annotation suffix with those values.