pylibraft-cu12 is the Python binding for RAFT (Reusable Algorithms Functions and other Tools), a core component of the NVIDIA RAPIDS ecosystem providing a collection of GPU-accelerated primitives and algorithms for data science. It is designed for optimal performance on NVIDIA GPUs with CUDA 12.x. The current version is 26.4.0, following a monthly release cadence aligned with the broader RAPIDS project.
pip install pylibraft-cu12 cupy-cuda12xVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use `raft.neighbors.NearestNeighbors` to find the k-nearest neighbors on GPU data using CuPy. It initializes random GPU data, fits a NearestNeighbors model, and queries for neighbors. Ensure you have `cupy-cuda12x` installed for this example to run and a CUDA-enabled GPU.
Ensure your system has CUDA Toolkit 12.2+ installed and configured correctly. For Docker, use RAPIDS base images built for CUDA 12.2+.
Consult the RAFT Python documentation for your specific version (e.g., `docs.rapids.ai/api/raft/stable/api_docs/python/`). Adapt your code to use available functions/parameters or alternative algorithms.
Update your code to use the new name for the Lanczos solver. Refer to the RAFT release notes or API documentation for the correct symbol name.
Always install `cupy-cuda12x` alongside `pylibraft-cu12` for practical use cases: `pip install pylibraft-cu12 cupy-cuda12x`.
Pin your `pylibraft-cu12` version in `requirements.txt` to avoid unexpected breakage on update (e.g., `pylibraft-cu12==26.4.0`), and review release notes (e.g., on `github.com/rapidsai/raft/releases`) before upgrading.