Model Serving & Inference Infrastructure
Overview
This document is the entry point for the Model Serving & Inference Infrastructure category, which covers deploying and serving LLMs on GPUs and accelerators. It explains how LLM inference operates at the infrastructure level across the entire request path and organizes what can be tuned at each layer into a single map. The intended audience is platform engineers who design and operate inference platforms on EKS.
Inference optimization is achieved not by a single technology but by a combination of multiple layers. From GPU node placement to serving engine memory management, distributed topology, in-cluster routing, gateway policies, and cache layers — each stage has its own tuning levers. This document serves as a map that organizes and connects those levers layer by layer, with detailed content for each topic linked to dedicated deep-dive documents. The body focuses on concepts and relationships, while implementation and deployment procedures are covered in the linked documents.
Category Structure
- Accelerated Computing Infrastructure Layer: The layer that manages GPU and AWS custom accelerator (Trainium/Inferentia) instances, drivers, schedulers, and partitioning on top of Kubernetes. Determines which nodes get accelerator allocation and how.
- Inference Framework Layer: The AI framework layer that actually serves models, performs distributed inference, and fine-tunes on the secured GPUs. vLLM, llm-d, MoE, and NeMo belong here.
- Inference Optimization & Routing Layer: The layer that optimizes performance and cost through KV cache, Disaggregated Serving, LMCache, cache-hit strategy, and gateway routing.
After grasping the full picture with the map below, reading in the order Accelerated Computing Infrastructure → Inference Frameworks → Inference Optimization & Routing is natural. First decide "which nodes, partitioning, and driver stack to use" in Accelerated Computing Infrastructure, then cover "how to deploy vLLM and llm-d on top of that" in Inference Frameworks, and finally "how to optimize performance/cost and route traffic" in Inference Optimization & Routing.
End-to-End Path of an Inference Request
An LLM inference request passes through multiple layers from the client to GPU computation. Each layer has a different responsibility, and which decisions are made at which layer changes latency, throughput, and cost.
Each layer's role is as follows.
- L4 Gateway: Handles external traffic ingress (Tier 1) and model abstraction, Cascade, and caching (Tier 2 ②).
- L3 Inference Routing: For self-hosted models, decides which Pod to send a request to, considering KV cache and load.
- L2·L1 Serving/Distribution: The layer that actually generates tokens — handles prefill/decode processing and KV cache management.
- L0 GPU/Accelerator: The physical layer where computation runs — covers node selection, partitioning, and the driver stack.