[FEA] Add an agent skill for repeatable HNSW-to-CAGRA tuning
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 活跃
- 技术栈
- yaml
- 领域
- performance, search, tooling
调研方向
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 内容生成。
描述
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 小时
- 30 天内合并 PR
- 57
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NVIDIA/cuvs 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
[BUG] CAGRA multi-CTA and multi-kernel search over-allocate the hashmap they use可能已有人在做 @mc8max 于 12 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
[BUG] cuVS Bench Faiss CAGRA b_ratio reads the wrong JSON key可能已有人在做 @arcusbuilds 于 55 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
doc
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Upgrade faiss to v1.16.0可能已有人在做 @aamijar 于 8 天前认领。 未关闭faiss improvement
难度 1/5 1 小时以内 新手友好度 86/100
维护者通常 1 天内回复
相似的 Issue
-
bug untriaged
难度 2/5 1-3 小时 新手友好度 78/100
opensearch-project/sql#5990 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
[Device]: Share verified Stage 1-5 benchmarks for Samsung One UI, Xiaomi HyperOS, and Pixel/AOSP未关闭device-compatibility help wanted
难度 2/5 1-3 小时 新手友好度 60/100
-
难度 2/5 1-3 小时 新手友好度 70/100
siyuan-note/siyuan#21691 ·
维护者通常 1 天内回复