Multi-Instance GPU (MIG) configuration for AI and HPC: Quick Reference — Physical Layer Management (NVIDIA-Certified Professional: AI Infrastructure)

Multi-Instance GPU (MIG) Configuration for AI and HPC — Quick Reference The Multi-Instance GPU (MIG) technology enables partitioning of a single...

Multi-Instance GPU (MIG) Configuration for AI and HPC — Quick Reference

The Multi-Instance GPU (MIG) technology enables partitioning of a single NVIDIA A100 or later GPU into multiple isolated GPU instances. This capability is critical for optimizing resource utilization in AI and High-Performance Computing (HPC) workloads.

Key Concepts

Supported GPUs

MIG Profiles

MIG instances are created based on predefined profiles that specify the number of compute units, memory size, and bandwidth.

Configuration Steps

  1. Enable MIG Mode: Use nvidia-smi to enable MIG mode on the GPU:nvidia-smi -i [GPU_ID] -mig 1
  2. Create MIG Instances: Define instances using profiles:nvidia-smi mig -i [GPU_ID] -cgi [Profile_ID] -C
  3. Verify Instances: Check created instances:nvidia-smi mig -i [GPU_ID] -lgi
  4. Assign Workloads: Use instance UUIDs to assign workloads to specific MIG instances.

Management Commands

Best Practices

Worked Example

Task: Configure a single A100 GPU into three MIG instances: one 3g.20gb and two 1g.5gb profiles.

Solution:

  1. Enable MIG mode:nvidia-smi -i 0 -mig 1
  2. Create the 3g.20gb instance:nvidia-smi mig -i 0 -cgi 19 -C
  3. Create two 1g.5gb instances:nvidia-smi mig -i 0 -cgi 1 -C (run twice)
  4. Verify instances:nvidia-smi mig -i 0 -lgi

For detailed NVIDIA documentation on MIG configuration, visit NVIDIA MIG User Guide.

More in this topic

Related topics:

#NVIDIA #MIG #AI Infrastructure #HPC #GPU Configuration

Ready to test your knowledge?

Put what you've learned into practice with a quick quiz and track your progress.

Test your knowledge →