Expose kmeans to python#729
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
@benfred this looks great, but one of the things we're being asked for quite a bit today is to expose the hierarchical kmeans to Python. Any chance we can also expose those functions? I don't mind doing it as a follow-up, given that this PR is already feature complete. |
|
/ok to test |
|
|
||
| rmm::device_uvector<char> workspace(n_samples * sizeof(IndexT), stream); | ||
|
|
||
| rmm::device_uvector<DataT> x_norms(n_samples, stream); |
There was a problem hiding this comment.
Can the newer mdarray/mdspan API be used here? For the allocation of memory and the calls to raft functions that accept it.
There was a problem hiding this comment.
I've used the newer mdarray functions where possible in the last commit (but there are some cases where a device_uvector is expected, like the workspace etc, so I've left those as is)
|
/merge |
|
Cheers! When will the corresponding version be released? |
|
@VoVAllen Nightlies of cuVS are available now (https://anaconda.org/rapidsai-nightly/cuvs/files), see install commands here (select "Nightly"): https://docs.rapids.ai/install/ The 25.06 release will come out around June 4-5. |
|
Thank you for your excellent work! Have you considered exposing the int8 k-means functionality to Python as well? |
No description provided.