{"id":21850,"library":"raft-dask-cu12","title":"RAFT Dask","description":"RAFT (Reusable Accelerated Functions & Tools) provides GPU-accelerated primitives for machine learning, linear algebra, and spatial computations. The Dask integration enables distributed GPU workflows via Dask. Current version: 26.4.0 (stable). RAPIDS releases every 3 months (quarterly). CUDA 12.x only.","status":"active","version":"26.4.0","language":"python","source_language":"en","source_url":"https://github.com/rapidsai/raft","tags":["raft","dask","gpu","rapids","cuda","distributed","machine-learning"],"install":[{"cmd":"pip install raft-dask-cu12","lang":"bash","label":"Install from PyPI"},{"cmd":"conda install -c rapidsai raft-dask","lang":"bash","label":"Install via conda"}],"dependencies":[],"imports":[{"note":"Import from raft_dask package (note underscore vs hyphen).","symbol":"DaskClusterProxy","correct":"from raft_dask import DaskClusterProxy"},{"note":"Old import path deprecated in v25.12.","wrong":"from raft.dask import ...","symbol":"DaskLinalg","correct":"from raft_dask.linalg import DaskLinalg"}],"quickstart":{"code":"from raft_dask.cluster import DaskClusterProxy\ncluster = DaskClusterProxy()\nprint(cluster)\n# Use with Dask client\nimport dask.distributed as dd\nclient = dd.Client(cluster)\nprint(client)","lang":"python","description":"Initialize a Dask cluster with RAFT acceleration. Requires CUDA 12.x and a running cluster backend (e.g., UCX)."},"warnings":[{"fix":"Upgrade to CUDA 12.2 or later, or use raft-dask-cu12=25.10.00 for CUDA 11.","message":"Requires CUDA 12.2+ as of v25.12.00; CUDA 11 support dropped entirely.","severity":"breaking","affected_versions":">=25.12.00"},{"fix":"Replace 'import raft.dask' with 'import raft_dask' and adjust imports accordingly.","message":"Import paths changed: most top-level imports now come from 'raft_dask' subpackages. Old 'raft.dask.*' patterns removed in v25.12.","severity":"breaking","affected_versions":">=25.12.00"},{"fix":"Install ucx-py and configure UCX transport: pip install ucx-py.","message":"DaskClusterProxy assumes UCX-Py is installed and configured for GPU communication; missing UCX leads to runtime errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use 'import raft_dask' or install 'raft-dask-cu12' (not 'raft').","cause":"Attempting to import 'raft' which is the C++ library, not the Python package. Python packages are named with prefixes like 'raft_dask'.","error":"ModuleNotFoundError: No module named 'raft'"},{"fix":"Use 'from raft_dask.linalg import DaskLinalg'.","cause":"Old import path; module structure changed in v25.12.","error":"ImportError: cannot import name 'DaskLinalg' from 'raft.dask.linalg'"},{"fix":"Start a Dask scheduler/worker (e.g., 'dask-scheduler' & 'dask-worker') and install ucx-py for GPU communication.","cause":"Dask cluster proxy started without a running cluster or UCX transport not set up.","error":"RuntimeError: Dask cluster not running or UCX not initialized"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}