-
Notifications
You must be signed in to change notification settings - Fork 80
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
[BUG]RAFT Failure error while running the cuVS Python SQ API #623
Comments
Error Message: Error processing split 0: RAFT failure at file=/opt/conda/conda-bld/work/cpp/src/neighbors/detail/nn_descent.cuh line=1446: The metric for NN Descent should be L2Expanded, CosineExpanded or InnerProduct |
Whats the distance metric you are using? The error message says Do you have a minimum reproducer? The notebook has a bunch of extra code - but running the scalar quantizer with cagra seems to work for me: import cupy as cp
from cuvs.neighbors import cagra
from cuvs.preprocessing.quantize import scalar
dataset = cp.random.random_sample((1024, 64), dtype=cp.float32)
quantizer = scalar.train(scalar.QuantizerParams(), dataset)
transformed = cp.array(scalar.transform(quantizer, dataset))
index = cagra.build(cagra.IndexParams(), transformed)
distances, neighbors= cagra.search(cagra.SearchParams(), index, transformed, k=10)
neighbors = neighbors.copy_to_host()
print(neighbors[:10]) |
This issue was fixed offline so I'm going to close it. Please open back up problem persists |
Describe the bug
The original embedding before SQ works on cagra, but after SQ, I am encountering this error. Does cagra.build support int8? Also after quantization, the embedding is int8, containing negative number, not sure if it suppose to be int8 or uint8?
Steps/Code to reproduce bug
Link to the notebook with SQ and failed cagra.build: https://gitlab-master.nvidia.com/ameliay/cagra-umap/-/commit/7b0739622aff28c192ed49887c0327ea733390ac#c187ee3d6e010901b2354522adb927344250e1bd_0_291
error message also there.
Expected behavior
cagra.build runs without error so that we can continue to cagra.search and calculate recall score
Environment details (please complete the following information):
docker pull
&docker run
commands usedAdditional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: