[FEA] Document HNSW-to-CAGRA migration for Faiss Python and cuVS Bench

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

メンテナーはふだん 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

Related broader workflow: #2730.

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

環境構築

はじめの一歩

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

NVIDIA/cuvs のほかの issue

NVIDIA/cuvs の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

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

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