A MIG slice on an H100, what is it and what is it good for?
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.
Detailed answer & concept explanation~6 min readEverything 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. 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.
- AWS, Google Cloud, and Azure all expose MIG-partitioned A100 and H100 instances as smaller, cheaper GPU SKUs (e.g., AWS g6e with a MIG-sliced H100).
- Hugging Face Inference Endpoints uses MIG to serve many small models on shared H100s with strict per-customer isolation.
- RunPod, Lambda, and other GPU clouds offer 'fractional GPU' tiers that are typically MIG slices of an A100 or H100.
- Internal ML platforms at large companies use MIG to give every data scientist a guaranteed quarter-GPU dev environment on shared H100 fleets.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy is MIG limited to seven slices on an A100 or H100?
QIf I split an H100 into seven 1-slice instances, do I get one-seventh of the compute and bandwidth per slice?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
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.
Same topic, related formats. Practice these next.