-
Notifications
You must be signed in to change notification settings - Fork 95
docs: add blog post and lab guide for Volcano + HAMi-core soft slicing #782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
hami-robot
merged 8 commits into
Project-HAMi:master
from
rootsongjc:blog/volcano-vnpu-soft-slicing
Aug 19, 2026
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1ea66ab
Add new blog post on Volcano + HAMi-core soft slicing for Ascend vNPU
rootsongjc c151fd3
fix: remove obsolete event landing pages for COSCUP 2026 and Open Sou…
rootsongjc 92d9e03
Add Lab 13: Soft-Slicing Ascend 310P3 vNPU with Volcano and HAMi-core
rootsongjc 1af1dfe
fix: update blog post date and enhance content clarity on Volcano + H…
rootsongjc 4a43916
fix: mark HAMi Meetup blog posts as unlisted
rootsongjc a1bdefe
fix: correct permalink for vNPU tag in tags.yml
rootsongjc 455d1a0
Update HAMi device plugin configuration and documentation for Ascend …
rootsongjc ce167c6
fix: clarify memory allocation details in Volcano soft-slicing docume…
rootsongjc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
255 changes: 255 additions & 0 deletions
255
i18n/zh/docusaurus-plugin-content-blog/volcano-ascend-vnpu-soft-slicing/index.md
Large diffs are not rendered by default.
Oops, something went wrong.
702 changes: 702 additions & 0 deletions
702
...zh/docusaurus-plugin-content-docs-tutorials/current/labs/volcano-ascend-vnpu.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
tutorials/labs/examples/13-volcano-ascend-vnpu/01-volcano-scheduler-configmap.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Volcano scheduler configuration with the deviceshare plugin in HAMi vNPU mode. | ||
| # Apply into volcano-system, then: kubectl -n volcano-system rollout restart deploy volcano-scheduler | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: volcano-scheduler-configmap | ||
| namespace: volcano-system | ||
| data: | ||
| volcano-scheduler.conf: | | ||
| actions: "enqueue, allocate, backfill" | ||
| tiers: | ||
| - plugins: | ||
| - name: priority | ||
| - name: gang | ||
| enablePreemptable: false | ||
| - name: conformance | ||
| - plugins: | ||
| - name: overcommit | ||
| - name: drf | ||
| enablePreemptable: false | ||
| - name: predicates | ||
| - name: deviceshare | ||
| arguments: | ||
| deviceshare.AscendHAMiVNPUEnable: "true" | ||
| deviceshare.SchedulePolicy: binpack | ||
| deviceshare.KnownGeometriesCMNamespace: kube-system | ||
| deviceshare.KnownGeometriesCMName: hami-scheduler-device | ||
| - name: proportion | ||
| - name: nodeorder | ||
| - name: binpack |
22 changes: 22 additions & 0 deletions
22
tutorials/labs/examples/13-volcano-ascend-vnpu/02-hami-device-node-config.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Per-node HAMi device plugin configuration: enable hami-vnpu-core on one node. | ||
| # Replace "aio-node74-arm" with your Ascend node name. vDeviceCount is the | ||
| # per-card vNPU count, honored directly by the plugin (since v1.4.0); 7 matches | ||
| # the 310P3 capacity verified in this lab. | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| labels: | ||
| app.kubernetes.io/component: hami-scheduler | ||
| app.kubernetes.io/name: hami | ||
| app.kubernetes.io/instance: hami | ||
| name: hami-device-node-config | ||
| namespace: kube-system | ||
| data: | ||
| node-config.yaml: |- | ||
| nodes: | ||
| - name: "aio-node74-arm" | ||
| hami-vnpu-core: true | ||
| vDeviceCount: 7 | ||
| filterDevices: | ||
| index: [] | ||
| uuid: [] |
18 changes: 18 additions & 0 deletions
18
tutorials/labs/examples/13-volcano-ascend-vnpu/03-ascend-vnpu-check.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # First soft-sliced vNPU Pod: 1 vNPU with an 8192 MiB memory slice. | ||
| apiVersion: v1 | ||
| kind: Pod | ||
| metadata: | ||
| name: ascend-vnpu-check | ||
| annotations: | ||
| huawei.com/vnpu-mode: hami-core | ||
| spec: | ||
| schedulerName: volcano | ||
| runtimeClassName: ascend | ||
| containers: | ||
| - name: npu | ||
| image: quay.io/ascend/vllm-ascend:v0.18.0-310p | ||
| command: ["sleep", "infinity"] | ||
| resources: | ||
| limits: | ||
| huawei.com/Ascend310P: "1" | ||
| huawei.com/Ascend310P-memory: "8192" | ||
19 changes: 19 additions & 0 deletions
19
tutorials/labs/examples/13-volcano-ascend-vnpu/04-ascend-vnpu-check-2.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Second soft-sliced vNPU Pod, identical to the first: with the binpack policy | ||
| # it lands on the same physical card as ascend-vnpu-check. | ||
| apiVersion: v1 | ||
| kind: Pod | ||
| metadata: | ||
| name: ascend-vnpu-check-2 | ||
| annotations: | ||
| huawei.com/vnpu-mode: hami-core | ||
| spec: | ||
| schedulerName: volcano | ||
| runtimeClassName: ascend | ||
| containers: | ||
| - name: npu | ||
| image: quay.io/ascend/vllm-ascend:v0.18.0-310p | ||
| command: ["sleep", "infinity"] | ||
| resources: | ||
| limits: | ||
| huawei.com/Ascend310P: "1" | ||
| huawei.com/Ascend310P-memory: "8192" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
Restrict both validation Pods. Both manifests allow privilege escalation and can run as root. These tutorial manifests are copy-pasteable cluster workloads.
tutorials/labs/examples/13-volcano-ascend-vnpu/03-ascend-vnpu-check.yaml#L11-L18: AddsecurityContext.allowPrivilegeEscalation: false. Run as a non-root UID that has required Ascend device permissions.tutorials/labs/examples/13-volcano-ascend-vnpu/04-ascend-vnpu-check-2.yaml#L12-L19: Apply the same container security context.🧰 Tools
🪛 Checkov (3.3.9)
[medium] 2-18: Containers should not run with allowPrivilegeEscalation
(CKV_K8S_20)
[medium] 2-18: Minimize the admission of root containers
(CKV_K8S_23)
📍 Affects 2 files
tutorials/labs/examples/13-volcano-ascend-vnpu/03-ascend-vnpu-check.yaml#L11-L18(this comment)tutorials/labs/examples/13-volcano-ascend-vnpu/04-ascend-vnpu-check-2.yaml#L12-L19🤖 Prompt for AI Agents
Source: Linters/SAST tools