NVIDIA / NVIDIA/cuvs

[QST] single/multi-cta support for topk larger than 1024

Open
#409 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Cuda
Stars
854
Forks
236
Avg merge
3d 3h
Merged PRs (30d)
62

Description

What is your question?

We benchmark the performance of cuvs for large topk(k > 1024). We find that the speed is much slower compared to the cases for k < 1024. We find that the search algorithm used for k > 1024 is MULTI_KERNEL instead of single/multi-cta.

We have three questions.

  1. Will you please explain why single/multi-cta algorithms cannnot support large k?
  2. How can we improve the performance for k > 1024?
  3. Do you have a plan to support k > 1024 for single/multi-cta algorithms in the near future?

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported benchmark comparison for k below and above 1024, then inspect where the MULTI_KERNEL path is selected instead of single/multi-cta. Done would require explaining the algorithm limit, identifying a supported performance path for larger k, and clarifying whether single/multi-cta support is planned.

Written by the indexing model from the issue text.

Assessment

Domain
performance, search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.