However actually benefiting from this can be tricky! loop-sgland project has considerable effort put to finding out how much to loop any given input, it's own subproblem in making use of this: https://kschwethelm.github.io/continuous-depth-batching/ https://github.com/kschwethelm/loop-sglang