[FEA] Size balanced k-means predict batches using the selected 1-NN backend

未关闭
#3,109 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
28/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp

调研方向

Start in cpp/src/cluster/detail/kmeans_balanced.cuh, where predict picks the 1-NN backend and calc_minibatch_size sizes the outer row batch before that choice is made. Check how the fused and unfused backends differ in scratch requirements, then make the batch sizing depend on the backend that will actually run. Done when the 2.495M-row assignment case in #2948 needs one fused launch and the existing balanced k-means tests still pass.

由索引模型根据 Issue 内容生成。

描述

Balanced k-means predict sizes its outer row batch before selecting the 1-NN backend. calc_minibatch_size budgets for the unfused distance tile even when the fused backend runs.

On B200, the first full assignment in #2948 (2.495M FP32 rows, 1,536 dimensions, 8,192 centroids) issued 153 fused 1-NN launches. A prototype using the fused scratch requirement processed the same input in one launch with about 48 MiB of scratch, saving about 6.6 ms in that assignment.

主要语言
Cuda
星标
902
派生
267
平均合并
2 天 21 小时
30 天内合并 PR
57

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NVIDIA/cuvs 的其他 Issue

查看 NVIDIA/cuvs 的全部 Issue

相似的 Issue

更多 Machine Learning Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。