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

HNSW GPU hierarchy #616

Merged
merged 7 commits into from
Feb 6, 2025
Merged

Conversation

divyegala
Copy link
Member

No description provided.

@divyegala divyegala added feature request New feature or request non-breaking Introduces a non-breaking change labels Jan 24, 2025
@divyegala divyegala self-assigned this Jan 24, 2025
Copy link

copy-pr-bot bot commented Jan 24, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

Copy link
Contributor

@tfeher tfeher left a comment

Choose a reason for hiding this comment

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

Thanks Divye for the PR! The PR looks good overall. There is one error with handling large datasets, I proposed a suggestion to fix that. With that fix I could successfully run this with large dataset that does not fit GPU mem. Apart from that I have a few smaller suggestions.

cpp/src/neighbors/detail/hnsw.hpp Show resolved Hide resolved
cpp/src/neighbors/detail/hnsw.hpp Outdated Show resolved Hide resolved
cpp/src/neighbors/detail/hnsw.hpp Outdated Show resolved Hide resolved
cpp/src/neighbors/detail/hnsw.hpp Show resolved Hide resolved
cpp/src/neighbors/detail/hnsw.hpp Outdated Show resolved Hide resolved
cpp/src/neighbors/detail/hnsw.hpp Outdated Show resolved Hide resolved
cpp/src/neighbors/detail/hnsw.hpp Outdated Show resolved Hide resolved
cpp/src/neighbors/detail/hnsw.hpp Outdated Show resolved Hide resolved
Copy link
Contributor

@tfeher tfeher left a comment

Choose a reason for hiding this comment

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

We could switch to IVF-PQ for hierarchy building easily, and it might make sense to have that as default.

cpp/src/neighbors/detail/hnsw.hpp Outdated Show resolved Hide resolved
cpp/src/neighbors/detail/hnsw.hpp Show resolved Hide resolved
Copy link
Contributor

@tfeher tfeher left a comment

Choose a reason for hiding this comment

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

Would be great to remove the limitations on the dataset type. Please find below my suggestions for that.

cpp/src/neighbors/detail/hnsw.hpp Outdated Show resolved Hide resolved
cpp/src/neighbors/detail/hnsw.hpp Outdated Show resolved Hide resolved
cpp/src/neighbors/detail/hnsw.hpp Show resolved Hide resolved
@divyegala divyegala marked this pull request as ready for review February 5, 2025 21:17
@divyegala divyegala requested review from a team as code owners February 5, 2025 21:17
Copy link
Contributor

@tfeher tfeher left a comment

Choose a reason for hiding this comment

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

Thanks Divye for the updates, the PR looks good to me!

@divyegala
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit 47f5368 into rapidsai:branch-25.02 Feb 6, 2025
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp feature request New feature or request non-breaking Introduces a non-breaking change Python
Projects
Development

Successfully merging this pull request may close these issues.

3 participants