Skip to content

Update cagra config yaml for cuvs_bench#1822

Open
tfeher wants to merge 2 commits intomainfrom
cuvs_bench_cagra_config
Open

Update cagra config yaml for cuvs_bench#1822
tfeher wants to merge 2 commits intomainfrom
cuvs_bench_cagra_config

Conversation

@tfeher
Copy link
Copy Markdown
Contributor

@tfeher tfeher commented Feb 19, 2026

This PR updates the CAGRA config options for the parameter sweep used by cuvs-bench.

  • intermediate_graph_degree: in practice we often use intermediate_graph_degree = graph_degree * 1.5. We pick a fixed value that works works with all of the graph_degree options we want to test.
  • max_iterations: the default 0 value auto selects the iterations based on itopk. I have added value 16 additionally, which is a low number of iterations, and it can be useful to reach large throughput in recall < 0.9 region.
  • search_width: we often reach around 99% recall with width 8, therefore I propose to remove higher values from the base scan
  • graph_build_algo: ideally we wound want the algorithm automatically selected. Currently the benchmark framework would select the iterative method by default, which does not work with memory mapped data. The NN descent method can run out of memory for 10M scale dataset. Therefore I propose to fix IVF_PQ, until we enable a reliable default algorithm selection.

@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Feb 19, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@cjnolet cjnolet added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Feb 19, 2026
@cjnolet cjnolet moved this to In Progress in Unstructured Data Processing Feb 19, 2026
Copy link
Copy Markdown
Contributor

@tarang-jain tarang-jain left a comment

Choose a reason for hiding this comment

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

LGTM except one comment.

intermediate_graph_degree: [32, 64, 96, 128]
graph_build_algo: ["NN_DESCENT"]
graph_degree: [32, 64, 96]
intermediate_graph_degree: [128]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Dont we want intermediate_graph_degree 64 when the graph degree is 32? @bkarsin had also raised an issue in the past wherein CAGRA can give poor recall when the intermediate graph degree is quite large in comparison to the graph degree.

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

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants