A KV cache group with no layer on a pipeline stage was still given tensors there, and allocate_kv_cache raised StopIteration on the second stage. The fix was lost in the v0.30.0 rebase. Test drives the real get_kv_cache_configs with the production layout. Co-Authored-By: Hinata <hinata@idihore.id> Signed-off-by: MOVZX <movzx@yahoo.com>