A MIG slice on an H100, what is it and what is it good for?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
MIG is NVIDIA's hardware partitioning feature that splits an A100 or H100 into up to seven isolated GPU instances, each with guaranteed SMs, memory, and bandwidth.
Imagine you rent a giant warehouse to three small businesses. If you just throw them all inside, they will fight over forklifts and parking spots. Instead, you build solid walls inside the warehouse, run a separate door and parking lot per tenant, and meter the loading dock so each business gets a guaranteed share. Now they cannot starve each other no matter what. MIG does this for a GPU. It builds walls inside the chip, gives each tenant a slice of compute units, a slice of memory, and a slice of bandwidth, so a noisy neighbor cannot eat your performance. The walls are real silicon partitions, not software polite-sharing rules.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: hardware partition vs cooperative sharing + seven-slice cap + dedicated SMs/memory/bandwidth per slice + static configuration + multi-tenant isolation use cases + the no cross-slice NVLink limitation.
| Sharing mode | Isolation | Setup | Best for |
|---|---|---|---|
| MIG | Hardware-enforced (SMs, memory, BW) | Static partition, requires reconfig | Multi-tenant inference, strict SLAs |
| CUDA MPS | Cooperative, no quotas | Runtime, on demand | Many small jobs from one team |
| Time-slicing | None, full context switch | Default behavior | Sequential workloads on idle GPU |
| Full GPU | N/A (sole tenant) | Default | Large models, training, tensor parallelism |
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Thinking MIG is the same as CUDA MPS or time-slicing. MIG is a hardware partition with strict isolation; MPS shares resources cooperatively with no enforced quotas.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.