llama.cpp
369fa098 - vulkan : one thread per row for soft_max and sum_rows on short rows

Commit
1 hour ago
vulkan : one thread per row for soft_max and sum_rows on short rows A row of at most 8 columns got a whole workgroup with a shared memory reduction. Each invocation now handles a whole row, with fastdiv for the row indices, and sum_rows covers mean through its weight. On 3.4M rows of 4 on an RTX PRO 6000, soft_max goes from 1653 to 42 us and sum_rows from 1662 to 10 us. Hy4 flash decode goes from 53 to 60 t/s at 4k context and from 9.6 to 54.8 t/s at 16k.
Parents
Loading