You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cuda : a request in a unified KV cache attends over the rows of all sequences on HIP #103
With a unified KV cache (--kv-unified) every request attends over all used cells of the shared pool, the cells of the other sequences are masked. With three long conversations at once the attention of each prompt batch reads three times the rows it needs.
Upstream PR 29510 added ggml_flash_attn_ext_rows: the kernel gets a list of the K/V rows of each sequence. In the CUDA backend only the NVIDIA MMA kernel takes the list, so on HIP the probe of llama-context fails ("Flash Attention over K/V rows not supported, set to disabled").
To check: the row list on RDNA3 (WMMA, tile and vec kernels), the gain with concurrent long requests and the cost for a single request.
Activity