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

Aperta
#3,109 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Cuda
Stelle
902
Fork
267
Merge medio
2g 21h
PR unite (30g)
57

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA/cuvs

Tutte le issue di NVIDIA/cuvs

Issue simili

Altre issue su Machine Learning

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.