AI inference: latency, memory and quality

Optimizing inference requires observing what changes for the task and for the person receiving the answer. This collection brings together local experiments on latency, memory, quality, caching and streaming delivery, with published configurations and reports to interpret each result.

By Lucio Durán · Uruguay

Which decision are you making?

When measuring user wait time

Separate time to first token, time between tokens and total duration. LLM Serving Bench records actual token arrivals; LLM Stream Backpressure examines slow consumers, buffer limits and cancellation.

When reducing memory or running locally

Compare quality and latency alongside weight size. Quantization Quality Lab studies MiniLM on CPU; WebGPU Local Inference demonstrates browser execution with a WebAssembly fallback.

When reusing or routing answers

Account for errors and policy cost. LLM Semantic Cache evaluates correct and incorrect hits with isolation and invalidation; AI Model Routing Policy retains negative results and injected failures.

Projects and evidence

Each project page provides code, environment details, published results and limitations. The experiments describe those configurations; they do not establish results in client systems.