Self-hosted LLM serving behaves differently from a normal web service, and capacity planning that treats a GPU like a fast CPU goes wrong quickly. A request has two phases. Prefill processes the whole prompt at once and is limited by compute; long prompts, such as retrieval results or chat history, make it slow. Decode generates the answer one token at a time and is limited by memory bandwidth. Between them sits the KV cache, which stores attention state for every active request in GPU memory, and it is usually what caps how many requests a GPU can serve concurrently.
The levers follow from that. Continuous batching, used by vLLM and similar engines, fills the GPU with many requests at different stages. Quantization to FP8 or 4-bit formats such as AWQ or GPTQ shrinks the model and frees memory for the cache, at some quality cost that must be evaluated. Prefix caching reuses work when many requests share a long system prompt. Tensor parallelism spreads a model too large for one GPU across several in one node. We benchmark your real prompt and output lengths, because published throughput figures rarely match a specific workload.
Sharing GPUs between workloads
Many inference and development workloads do not need a whole GPU, and giving each one a full device wastes the most expensive part of the cluster. The main options, each supported through the NVIDIA GPU Operator:
| Option | Isolation | Best for | Limits |
| Whole GPU | Full | Large models, training, latency-critical serving | Idle capacity when the workload is small or bursty |
| MIG (Multi-Instance GPU) | Hardware-level memory and compute partitions | Several small production models with predictable performance | Only on supported data center GPUs; fixed partition profiles |
| Time-slicing | None; workloads take turns and share memory | Development, notebooks, light or bursty inference | One workload can exhaust memory or slow the others |
| MPS (Multi-Process Service) | Partial; concurrent kernels with configurable limits | Many small concurrent processes that each underuse the GPU | Weaker fault isolation than MIG |
Dynamic Resource Allocation, covered above, is steadily becoming the standard way to request these shares by attribute rather than through fixed device names.
Autoscaling on the right signals
CPU utilization says little about an inference server. A GPU can be saturated while CPU is idle, and GPU utilization itself can read high while there is still room in the batch. Better scaling signals are requests waiting in the queue, requests in flight per replica, KV cache usage and time to first token, all exposed as metrics by serving engines such as vLLM. KEDA or the Horizontal Pod Autoscaler with custom metrics scales on these.
Scaling GPUs has a slow step: a new node must be provisioned, drivers loaded, the image pulled and the model weights read into memory. For large models this can take long enough to matter. We shorten it by keeping weights in fast object storage or a shared volume rather than baking them into images, using image streaming or pre-pulled images on GPU node pools, keeping a small warm minimum for latency-sensitive services, and accepting scale to zero only for workloads that tolerate a cold start.
Queuing batch and training jobs
Training, fine-tuning, evaluation runs and batch inference compete for the same scarce GPUs. Without a queue, jobs either fail when capacity is missing or teams hold nodes idle just in case. Kueue, a Kubernetes SIG project, adds job queuing, quotas per team, fair sharing and borrowing of unused quota, and admits a job only when its full resource request can be met, which prevents half-started distributed jobs from holding GPUs. For multi-node inference of very large models, LeaderWorkerSet manages a group of pods as one unit.
Cloud capacity planning belongs here too. On-demand GPUs are not always available in the region you need. Options include reservations, capacity blocks or scheduled capacity products offered by the providers, spot capacity for interruptible jobs with checkpointing, and spreading across zones. We check current availability of specific GPU types in India regions before committing a design.
Model-aware routing in front of the servers
A plain load balancer sends requests round robin, unaware that one replica has a full cache and another is idle, or that a request needs a specific fine-tuned adapter. The Gateway API Inference Extension, a Kubernetes SIG project, adds routing based on model name, serving queue length and cache state, built on standard Gateway API implementations. An LLM gateway layer in front of both self-hosted and API-based models adds authentication, per-team quotas, fallback between models and token accounting, so applications call one endpoint whether the model runs on your GPUs or a provider's.
Operating the GPU estate
GPU nodes need routine work of their own: driver and CUDA version alignment with your serving images, GPU Operator upgrades tested on a non-production pool first, health checks for failing devices through DCGM, and node pool images kept current. Utilization and cost per team come from DCGM metrics joined with allocation data; our GPU Kubernetes Blueprint packages this setup, and the GPU inference on Kubernetes reference architecture shows the full layout. For model evaluation and governance on the application side, see Custom AI Development, and for GPU and token spend, Cloud Cost Optimization & FinOps.