From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #531: Add AVX-512 FP16 implementation of halfvec distance functions
Date: Wed, 25 Sep 2024 00:06:17 +0000
Message-ID: <gh-pgvector-pgvector-531-c2372602948@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-531@github.com>
References: <gh-pgvector-pgvector-531@github.com>
Sounds good.
The parameter doubles my concern, but there's still a lot of complexity without it. I'm not sure either choice is great based on the numbers above, since the single-precision version provides little performance benefit and while the half-precision provides some benefit but reduces precision and range.
For comparison, here are the f16c + fma numbers: https://github.com/pgvector/pgvector/pull/311#issuecomment-2043634797.