Lessons
83 lessons in ai · intermediate · page 3 of 4
- AIintermediate
The two-stage funnel: retrieval then ranking
Every feed has the same impossible job: pick ten items out of millions, in under a tenth of a second. The answer is a funnel. Learn why recommenders split into a cheap retrieval stage and an expensive ranking stage, how two-tower models make retrieval possible, and why nearest-neighbour search is the trick that makes the whole thing fit in a budget.
9 steps·~14 min - AIintermediate
Loop engineering in production: state, errors, and budgets
Once an agent loop runs past a few iterations the failure surface shifts: state bloats, tool calls fail in three distinct ways, retries multiply if you stack them wrong, and unbounded budgets rack up four-figure bills overnight. The state, errors, and budgets you need to make the loop survive contact with reality.
8 steps·~12 min - AIintermediate
LLM Observability with OpenTelemetry: GenAI Semantic Conventions
Master the OTel GenAI semantic conventions — gen_ai.* attributes, span structure for prompts/completions/tools, sampling strategies, and cost attribution — and understand why standardizing across LangSmith, Phoenix, Datadog, and Grafana matters for production AI systems.
13 steps·~20 min - AIintermediate
RAG Evaluation in Production: Metrics, Tools, and Cadence
Learn how to systematically evaluate Retrieval-Augmented Generation systems in production using RAGAS, TruLens, and Phoenix — covering golden sets, retrieval drift, embedding drift, and cost-aware eval scheduling.
12 steps·~18 min - AIintermediate
Evaluating AI Agents: From Final Answers to Full Trajectories
A rigorous look at how to measure agent performance — trajectory-level vs final-answer evals, canonical multi-step benchmarks (SWE-bench, WebArena, OSWorld, GAIA), LLM-as-judge pitfalls, and why your eval is your spec.
12 steps·~18 min - AIintermediate
LLM Inference Internals: KV Cache, Sampling, and Serving at Scale
A deep dive into how large language models actually run in production — why prefill is fast and decode is slow, how the KV cache works, sampling strategies like temperature and top-p, speculative decoding, and continuous batching with vLLM.
12 steps·~18 min - AIintermediate
LLM Post-Training: SFT, RLHF, DPO, and Modern Alignment Recipes
A deep dive into how raw pretrained language models become helpful assistants — from supervised fine-tuning on curated demonstrations, through reward modeling and PPO-based RLHF, to modern direct alignment methods like DPO and the recipes used in Llama 3, Llama 4, and DeepSeek.
12 steps·~18 min - AIintermediate
LLM Scaling Laws: From Kaplan to Chinchilla and Beyond
How two landmark papers — Kaplan et al. 2020 and DeepMind's Chinchilla 2022 — rewrote our understanding of compute-optimal training, why the industry now deliberately overtrains models, and how inference costs flip the math entirely.
12 steps·~18 min - AIintermediate
Modern LLM Architectures: From Decoder-Only to Mixture-of-Experts
A deep tour of the architectural choices powering today's large language models — decoder-only Transformers, encoder-decoder designs, grouped-query attention, RoPE positional embeddings, and mixture-of-experts routing — with concrete numbers and trade-offs.
12 steps·~18 min - AIintermediate
LLM Pretraining: Data, Loss, and What Actually Happens
A deep dive into how large language models learn from raw text: the next-token prediction objective, cross-entropy loss, the messy reality of web data curation (Common Crawl, dedup, quality filters), and the lineage from The Pile to FineWeb.
12 steps·~18 min - AIintermediate
LLM Tokenization in Depth: BPE, Byte-Level BPE, and SentencePiece
A rigorous tour of how modern LLMs split text into tokens — covering byte-pair encoding, GPT-2/Llama's byte-level variant, SentencePiece, vocabulary design trade-offs, and why your tokenizer silently determines multilingual fairness, code quality, and arithmetic ability.
12 steps·~18 min - AIintermediate
Training: Optimization and Regularization
Go from a raw neural network to one that actually generalizes. Covers loss functions (MSE, cross-entropy), gradient descent variants (SGD, momentum, Adam), learning-rate effects, overfitting vs underfitting, and the regularization toolkit (L2/dropout/early stopping/batch norm).
9 steps·~14 min - AIintermediate
Neural Networks and Backpropagation
Build intuition for how artificial neurons stack into layers, why nonlinear activations are non-negotiable, and how the chain rule turns a forward pass into exact gradients — illustrated with a tiny numpy forward+backward walk-through.
10 steps·~15 min - AIintermediate
Convolutional Neural Networks
Understand why fully-connected layers fail at image scale, then build up the CNN toolkit: convolutions, kernels, stride, padding, feature maps, pooling, and parameter sharing. Finish with the ResNet residual connection idea that unlocked networks of 100+ layers.
9 steps·~14 min - AIintermediate
Attention and Transformers
From the limits of RNNs to the self-attention mechanism that replaced them. Learn how queries, keys, and values implement scaled dot-product attention, why multi-head attention captures richer structure, how positional encodings inject order, and how all of this assembles into a transformer block.
9 steps·~14 min - AIintermediate
Native 3D Generative Models: MeshGPT, Trellis, Hunyuan3D
The shift from 2D-lifting to native 3D generation. Autoregressive mesh transformers (MeshGPT, MeshAnything) and flow-matching latent models (Trellis, Hunyuan3D-2, TripoSG). Architectures, tokenization, conditioning, and which ones are actually usable in 2026.
10 steps·~15 min - AIintermediate
From AI Mesh to Production-Ready Asset
What it takes to ship a generated mesh into a real game, AR app, or animation: topology cleanup, retopology, LODs, auto-rigging, and the 2026 platform landscape across Meshy, Tripo, Rodin, CSM and others.
10 steps·~15 min - AIintermediate
How Image- and Text-to-3D Actually Works in 2026
The end-to-end production pipeline behind Meshy, Tripo, Rodin, and the open-source SOTA: multi-view diffusion, feed-forward reconstruction, mesh extraction, and the failure modes that still bite. Names the models, not just the concepts.
10 steps·~15 min - AIintermediate
AI Texturing and PBR for Generated Meshes
How modern 3D generation paints a mesh after it's built. UV unwrapping, multi-view diffusion for texture, view-consistency, PBR map decomposition, and the workflow Meshy and Tripo expose to users in 2026.
10 steps·~15 min - AIintermediate
The 3D Representation Zoo: Meshes, NeRFs, Gaussians, SDFs
A working map of the 3D representations that matter in 2026 — meshes, point clouds, voxels, SDFs, NeRFs, and 3D Gaussian Splatting. What each one is, when each wins, and why mesh output still anchors production pipelines.
10 steps·~15 min - AIintermediate
Interpreting LLM Benchmarks: What MMLU, GPQA, and SWE-bench Actually Measure
A field guide to the LLM benchmarks practitioners cite in 2026 — what each one measures, where it's saturated, where contamination risk is high, and why benchmark gains rarely transfer to your task without your own eval.
10 steps·~15 min - AIintermediate
LLM Pricing and Latency: What Actually Drives Cost
How frontier LLM costs and latency actually work in 2026 — input vs output token asymmetry, prompt caching, batch API discounts, TTFT and tokens-per-second, reasoning-model amplification, and when self-hosting breaks even.
10 steps·~15 min - AIintermediate
Choosing the Right LLM for Your Use Case
A practical decision framework for picking an LLM in 2026 — define the task, build an offline eval, measure quality + latency + cost on real candidates, and avoid the classic trap of optimizing for benchmarks instead of your task.
10 steps·~15 min - AIintermediate
Open Weights vs Closed APIs: The Real Tradeoffs
An honest look at the open-weights vs closed-API choice for LLMs in 2026 — covering data privacy, cost at scale, fine-tuning, latency, regulatory concerns, and the gap in raw capability per dollar.
10 steps·~15 min

