Repository navigation
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
Merged
rapids-bot
merged 46 commits into
NVIDIA:release/26.12
from
Stardust-SJF:cuvs_ivf_rabitq_standalone_quantizer
Nov 24, 2026
Merged
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
742dba9
Fuse RaBitQ block reductions into one templated blockReduceSumN<N>
Stardust-SJF 22172a1
Fix rescale-search shared-memory races by restructuring
Stardust-SJF f3a31aa
Add a standalone RaBitQ quantizer under preprocessing/quantize
Stardust-SJF 1a5e2a3
Make the RaBitQ quantizer detail layer stream- and resource-aware
Stardust-SJF 2c64068
Rename the RaBitQ factories init_* -> make_*
Stardust-SJF 36028d1
Add the C API for the RaBitQ preprocessing quantizer
Stardust-SJF a2c5747
Merge branch 'main' into cuvs_ivf_rabitq_syn_fix_fused
tfeher 2a1c334
Replace the RaBitQ glue kernels with raft primitives
Stardust-SJF 93ea433
Generate the RaBitQ matmul rotation with the shared IVF-PQ helper
Stardust-SJF 3af40d4
Add cuvsRabitqRotatorMakeFromState to restore a saved rotator
Stardust-SJF 33020da
Batch RaBitQ transform() internally, sized to the L2 cache
Stardust-SJF 69d8b96
Fix 32-bit factor index overflow in the RaBitQ full-factor kernel
Stardust-SJF e8cd13c
Accept host input in RaBitQ transform()
Stardust-SJF 1618145
Rename pipeline to quantizer and the old quantizer to encoder in RaBitQ
Stardust-SJF 140fab3
Merge branch 'pull-request/2362' into cuvs_ivf_rabitq_standalone_quan…
achirkin 128268a
Merge branch 'main' into cuvs_ivf_rabitq_syn_fix_fused
achirkin e837738
Merge remote-tracking branch 'sjf/cuvs_ivf_rabitq_syn_fix_fused' into…
achirkin b5ccd94
Merge remote-tracking branch 'rapidsai/main' into pull-request/2362
achirkin 42fcdfb
Merge branch 'pull-request/2362' into cuvs_ivf_rabitq_standalone_quan…
achirkin a6ad49e
Merge branch 'main' into cuvs_ivf_rabitq_standalone_quantizer
achirkin 89d518e
Spec-based dataset api
achirkin 8f1b9ce
Fix style
achirkin 4a9e8f3
Fix style
achirkin f02247a
Merge branch 'cuvs_ivf_rabitq_standalone_quantizer' into fea-rabitq-spec
achirkin 7db6e2f
Fix build errors
achirkin 28ccd92
Merge branch 'cuvs_ivf_rabitq_standalone_quantizer' into fea-rabitq-spec
achirkin afb5f91
Merge pull request #1 from achirkin/fea-rabitq-spec
Stardust-SJF 82b1325
Merge branch 'main' into cuvs_ivf_rabitq_standalone_quantizer
achirkin 8e68cde
Merge remote-tracking branch 'rapidsai/main' into cuvs_ivf_rabitq_sta…
achirkin c6632a7
Fix the symbol visibility
achirkin d42a40a
Merge remote-tracking branch 'public/main' into cuvs_ivf_rabitq_stand…
Stardust-SJF a7f80d5
Throw instead of exiting on unsupported RaBitQ FHT dimensions
Stardust-SJF 12ed643
Opt in to more shared memory for the RaBitQ scaling-factor kernel
Stardust-SJF 2e5d05a
Request shared memory in the RaBitQ quantize kernels only when needed
Stardust-SJF b3db6d9
Forward the rescale sample counts to the RaBitQ full-factor path
Stardust-SJF 2cc3b97
Document that RaBitQ delta is computed from signed code levels
Stardust-SJF 6d27955
Document the 16-bit code requirement for RaBitQ ex_bits = 8
Stardust-SJF 0a1302e
Show the RaBitQ delta formulas in the API page tables
Stardust-SJF 3a5fa14
Update cpp/include/cuvs/preprocessing/quantize/rabitq.hpp
Stardust-SJF d3c0cab
Update cpp/tests/preprocessing/rabitq_quantization.cu
Stardust-SJF d916649
Apply the review cleanups to the RaBitQ quantizer
Stardust-SJF b741b07
Use cub::BlockReduce for the RaBitQ quantizer block reductions
Stardust-SJF c11432f
Take mdspan views in the RaBitQ quantizer detail layer
Stardust-SJF 94ed09e
Use raft::warpReduce for the RaBitQ quantizer warp sums
Stardust-SJF 1540b4c
Add missing cub includes
tfeher 049f6d6
Merge branch 'release/26.12' into cuvs_ivf_rabitq_standalone_quantizer
tfeher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Rename the RaBitQ factories init_* -> make_*
Aligns the public factories with the verb cuVS already uses for functions that return a new object, and with the split ivf_rabitq itself observes: - make_* returns a new object. ivf_rabitq's internals use it for exactly that (make_compute_inner_products_with_lut_launcher and friends), and cuVS's public headers use it ~106 times across make_const_mdspan, make_scalar_view, make_list_extents, make_aligned_dataset, make_strided_dataset and others. - init_* populates existing state and returns void, e.g. void IVFGPU::init_clusters(cluster_sizes). Every other init_* in the tree is a detail-level seeder (init_centroids, init_plus_plus, init_random_graph, init_key), never public API. Before this change init_rotator / init_quantizer / init_pipeline were the only init_* functions in the whole public API surface, and they return objects, so make_* is both the conventional and the more accurate verb. The detail layer keeps init_state_matmul / init_state_fht_kac: they fill a caller-provided device buffer and return void, which is the init_* semantic. PREPROCESSING_TEST still passes 368/368; no behaviour change.
- Loading branch information
commit 2c6406893a4b563beca13d0d2c350af0601b3949
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means there is no clustering involved. We also don't subtract a global mean value from the vectors, right? Do we have assumption about data distribution (e.g. zero mean), or it is not required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For RaBitQ, it does not need any type of assumption for data distribution, and we also don't subtract a global mean value from the vectors.
Still, we provide a centroid option (something like the global mean) for subtraction. This can provide a tighter error bound in some cases (e.g., for IVF-RaBitQ).