[FEA] Document HNSW-to-CAGRA migration for Faiss Python and cuVS Bench
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
- Ambito
- documentation, machine-learning
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
- 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.
- Lingua principale
- Cuda
- Stelle
- 902
- Fork
- 267
- Merge medio
- 2g 21h
- PR unite (30g)
- 57
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NVIDIA/cuvs
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG] CAGRA multi-CTA and multi-kernel search over-allocate the hashmap they useForse già presa @mc8max l’ha presa 12 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
NVIDIA/cuvs#2856 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] cuVS Bench Faiss CAGRA b_ratio reads the wrong JSON keyForse già presa @arcusbuilds l’ha presa 55 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
doc
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Upgrade faiss to v1.16.0Forse già presa @aamijar l’ha presa 8 giorni fa. Apertafaiss improvement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 62/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
CivicTechWR/accessible-housing-portal#636 ·
I maintainer di solito rispondono entro 1 giorno
-
Document the isv:HDFGroup Linux package repositories and signing keyForse già presa @brtnfld l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
documentation factory:ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100