Skip to content
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

faiss.knn_gpu vs torch.topk #3621

Open
2 of 4 tasks
algoriddle opened this issue Jul 9, 2024 · 3 comments
Open
2 of 4 tasks

faiss.knn_gpu vs torch.topk #3621

algoriddle opened this issue Jul 9, 2024 · 3 comments

Comments

@algoriddle
Copy link
Contributor

Summary

torch.topk outperforms faiss.knn_gpu - both classic and raft

Platform

OS: Linux, Tesla V100-SXM2-16GB

Faiss version:

faiss-gpu-raft 1.8.0 py3.12_h4c7d538_114_cuda12.1.1_nightly pytorch/label/nightly
libfaiss 1.8.0 hb0f4bcb_114_cuda12.1.1_raft_nightly pytorch/label/nightly

Installed from: conda

Faiss compilation options: OPTIMIZE AVX2 GPU NVIDIA_RAFT

Running on:

  • CPU
  • GPU

Interface:

  • C++
  • Python

Reproduction instructions

See notebook: https://gist.github.com/algoriddle/bae7ebaf4cee6a63b218ce24f0558cf0

@cjnolet, can you tag the appropriate people on your side, please?

@junjieqi junjieqi added the GPU label Jul 9, 2024
@cjnolet
Copy link
Contributor

cjnolet commented Jul 9, 2024

@stepelu
Copy link

stepelu commented Jul 17, 2024

See #3045

@mfoerste4
Copy link

The recent changes in both cuvs and the faiss/cuvs-PR #3549 reduce launch overhead and improve performance, especially for smaller dimensions (also see cuvs issue). As an example, here are results for a local build on a L40:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants