[FEA] Add an agent skill for repeatable HNSW-to-CAGRA tuning

オープン
#2,730 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
yaml

調査の方向性

Start by reviewing the cuVS HNSW-to-CAGRA heuristic in cpp/src/neighbors/cagra.cpp lines 55-63, then read the cuVS Bench usage and CAGRA memory guidance linked in the issue. Compare the requested GPU build, GPU search, and CPU Faiss search workflows with companion issue 2731. Done means a reviewed skill can produce a reproducible configuration and execution plan with memory checks, sweep results, matched-recall Pareto comparisons, and recorded environment details.

索引モデルが issue の本文から書いたものです。

説明

feature request

Is your feature request related to a problem? Please describe.
Customers moving from Faiss HNSW to GPU-built CAGRA often know their existing HNSW settings, hardware, exact recall target, and search latency target, but do not know which CAGRA configurations to test. HNSW M does not map directly to CAGRA graph degree. Reaching a useful result requires memory estimates, a build and search sweep, and comparisons at matched exact recall.

This is particularly difficult when indexes are built on a GPU machine and searched on a separate CPU machine. The customer must coordinate the two environments and combine their results manually.

Describe the solution you'd like
Add a cuVS agent skill, backed by reproducible cuVS Bench workflows, that guides a customer through HNSW-to-CAGRA tuning. The customer provides their dataset or dataset descriptor, exact ground truth or a way to generate it, existing HNSW settings, recall and latency targets, and build and search hardware.

The skill should:

Estimate host and GPU build memory, including headroom, and flag configurations unlikely to fit the supplied hardware.

Use cuVS HNSW-to-CAGRA heuristics to propose a focused starting grid for graph degree, intermediate graph degree, and the CAGRA graph builder.

Run or generate the commands to run GPU builds and the applicable search sweeps through cuVS Bench. Support GPU search and GPU-built Faiss IndexHNSWCagra searched on a separate CPU host.

Expand the grid when the first sweep does not reach the recall target, while preserving the settings and measurements from each run.

Return per-configuration build time, conversion time when applicable, exact recall, search latency, and measured peak memory. Show Pareto results for each search path and identify configurations that meet the customer's targets at matched recall.

Record the dataset definition, metric, ground truth, software versions, hardware, batch size, and CPU thread count so the comparison can be reproduced.

An initial version could generate a reviewed configuration and execution plan; it need not provision machines or move customer data.

Describe alternatives you've considered
Customers can use the HNSW-to-CAGRA heuristic, write cuVS Bench YAML, estimate memory from the documentation, and join build and search results themselves. This works for experts but requires several manual steps and can be error-prone for beginners who can be tempted to cherry pick config parameters across HNSW and CAGRA instead of doing proper pareto analysis.

Additional context
CAGRA tuning and memory guidance

cuVS Bench usage and plotting workflow

A companion request proposes the split GPU build and CPU-only benchmark workflow needed for the Faiss CPU search path.

主要言語
Cuda
スター
902
フォーク
267
平均マージ
2日 21時間
マージ済み PR(30日)
57

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA/cuvs のほかの issue

NVIDIA/cuvs の issue をすべて見る

似ている issue

Performance の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。