]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ggml-hexagon: fix swiglu failure at `test-backend-ops` (llama/17344)
authornullname <redacted>
Thu, 20 Nov 2025 23:45:05 +0000 (07:45 +0800)
committerGeorgi Gerganov <redacted>
Fri, 12 Dec 2025 15:53:05 +0000 (17:53 +0200)
commitcb3ee1b098f78408cabf2ebfa1beeacccb20342f
tree94f3bce60f406b1a2677cf2f838f4dd9ed349390
parent46f893c2fa60b661783cb03df5c5ec26e85f3879
ggml-hexagon: fix swiglu failure at `test-backend-ops` (llama/17344)

* refactor: use hvx_vec_exp_fp32_guard_inf for overflow handling in hvx_exp_f32

* feat: add fast sigmoid function with overflow guard for fp32

* refactor: replace hvx_vec_inverse_fp32 with hvx_vec_inverse_fp32_guard_inf for improved overflow handling

* feat: enhance hvx_add_scalar_f32 with overflow handling using infinity guard

* wip

* add HVX_Vector_Alias

wip

* wip

* fix: improve handling of src1 tensor in glu_swiglu_fp32_per_thread function

* fix nc

* wip

* wip

* handle nan at inverse

* wip

* fix neg

* wip

* rename

* fix hvx_vec_inverse_fp32_guard_inf to handle infinity and NaN cases correctly

* wip

* fix hvx_vec_inverse_fp32_guard_inf to handle NaN cases correctly

* wip

* wip

* wip

* fix output sign
ggml/src/ggml-hexagon/htp/act-ops.c
ggml/src/ggml-hexagon/htp/hvx-exp.c
ggml/src/ggml-hexagon/htp/hvx-inverse.c
ggml/src/ggml-hexagon/htp/hvx-utils.c
ggml/src/ggml-hexagon/htp/hvx-utils.h