-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use matrix::select_k
in brute_force::knn call
#1463
Conversation
While times for small batches improves with this change, overall the performance seems to be quite a bit worse with this change - and this PR shouldn't be merged until after #1455. Running the neighbours benchmarks (modifying K from 32->128 to avoid hitting the fusedl2 path): branch-23.06 (uses the faiss blockselect code)
this branch (using matrix::select_k)
|
It does seem like the 23.06 (faiss block select)
this branch (
With the faiss block select code - there isn't much difference between using a int64_t or uint32_t IndexType, but with the matrix::select_k code there is. |
Using the new select_k code from #1523 removes the perf regression we've been seeing with using
Note: the speedup is even more pronounced with a smaller batch size (which isn't being benchmarked here). |
/merge |
No description provided.