-
Notifications
You must be signed in to change notification settings - Fork 221
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
feat: make partition calculation parallel #1625
Conversation
rust/lance-index/src/vector/ivf.rs
Outdated
let chunks = std::cmp::min(num_cpus::get(), num_rows); | ||
|
||
info!( | ||
"computing parition on {} chunks, out of {} centroids, and {} vectors", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"computing parition on {} chunks, out of {} centroids, and {} vectors", | |
"computing partition on {} chunks, out of {} centroids, and {} vectors", |
rust/lance/src/index/vector/ivf.rs
Outdated
@@ -714,6 +714,8 @@ pub async fn build_ivf_pq_index( | |||
vec![], | |||
None, | |||
)?; | |||
|
|||
info!("starting to compute partitions for PQ training, sample size"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to log the sample size or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yes, fixing
|
||
info!( | ||
"computing parition on {} chunks, out of {} centroids, and {} vectors", | ||
chunks, num_centroids, num_rows, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To print as integers instead of floats?
chunks, num_centroids, num_rows, | |
chunks as usize, num_centroids as usize, num_rows as usize, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added as usize
to chunks
. the other one are already usize and clippy complains
8505653
to
e264a21
Compare
e264a21
to
c15f143
Compare
make IVF partition calculation parallelize