[FEA] Document HNSW-to-CAGRA migration for Faiss Python and cuVS Bench
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 54/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
Start with the CAGRA guide, the referenced C++ heuristics in cpp/src/neighbors/cagra.cpp, Faiss options in faiss/gpu/GpuIndexCagra.h, and the cuVS Bench configuration at python/cuvs_bench/cuvs_bench/config/algos/faiss_gpu_cagra.yaml. Trace the current heuristics and interface options, then document runnable Faiss Python and equivalent Bench examples, full builder settings, conversion and search sweeps, and applicable versions. Done means the migration guidance distinguishes both search paths and explains how to validate heuristic builds with recall and latency or throughput measurements.
索引モデルが issue の本文から書いたものです。
説明
Problem
Faiss Python users migrating from HNSW to CAGRA must reconstruct the cuVS C++ HNSW heuristics manually. The CAGRA cuVS guide shows from_hnsw_params in a C++ conversion example, but does not explain the effective settings or how to apply them in Faiss Python and cuVS Bench. HNSW M is not directly equivalent to CAGRA graph_degree.
Requested change
Add a Faiss Python migration example that:
- Takes HNSW M and efConstruction, dataset size and dimension, and distance metric.
- Explains SIMILAR_SEARCH_PERFORMANCE and SAME_GRAPH_FOOTPRINT and shows the resulting graph degree, intermediate graph degree, graph builder, and builder-specific settings.
- Provides runnable Faiss Python and equivalent cuVS Bench YAML, identifying any settings the interfaces cannot represent.
- Separates GPU-built CPU IndexHNSWCagra search from native GPU CAGRA search, including conversion options and the applicable search sweeps.
- Explains that heuristics provide starting builds, requiring measurement of exact recall and latency or throughput at matched recall.
For M=64 and efConstruction=512, the current heuristics produce GD44/IGD192 and GD128/IGD192 respectively. The builder is NN-Descent below one million vectors and IVF-PQ otherwise. Include the full builder configuration, not just degrees, and document applicable versions.
References
- https://docs.nvidia.com/cuvs/user-guide/api-guides/indexing-guide/cagra
- https://github.com/NVIDIA/cuvs/blob/main/cpp/src/neighbors/cagra.cpp
- https://github.com/facebookresearch/faiss/blob/main/faiss/gpu/GpuIndexCagra.h
- https://github.com/NVIDIA/cuvs/blob/main/python/cuvs_bench/cuvs_bench/config/algos/faiss_gpu_cagra.yaml
Related broader workflow: #2730.
- 主要言語
- Cuda
- スター
- 902
- フォーク
- 267
- 平均マージ
- 2日 21時間
- マージ済み PR(30日)
- 57
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 62/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
CivicTechWR/accessible-housing-portal#636 ·
メンテナーはふだん 1 日以内に返信
-
Document the isv:HDFGroup Linux package repositories and signing key対応中かも @brtnfld が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
documentation factory:ready
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100