-
Notifications
You must be signed in to change notification settings - Fork 5
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
RabitQ quantization support #32
Comments
Sample code: https://github.com/gaoj0017/RaBitQ |
Let's break the Index Phase down:
This means find the centroid of all data vectors (
Just need to create a random orthogonal matrix P of size
https://github.com/gaoj0017/RaBitQ/blob/main/data/rabitq.py#L17-L21
Compute these values and store them for later use. Note that we already have all the info from the previous steps. |
Normalize: Inverse transform:
Convert where
Here, we can retrieve Then calculate There are 2 ways to compute Then, we can compute
Here is equation (2): Where
|
Implement this paper: https://arxiv.org/abs/2405.12497 as a new quantization type
The text was updated successfully, but these errors were encountered: