llama.cpp
e5eacc7b - cpu: accumulate flash attention V in F32 in the one-chunk kernel

Commit
22 days ago
cpu: accumulate flash attention V in F32 in the one-chunk kernel The one-chunk kernel accumulated an F16 V cache in an F16 running sum that is only normalized at the end, which overflows past 65504 on long contexts: inf, then NaN on every following token. Every V type now accumulates in F32, like the tiled kernel. F16 rows go through ggml_vec_mad_f16_f32, which converts and multiplies in the same register (F16C/AVX512, NEON, RVV) with no round trip through a temporary F32 row, so decode keeps master speed on x86 and loses about 4% at 4k context on ARM, where master used native F16 FMA.
Committer
Parents
Loading