Continued pretraining teaches a model what to know. Fine-tuning teaches it how to behave. Alignment teaches it which answer is better. Distillation copies all three from a bigger model into a smaller one. Pick the wrong one and you burn GPU-weeks on a problem it can't touch. Here's the decision framework, then a working recipe for each.
Three tricks make a model cheaper to run without making it dumber: store fewer bits per weight, run fewer weights per token, and produce more tokens per pass. Quantization gets you 2–4× smaller and faster, MoE gets you big-model quality at small-model compute, and speculative decoding gets you 2–3× lower latency with identical outputs. Each one has a catch, and this post shows exactly where it bites.
Every multi-GPU strategy is a trade: you split the model to make it fit or go faster, and you pay in communication. Pick the split your interconnect can afford and 8 GPUs behave like one big GPU; pick wrong and they behave like 8 small ones waiting on each other. Then the inference engine decides whether that hardware produces 50 tokens/s or 5,000, by how it batches, pages memory, and picks kernels.
An aligned model is not a safe system, and "the new model is better" is usually noise. Guardrails catch what alignment misses, architecture limits what a prompt-injected agent can do, and paired statistics tell you whether a 1.5-point gain is real. This post covers both halves of shipping: keeping the model in bounds, and proving a change actually helped.
Every post in this series is one stage a single request passes through. This capstone follows one real request, a Thai customer asking about a refund, from keystroke to streamed answer. It names the post that governs each step and the number that matters there, then gives you the framework for when something goes wrong.
The NKP 2.19 AI conformance page proves one thing about DRA: the APIs are served, the NVIDIA driver is running, and an A40 shows up in a ResourceSlice.1 It never schedules a pod through a ResourceClaim. This post picks up where that check stops — every command, manifest, and gotcha you need to actually run GPU workloads through DRA on NKP 2.19.
The first wave of AI agents talked to infrastructure through bespoke wrappers: a Python script that called kubectl, a Lambda that polled CloudWatch, a chat plugin that hard-coded an OpenAPI spec. That worked for demos. It collapsed the moment an agent needed to talk to two systems at once, or get rotated credentials, or appear in a SOC 2 audit.
Model Context Protocol (MCP) is the answer that won, and by 2026 it has the ecosystem to prove it. The Python SDK alone shipped v2.2.0 on 2026-09-07.1 The spec was last revised 2025-06-18 and is now stable enough that AWS Labs, Microsoft, Google, Cloudflare, and Alibaba all ship vendor MCP servers against it.2 OWASP published an MCP-specific Top 10 in 2025 because the attack surface is real enough to warrant one.3
This post is the field guide I wish someone had handed me twelve months ago. It covers the transport choices, the Kubernetes deployment patterns, the cloud-vendor landscape, authentication, security, multi-server gateways, observability, and the operational checklist that turns a working prototype into a production control plane.
One LLM provider is a weekend project. Five providers, two self-hosted inference clusters, three regions, and a per-team budget is a platform. The path between them is an AI gateway — and Envoy is the only data plane with a first-class AI filter shipped upstream. Run it on Kubernetes the way you already run any other gateway, and you get a single control plane for every model call in the company.
LLM inference has two phases with different bottlenecks. Prefill is FLOPs-bound, decode is memory bandwidth-bound. Most production stacks shuffle both through the same GPU pool, which costs you time-to-first-token and tethers decode latency to whoever next requests a long prompt. LLM-D — the CNCF Sandbox project co-founded by Red Hat, Google Cloud, IBM Research, CoreWeave, and NVIDIA — splits those phases onto separate pods, schedules expert parallelism for MoE models, and replaces CPU/GPU autoscaling with EPP-derived signals that actually predict load.
A short PDF cross-references three pieces of 2026 work — Karpathy's autoresearch loop, his AgentHub sketch, and Anthropic's Knowledge Graph Construction Cookbook — and walks through the missing layer that turns single-agent loops into collaborative swarms. It's an independent synthesis, not a Karpathy paper, but the architectural progression is precise and worth taking seriously. The pipeline has six steps, and the step that matters most is the one your loop is currently skipping.