Build a Lightweight LLM Evaluation Harness in Python
Iván Palomares Carrascosa · 2026年12月2日
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...
继续阅读全文
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
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
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.