junaid.
projectscommunityblogcoursesgithubx
Course overview

1Foundations

  • 1What an LLM Actually Is
  • 2Inside the Machine

2Datasets & Training

  • 3The Data Side of Fine-Tuning
  • 4Curation, Cleaning, and Truth

3Fine-Tuning Methods

  • 5Training Without a Datacenter
  • 6Preference Algorithms, Portable Models, and Your First Real Fine-Tune

4Inference & Optimization

  • 7Why Inference Is Slow (and the Machinery That Fixes It)
  • 8Serving at Scale — Free Speed, Free Throughput, Hard Choices

5Local AI Ecosystem

  • 9The Toolchain — Nine Tools, Properly Placed

6RAG & Memory

  • 10Giving the Model a Library and a Past

7Agents & Workflows

  • 11From Words to Actions
  • 12Workflows, Teams, and the Hardest Tool There Is

8Model Types

  • 13The Model Zoo

9Deployment

  • 14The Five Places Models Live

10Evaluation

  • 15Proving It — Benchmarks, Judges, Stopwatches, and Invoices

11Real-World Building

  • 16The Build Playbooks

12The Career Layer

  • 17Proof of Work — Brand, Projects, Products, and the Door into Silicon Valley
Module 4 · Inference & Optimization

Lesson 8Serving at Scale — Free Speed, Free Throughput, Hard Choices

4 topics · 17 min read · Topics 35–38

Welcome to Lesson 8 — the back half of Module 4, where the physics from Lesson 7 turns into throughput, products, and money. The setup you're carrying in: decode is memory-bound, the GPU's compute sits ~95% idle during single-stream generation, and every token costs one full read of the weights. Today's four topics are four different ways of refusing to waste that.

In this lesson

  1. 35Speculative Decodingcheating the one-token lawThe one-token-per-step law looks unbeatable: token N+1 depends on token N, so generation is inherently sequential. You can't parallelize…4 min
  2. 36Batch Inferencethe free throughputNow the biggest prize hiding in Topic 34's physics. Per decode step, the GPU reads all 4.5 GB of weights to produce one token for one user…4 min
  3. 37Model Servingthe restaurant around the chefA model is a chef; a serving engine is the entire restaurant — host stand, order queue, table management, expo window. Running…4 min
  4. 38Latency vs Quality Tradeoffsthe decision layerFinal topic of the module, and the one that turns physics into product judgment. Every deployment lives inside a three-way tension —…5 min

Start with Topic 35: Speculative Decoding, or browse all 90 topics.

← Lesson 7Why Inference Is Slow (and the Machinery That Fixes It)Lesson 9 →The Toolchain — Nine Tools, Properly Placed
EmailGitHubXYouTubeLinkedInblyn on iOSRSS
built by hand · 2026