-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
faster hnsw CPU index training #3822
faster hnsw CPU index training #3822
Conversation
Signed-off-by: Alexandr Guzhva <[email protected]>
@kuarora has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
I microbenchmarked With parameters: I think we can verify actual impact on production with @mnorris11's work on observability for the internal customers @kuarora and @mdouze: are there other parameters we would want to try out here? |
@alexanderguzhva you are usually leaving the "simple" version of the code in comments, which is better than nothing. Would you mind instead using a local boolean variable bool reference_code = false;
if(reference_code) {
... The old short code
} else {
... Your optimized long code
} In this way the compiler will compile the old code but optimize it away. |
@mdouze done |
…NSW functions Signed-off-by: Alexandr Guzhva <[email protected]>
9885885
to
52ea389
Compare
@kuarora has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: This change decreases the training time for 1M x 768 dataset down to 10 minutes from 13 minutes in our experiments. Please verify and benchmark. Pull Request resolved: facebookresearch#3822 Reviewed By: mdouze Differential Revision: D62151489 Pulled By: kuarora fbshipit-source-id: b29ffd0db615bd52187464b4665c31fc9d3b8d0a
This change decreases the training time for 1M x 768 dataset down to 10 minutes from 13 minutes in our experiments.
Please verify and benchmark.