GPU Slicing & Multi-Instance GPU (MIG)
This technology enables the hardware and software partitioning of a powerful GPU (NVIDIA H100 / A100 / RTX 6000) into multiple fully isolated instances, optimizing inference hosting costs.
1. Concept Overview & Systemic Problem
Renting modern server GPUs (NVIDIA H100 or RTX 6000 Ada) incurs significant costs:
- Many specialized services (e.g., a model for generating vector embeddings or a micro-classification model) utilize only 5–10% of the flagship chip's computational power.
- Maintaining an entire GPU worth $35,000 for a lightweight model is a waste of company budget.
- Meanwhile, simply running multiple models on one card via standard Docker creates the risk of a "Noisy Neighbor": a heavy request from one model can consume all VRAM and crash all neighboring services.
GPU Slicing & MIG (Multi-Instance GPU) resolves this contradiction by allowing a single graphical giant to be sliced into several secure, reliable, and cost-effective virtual GPUs.
2. Architectural Taxonomy & Mental Model
┌─────────────────────────────────────────────────────────────┐
│ NVIDIA HARDWARE MIG PARTITION │
├─────────────────────────────────────────────────────────────┤
│ PHYSICAL NVIDIA H100 (80 GB HBM3 / 114 SMs) │
├─────────────────────────────────────────────────────────────┤
│ ┌──────────────────────┐ ┌───────────────────┐ ┌──────────┐ │
│ │ INSTANCE 1: 3g.40gb │ │ INSTANCE 2: 2g.20gb│ │3: 1g.10gb│ │
│ │ • 40 GB VRAM │ │ • 20 GB VRAM │ │• 10 GB │ │
│ │ • 42 SM Cores │ │ • 28 SM Cores │ │• 14 SM │ │
│ │ • Runs 70B Coder LLM │ │ • Runs RAG Model │ │• Embeds │ │
│ └──────────────────────┘ └───────────────────┘ └──────────┘ │
│ • Isolated DMA channels, independent fault isolation │
└─────────────────────────────────────────────────────────────┘
3. Technical Pipeline & Internal Mechanics
01. Configuring MIG Profiles on Ubuntu Server
Activate and slice the GPU with a single command using the NVIDIA utility:
sudo nvidia-smi -i 0 -mig 1
sudo nvidia-smi mig -cgi 9,19,19 -C
The server receives three independent devices /dev/nvidia0, /dev/nvidia1, /dev/nvidia2, which can be passed into three different Docker containers or virtual machines.
02. Utilizing vGPU in Kubernetes Clusters
A cloud provider slices a pool of GPUs into smaller vGPU fractions, allowing developers to request a pod with a limit of nvidia.com/gpu: 0.25, paying only a quarter of the GPU hourly cost.
4. Production Engineering Scenarios
01. Configuring MIG Profiles on Ubuntu Server
Activate and slice the GPU with a single command using the NVIDIA utility:
sudo nvidia-smi -i 0 -mig 1
sudo nvidia-smi mig -cgi 9,19,19 -C
The server receives three independent devices /dev/nvidia0, /dev/nvidia1, /dev/nvidia2, which can be passed into three different Docker containers or virtual machines.
02. Utilizing vGPU in Kubernetes Clusters
A cloud provider slices a pool of GPUs into smaller vGPU fractions, allowing developers to request a pod with a limit of nvidia.com/gpu: 0.25, paying only a quarter of the GPU hourly cost.
03. Deploying Multi-Instance Workloads
Designing workloads that leverage multiple MIG instances can maximize resource utilization. For instance, a single H100 can run a large language model alongside an embedding service and a testing environment, ensuring efficient use of VRAM and compute resources.
5. Pitfalls, Common Mistakes & Security
- Limitations of Consumer GPUs: The hardware MIG technology is only available on enterprise-grade server cards (A100, A30, H100, H200). Consumer-grade GeForce cards (RTX 4090 / 5090) only offer the less reliable software Time-Slicing.
- Inability to Dynamically Resize Without Stopping: Changing MIG profile configurations requires restarting the containers tied to those instances.
FAQ: GPU Slicing & Multi-Instance GPU (MIG)
Related terms
VPS Hosting
A model for providing isolated computing resources via a hardware hypervisor (KVM), offering full root access to a Linux operating system for deploying autonomous systems.
vLLM (High-Performance Inference Engine)
Leading open-source inference engine and LLM servicing framework that revolutionizes throughput with the PagedAttention memory virtualization algorithm and continuous batching.
Hetzner Bare-Metal vs Cloud Hyperscalers
A financial and technical analysis of infrastructure costs: why renting dedicated hardware in European data centers (Hetzner, OVH) is 5–10 times cheaper than AWS/GCP virtual machines for AI workloads.
TensorRT-LLM & SGLang High-Speed Engines
Deeply compiled computational engines for extreme optimization of language model inference on NVIDIA servers, utilizing graph optimization, FlashAttention-3, and advanced routing.
Related Ecosystem Resources
Explore practical workflows, core terminology, and engineering tools
KV-Cache Offloading & Compression
Hardware and algorithmic methods for temporarily offloading Key-Value Cache (KV-Cache) from expensive GPU VRAM to system RAM or fast NVMe SSDs.
cgroups v2 Resource Quotas & OOM Watchdogs
Linux kernel mechanisms (Control Groups v2) for enforcing strict hardware limits on RAM, CPU, disk, and process counts (PIDs) to protect the host from runaway agent cycles.
Subagents and Parallel Execution in Claude Code: Running Multiple Tasks Simultaneously
A comprehensive guide to task parallelization in Claude Code: subagent architecture, shared vs. isolated context, Fan-Out and Swarm patterns, headless CLI orchestration with -p, and token economics.
Hermes Profile: Viral Social Carousel Multi-Agent Pipeline
Multi-agent content pipeline for Hermes: slide storytelling for LinkedIn & Instagram, visual image prompts, attention hooks, and QA checks.
Claude Code cuts background subagent status update costs by 99%
In the CLI version of Claude Code, status updates for background subagents now use Haiku 5.5 based on short notes, reducing limit consumption.
OpenCode claims 30x more DeepSeek usage for the same cost
OpenCode co-founder Dax said the team found a way to significantly improve DeepSeek usage efficiency, turning a $10 spend into what previously cost $300.