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.
Brings rabitq to parity with scalar/binary/pq, which all expose a C API under c/. 20 functions, each returning cuvsError_t with its body wrapped in cuvs::core::translate_exceptions: - cuvsRabitqQuantizerParams + ParamsCreate/ParamsDestroy, defaults mirroring the C++ member initializers. - Opaque cuvsRabitqRotator / cuvsRabitqQuantizer handles + Create/Destroy. - cuvsRabitqRotatorMake / QuantizerMake / PipelineMake. - cuvsRabitqRotate, cuvsRabitqTransform[Full], cuvsRabitqTransformResiduals[Full]. - Getters: rotator kind/padded_dim/state, quantizer dim/padded_dim/ const_scaling_factor. Notes on the shape: - No opaque pipeline handle. The C++ pipeline only composes the two peers, so cuvsRabitqPipelineMake takes two out-parameters instead of adding a third handle type to unwrap. - The handles carry only { uintptr_t addr }. pq and binary also carry a DLDataType because their C++ class is quantizer<T> and the field records which instantiation to cast back to; rabitq's rotator and quantizer are non-templated, so the field would be permanently dead. - The rotator getters are load-bearing rather than conveniences: there is no serialize API by design, so GetKind/GetPaddedDim/GetState are the only way a C caller can keep the rotator alongside the codes it produced. GetState follows cuvsProductQuantizerGetPqCodebook's ownership semantics (a non-owning view of rotator-owned device memory) but its rank and dtype depend on the kind: 2-D float32 for matmul, 1-D uint8 for fht_kac. - Device memory only. pq/scalar/binary dispatch between host and device overloads; every rabitq entry point takes device views, so host tensors are rejected rather than routed. - transform and transform_residuals are each overloaded on their output type alone, which C cannot express, hence the explicit ...Full spellings. - rabitq.h had to be added to c/include/cuvs/core/all.h: header_check.cmake globs c/include and fails an existing test for any header missing from it. Tested on an RTX PRO 6000 (sm_120a): RABITQ_C_TEST passes 2/2, covering both rotator kinds end to end (PipelineMake -> Transform -> GetState -> Destroy), and PREPROCESSING_TEST still passes 368/368.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.
Uh oh!
There was an error while loading. Please reload this page.