What is GPU sharing?
GPU sharing is the family of methods letting several models, workloads or tenants use one physical GPU; hardware partitioning, multi-process concurrent sharing and time slicing are the main approaches.
They differ in isolation: hardware partitioning gives each slice dedicated compute and memory for the strongest isolation, while multi-process sharing and time slicing are more flexible but workloads can affect each other's performance. Multi-tenant inference is one use.
- Topic
- Infrastructure and runtime
- Also known as
- GPU partitioning
How GPU sharing works
- Measure each workload's memory, compute and latency needs.
- Where strong isolation is needed, partition the GPU into separate hardware instances.
- Where flexibility is needed, run several processes concurrently or in time slices.
- Monitor each workload's latency and resource use and adjust sharing accordingly.
In more detail
Hardware support limits and choosing a method
Hardware partitioning (such as NVIDIA MIG or AMD Instinct spatial/compute partitioning) divides compute units, caches and memory bandwidth into dedicated slices, but is supported only on specific data centre GPUs and uses fixed slice profiles. Where MIG is unavailable, such as on L40S or workstation GPUs or when workloads fluctuate unpredictably, teams use MPS with active-thread/memory limits, Kubernetes GPU time-slicing or hypervisor-based vGPU/SR-IOV.
Kubernetes DRA and multi-LoRA serving
In modern Kubernetes clusters (including Kubernetes Dynamic Resource Allocation / DRA, GA in 2025), operators expose partitioned MIG profiles or time-sliced fractional GPUs directly to pods. However, static MIG profiles can still leave VRAM stranded when multiple small LLM variants or LoRA adapters are deployed; in such cases, serving multiple adapters inside one engine (Multi-LoRA serving) often outperforms process-level GPU sharing.
Fault domains, out-of-memory risk and noisy neighbours
When sharing a GPU via MPS or time-slicing, failure domains and noisy-neighbour effects must be actively bounded. A fatal CUDA exception in one process can bring down all co-located MPS clients and uncapped memory allocation causes sudden Out-Of-Memory crashes across workloads unless per-process memory limits and QoS thread caps are enforced.
Commonly confused terms
| Term | How it differs |
|---|---|
| MPS versus vGPU and SR-IOV | MPS (Multi-Process Service) multiplexes CUDA kernels from multiple processes concurrently within a shared GPU context/fault domain to raise utilisation; vGPU/SR-IOV provides hypervisor-level virtualised GPU slices across separate virtual machines with stronger tenant separation. |
Why GPU sharing matters for on-premises AI
A GPU maker's multi-instance guide explains supported GPUs can be partitioned into multiple isolated instances, each with dedicated compute and memory, enabling efficient use across users or workloads with guaranteed performance. The same maker's multi-process service documentation describes multiplexing clients onto the GPU through a client and server architecture, with active thread limits and concurrent kernel execution. A study of memory management in language model serving shows the key-value cache is large and dynamic, with waste limiting batch size when poorly managed.
A public body splits one large GPU into separate instances for document classification, embedding generation and a test environment; one unit's workload does not affect another's latency.
Common questions
Is GPU sharing secure?
It depends on isolation. For different tenants or sensitive data prefer hardware partitioning; time slicing gives no memory or fault isolation.
Do large language models suit GPU sharing?
Sharing is limited when a model uses most of the GPU's memory. It suits smaller models, embedding models and test environments better.
Related terms
Sources
- NVIDIA, Multi-Instance GPU User Guide
- NVIDIA, Multi-Process Service documentation
- Kwon et al., Efficient Memory Management for Large Language Model Serving with PagedAttention, 2023
In the glossary: Glossary, D to L