Skip to content

Partitioning GPU into MIG (Multi-Instance GPU)

  1. Drain the node.

  2. Run the command to convert ALL GPUs to MIGs:

Terminal window
sudo nvidia-smi -mig 1
  1. Install nvidia-mig-parted on the node.

  2. Install nvidia-mig-manager on the node. You can find the installation details here.

  3. Create a config.yaml file for the node and place it in /etc/nvidia-mig-manager/config.yaml. Example:

version: v1
mig-configs:
current:
- devices: all
mig-enabled: true
mig-devices:
1g.10gb: 7
all-disabled:
- devices: all
mig-enabled: true
mig-devices:
1g.10gb: 7

You can also SSH into an existing MIG node and run sudo nvidia-mig-parted export.

  1. Test persistence with reboots to ensure MIG settings are retained.

  2. Don’t forget to uncordon the node.

NSF Logo
This work was supported in part by National Science Foundation (NSF) awards CNS-1730158, ACI-1540112, ACI-1541349, OAC-1826967, OAC-2112167, CNS-2100237, CNS-2120019.