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

Benchmark for big-batch IVF search #2567

Closed
wants to merge 1 commit into from

Conversation

mdouze
Copy link
Contributor

@mdouze mdouze commented Nov 9, 2022

Summary:
Intuitively, it should be easier to handle big-batch searches because all distance computations for a set of queries can be done locally within each inverted list.

This benchmark implements this in pure python (but should be close to optimal in terms of speed), on CPU for IndexIVFFlat and IndexIVFPQ.

The results are not systematically better, see https://docs.google.com/document/d/1d3YuV8uN7hut6aOATCOMx8Ut-QEl_oRnJdPgDBRF1QA/edit?usp=sharing

Differential Revision: D41098338

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D41098338

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

This pull request was exported from Phabricator. Differential Revision: D41098338

mdouze added a commit to mdouze/faiss that referenced this pull request Nov 11, 2022
Summary:
Pull Request resolved: facebookresearch#2567

Intuitively, it should be easier to handle big-batch searches because all distance computations for a set of queries can be done locally within each inverted list.

This benchmark implements this in pure python (but should be close to optimal in terms of speed), on CPU for IndexIVFFlat, IndexIVFPQ and IndexIVFScalarQuantizer. GPU is also supported.

The results are not systematically better, see https://docs.google.com/document/d/1d3YuV8uN7hut6aOATCOMx8Ut-QEl_oRnJdPgDBRF1QA/edit?usp=sharing

Differential Revision: D41098338

fbshipit-source-id: 02b5ae1fa89ac37972cd2bce2ced9f7dbc2dc8af
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D41098338

mdouze added a commit to mdouze/faiss that referenced this pull request Nov 24, 2022
Summary:
Pull Request resolved: facebookresearch#2567

Intuitively, it should be easier to handle big-batch searches because all distance computations for a set of queries can be done locally within each inverted list.

This benchmark implements this in pure python (but should be close to optimal in terms of speed), on CPU for IndexIVFFlat, IndexIVFPQ and IndexIVFScalarQuantizer. GPU is also supported.

The results are not systematically better, see https://docs.google.com/document/d/1d3YuV8uN7hut6aOATCOMx8Ut-QEl_oRnJdPgDBRF1QA/edit?usp=sharing

Differential Revision: D41098338

fbshipit-source-id: d418947b526b7b4c5ecd03b713271e88b7ef5e26
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D41098338

mdouze added a commit to mdouze/faiss that referenced this pull request Dec 9, 2022
…arch#2567)

Summary:
Pull Request resolved: facebookresearch#2567

Intuitively, it should be easier to handle big-batch searches because all distance computations for a set of queries can be done locally within each inverted list.

This benchmark implements this in pure python (but should be close to optimal in terms of speed), on CPU for IndexIVFFlat, IndexIVFPQ and IndexIVFScalarQuantizer. GPU is also supported.

The results are not systematically better, see https://docs.google.com/document/d/1d3YuV8uN7hut6aOATCOMx8Ut-QEl_oRnJdPgDBRF1QA/edit?usp=sharing

Reviewed By: algoriddle

Differential Revision: D41098338

fbshipit-source-id: be4df745b7f89521bdcba84f76f4b35829579097
…arch#2567)

Summary:
Pull Request resolved: facebookresearch#2567

Intuitively, it should be easier to handle big-batch searches because all distance computations for a set of queries can be done locally within each inverted list.

This benchmark implements this in pure python (but should be close to optimal in terms of speed), on CPU for IndexIVFFlat, IndexIVFPQ and IndexIVFScalarQuantizer. GPU is also supported.

The results are not systematically better, see https://docs.google.com/document/d/1d3YuV8uN7hut6aOATCOMx8Ut-QEl_oRnJdPgDBRF1QA/edit?usp=sharing

Reviewed By: algoriddle

Differential Revision: D41098338

fbshipit-source-id: 4eb19710b8ab6c0f64f68d8ed862a75fb6f8fd24
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D41098338

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in fa53e2c.

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.

2 participants