]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
hexagon: further optimizations and refactoring for flash attention (#19583)
authorMax Krasnyansky <redacted>
Sat, 14 Feb 2026 00:27:30 +0000 (16:27 -0800)
committerGitHub <redacted>
Sat, 14 Feb 2026 00:27:30 +0000 (16:27 -0800)
commit0ccbfdef3e0a635530aec490f863d83edc22cbc4
tree09b625dbb163d9ecb562a31920364fc6c817c8fc
parent94a602db6693fa6d2529d284fc04a8e9107e20de
hexagon: further optimizations and refactoring for flash attention (#19583)

* ggml-hexagon: fa improvements

ggml-hexagon: optimize flash attention calculations with improved variable handling

ggml-hexagon: streamline flash attention operations by removing redundant checks for FP32

ggml-hexagon: optimize hvx_dot_f16_f16_aa_rx2 by simplifying variable handling for unused elements

ggml-hexagon: optimize flash attention by changing slope vector type to F16

* hexfa: fixed test-backend-ops failurs due to leftover element handling

* hexagon: refactor and optimize fa to use local context struct

* ggml-hexagon: optimize flash-attention using hvx_vec_expf

Use HVX for online softmax.

---------

Co-authored-by: chraac <redacted>
ggml/src/ggml-hexagon/htp/flash-attn-ops.c