GPU partitioning

Also known as: Multi-Instance GPU · MIG

On this page 7

GPU partitioning is the practice of dividing one physical graphics processing unit into several smaller logical GPUs, each assigned to a different workload, user or container. In AI infrastructure it raises GPU utilization for jobs that cannot fill a modern accelerator on their own, such as small-model inference, notebooks and development work.

The term covers a spectrum from hardware-isolated partitions, best known as NVIDIA Multi-Instance GPU (MIG), to software techniques such as time-slicing and shared process servers. The methods differ in how strictly they isolate memory, compute and faults, and that difference decides where each one is safe to use.

How GPU partitioning divides an accelerator

GPU partitioning works by assigning a subset of the GPU’s resources to each tenant, either by physically carving up the hardware or by multiplexing it in time. A data center GPU contains streaming multiprocessors, memory controllers, L2 cache slices and high-bandwidth memory. Hardware partitioning splits these units along fixed boundaries, while software sharing lets every tenant see the whole device but take turns or share it concurrently.

With MIG, an administrator first creates GPU instances, each owning a fixed share of memory, cache and memory bandwidth, and then creates one or more compute instances inside them. Each instance appears to software as a separate device with its own memory address space and error isolation, so a crash or memory fault in one partition does not affect the others.

MethodIsolation levelHow resources are shared
Multi-Instance GPUHardware memory, cache and fault isolationFixed slices of SMs and memory
Time-slicingNone for memory, context switching for computeTenants take turns on the whole GPU
Multi-Process ServiceLimited, shared address space risksKernels from several processes run concurrently
Virtual GPU (vGPU)Hypervisor-level, per virtual machineTime-shared or MIG-backed slices for VMs
Vendor compute partitioningVaries by accelerator familySplits chiplets or compute dies into logical devices
Main GPU partitioning and sharing methods

MIG profiles and partition sizes

MIG divides a supported GPU into up to seven compute slices and a matching number of memory slices, and administrators combine them into named profiles. A profile name such as 1g.10gb states the number of compute slices and the memory assigned. Not every combination is valid, because partitions must fit the hardware’s placement rules.

The table below shows typical profiles on an 80 GB data center GPU of the Hopper generation. Exact profiles depend on the model and memory size, so operators confirm them with the vendor tooling before planning capacity.

ProfileCompute shareMemoryMaximum instances
1g.10gbOne seventhAbout 10 GB7
2g.20gbTwo seventhsAbout 20 GB3
3g.40gbThree seventhsAbout 40 GB2
4g.40gbFour seventhsAbout 40 GB1
7g.80gbFull GPUAbout 80 GB1
Typical MIG profiles on an 80 GB GPU

Mixed layouts are possible, for example one 3g.40gb partition alongside several 1g.10gb partitions. Changing the layout usually requires that no processes run on the GPU, so partition plans are set during maintenance windows or by an automated node agent rather than on demand.

Choosing a partitioning method for AI workloads

The right method depends on how much isolation the workloads need and how bursty their demand is. Hardware partitions give predictable latency and are the safer choice for multi-tenant inference, while time-slicing suits trusted, intermittent development work where occasional slowdowns are acceptable.

SituationRecommended approachReason
Several small models in productionMIG partitionsGuaranteed memory and stable latency
Interactive notebooks for one teamTime-slicingBursty use, low isolation needs
Cooperative processes of one applicationMulti-Process ServiceConcurrent kernels with low overhead
Virtual desktops or VM tenantsvGPUHypervisor-managed isolation
Large model trainingNo partitioningJob needs the whole GPU and interconnect
Decision guide for GPU sharing

In Kubernetes, the GPU device plugin exposes partitions as schedulable resources such as nvidia.com/mig-1g.10gb, and a GPU operator can apply partition layouts per node. This connects partitioning directly to GPU scheduling and cluster capacity planning.

Effects on performance and utilization

Partitioning improves aggregate throughput when individual jobs leave most of the GPU idle, but it never makes a single job faster. A small embedding model that uses 15 percent of a full GPU may serve nearly as fast from a 1g slice, while freeing the remaining slices for other models. A large language model that needs high memory bandwidth for its decode phase will slow down on a small slice.

Hardware partitions also remove noisy-neighbor effects in memory bandwidth and cache, which stabilizes tail latency such as time to first token. Time-slicing, by contrast, adds context-switch overhead and lets one tenant exhaust memory for everyone, which can cause out-of-memory failures in unrelated jobs.

Limitations and common mistakes

GPU partitioning has fixed granularity and operational overhead that teams often underestimate. The most frequent problems are listed below.

  • Fragmentation: leftover slices that match no pending job stay idle, so layouts must reflect the real workload mix.
  • Lost peer-to-peer features: partitions typically cannot use multi-GPU interconnect links, which rules them out for tensor parallelism.
  • Assuming time-slicing isolates memory: it does not, and one tenant can crash others.
  • Static layouts for changing demand: inference traffic shifts during the day, and rigid partitions waste capacity at off-peak hours.
  • Monitoring gaps: utilization metrics must be collected per partition, or a full slice can hide behind a low device-level average.

A practical safeguard is to review partition layouts against measured demand every few weeks. Operators compare the memory footprint and request rate of each deployed model with the slice it occupies, then merge or split partitions accordingly. Teams that skip this review often end up with idle small slices and starved large jobs on the same node, which defeats the purpose of partitioning and inflates the effective cost per token.

In everyday language

A modern AI chip is very powerful. Many small jobs use only a small part of it. GPU partitioning splits one chip into several smaller chips that work side by side.

Think of a large office floor divided into separate rooms with walls and doors. Each team gets its own room, and noise does not travel between them. Strict partitioning works like those walls. Looser sharing is more like an open office, where everyone takes turns at the desks. The walls cost flexibility but give each team peace and predictability.

Seen in the real world

A university research computing center runs a cluster of 80 GB data center GPUs. Students launch notebooks and small fine-tuning jobs that rarely use more than 10 GB of memory, yet each job had been reserving a whole GPU. Average utilization across the cluster sat below 20 percent, and queues were long.

The operations team reserves half of the nodes for large training jobs and configures the other half with seven `1g.10gb` MIG partitions per GPU. The Kubernetes scheduler now places notebooks on partitions instead of full devices. Within a month, the partitioned nodes serve about six times as many concurrent users, queue times for small jobs drop from hours to minutes, and researchers who need a full GPU for training still get one on the unpartitioned nodes.