cuml
Use when writing, running, debugging or upgrading Python code that uses NVIDIA cuML (GPU machine learning), cuml.accel (zero-code-change GPU acceleration of scikit-learn, umap-learn and hdbscan), or GPU UMAP/HDBSCAN/RandomForest/KMeans/SVC, including through libraries that wrap cuML (BERTopic, rapid…
Install / Use
npx skills add NVIDIA/skills --skill cumlInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of cuml
cuml scores 87/100 on our quality scale, 496th of 951 AI & Machine Learning skills we index.
Its SKILL.md is 7.4 KB long, well organised into 8 sections and no code examples: a thorough specification that gives an agent plenty to work with.
With 3,421 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 42 days ago, so cuml is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
cuml compared with similar skills
All 4 of these similar skills score higher than cuml; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| cuml (this skill)by NVIDIA | 87 | 3.4k | 42d ago | SKILL.md |
| claude-memby thedotmack | 100 | 112.7k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 108.8k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 90.5k | 9d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.8k | today | CLAUDE.md |
Frequently asked questions
- How do I install cuml?
- Run
npx skills add NVIDIA/skills --skill cuml. The install tabs above show the steps for each supported agent. - Which AI agents does cuml work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is cuml safe to use?
- It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is cuml still maintained?
- The repository was last updated 42 days ago, so cuml is actively maintained.
Skill content
View source on GitHubname: cuml description: >- Use when writing, running, debugging or upgrading Python code that uses NVIDIA cuML (GPU machine learning), cuml.accel (zero-code-change GPU acceleration of scikit-learn, umap-learn and hdbscan), or GPU UMAP/HDBSCAN/RandomForest/KMeans/SVC, including through libraries that wrap cuML (BERTopic, rapids-singlecell). Covers APIs removed or renamed in 2025-2026 releases, verifying code really ran on the GPU, large-data UMAP/HDBSCAN memory recipes, and exporting trained models. Not for cuDF-only dataframe work, PyTorch or XGBoost.
cuML
cuML releases every two months and removes deprecated APIs, so your training data is likely to contain APIs that no longer exist. Look things up in the installed cuML instead of recalling them.
Ground facts
- Install from pypi.org:
pip install cuml-cu13(CUDA 13 driver, >= 580) orcuml-cu12. No extra index URL is needed.pip install cumlinstalls an unrelated placeholder. - Check the RAPIDS installation guide for supported GPUs, operating systems, Python versions, CUDA/driver requirements, and install commands. Linux only; on Windows use WSL2.
- Google Colab GPU runtimes ship cuML preinstalled: check
pip listbefore installing anything there. cuml.accelruns unmodified scikit-learn / umap-learn / hdbscan code on the GPU and falls back to the CPU for anything unsupported. It accelerates RandomForest, LogisticRegression, Ridge, KMeans, DBSCAN, PCA, SVC, KNN, UMAP, HDBSCAN, scalers, encoders and more.- Enable it with
python -m cuml.accel script.py,%load_ext cuml.accel(first notebook cell),CUML_ACCEL_ENABLED=1, orcuml.accel.install()before importing sklearn.
Step 1: look it up in the installed cuML
- Check the versions and answer for them:
python -c "import cuml, sklearn; print(cuml.__version__, sklearn.__version__)". - Before using a cuML class, function or argument, confirm it exists and read its
documentation:
python -c "import inspect, cuml; print(inspect.signature(cuml.svm.SVC))",help(cuml.manifold.UMAP). Docstrings list valid values, for example the acceptedbuild_kwdskeys andoutput_typevalues. - Run the code and read the errors: removed arguments raise
TypeError, removed modulesModuleNotFoundError, invalid values usually list the valid ones. - Treat deprecated APIs as removed: do not recommend anything that emits a
FutureWarningor is marked deprecated in its docstring, even if it still works in the installed version. Deprecation warnings only appear when the code runs, so run the code you suggest (on small data if needed) withpython -W always::FutureWarningand read the warnings; they name the replacement. - For
cuml.accel, see below for how to find out what runs on the GPU.
Step 2: check code for removed APIs
Run python scripts/check_removed_apis.py <files or dirs> (path relative to this skill) on
the user's code and on code you write, before presenting it. It reports removed APIs whose
replacement the installed cuML does not reveal, with the replacement, for example
cuml.fil (use nvForest), SVC(probability=True) (use CalibratedClassifierCV) and
renamed UMAP/HDBSCAN build_kwds keys that are silently ignored.
The checker only knows about these few APIs. An empty result does not mean the code is
current, and it says nothing about whether cuml.accel runs it on the GPU; still do Step 1
and check cuml.accel fallbacks as described below.
Behavior that changed without an API change:
- RandomForest is reproducible with
random_statealone (since 25.10). Do not setn_streams=1"for determinism"; that advice is outdated and only slows training. KMeans.transformreturns Euclidean, not squared, distances (since 26.10).
cuml.accel
- Activate before sklearn is imported. In a notebook that already imported sklearn,
restart the kernel and make
%load_ext cuml.accelthe first cell. - With cudf.pandas:
python -m cudf.pandas -m cuml.accel script.py, or%load_ext cudf.pandasthen%load_ext cuml.accel. - Prove where code ran instead of assuming:
python -m cuml.accel -v script.pylogs "ran on GPU" / "falling back to CPU: <reason>";--profile(or%%cuml.accel.profile, orwith cuml.accel.profile():) prints a per-call GPU/CPU table.cuml.accel.is_proxy(est)only says the estimator is wrapped, not that it ran on the GPU. - Unsupported parameters and inputs fall back to the CPU silently. Do not recall fallback
lists: run with
-vor--profileand read the reasons, or, without running, read the documentation for the installed release from GitHub:https://raw.githubusercontent.com/NVIDIA/cuml/v<cuml.__version__>/docs/source/cuml-accel/compatibility.rst(for examplev26.08.00; for 26.06 and earlier the file islimitations.rst; for nightly builds such as26.12.00a5usemaininstead of the tag). - Single GPU only. To use several GPUs, run separate processes with
CUDA_VISIBLE_DEVICES. - Models trained under accel pickle as plain sklearn/umap/hdbscan objects and load without
cuML. The pickle bytes still contain the string
cuml(a reconstructor), so do not use "nocumlin the bytes" as a check; load it in a CPU-only environment instead. - Results are comparable in quality, not numerically identical, to the CPU libraries.
See
references/parity-and-numerics.mdbefore treating a difference as a bug.
Large data (UMAP, HDBSCAN, KMeans)
- UMAP
build_algo="auto"already uses NN-Descent above 50,000 rows (unlessrandom_stateis set, which forces brute force). HDBSCAN defaults tobuild_algo="brute_force". - Out of memory on the kNN build: batch it with
build_algo="nn_descent", build_kwds={"knn_n_clusters": 4, "knn_overlap_factor": 2}(increaseknn_n_clustersto 8, 16, ... to use less memory). Unknown keys are ignored without a warning, so spell them exactly. - Oversubscribe GPU memory with managed memory:
import rmm; rmm.reinitialize(managed_memory=True)before creating estimators.cuml.accelenables managed memory by default (not on WSL2). - KMeans on host data larger than the GPU:
KMeans(device_buffer_samples=...)streams host batches (26.08+). - HDBSCAN soft clustering: fit with
prediction_data=True, then usecuml.cluster.hdbscan.all_points_membership_vectors,membership_vectorandapproximate_predict. There is noHDBSCAN.predictand no.predictionsubmodule.
Exporting models
| Have | Want | Use |
|---|---|---|
| cuML estimator | scikit-learn object for a CPU-only machine | est.as_sklearn() |
| scikit-learn estimator | cuML estimator | cuml.<Estimator>.from_sklearn(skl) |
| cuML RandomForest | Treelite / fast GPU or CPU inference | rf.as_treelite(), rf.as_nvforest() |
| sklearn / XGBoost / LightGBM forest | fast inference | nvforest.load_from_sklearn(model), nvforest.load_model(path) |
| accel-trained model | ONNX | skl2onnx on the proxy (not DBSCAN, TSNE, UMAP, HDBSCAN, NearestNeighbors) |
Outputs
Outputs mirror the input container: NumPy in, NumPy out; cuDF in, cuDF out. With cuDF or
dask_cudf input, fitted attributes such as cluster_centers_ are cuDF objects, so call
.to_pandas() / .to_numpy() before handing them to pandas or matplotlib. Force a type
with output_type="cupy" on the estimator, cuml.set_global_output_type("cupy"), or
with cuml.using_output_type("cupy"): (global and context settings take precedence).
Non-float input is converted to float32 by default.
Related Skills
claude-mem
112.7kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
108.8kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Understand-Anything
90.5kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
78.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
