-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Conversation
This pull request was exported from Phabricator. Differential Revision: D41098338 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D41098338 |
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
5fa234d
to
e308b13
Compare
This pull request was exported from Phabricator. Differential Revision: D41098338 |
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
e308b13
to
a209cec
Compare
This pull request was exported from Phabricator. Differential Revision: D41098338 |
…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
a209cec
to
955128f
Compare
…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
955128f
to
73c8f24
Compare
This pull request was exported from Phabricator. Differential Revision: D41098338 |
This pull request has been merged in fa53e2c. |
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