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

Aperta
#2,879 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
54/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Cuda
Stelle
902
Fork
267
Merge medio
2g 21h
PR unite (30g)
57

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA/cuvs

Tutte le issue di NVIDIA/cuvs

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.