Skip to content
View original post on X: Prime IntellectOfficial
Published

vLLM's block-major KV layout halves NVLink transfer time

AIvLLM changed its KV cache layout to block-major BLHNC, cutting transfer descriptors about 10x and halving mean KV transfer time on NVLink. The original slowdown came from fragmented KV layout that split one 200K-token request into 32K tiny copies, making NVLink slower than InfiniBand.
@PrimeIntellect
View on X

A reply · the post it answers

KV transfer: reducing copy overhead on NVLink

At first, KV transfer on NVLink is slower than InfiniBand due to KV layout fragementation: one 200K-token request turned into 32K tiny copies.

vLLM's block-major BLHNC layout cut transfer descriptors ~10x and cut mean transfer time by half.

Source details

Prime Intellect · x.comPublished · added here

Original title: KV transfer: reducing copy overhead on NVLink