Repository navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Support Standalone RaBitQ in cuVS #2377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Support Standalone RaBitQ in cuVS #2377
Changes from 1 commit
742dba922172a1f3a31aa1a5e2a32c6406836028d1a2c57472a1c33493ea4333af40d433020da69d8b96e8cd13c1618145140fab3128268ae837738b5ccd9442fcdfba6ad49e89d518e8f1b9ce4a9e8f3f02247a7db6e2f28ccd92afb5f9182b13258e68cdec6632a7d42a40aa7f80d512ed6432e5d05ab3db6d92cc3b976d279550a1302e3a5fa14d3c0cabd916649b741b07c11432f94ed09e1540b4c049f6d6File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
pipeline.cu hand-rolled two elementwise kernels around the rotator. Both are now raft calls, following review feedback: - pad_rows_kernel -> raft::linalg::map_offset over the padded [N, D] output, in a small pad_rows helper because pad_and_rotate needs it in both the in-place and the out-of-place (matmul) branch. - subtract_row_kernel -> raft::matrix::linewise_op<Apply::ALONG_ROWS> with raft::sub_op, in place on the residuals. The vector is the rotated centroid, so its length is the padded D, not dim. ivf_pq_build.cuh subtracts cluster centers with the same in-place call. - With no hand-written launches left, the grid-size arithmetic and the cudaGetLastError checks go too. The old kernels indexed with int, so N * D >= 2^31 overflowed: at 2.2M rows of dim 1000 (D = 1024) transform() aborted on a CUDA error. The raft calls index with size_t / int64_t and handle that size. Tested on an RTX PRO 6000 (sm_120a): - PREPROCESSING_TEST 368/368, RABITQ_C_TEST 2/2. - Codes, factors and rotator state byte-identical to the previous commit over 96 configurations: dim {33, 100, 200, 960, 1000} x {matmul, fht_kac} x ex_bits {3, 8} x factor_mode {0, 1} x {no centroid, centroid} at 5000 rows, plus 1- and 7-row inputs. Also byte-identical on the last 1000 rows of a 2.0M-row, dim-1000 run, the largest size the old kernels handle. - At 2.2M rows the last 1000 rows match the same rows quantized on their own: exactly for fht_kac, and for matmul up to cuBLAS's shape-dependent sgemm rounding, which the old code shows identically at 2.0M rows. - transform() at 1M rows, dim 1000 is 0.2-0.7% slower than before, most of it in the centroid subtraction.Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Uh oh!
There was an error while loading. Please reload this page.