News for hackers. Stuff that matters.
Re:Python, C, Assembly – Faster Cosine Similarity by ashvardanian on Monday December 18, 2023 @06:54PM (#38690027)
Kahan floats are also commonly used in such cases, but I believe there is room for improvement without hitting those extremes. First of all, we should tune the epsilon here: https://github.com/ashvardanian/SimSIMD/blob/f8ff727dcddcd14...

As for the 64-bit version, its harder, as the higher-precision `rsqrt` approximations are only available with "AVX512ER". I'm not sure which CPUs support that, but its not available on Sapphire Rapids.

There are no comments on this comment yet.