Skip to content

Conditionally post process distances in NN Descent for use with distance epilogue#1108

Merged
rapids-bot[bot] merged 10 commits intorapidsai:branch-25.08from
jinsolp:modify-nnd-dist-epi
Jul 23, 2025
Merged

Conditionally post process distances in NN Descent for use with distance epilogue#1108
rapids-bot[bot] merged 10 commits intorapidsai:branch-25.08from
jinsolp:modify-nnd-dist-epi

Conversation

@jinsolp
Copy link
Copy Markdown
Contributor

@jinsolp jinsolp commented Jul 11, 2025

Current implementation of nn descent post processes distances for L2SqrtExpanded and InnerProduct for efficiency.
However, this may cause issues when using a distance epilogue.

This PR checks if distances can be postprocessed based on the distance epilogue type, and if not, attempts to compute the full accurate distance instead of postprocessing.

@jinsolp jinsolp self-assigned this Jul 11, 2025
@jinsolp jinsolp requested a review from a team as a code owner July 11, 2025 20:36
@jinsolp jinsolp added bug Something isn't working non-breaking Introduces a non-breaking change labels Jul 11, 2025
@jinsolp jinsolp moved this from Todo to In Progress in Unstructured Data Processing Jul 11, 2025
@github-actions github-actions Bot added the cpp label Jul 11, 2025
@jinsolp
Copy link
Copy Markdown
Contributor Author

jinsolp commented Jul 23, 2025

/merge

@rapids-bot rapids-bot Bot merged commit 7659031 into rapidsai:branch-25.08 Jul 23, 2025
53 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Unstructured Data Processing Jul 23, 2025
@jinsolp jinsolp deleted the modify-nnd-dist-epi branch July 23, 2025 22:03
lowener pushed a commit to lowener/cuvs that referenced this pull request Aug 11, 2025
…nce epilogue (rapidsai#1108)

Current implementation of nn descent post processes distances for `L2SqrtExpanded` and `InnerProduct` for efficiency.
However, this may cause issues when using a distance epilogue.

This PR checks if distances can be postprocessed based on the distance epilogue type, and if not, attempts to compute the full accurate distance instead of postprocessing.

Authors:
  - Jinsol Park (https://github.com/jinsolp)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)

URL: rapidsai#1108
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cpp non-breaking Introduces a non-breaking change Ready to merge

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants