[FEA] IVF-PQ transform: faster PQ-encode kernels (SIMT / tensor-core backends)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Activo
- Área
- machine-learning, performance
Línea de trabajo
The issue identifies ivf_pq::transform and the prototype environment variable LANCE_CUVS_PQ_ENCODE_BACKEND, but names no source files or tests. First read the transform and its index parameters, then locate the prototype kernels and microbench used for the reported timings and accuracy. Before implementation, maintainers need to decide the parameter API and acceptable accuracy; done means the chosen backends are selectable and validated, including the PER_CLUSTER fallback.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
In ivf_pq::transform, PQ encoding of residuals is a significant part of the cost at large scale.
Solution
Add alternative encode backends for PER_SUBSPACE codebooks, selectable via a parameter:
baseline (current), simt, tensor (TF32/FP16 tensor cores), tensor3 (3-pass split, ~exact).
Measured (microbench, us/row): baseline 0.370, simt 0.143, tensor 0.064, tensor3 0.0715.
Accuracy vs exact FP64: tensor ~0.08% of codes differ; tensor3 ~exact. Best 1B config uses tensor3.
Open questions for maintainers
- API shape: a field in the transform/index params vs an automatic choice (default stays
baselineortensor3?). - Is a ~0.08% code mismatch acceptable for
tensor, or should only the ~exact variant ship? - PER_CLUSTER codebooks are not supported by the new backends (falls back to baseline).
Prototype has an env var (LANCE_CUVS_PQ_ENCODE_BACKEND); upstream would replace it with a parameter.
- Lenguaje dominante
- Cuda
- Estrellas
- 902
- Forks
- 267
- Merge medio
- 2 d 21 h
- PR fusionados (30 d)
- 57
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NVIDIA/cuvs
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
[BUG] CAGRA multi-CTA and multi-kernel search over-allocate the hashmap they usePosiblemente ocupada @mc8max la tomó hace 12 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
NVIDIA/cuvs#2856 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[BUG] cuVS Bench Faiss CAGRA b_ratio reads the wrong JSON keyPosiblemente ocupada @arcusbuilds la tomó hace 55 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
doc
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Upgrade faiss to v1.16.0Posiblemente ocupada @aamijar la tomó hace 8 días. Abiertofaiss improvement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
Todos los issues de NVIDIA/cuvs
Issues similares
-
Specifically suppress IsEnoughWorkspace, instead of all MIopen warnings in denoiser/config.pyAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
supersonic-lumina/ENM156#50 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
tenstorrent/tt-metal#67322 ·
Los mantenedores suelen responder en 1 día
-
`mm_fp4(backend="cute-dsl")` on SM107 gives wrong output: `alpha` is rounded to the output dtype before the FP32 epiloguePosiblemente ocupada @shotsan la tomó hoy. Abiertoneeds-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
flashinfer-ai/flashinfer#10041 ·
Los mantenedores suelen responder en 1 día
-
[BUG] Stats API always returns model-level stats, ignoring target_stat_levels and stat filtersPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertountriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
opensearch-project/ml-commons#5293 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[BUG] sapo_loss_fn gives a NaN gradient when a masked token's log ratio overflows expPosiblemente ocupada @shashank11yadav la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
areal-project/AReaL#2007 ·
Los mantenedores suelen responder en 1 día