logoalt Hacker News

supermdguy • today at 4:25 AM • 3 replies • view on HN

The deeper issue is batched inference including requests from several users. However a non-batched inference service would be significantly more expensive.


Replies

amluto • today at 4:58 AM

See my comment about Google’s post. Google and others have worked on deterministic inference, batched and otherwise. It takes more effort to set up but has no apparent substantial performance hit.

I think the story is different if you use Strassen-like algorithms (or the recent AI-generated n^2.25-plus-epsilon stuff) to multiply matrices where columns belong to different conversations, but I also think that no one actually does this in practice. (Or maybe someone does (Strassen, not more recent galactic algorithms) for prefill, but prefill can be efficient with matrix-matrix multiplication where neither matrix mixes data from different sessions.)

In any case, I wouldn’t be surprised if vLLM fixes this for a different reason: RL works better if the training and rollout stacks produce numerically identical results. This is the specific issue that I recall Google posting about.

P.S. I think Google may not have been the innovator here - I just happen to remember Google’s post more clearly because it was very recent.

stuxnet79 • today at 4:44 AM

Security and some sort of sandboxing is increasingly becoming a non-negotiable at most enterprises.

Can you share any resources that show how the batching works at a deeper level? I understand batching is critical to scaling inference to up to a billion concurrent users but I don't have a concrete understanding of how it all comes together.

➕ show 1 reply
schiffern • today at 4:35 AM

Of course there's no free lunch. "Pay more, get more."

LLMs are just learning the same (bitter) security lessons that have been learned in other shared systems.