This reverts commit d4ee0dc77c. Upstream fixed this issue: https://github.com/ggml-org/llama.cpp/pull/23190
d4ee0dc77c