]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ggml : fix overflows in elu function (llama/8866)
authorJustine Tunney <redacted>
Mon, 5 Aug 2024 12:43:40 +0000 (05:43 -0700)
committerGeorgi Gerganov <redacted>
Thu, 8 Aug 2024 19:48:46 +0000 (22:48 +0300)
commit7a96e661e40fac36669a86ad751cf9387b62361b
treec9857e32491525e52361ab7c28d03e7ee7ccf7da
parenta902fb4ab270bfb2a169221eb94c4e421a24b6a5
ggml : fix overflows in elu function (llama/8866)

It's helpful to use expm1f(x), because expf(x)-1 will result in overflow
for 25% of single-precision floating point numbers.
ggml/src/ggml.c