Category: GEN AI

LLM_log #030: Why Agent Context Explodes — and How to Serve It

Why Agent Context Explodes — and How to Serve It Highlights: Five agent turns already process 80K input tokens, and 37% of agent tokens are tool results. Graham Neubig’s lecture in the CMU 11-768 AI Agents course (Fall 2026) looks at why agent context grows quadratically and what architectures make long context affordable to serve. We walk through the token composition of real OpenHands sessions, the prefill/decode split and its serving metrics, and the local,…
Read more

LLM_log #029: Tools Over the Network — REST, MCP, Benchmarks

Tools Over the Network — REST, MCP, Benchmarks Highlights: The same model can fail 15% of tool calls on one provider and 0.01% on another. This session of CMU’s 11-768 AI Agents course (Fall 2026, Graham Neubig) moves tool calling out of the notebook and into the network, tracing the path from in-process Python libraries to REST endpoints, MCP servers, and the serving stacks underneath them. We walk through wrapping tools with FastAPI and Pydantic,…
Read more

LLM_log #028: How LLMs Call Tools — CodeAct and Schemas

How LLMs Call Tools — CodeAct and Schemas Highlights: Letting the model write code instead of single API calls gave the best success rate for 8 of 8 models in CodeAct. Graham Neubig’s lecture on tool use in the CMU 11-768 AI Agents course (Fall 2026) treats tools as the interface through which a language model invokes an external program, and code as a meta-tool that collapses long chains of single API calls into one…
Read more

LLM_log #027: Agents Are Systems — Harness vs. Training

Agents Are Systems — Harness vs. Training Highlights: Assembling an agent is easy; making it reliable is not. Most fixes land in the harness first, then move into the weights. In Graham Neubig’s segment of CMU 11-768: AI Agents (taught with Daniel Fried), the argument is that assembling an agent is easy while making one work reliably is not. We walk through the capabilities that separate the two — tool calling, long-context coherence, customizability, task…
Read more

LLM_log #026: What Is an AI Agent? — A Model in a Loop

What Is an AI Agent? — A Model in a Loop Highlights: An agent deleted a user’s emails after context compaction dropped the one instruction not to. Here is how agents actually work. The opening lecture of CMU’s 11-768: AI Agents (Fall 2026), taught by Daniel Fried and Graham Neubig, sets out what an agent actually is and where current systems break down. We walk through the anatomy of an agent — environment, observations, actions,…
Read more