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

Multi-Instance GPU (MIG) Configuration for AI and HPC: Worked Example The Multi-Instance GPU (MIG) capability enables partitioning of a single NVIDIA...

Multi-Instance GPU (MIG) Configuration for AI and HPC: Worked Example

The Multi-Instance GPU (MIG) capability enables partitioning of a single NVIDIA A100 or later GPU into multiple isolated GPU instances. This feature is critical for optimizing resource utilization in AI and High Performance Computing (HPC) environments by allowing concurrent workloads to run independently on separate GPU instances.

Scenario Overview

Consider a data center deploying an NVIDIA A100 GPU to serve multiple AI training jobs and HPC simulations simultaneously. The goal is to configure the GPU using MIG to create isolated instances that meet the resource requirements of each workload, maximizing throughput and minimizing contention.

Step 1: Verify GPU Compatibility and Prerequisites

Step 2: Enable MIG Mode on the GPU

Before configuring MIG instances, the GPU must be switched to MIG mode:

Step 3: Determine MIG Instance Profiles

MIG supports different instance profiles, each allocating a specific fraction of GPU resources (compute units, memory, bandwidth). For example:

Assess workload requirements:

Step 4: Create MIG Instances

Use nvidia-smi to create instances:

Worked Example

Command:

Explanation: The -cgi flag specifies the GPU instance profile ID, which can be found from nvidia-smi mig -lgip. The -C flag commits the creation.

Step 5: Verify MIG Instances

Check the created instances:

Step 6: Assign Workloads to MIG Instances

Each MIG instance appears as a separate GPU device to the operating system and container runtimes. Assign AI and HPC workloads to the corresponding MIG device IDs to ensure isolation.

Step 7: Monitor and Manage MIG Instances

Use nvidia-smi and NVML APIs to monitor utilization, memory usage, and health of each MIG instance. Adjust instance configurations as workload demands evolve.

Summary

This worked example demonstrates the step-by-step process to configure Multi-Instance GPU (MIG) on an NVIDIA A100 GPU for concurrent AI and HPC workloads. Proper MIG configuration enables efficient resource sharing and workload isolation, essential for scalable AI infrastructure deployments.

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 →