]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml-hexagon: fix swiglu failure at `test-backend-ops` (#17344)
authornullname <redacted>
Thu, 20 Nov 2025 23:45:05 +0000 (07:45 +0800)
committerGitHub <redacted>
Thu, 20 Nov 2025 23:45:05 +0000 (15:45 -0800)
commit21d31e0810d398f75ddd7d7c4cec9907a5576f26
tree8a81ecc09270ebdd25b0c2e7ff756ea806dfe3dd
parentdd0f3219419b24740864b5343958a97e1b3e4b26
ggml-hexagon: fix swiglu failure at `test-backend-ops` (#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