Build a Lightweight LLM Evaluation Harness in Python
In this article, you will learn how to build a lightweight, reusable LLM evaluation harness in Python that combines exact-match scoring, an LLM-as-a-judge, and versioned…
In this article, you will learn how to build a lightweight, reusable LLM evaluation harness in Python that combines exact-match scoring, an LLM-as-a-judge, and versioned…
We took 48 published CS papers, deleted each one’s key contribution from its own repository, and asked frontier agents to write it back better than the authors did. The best agent pulls it off on 28 of them. The top three are within a point of each other. Paper · Leaderboard · Code · Runs …
Read more “Delete the Paper, Beat the Authors: Introducing FrontierCS 2”
Decode sits on the left.
Overview This post is divided into four parts; they are: • The Request Path • A Minimal Asynchronous Engine • Cancellation, Backpressure, and Failure • Metrics and Production Interfaces The Request Path A text-generation workflow from request to response has several components:
In this article, you will learn how to build a working MCP client in Python with the official MCP Python SDK 2.0, connect it to…
Overview This post is divided into four parts; they are: • The Cost of a Long Context • Chunked Prefill • Managing Long-Lived KV State • Selecting Useful Context The Cost of a Long Context For full causal attention over a prompt of $N$ tokens, prefill attention computes a triangular portion of an $N times …
In this article, you will learn how to build a Proposer-Critic-Judge verification loop in Python with a single small open model, and how to measure…
Overview This post is divided into five parts; they are: • Reusing Prefill Work • Finding the Longest Cached Prefix • Block Hashes, Radix Trees, and Compatibility • Designing Prompts for Reuse • Capacity and Measurement Reusing Prefill Work During prefill, every layer computes keys and values for every prompt token.
Before running anything, it helps to know what Microsoft measured.
Overview This post is divided into six parts; they are: • Draft and Verify • Sampling-Based Speculative Decoding • Assisted Generation with a Draft Model • Measuring Acceptance and Speedup • Other Ways to Draft Tokens • When Speculation Helps Draft and Verify Speculative decoding involves two models: a draft model (usually a smaller model …