Skip to content

Add the local-fake-gpu-using-nvml#444

Open
maishivamhoo123 wants to merge 8 commits into
Project-HAMi:masterfrom
maishivamhoo123:docs/add-nvml-mock-lab
Open

Add the local-fake-gpu-using-nvml#444
maishivamhoo123 wants to merge 8 commits into
Project-HAMi:masterfrom
maishivamhoo123:docs/add-nvml-mock-lab

Conversation

@maishivamhoo123

@maishivamhoo123 maishivamhoo123 commented Jun 13, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Close : #445
Adds a new lab (lab3-hami-nvml-mock.md) that guides users through setting up a local HAMi + nvml‑mock environment without a real GPU.

The lab covers:

  • Creating a kind cluster and deploying nvml‑mock to simulate 8 GPUs
  • Building HAMi from main (with the nvidia-mig-parted fix already merged)
  • Testing basic GPU scheduling, sharing, memory/core limits, and multi‑GPU allocation

All steps are verified and include exact commands and expected outputs.

Why is this needed?

Many contributors and users want to explore HAMi’s scheduling features without access to physical GPU hardware. This lab provides a reproducible, no‑cost environment for learning and validating HAMi’s behaviour.

How was it tested?

  • Executed step‑by‑step on a local kind cluster with nvml‑mock v0.0.80 and HAMi built from main.
  • All pod scheduling and annotation checks passed successfully.

@hami-robot

hami-robot Bot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: maishivamhoo123
Once this PR has been reviewed and has the lgtm label, please assign wawa0210 for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hami-robot hami-robot Bot requested review from archlitchi and rootsongjc June 13, 2026 10:35
@netlify

netlify Bot commented Jun 13, 2026

Copy link
Copy Markdown

Deploy Preview for project-hami ready!

Name Link
🔨 Latest commit e5f38e5
🔍 Latest deploy log https://app.netlify.com/projects/project-hami/deploys/6a3277298ef69f0008ea1668
😎 Deploy Preview https://deploy-preview-444--project-hami.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@hami-robot hami-robot Bot added the size/XL label Jun 13, 2026
Comment thread tutorials/labs/local-fake-gpu-using-nvml.md Outdated
Signed-off-by: maishivamhoo123 <maishivamhoo@gmail.com>
@hami-robot hami-robot Bot added size/XL and removed size/XXL labels Jun 16, 2026
Signed-off-by: maishivamhoo123 <maishivamhoo@gmail.com>
Signed-off-by: maishivamhoo123 <maishivamhoo@gmail.com>
Signed-off-by: maishivamhoo123 <maishivamhoo@gmail.com>
Signed-off-by: maishivamhoo123 <maishivamhoo@gmail.com>
Signed-off-by: maishivamhoo123 <maishivamhoo@gmail.com>
Signed-off-by: maishivamhoo123 <maishivamhoo@gmail.com>
EOF
```

:::info `nvidia.com/gpumem` takes an **absolute value in MiB** — `"10"` means 10 MiB. `nvidia.com/gpucores: "30"` requests 30 compute cores on the selected GPU. :::

@rootsongjc rootsongjc Jun 17, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The admonitions weren't closing because the ::: end marker shared a line with the content, so MD never recognized them as closed and swallowed everything after into one giant nested block; fix it by putting each ::: open and close marker on its own line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add new lab: Local Fake GPU using nvml-mock.

2 participants