The Preprocessing Barrier in LLM Inference

A Jinja2 template loop takes 7% of single-request latency. At production concurrency, it becomes the throughput ceiling. This post traces how Python’s GIL converts an innocent-looking preprocessing step into a hard scaling wall.

January 15, 2024 · 7 min · 1332 words · Pratik Patre

The Preprocessing Barrier (Part 2): How Preprocessing Starves Your GPUs

nvidia-smi reads 95% GPU utilization while throughput stays flat and latency degrades 18×. This post investigates the Utilization Illusion — and shows how decoupling preprocessing recovered 40% of GPU capacity the monolithic architecture left on the table.

February 12, 2024 · 8 min · 1497 words · Pratik Patre