npx skills add ...
npx skills add nvidia/dgx-spark-playbooks --skill mig-configure
Configure NVIDIA MIG (Multi-Instance GPU) partitions on the DGX Station GB300, including enabling MIG mode, choosing a profile layout, creating instances, and retrieving MIG UUIDs. Use when the user asks to partition the GB300, set up MIG, run multiple models in isolation on one GPU, or reconfigure existing MIG instances.
npx skills add nvidia/dgx-spark-playbooks --skill mig-configure
Configure MIG (Multi-Instance GPU) partitions on the DGX Station GB300.
Find the GB300 GPU index. Run:
Check current MIG state:
If MIG is already enabled, show current instances:
If the user wants to reconfigure, destroy existing instances first (step 6).
If MIG is not enabled, enable it. All GPU processes must be stopped first:
Show available profiles and help the user choose a layout:
Common GB300 MIG profiles:
| ID | Profile name (driver-dependent) | Approx. memory | Use case |
|---|---|---|---|
| 19 | 1g.35gb (59x) · 1g.31gb (61x) | ~30 GB | Small models (7-8B), dev/test |
| 20 | 1g.35gb+me · 1g.31gb+me | ~30 GB | Same + media extensions |
| 15 | 1g.70gb | ~68 GB | Slightly larger inference |
| 14 | 2g.70gb | ~68 GB | Medium models (14-30B) |
| 9 | 3g.139gb (59x) · 3g.126gb (61x) | ~137 GB | Large models (70B quantized) |
| 5 | 4g.139gb · 4g.126gb | ~137 GB | Large models, more compute |
| 0 | 7g.278gb (59x) · 7g.251gb (61x) | ~276 GB | Full GPU as single instance |
Profile names depend on your driver version; the profile IDs do not. Always read the exact names and sizes on your box with
nvidia-smi mig -lgip -i <GB300_INDEX>, and create instances by ID. (Driver 59x reports the…35gb/139gb/278gbnames; 61x reports…31gb/126gb/251gbfor the same IDs.)
Suggest layouts based on the user's workload (use the stable IDs). Examples:
3g + two 1g.70gb → IDs 9,15,151g → IDs 19,19,197g → ID 0MIG layouts are constrained by fixed memory-slice placement, not just total memory — never sum nominal GB and assume any combination fits. A
3g + 2g + 2glayout (9,14,14) is not realizable, for example, because the second2ghas no legal placement after a3g. Andnvidia-smi mig -lgipFree/Totaltracks compute (GPC) slices, so it overstates the number of instances you can actually create (QA observed only 3 creatable1ginstances on a 61x Station even thoughFree/Totalreported 7). Always validate a specific layout withnvidia-smi mig -lgippbefore relying on it.
Ask the user what models they want to run before suggesting a layout.
Create (or recreate) instances:
If reconfiguring, destroy existing instances first:
Then create the new layout:
Get the MIG device UUIDs:
Note the MIG-<uuid> entries — these are used to target specific MIG instances.
Show the user how to use MIG devices:
Report the final layout to the user with UUIDs and suggested docker commands for each instance.
If the user wants to return to full-GPU mode:
Do not run
nvidia-fabricmanageron DGX Station. It has a single GB300 over NVLink-C2C (no NVSwitch fabric), so Fabric Manager is not installed andsystemctl start nvidia-fabricmanagerfails with "Unit not found." NVLink-C2C re-initializes automatically after MIG is disabled. If MIG mode is stuck in a "pending" state, reset the GPU instead:sudo nvidia-smi -i <GB300_INDEX> --gpu-reset.