[FEA] IVF-PQ transform: faster PQ-encode kernels (SIMT / tensor-core backends)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 活跃
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Cuda
- 星标
- 902
- 派生
- 267
- 平均合并
- 2 天 21 小时
- 30 天内合并 PR
- 57
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NVIDIA/cuvs 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
[BUG] CAGRA multi-CTA and multi-kernel search over-allocate the hashmap they use可能已有人在做 @mc8max 于 12 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
[BUG] cuVS Bench Faiss CAGRA b_ratio reads the wrong JSON key可能已有人在做 @arcusbuilds 于 55 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
doc
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Upgrade faiss to v1.16.0可能已有人在做 @aamijar 于 8 天前认领。 未关闭faiss improvement
难度 1/5 1 小时以内 新手友好度 86/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
supersonic-lumina/ENM156#50 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
tenstorrent/tt-metal#67322 ·
维护者通常 1 天内回复
-
`mm_fp4(backend="cute-dsl")` on SM107 gives wrong output: `alpha` is rounded to the output dtype before the FP32 epilogue可能已有人在做 @shotsan 今天认领。 未关闭needs-triage
难度 2/5 1-3 小时 新手友好度 62/100
flashinfer-ai/flashinfer#10041 ·
维护者通常 1 天内回复
-
[BUG] Stats API always returns model-level stats, ignoring target_stat_levels and stat filters可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭untriaged
难度 2/5 1-3 小时 新手友好度 72/100
opensearch-project/ml-commons#5293 · 1 条评论 ·
维护者通常 1 天内回复
-
[BUG] sapo_loss_fn gives a NaN gradient when a masked token's log ratio overflows exp可能已有人在做 @shashank11yadav 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
areal-project/AReaL#2007 ·
维护者通常 1 天内回复