Asked about What makes inference expensive

Why is batching almost free?

An answer that works

The weights are read once and applied to every request in the batch, and reading them is the bottleneck. This is why hosted APIs are cheap and why self-hosting for low traffic is poor value.

Reading an answer is not being able to give one. The section that teaches this is What makes inference expensive, 6 hours of Quantization & inference optimisation.

Learn this properly