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

Benchmarking Scripts for cuVS Index, more docs updates #4117

Open
wants to merge 76 commits into
base: main
Choose a base branch
from

Conversation

tarang-jain
Copy link
Contributor

@tarang-jain tarang-jain commented Jan 3, 2025

  • Small updates to FAISS + cuVS docs.
  • Fixes IVF-Flat and IVF-PQ benchmarking scripts.
  • Re-enable cuVS backend in gpu python tests

@tarang-jain tarang-jain marked this pull request as ready for review January 20, 2025 04:05
@asadoughi
Copy link
Contributor

Looks like you also need to remove the error message in GpuIndexIVFPQ.cu: https://github.com/facebookresearch/faiss/actions/runs/12860778246/job/35853553529?pr=4117#step:3:4157

Di-Is and others added 4 commits January 21, 2025 11:09
)

Summary:
This pull request introduces a new default argument, `ngpu=-1`, to the `knn_ground_truth` function in the `faiss.contrib`.

## Purpose of Change

### Bug Fix

In the current implementation, running tests under the tests directory (CPU tests) in an environment with faiss-gpu installed would inadvertently use the GPU and cause unintended behavior.
This pull request prevents the GPU from being used during CPU-only tests by explicitly controlling GPU allocation via the ngpu parameter.

### API Consistency

Other functions that call `faiss.get_num_gpus` in `faiss.contrib`, such as `range_search_max_results` and `range_ground_truth`, already include the `ngpu` argument.
Adding this parameter to `knn_ground_truth` will ensure consistency across the API, reduce potential confusion, and improve ease of use.

Pull Request resolved: facebookresearch#4123

Reviewed By: asadoughi

Differential Revision: D68199506

Pulled By: junjieqi

fbshipit-source-id: cb50e206d8a1a982c21b0ccb42825ea45873f3ef
Summary:
Pull Request resolved: facebookresearch#4130

same as title

Reviewed By: asadoughi

Differential Revision: D68388863

fbshipit-source-id: 4ebb38d8454bf95733c918950d7d8d3b22e00d5d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants