Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[BUG] cuVS Bench Faiss CAGRA b_ratio reads the wrong JSON key

Abierto Apto para principiantes
#2,718 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

@arcusbuilds ya está trabajando en esto.

Desde el 1/10/2026.

  • #2719 de @arcusbuilds — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
84/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
cpp

Línea de trabajo

Comienza con cpp/bench/ann/src/faiss/faiss_gpu_benchmark.cu alrededor de las líneas 114-126 y, a continuación, inspecciona la configuración faiss_gpu_cagra_hnsw.yaml enlazada. Reproduce el benchmark de IVF-PQ usando b_ratio sin ratio y añade cobertura de regresión que demuestre que la configuración se analiza y aplica la fracción de entrenamiento solicitada.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

Describe the bug
The Faiss CAGRA benchmark parser recognizes the IVF-PQ build setting b_ratio, but reads ratio instead. If the configuration contains b_ratio without an unprefixed ratio, it appears to throw nlohmann::json::out_of_range before building. Both faiss_gpu_cagra and faiss_gpu_cagra_hnsw use this parser

Steps/Code to reproduce bug
In the existing Faiss CAGRA to HNSW benchmark configuration, set the build parameters to include:

cagra_build_algo: ["IVF_PQ"]
graph_degree: [44]
intermediate_graph_degree: [192]
b_ratio: [6]

Run the benchmark against a float32 dataset. No unprefixed ratio key is configured.

The parser removes b_ and checks ivf_pq_build_conf.contains("ratio"), then reads conf.at("ratio"). The latter key is absent.

Expected behavior
b_ratio: 6 sets the IVF-PQ training fraction to 1.0 / 6, and the CAGRA build proceeds.

Environment details (please complete the following information):
Inspected the NVIDIA/cuvs main branch on October 1, 2026.

Additional context
This affects benchmark configuration, not the CAGRA builder itself. Omitting b_ratio avoids the apparent exception but does not apply the requested training fraction. The parser could read ivf_pq_build_conf.at("ratio"); a regression test with b_ratio present and ratio absent would cover the case.

Lenguaje dominante
Cuda
Estrellas
873
Forks
247
Merge medio
4 d 10 h
PR fusionados (30 d)
73

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de NVIDIA/cuvs

Todos los issues de NVIDIA/cuvs

Issues similares

Más issues de Performance

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.