Partitioning GPU into MIG (Multi-Instance GPU)
Drain the node.
Run the command to convert ALL GPUs to MIGs:
sudo nvidia-smi -mig 1
Install
nvidia-mig-parted
on the node.Install
nvidia-mig-manager
on the node. You can find the installation details here.Create a
config.yaml
file for the node and place it in /etc/nvidia-mig-manager/config.yaml. Example:
version: v1mig-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
.
Test persistence with reboots to ensure MIG settings are retained.
Don’t forget to uncordon the node.