Configure Multi-Instance GPU (MIG): Worked Example — Administration (NVIDIA-Certified Professional: AI Operations)

Configuring Multi-Instance GPU (MIG): A Worked Example for NVIDIA-Certified Professional: AI Operations Multi-Instance GPU (MIG) technology enables...

Configuring Multi-Instance GPU (MIG): A Worked Example for NVIDIA-Certified Professional: AI Operations

Multi-Instance GPU (MIG) technology enables partitioning a single NVIDIA A100 or later GPU into multiple isolated instances, each with dedicated resources. This capability is essential for optimizing GPU utilization in AI workloads, allowing multiple users or processes to share a GPU securely and efficiently.

Scenario Overview

Imagine you are an AI Operations engineer tasked with configuring MIG on an NVIDIA A100 GPU within a Slurm cluster environment to support multiple concurrent AI training jobs. The goal is to partition the GPU into four equal instances, each isolated and ready for deployment in Kubernetes pods.

Step 1: Verify GPU and Driver Compatibility

Command

nvidia-smi

Expected Output

Displays GPU model, driver version, and current MIG mode status.

Step 2: Enable MIG Mode on the GPU

MIG mode must be enabled to partition the GPU. This requires the GPU to be in a clean state with no active processes.

Commands

sudo nvidia-smi -i 0 -mig 1nvidia-smi

Step 3: Create MIG Instances

Decide the profile for each MIG instance. For four equal partitions, use the 1g.5gb profile, which allocates one GPU instance with 5GB memory.

Commands

sudo nvidia-smi mig -cgi 19,19,19,19 -i 0nvidia-smi mig -lgi -i 0

Step 4: Assign MIG Instances to Kubernetes Pods

Each MIG instance appears as a separate GPU device, which Kubernetes can schedule independently.

Pod Spec Snippet

resources: limits: nvidia.com/mig-1g.5gb: 1

Step 5: Monitor and Troubleshoot

Summary

This worked example demonstrated configuring Multi-Instance GPU (MIG) on an NVIDIA A100 GPU by enabling MIG mode, creating four equal GPU instances, and preparing them for Kubernetes deployment. Mastery of these steps is critical for AI Operations professionals managing NVIDIA AI infrastructure to optimize resource utilization and workload isolation.

For further details, refer to the official NVIDIA MIG documentation: NVIDIA MIG User Guide.

More in this topic

Related topics:

#NVIDIA #MIG #Multi-Instance GPU #AI Operations #GPU Administration

Ready to test your knowledge?

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

Test your knowledge →