RAPIDS GPU machine learning · scikit-learn API on the GPU · verified against cuML 26.08 (2026)

cuML cheat sheet

cuML is RAPIDS' GPU-accelerated machine-learning library with a scikit-learn-compatible API — typically 10–50× faster than CPU on realistic workloads, across 50+ algorithms. Two ways to use it: zero-code-change mode (cuml.accel) that transparently speeds up your existing scikit-learn / UMAP / HDBSCAN code, or direct cuml.* estimators for full control. Same fit/predict you already know, running on an NVIDIA GPU. This sheet targets cuML 26.08.

setup & accel data & I/O supervised unsupervised output & scale gotcha most common

Verified 2026-08-24 against the official docs at docs.rapids.ai/api/cuml (cuML 26.08, CalVer) and the NVIDIA cuML developer blog. Requires an NVIDIA GPU (Volta+, CUDA 12). Note: from Aug 2026 the RAPIDS brand is transitioning to NVIDIA CUDA-X — the library, imports and APIs are unchanged.

Outline

Install once, then pick a lane: cuml.accel to speed up existing sklearn code untouched, or import cuml estimators directly. The model API mirrors scikit-learn.

Accelerate

  1. 1 · Install & verify
  2. 2 · Zero-code-change (cuml.accel)
  3. 3 · Data & I/O

Models

  1. 4 · Linear & SVM
  2. 5 · Trees, neighbors & FIL
  3. 6 · Clustering
  4. 7 · Dimensionality reduction

Scale & ship

  1. 8 · Output, multi-GPU & save
  2. 9 · Gotchas
  3. Worth memorizing

Accelerate

Get cuML installed, then either wrap your existing code or import estimators directly.

1Install & verify26.08
2Zero-code-change · cuml.accelno rewrites
3Data & I/Owhat goes in, what comes out

Models

Drop-in estimators. Imports mirror scikit-learn's layout: cuml.linear_model, cuml.svm, cuml.ensemble, cuml.cluster, cuml.decomposition, cuml.manifold.

4Linear models & SVMcuml.linear_model · cuml.svm
5Trees, neighbors & FILcuml.ensemble · cuml.neighbors
6Clusteringcuml.cluster
7Dimensionality reductioncuml.decomposition · cuml.manifold

Scale & ship

Control what comes back, scale past one GPU, and persist models.

8Output, multi-GPU & saveproduction
!Common gotchasread before shipping

Worth memorizing

cuML = sklearn API on GPU10–50× faster, 50+ algorithms
%load_ext cuml.accelzero-code-change: sklearn / UMAP / HDBSCAN
python -m cuml.accel script.pyrun existing sklearn scripts on GPU, unchanged
cuml.accel.install() FIRSTthen re-import estimators (order matters)
graceful CPU fallbackunsupported ops still work, just on CPU
cuml.linear_model / svm / ensembleimports mirror scikit-learn's layout
UMAP / HDBSCAN / DBSCAN / KMeansflagship GPU speedups
set_global_output_type("numpy")else results are cupy/cuDF
no GBM → XGBoost + ForestInferencetrain native GPU, score with FIL
cuml.dask.* for multi-GPUDask-CUDA cluster for bigger-than-one-GPU data