Pidoku
27Reasoning, Agents and RL Workloads
On this page

Reasoning, Agents and RL Workloads

Module 278 lessons~7h 45m

Lessons, in order

27.a Test-Time Compute: The Economics of Reasoning TokensA reasoning model answers a hard question by first writing a long chain of thought, then a short answer. The chain may be 1,000 tokens or 50,000. Nothing about the model changed between the … 1h 27.b Agent Workloads: Multi-Turn Sessions and KV ReuseAn agent does not send one request. It sends a chain of them, and each one contains everything that came before: 1h 27.c Tool Calls and Structured Output at ScaleLessons 18.e and 18.i show how vLLM turns tool definitions into prompt text, parses calls out of the output, and constrains output with a grammar. This lesson is about what changes when that … 50 min 27.d Serving RL RolloutsThe rollout stage is an inference workload, served by vLLM or SGLang inside the RL framework. It is often the largest part of an RL step for reasoning models, because each rollout may be … 1h 27.e Weight Sync and On/Off-PolicyEvery RL step ends with new weights on the trainer. The rollout engines (27.d) must start using them. Two questions follow: 1h 27.f Batch and Offline InferenceWithout a latency SLO, the engine can run at the batch size that maximises throughput instead of the one that keeps inter-token latency low (2.d). The same GPU produces several times more … 50 min 27.g Long-Running and Async JobsThe serving stack has to turn these into jobs: submitted, tracked, resumable after a failure, cancellable, and billed. The building blocks exist at every layer: 50 min 27.h Designing for Agents End to EndThe earlier lessons each tuned one part of agent serving: how much to think (27.a), how to keep a session's KV warm (27.b), how to make tool calls reliable (27.c), and how to run work that … 1h 15m

About this module

The workloads that now dominate inference demand: reasoning models that think for thousands of tokens, agents that call a model dozens of times per task, reinforcement-learning rollouts that turn inference engines into part of training, and batch and long-running jobs with nobody waiting on a connection. How each one changes cost, memory, scheduling and reliability, and how to design a platform for them end to end.

Lessons#

#LessonTime
27.aTest-Time Compute: The Economics of Reasoning Tokens60 min
27.bAgent Workloads: Multi-Turn Sessions and KV Reuse60 min
27.cTool Calls and Structured Output at Scale50 min
27.dServing RL Rollouts60 min
27.eWeight Sync and On/Off-Policy60 min
27.fBatch and Offline Inference50 min
27.gLong-Running and Async Jobs50 min
27.hDesigning for Agents End to End75 min

Previous: Beyond Text

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in