A Problem with GpuIndexIVFPQ #3791
Unanswered
kamyarrajabalifardi
asked this question in
Q&A
Replies: 1 comment
-
When you modify the centroids on the CPU, these changes are not automatically reflected on the GPU. The search operation still uses the centroids stored on the GPU, which have not been updated. after this line, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone!
I'm currently working with faiss::IndexIVFPQ and faiss::GpuIndexIVFPQ in Python. I would like to change the centroids' embeddings after the training process (centroids of product quantization can be accessed using index.pq.centroids).
When I am working with the CPU version (IndexIVFPQ), everything works fine and the search results change when the centroids are updated; however, when I am working with the GPU version, the search results do not change despite the centroids being updated.
My codes are attached below. I would appreciate it if you could help me resolve this issue 🙂
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions