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

オープン
#3,109 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
57

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA/cuvs のほかの issue

NVIDIA/cuvs の issue をすべて見る

似ている issue

Machine Learning の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。