# KodeKloud: Courses AI Infrastructure: LLM-D, vLLM and GPUs ## AI Infrastructure: LLM-D, vLLM and GPUs ### An Introduction to AI Infrastructure - [Course: AI Infrastructure: LLM-D, vLLM and GPUs](https://notes.kodekloud.com/docs/AI-Infrastructure-LLM-D-vLLM-and-GPUs/index.md): Overview of AI infrastructure covering GPUs, model servers, caching, model parallelism, and orchestration for designing and operating scalable, low-latency AI systems. - [An Introduction to AI Infrastructure](https://notes.kodekloud.com/docs/AI-Infrastructure-LLM-D-vLLM-and-GPUs/An-Introduction-to-AI-Infrastructure/An-Introduction-to-AI-Infrastructure/page.md): Overview of AI infrastructure covering GPUs, model servers, caching, model parallelism, and orchestration for designing and operating scalable, low-latency AI systems. ### From a GPU to a Model Server - [From a GPU to a Model Server](https://notes.kodekloud.com/docs/AI-Infrastructure-LLM-D-vLLM-and-GPUs/From-a-GPU-to-a-Model-Server/From-a-GPU-to-a-Model-Server/page.md): Explains how large language models work, hardware needs like GPUs and VRAM, and deploying models with servers and tools for production inference - [A Closer Look at the Model Server](https://notes.kodekloud.com/docs/AI-Infrastructure-LLM-D-vLLM-and-GPUs/From-a-GPU-to-a-Model-Server/A-Closer-Look-at-the-Model-Server/page.md): Explains how vLLM serves LLMs, covering startup and model loading, OpenAI-compatible API, GPU memory tradeoffs, and inference optimizations like KV caching, batching, and token loop ### What Happens When You Interact with LLM - [How a Model Writes Text](https://notes.kodekloud.com/docs/AI-Infrastructure-LLM-D-vLLM-and-GPUs/What-Happens-When-You-Interact-with-LLM/How-a-Model-Writes-Text/page.md): Explains how large language models generate text token by token, detailing tokenization, prefill and streaming phases, KV caching, and implications for cost, latency, and prompt design. - [The Pause and the Stream](https://notes.kodekloud.com/docs/AI-Infrastructure-LLM-D-vLLM-and-GPUs/What-Happens-When-You-Interact-with-LLM/The-Pause-and-the-Stream/page.md): Describes LLM latency phases, prefill initial pause from prompt processing, and decode streaming limited by VRAM bandwidth, plus optimization strategies. - [The Models Scratchpad](https://notes.kodekloud.com/docs/AI-Infrastructure-LLM-D-vLLM-and-GPUs/What-Happens-When-You-Interact-with-LLM/The-Models-Scratchpad/page.md): Explains how LLMs use KV cache and prefix caching to avoid repeated compute, enabling streaming and reducing latency and cost across multi-turn chats ### Why Serving Gets Hard - [One GPU Many Users](https://notes.kodekloud.com/docs/AI-Infrastructure-LLM-D-vLLM-and-GPUs/Why-Serving-Gets-Hard/One-GPU-Many-Users/page.md): Explains how batching and KV cache memory limits enable a single GPU to serve many users, and strategies to overcome memory bottlenecks - [Serving the Giants](https://notes.kodekloud.com/docs/AI-Infrastructure-LLM-D-vLLM-and-GPUs/Why-Serving-Gets-Hard/Serving-the-Giants/page.md): Explains how large language models are sharded across GPUs using pipeline and tensor parallelism, choosing strategies based on interconnect bandwidth and latency. - [Why Load Balancing Breaks](https://notes.kodekloud.com/docs/AI-Infrastructure-LLM-D-vLLM-and-GPUs/Why-Serving-Gets-Hard/Why-Load-Balancing-Breaks/page.md): Explains why traditional load balancers fail for LLM serving due to KV-cache state and variable request costs, urging cache- and load-aware routing and scheduling ### Meet llm-d - [Meet llm d](https://notes.kodekloud.com/docs/AI-Infrastructure-LLM-D-vLLM-and-GPUs/Meet-llm-d/Meet-llm-d/page.md): llm-d is an intelligent router that optimizes LLM inference by routing saved work, balancing real-time load, and separating prefill and decode to improve GPU utilization, latency, and throughput. - [Putting It to Work](https://notes.kodekloud.com/docs/AI-Infrastructure-LLM-D-vLLM-and-GPUs/Meet-llm-d/Putting-It-to-Work/page.md): Guidance on tuning and deploying LLM infrastructure with preconfigured well-lit paths for baseline setups, prefill versus decode pools, and multi-GPU model sharding. - [Inside the Cluster](https://notes.kodekloud.com/docs/AI-Infrastructure-LLM-D-vLLM-and-GPUs/Meet-llm-d/Inside-the-Cluster/page.md): Describes how llm-d runs vLLM model servers on Kubernetes via Helm, using prefill and decode pools, an inference gateway and scheduler, and coordinated sharded LeaderWorkerSets - [Your Next Move](https://notes.kodekloud.com/docs/AI-Infrastructure-LLM-D-vLLM-and-GPUs/Meet-llm-d/Your-Next-Move/page.md): Advises sysadmins and SREs to transition into AI infrastructure, focusing on GPUs, model servers, orchestration, autoscaling, monitoring, and cost-performance optimization for production LLMs - [Try the vLLM Lab](https://notes.kodekloud.com/docs/AI-Infrastructure-LLM-D-vLLM-and-GPUs/Meet-llm-d/Try-the-vLLM-Lab/page.md): Guide to converting a single-request vLLM server into a production-like multi-user setup with configuration, troubleshooting, and performance tuning tips