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

Đang mở
#3,109 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
28/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Cuda
Star
902
Fork
267
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
57

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/cuvs

Tất cả issue của NVIDIA/cuvs

Issue tương tự

Thêm issue về Machine Learning

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.