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...
https://machinelearningmastery.com/feed/订阅后,这些文章和以后的新文章都会出现在你的阅读器里
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...
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 reque
Decode sits on the left.
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...
AI 摘要The article discusses long-context inference, structured in four parts: the cost of a long context, chunked prefill, managing long-lived KV state, and selecting useful context. It begins by explaining that for full causal attention over a prompt of N tokens, prefill attention computes a triangular portion of an N×N score matrix.
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...
AI 摘要This post explains how prefix caching enables large language model inference systems to reuse prefill work—specifically the key and value computations performed for prompt tokens—across requests. It covers techniques for identifying the longest cached prefix, including block hashes and radix trees, along with compatibility considerations. The article also discusses how to design prompts to maximize cache reuse and how to manage cache capacity and measure its effectiveness.
Before running anything, it helps to know what Microsoft measured.
AI 摘要This article introduces speculative decoding, a technique that pairs a smaller, faster draft model with a larger, more accurate target model to speed up generation. It outlines a six-part overview covering the draft-and-verify approach, sampling-based speculative decoding, assisted generation with a draft model, measuring acceptance and speedup, alternative drafting methods, and when speculation is beneficial.
In this article, you will learn how embedding models differ, what they cost to run at scale, and how to benchmark open-weight models on your...
In this article, you will learn how to build a local AI agent in Python that uses Ollama and Qwen3 to call tools that search,...
AI 摘要This article outlines a six-part post on decoding policies in the vLLM serving engine, which separates model execution from token selection. The topics covered include sampling filters and per-token work, multiple outputs and beam search, stop conditions and request lifetime, structured outputs, and batching with runtime cost considerations.
Three events that look alike need separate names.