Skip to content

AI

LLM Field Guide 09 — Making It Smaller and Faster: Quantization, Mixture of Experts, and Speculative Decoding

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.

LLM Field Guide 10 — Serving at Scale: Multi-GPU Parallelism and Inference Engines

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.

LLM Field Guide 12 — Putting It All Together

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.

MCP Servers in Production: Patterns for Connecting AI Agents to Kubernetes and Cloud APIs

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.

Self-Host an AI Gateway on Kubernetes: Routing, Caching, and Cost Control with Envoy

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.

Disaggregated LLM Inference on Kubernetes with LLM-D: Prefill/Decode Split, Expert Parallelism, and Real Autoscaling

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.

Graph Engineering: From Karpathy's Loops to Shared Knowledge Graphs

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.