[FEA] IVF-PQ transform: faster PQ-encode kernels (SIMT / tensor-core backends)

Đang mở
#3,009 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi

Hướng nghiên cứu

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.

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

Mô tả

feature request

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 baseline or tensor3?).
  • 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.

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.