-
Notifications
You must be signed in to change notification settings - Fork 99
docs: update NVIDIA registration format #835
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,19 +13,19 @@ hami.io/node-handshake-\{device-type\}: Reported_\{device_node_current_timestamp | |
| hami.io/node-\{device-type\}-register: \{Device 1\}:\{Device2\}:...:\{Device N\} | ||
| ``` | ||
|
|
||
| The definition of each device is in the following format: | ||
| The device registration format depends on the device plugin. For NVIDIA devices, the registration annotation uses JSON with fields such as: | ||
|
|
||
| ```text | ||
| \{Device UUID\},\{device split count\},\{device memory limit\},\{device core limit\},\{device type\},\{device numa\},\{healthy\} | ||
| {"id":"GPU-...","count":10,"devmem":32768,"devcore":100,"type":"NVIDIA-Tesla V100-PCIE-32GB","numa":0,"mode":"hami-core","health":true} | ||
| ``` | ||
|
|
||
| An example is shown below: | ||
|
|
||
| ```text | ||
| hami.io/node-handshake-nvidia: Reported 2024-01-23 04:30:04.434037031 +0000 UTC m=+1104711.777756895 | ||
| hami.io/node-handshake: Reported 2024-01-23 04:30:04.434037031 +0000 UTC m=+1104711.777756895 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Clarify the NVIDIA handshake-key exception. Line 12 documents 🤖 Prompt for AI AgentsThere was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the value should use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| hami.io/node-handshake-mlu: Requesting_2024.01.10 04:06:57 | ||
| hami.io/node-mlu-register: MLU-45013011-2257-0000-0000-000000000000,10,23308,0,MLU-MLU370-X4,0,false:MLU-54043011-2257-0000-0000-000000000000,10,23308,0, | ||
| hami.io/node-nvidia-register: GPU-00552014-5c87-89ac-b1a6-7b53aa24b0ec,10,32768,100,NVIDIA-Tesla V100-PCIE-32GB,0,true:GPU-0fc3eda5-e98b-a25b-5b0d-cf5c855d1448,10,32768,100,NVIDIA-Tesla V100-PCIE-32GB,0,true: | ||
| hami.io/node-nvidia-register: [{"id":"GPU-00552014-5c87-89ac-b1a6-7b53aa24b0ec","count":10,"devmem":32768,"devcore":100,"type":"NVIDIA-Tesla V100-PCIE-32GB","numa":0,"mode":"hami-core","health":true},{"id":"GPU-0fc3eda5-e98b-a25b-5b0d-cf5c855d1448","index":1,"count":10,"devmem":32768,"devcore":100,"type":"NVIDIA-Tesla V100-PCIE-32GB","numa":0,"mode":"hami-core","health":true}] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||
|
|
||
| ``` | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -145,7 +145,7 @@ Device Plugins can only report a single resource type. GPU memory and compute in | |
| - Example annotation: | ||
|
|
||
| ```yaml | ||
| hami.io/node-nvidia-register: GPU-fc28df76-54d2-c387-e52e-5f0a9495968c,10,49140,100,NVIDIA-NVIDIA L40S,0,true:GPU-b97db201-0442-8531-56d4-367e0c7d6edd,10,49140,100,... | ||
| hami.io/node-nvidia-register: [{"id":"GPU-fc28df76-54d2-c387-e52e-5f0a9495968c","count":10,"devmem":49140,"devcore":100,"type":"NVIDIA-NVIDIA L40S","numa":0,"mode":"hami-core","health":true},{"id":"GPU-b97db201-0442-8531-56d4-367e0c7d6edd","index":1,"count":10,"devmem":49140,"devcore":100,"type":"NVIDIA-NVIDIA L40S","numa":0,"mode":"hami-core","health":true}] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||
| ``` | ||
|
|
||
| ### Follow-Up | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,10 +13,10 @@ hami.io/node-handshake-\{device-type\}: Reported_\{device_node_current_timestamp | |
| hami.io/node-\{device-type\}-register: \{Device 1\}:\{Device2\}:...:\{Device N\} | ||
| ``` | ||
|
|
||
| The definition of each device is in the following format: | ||
| The device registration format depends on the device plugin. For NVIDIA devices, the registration annotation uses JSON with fields such as: | ||
|
|
||
| ```text | ||
| \{Device UUID\},\{device split count\},\{device memory limit\},\{device core limit\},\{device type\},\{device numa\},\{healthy\} | ||
| {"id":"GPU-...","count":10,"devmem":32768,"devcore":100,"type":"NVIDIA-Tesla V100-PCIE-32GB","mode":"hami-core","health":true} | ||
|
Comment on lines
+16
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Use the versioning workflow for this documentation. This PR edits an existing As per coding guidelines, treat versioned documentation as immutable snapshots; do not hand-copy files into versioned directories to create a new snapshot. Also applies to: 28-28 🤖 Prompt for AI AgentsSource: Coding guidelines |
||
| ``` | ||
|
|
||
| An example is shown below: | ||
|
|
@@ -25,7 +25,7 @@ An example is shown below: | |
| hami.io/node-handshake-nvidia: Reported 2024-01-23 04:30:04.434037031 +0000 UTC m=+1104711.777756895 | ||
| hami.io/node-handshake-mlu: Requesting_2024.01.10 04:06:57 | ||
| hami.io/node-mlu-register: MLU-45013011-2257-0000-0000-000000000000,10,23308,0,MLU-MLU370-X4,0,false:MLU-54043011-2257-0000-0000-000000000000,10,23308,0, | ||
| hami.io/node-nvidia-register: GPU-00552014-5c87-89ac-b1a6-7b53aa24b0ec,10,32768,100,NVIDIA-Tesla V100-PCIE-32GB,0,true:GPU-0fc3eda5-e98b-a25b-5b0d-cf5c855d1448,10,32768,100,NVIDIA-Tesla V100-PCIE-32GB,0,true: | ||
| hami.io/node-nvidia-register: [{"id":"GPU-00552014-5c87-89ac-b1a6-7b53aa24b0ec","count":10,"devmem":32768,"devcore":100,"type":"NVIDIA-Tesla V100-PCIE-32GB","mode":"hami-core","health":true},{"id":"GPU-0fc3eda5-e98b-a25b-5b0d-cf5c855d1448","index":1,"count":10,"devmem":32768,"devcore":100,"type":"NVIDIA-Tesla V100-PCIE-32GB","mode":"hami-core","health":true}] | ||
|
|
||
| ``` | ||
|
|
||
|
|
||
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.
numausesomitempty, so"numa":0will not appear in the serialized JSON. Please remove it or use a non-zero value.like:
or: