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

Introduce faiss patch to share ivfpq precomp table #1520

Conversation

jmazanec15
Copy link
Member

@jmazanec15 jmazanec15 commented Mar 7, 2024

Description

First of 3 PRs to share table amongst IVFPQ-l2 indices coming from #1507. This PR introduces the faiss patch change. In future release, we will get rid of this patch when we can achieve this functionality with faiss. Related issue here: facebookresearch/faiss#3271. Will merge into feature branch and once all 3 are merged, will merge into main.

Patch is built from: jmazanec15/faiss@c5ca072. For convenience, I opened up a PR on my faiss clone for review: jmazanec15/faiss#1. Please feel free to leave comments there.

In addition, modified different locations to apply patch.

Issues Resolved

#1507 - partial

Check List

  • Commits are signed as per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Introduces a patch for faiss library to share ivfpq table between faiss
indices. Patch is built from:
jmazanec15/faiss@c5ca072.

In addition, modify different locations to apply patch.

Signed-off-by: John Mazanec <jmazane@amazon.com>
Copy link

codecov bot commented Mar 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.12%. Comparing base (c9262f5) to head (0241225).

Additional details and impacted files
@@                         Coverage Diff                          @@
##             feature/remove-redunant-allocs    #1520      +/-   ##
====================================================================
- Coverage                             85.14%   85.12%   -0.02%     
+ Complexity                             1281     1280       -1     
====================================================================
  Files                                   168      168              
  Lines                                  5232     5232              
  Branches                                495      495              
====================================================================
- Hits                                   4455     4454       -1     
  Misses                                  570      570              
- Partials                                207      208       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ryanbogan
Copy link
Member

Are the Mac failures expected?

@jmazanec15
Copy link
Member Author

jmazanec15 commented Mar 7, 2024

@ryanbogan Flaky test: #1522. This change wont impact it

@jmazanec15 jmazanec15 merged commit d818487 into opensearch-project:feature/remove-redunant-allocs Mar 7, 2024
59 of 62 checks passed
jmazanec15 added a commit to jmazanec15/k-NN-1 that referenced this pull request Mar 18, 2024
…t#1520)

Introduces a patch for faiss library to share ivfpq table between faiss
indices. Patch is built from:
jmazanec15/faiss@c5ca072.

In addition, modify different locations to apply patch.

Signed-off-by: John Mazanec <jmazane@amazon.com>
jmazanec15 added a commit that referenced this pull request Mar 18, 2024
Introduces a patch for faiss library to share ivfpq table between faiss
indices. Patch is built from:
jmazanec15/faiss@c5ca072.

In addition, modify different locations to apply patch.

Signed-off-by: John Mazanec <jmazane@amazon.com>
jmazanec15 added a commit to jmazanec15/k-NN-1 that referenced this pull request Mar 18, 2024
…t#1520)

Introduces a patch for faiss library to share ivfpq table between faiss
indices. Patch is built from:
jmazanec15/faiss@c5ca072.

In addition, modify different locations to apply patch.

Signed-off-by: John Mazanec <jmazane@amazon.com>
jmazanec15 added a commit that referenced this pull request Mar 18, 2024
Introduces a patch for faiss library to share ivfpq table between faiss
indices. Patch is built from:
jmazanec15/faiss@c5ca072.

In addition, modify different locations to apply patch.

Signed-off-by: John Mazanec <jmazane@amazon.com>
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.

3 participants