|
|
|
|
|
by amluto
11 days ago
|
|
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. |
|
"Deterministic inference" matters _only because_ models are communicating.
Otherwise some "non-determinism" introduces only a tiny amount of noise which does not affect performance. And allowing different compute paths to produce slightly different results generally increases performance. I.e. the question here "should we sacrifice 5% of inference performance for a 'nothingburger'?".
I.e. you cannot have both "it's nothing" and "you should do determinism".
Inference is a commodity good and getting even 5% out might have a huge effect on profit margins. Many inference companies were already caught using quality-degrading quantization and other optimizations to get their profits higher.