pylibraft-cu12
RAFT: Reusable Algorithms Functions and other Tools
What it is and what it does
pylibraft-cu12 is the Python interface to RAFT, a C++ header-only template library of CUDA-accelerated primitives for machine learning and data mining. It exposes runtime APIs that do not require a CUDA compiler, making GPU-accelerated algorithms accessible from Python without compilation overhead.
The package provides low-level building blocks—linear algebra, matrix operations, sparse and dense computations, solvers, and statistics—designed for application developers and data source providers building high-performance GPU workflows. It integrates with the RAPIDS ecosystem via RMM (memory management) and numpy, and accepts any object supporting the __cuda_array_interface__, enabling interoperability with other GPU libraries.
Use it for:
- Accelerate linear algebra operations (SVD, eigenvalue, factorization) on GPU-resident matrices.
- Implement sparse matrix operations and graph algorithms on GPU with centralized, optimized primitives.
- Develop high-performance machine learning applications that reuse vetted, maintained RAFT kernels.
- Build distributed GPU algorithms with multi-node multi-GPU infrastructure via raft-dask.
- Integrate GPU-accelerated computations into Python workflows with zero-copy interoperability.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
pylibraft-cu12 provides Python bindings to RAFT's CUDA-accelerated primitives for linear algebra, sparse and dense operations, statistics, and solvers, designed for GPU-accelerated algorithm development.
Yes, if you have a CUDA 12 GPU and need low-level accelerated primitives for algorithm development. The active maintenance, permissive Apache-2.0 license, and interoperability with numpy and other GPU libraries make it a solid foundation for GPU-accelerated workflows. Medium install friction is acceptable for the performance and code-reuse benefits. Not suitable if you lack GPU hardware or need high-level data science tools.
Install
pylibraft-cu12 on PyPI
pip
pip install pylibraft-cu12uv
uv add pylibraft-cu12poetry
poetry add pylibraft-cu12Installing pylibraft-cu12
Before you install
Medium install friction due to CUDA 12 and GPU-specific dependencies (libraft-cu12, rmm-cu12, cuda-bindings). Requires Python 3.11+. Active maintenance with recent releases; repository shows 1037 stars and last commit on 2026-08-14.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install pylibraft-cu12
import numpy
from pylibraft import device_ndarray
# Create GPU-resident arrays via numpy or __cuda_array_interface__ compatible objects
output = device_ndarray()
Requires NVIDIA GPU with CUDA 12 support and CUDA Toolkit installed; Python 3.11 or later.
Verify before relying
- Specific CUDA compute capability requirements beyond CUDA 12 availability.
- Whether libraft-cu12 and rmm-cu12 are available for all target platforms or if installation may fail on unsupported architectures.
- Concrete example workflows demonstrating the package's primitives in isolation without external GPU libraries.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 4 — cuda-bindings, libraft-cu12, numpy, rmm-cu12 |
| Maintenance | actively maintained — 8 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 395,975/month — #6,976 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pylibraft_cu12-26.8.0-cp311-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl; pylibraft_cu12-26.8.0-cp311-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
libraft-cu12libraft-cu12 provides CUDA-accelerated…
permissive · top 15,000 on PyPI
raft-dask-cu12Provides multi-node multi-GPU distributed…
permissive · top 15,000 on PyPI
pylibcudf-cu12pylibcudf-cu12 provides Python bindings for…
permissive · top 15,000 on PyPI
libcuvs-cu12GPU-accelerated vector search and clustering…
permissive · top 15,000 on PyPI
cuvs-cu12Provides GPU-accelerated approximate nearest…
permissive · top 15,000 on PyPI
cuml-cu12GPU-accelerated machine learning algorithms for…
permissive · top 15,000 on PyPI
nvidia-cusolver-cu12Provides CUDA solver native runtime libraries…
unclear · top 1,000 on PyPI
nvidia-cusparse-cu12Provides NVIDIA CUSPARSE native runtime…
unclear · top 1,000 on PyPI
libcuml-cu12GPU-accelerated machine learning algorithms…
permissive · top 15,000 on PyPI
nvidia-cusolver-cu11Provides NVIDIA CUDA solver native runtime…
unclear · top 5,000 on PyPI