The latest llama.cpp release introduces `-funsafe-math-optimizations` for AMD/HIP, aiming to match CUDA's fast math performance without encountering NaN issues. This optimization specifically addresses `ggml`'s use of `INFINITY` for masking, which previously prevented the use of `-ffast-math`. The update supports a wide range of platforms including Linux x64 (ROCm 7.2) and Windows x64 (HIP).
AMD's inference performance for open-source models improves, making it a more competitive option for local LLM deployment against NVIDIA.