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

Integrate IVF-PQ from RAFT #3044

Closed
wants to merge 253 commits into from

Conversation

tarang-jain
Copy link
Contributor

@tarang-jain tarang-jain commented Sep 6, 2023

Imports changes from #3133 and #3171. So this single PR adds all the changes together.

cjnolet and others added 30 commits June 3, 2022 11:47
…ed to propagate kmeans info down into quantized index
order for FAISS integration to work successfully.
@facebook-github-bot
Copy link
Contributor

@mdouze has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link

@tfeher tfeher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tarang-jain for the updates, a few additional comments.

faiss/gpu/utils/RaftUtils.h Outdated Show resolved Hide resolved
faiss/gpu/GpuIndex.cu Outdated Show resolved Hide resolved
cp.niter = 10;
} else {
// set the number of iterations to RAFT's default for IVF methods
cp.niter = 20;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change has been made.

I still see the change here, could you confirm whether it is a merge error, or intentional?
I believe it would more appropriate to reverted back to set cp.niter = 10; unconditionally.

faiss/gpu/GpuIndexIVFFlat.cu Show resolved Hide resolved
faiss/gpu/impl/RaftIVFPQ.cu Show resolved Hide resolved
resources_->getRaftHandleCurrentDevice();
raft::neighbors::ivf_pq::search_params pams;
pams.n_probes = nprobe;
pams.lut_dtype = useFloat16LookupTables_ ? CUDA_R_16F : CUDA_R_32F;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created tracking issue #3249

@facebook-github-bot
Copy link
Contributor

@mdouze has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

1 similar comment
@facebook-github-bot
Copy link
Contributor

@mdouze has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link

@tfeher tfeher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tarang-jain for the update, the PR looks good to me!

faiss/gpu/impl/RaftIVFPQ.cu Show resolved Hide resolved
@facebook-github-bot
Copy link
Contributor

@mdouze has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@algoriddle merged this pull request in 27b1055.

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.

None yet

8 participants