AI Operations

Batch-invariant inference

Getting identical answers however busy the server is

Serving software groups many users' requests to keep the GPU busy. The size of the group changes the order in which the GPU adds up numbers. In floating-point arithmetic, a different order can give a slightly different result. That can flip a decision near a threshold. Batch-invariant inference fixes the order of every sum, so a request gets the same bits alone or in a crowd. It usually costs some speed.

Think of it as

Adding a long column of prices in the same order every time, so the total never differs by a rounding cent.