Skip to content

Increase kMinWorkspaceRatio in build_knn_graph()#1937

Open
julianmi wants to merge 1 commit intorapidsai:mainfrom
julianmi:increase_min_ws_ratio
Open

Increase kMinWorkspaceRatio in build_knn_graph()#1937
julianmi wants to merge 1 commit intorapidsai:mainfrom
julianmi:increase_min_ws_ratio

Conversation

@julianmi
Copy link
Contributor

OpenAI 5M dataset runs OOM when using quantized data (float to int8) as show in this example. The kMinWorkspaceRatio is too small for the int8 data such that the IVF-PQ search max_internal_batch_size is not reduced. Doubling kMinWorkspaceRatio fixes this. There is no performance degradation for the OpenAI 5M float dataset with this change. Let me know if I should test more datasets.

CC @tfeher

@julianmi julianmi requested a review from a team as a code owner March 20, 2026 17:34
@aamijar aamijar added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Mar 20, 2026
Copy link
Member

@aamijar aamijar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @julianmi! Is this targeted for release/26.04?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

Development

Successfully merging this pull request may close these issues.

2 participants