Generated banner for Cuml
Generated logo for Cuml

Cuml

NVIDIAOfficialPublished by NVIDIA

  • Skill
  • Tool integration
  • Data and AI
  • Apache-2.0
  • Medium risk
  • Has scripts

From the author

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.
— the description by NVIDIA

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides guidance for working with NVIDIA cuML, including the cuml.accel module for GPU acceleration of scikit-learn, umap-learn, and hdbscan. It covers API changes in recent releases, memory management for large datasets, model exporting, and verifying GPU execution. It is designed to help developers navigate frequent library updates and ensure code compatibility with the installed cuML environment.

What it does

  • Identifies removed or renamed APIs in recent cuML releases.
  • Provides instructions for enabling and profiling GPU acceleration via cuml.accel.
  • Offers memory management strategies for large-scale UMAP, HDBSCAN, and KMeans tasks.
  • Explains how to export models between cuML and scikit-learn or other inference formats.
  • Guides users on verifying whether code is executing on the GPU or falling back to the CPU.
  • Details how to handle data type conversions and output formats when using cuDF or NumPy.

When to use it

  • When writing or upgrading Python code that utilizes NVIDIA cuML or cuml.accel.
  • When troubleshooting code that is not running on the GPU as expected.
  • When migrating existing scikit-learn workflows to GPU-accelerated versions.
  • When encountering memory issues with large-scale clustering or manifold learning tasks.
  • When needing to export trained cuML models for use in CPU-only environments.

Advantages

  • Helps maintain compatibility with rapidly evolving cuML API versions.
  • Provides clear methods to verify GPU execution and identify fallback reasons.
  • Offers specific recipes for managing GPU memory during intensive operations.
  • Clarifies differences in numerical results between cuML and CPU-based libraries.

Usage examples

“How do I check if my scikit-learn code is actually running on the GPU with cuml.accel?”
The agent will explain how to use the -v flag or --profile option with python -m cuml.accel to log execution details and identify any CPU fallbacks.
“My UMAP training is running out of memory. How can I optimize it?”
The agent will suggest using build_algo='nn_descent' with specific knn_n_clusters settings to batch the kNN build and reduce memory usage.
“How do I convert a trained cuML RandomForest model for use on a CPU-only machine?”
The agent will provide the est.as_sklearn() method to export the model as a standard scikit-learn object.
“I am getting a ModuleNotFoundError for a cuML module. What should I do?”
The agent will guide you to check your installed cuML version and use the provided script to identify if the API has been removed or renamed in your version.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/nvidia/cuml/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip cuml.zip -d .agents/skills

Documentation by NVIDIA

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) or cuml-cu12. No extra index URL is needed. pip install cuml installs an unrelated placeholder.

  • Check the 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 list before installing anything there.

  • cuml.accel runs 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, or cuml.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 accepted build_kwds keys and output_type values.

  • Run the code and read the errors: removed arguments raise TypeError, removed modules ModuleNotFoundError, invalid values usually list the valid ones.

  • Treat deprecated APIs as removed: do not recommend anything that emits a FutureWarning or 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) with python -W always::FutureWarning and 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_state alone (since 25.10). Do not set n_streams=1 "for determinism"; that advice is outdated and only slows training.

  • KMeans.transform returns 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.accel the first cell.

  • With cudf.pandas: python -m cudf.pandas -m cuml.accel script.py, or %load_ext cudf.pandas then %load_ext cuml.accel.

  • Prove where code ran instead of assuming: python -m cuml.accel -v script.py logs "ran on GPU" / "falling back to CPU: <reason>"; --profile (or %%cuml.accel.profile, or with 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 -v or --profile and 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 example v26.08.00; for 26.06 and earlier the file is limitations.rst; for nightly builds such as 26.12.00a5 use main instead 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 "no cuml in 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.md before treating a difference as a bug.

Large data (UMAP, HDBSCAN, KMeans)

  • UMAP build_algo="auto" already uses NN-Descent above 50,000 rows (unless random_state is set, which forces brute force). HDBSCAN defaults to build_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} (increase knn_n_clusters to 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.accel enables 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 use cuml.cluster.hdbscan.all_points_membership_vectors, membership_vector and approximate_predict. There is no HDBSCAN.predict and no .prediction submodule.

Exporting models

HaveWantUse
cuML estimatorscikit-learn object for a CPU-only machineest.as_sklearn()
scikit-learn estimatorcuML estimatorcuml.<Estimator>.from_sklearn(skl)
cuML RandomForestTreelite / fast GPU or CPU inferencerf.as_treelite(), rf.as_nvforest()
sklearn / XGBoost / LightGBM forestfast inferencenvforest.load_from_sklearn(model), nvforest.load_model(path)
accel-trained modelONNXskl2onnx 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.

Files

BENCHMARK.md

Skill Benchmark: cuml

✅ Overall verdict: PASS — Recommended for publication

Publication Recommendation

Recommended for publication based on the completed evaluation evidence in this report.

Evaluation Metadata

  • Skill: cuml

  • Validation status: passed

  • Evaluation date: 2026-11-04

  • Evaluator version: 1.6.6

  • Agents: Claude Code (aws/anthropic/bedrock-claude-opus-5-5), Codex (openai/openai/gpt-6.1-sol)

  • Tasks: 32 evaluation tasks (32 positive)

  • Dataset digest: sha256:8efd78ed52747d376b59182ebeb97a529c0cfa2167658e8a2efb1c39eb4452f4 (skill-evaluator-dataset-snapshot/1)

  • Attempts per task: 1

  • Environment: k8s-sandbox

  • Tier 2 evidence: required for publication

  • Tier 3 evidence: required for publication

Each task attempt ran in its own isolated sandbox pod.

Tier 1 LLM Provenance

SkillSpector provider, model, analyzer revision, and determinism evidence retained for this scan.

SkillProviderAdapterAnalyzerModelRevisionDeterminism
cumlnv_inferenceopenaimcp_tool_poisoningaws/anthropic/bedrock-claude-opus-5-52.13.3nondeterministic / provider_defaults
cumlnv_inferenceopenaisemantic_developer_intentaws/anthropic/bedrock-claude-opus-5-52.13.3nondeterministic / provider_defaults
cumlnv_inferenceopenaisemantic_quality_policyaws/anthropic/bedrock-claude-opus-5-52.13.3nondeterministic / provider_defaults
cumlnv_inferenceopenaisemantic_security_discoveryaws/anthropic/bedrock-claude-opus-5-52.13.3nondeterministic / provider_defaults
cumlnv_inferenceopenaimeta_analyzeraws/anthropic/bedrock-claude-opus-5-52.13.3nondeterministic / provider_defaults
  • Controls for cuml: temperature=not set (source=provider_default, forwarded=no); seed=not set (source=unset, forwarded=no); reasoning_effort=not set (source=provider_default, forwarded=no)

What This Report Answers

The three-tier evaluation checks whether the skill:

  • is safe to use;

  • produces correct answers;

  • is discovered and activated when needed;

  • helps the agent complete the user's goal and expected workflow; and

  • avoids wasted skill and tool usage.

Results at a Glance

MeasureClaude Code (Baseline → Skill Uplift)Codex (Baseline → Skill Uplift)
Overall95.5% — baseline ran, but no comparable score was available; uplift unavailable83.5% — baseline ran, but no comparable score was available; uplift unavailable
Security100.0% → 100.0% (±0.0 points)100.0% → 93.8% (-6.2 points)
Correctness81.3% → 98.1% (+16.8 points)91.9% → 94.4% (+2.5 points)
Discoverability98.2% — baseline ran, but no comparable score was available; uplift unavailable89.1% — baseline ran, but no comparable score was available; uplift unavailable
Effectiveness66.3% → 87.4% (+21.1 points)70.5% → 83.7% (+13.2 points)
Efficiency94.0% — baseline ran, but no comparable score was available; uplift unavailable56.8% — baseline ran, but no comparable score was available; uplift unavailable

How to read this table: baseline is the same task attempted without the target skill. Scores are rounded to one decimal; threshold-adjacent values use additional precision so their displayed band matches the verdict. Uplift is derived from those displayed scores and shown in percentage points.

Example: 47.0% → 92.0% (+45.0 points) means the skill-assisted run scored 92.0%, 45.0 percentage points above its 47.0% no-skill baseline.

Comparison details

Shared-source comparisons use the same signals and weights on both conditions. They do not replace the full dimension scores above or change the publication verdict.

AgentDimensionBasisBaseline → With skill (uplift)Explanation
claude-codeDiscoverabilityDimension comparisonN/ADiscoverability is not applicable to the no-skill baseline; there is no installed skill to discover.
claude-codeEfficiencyToken-only comparison97.6% → 94.5% (-3.1 points)Only Token Efficiency is comparable; the full dimension scores use different evaluator sources.
codexDiscoverabilityDimension comparisonN/ADiscoverability is not applicable to the no-skill baseline; there is no installed skill to discover.
codexEfficiencyToken-only comparison80.4% → 73.9% (-6.5 points)Only Token Efficiency is comparable; the full dimension scores use different evaluator sources.

Token Usage

Actual Tier 3 execution usage is reported for every observed agent/case pair and both conditions.

AgentDataset caseWith skillWithout skillDeltaChangeCoverage
claude-codeAll cases6,891,7622,179,539+4,712,223+216.20%skill 32/32; base 32/32
claude-codeb01239,10638,621+200,485+519.11%skill 1/1; base 1/1
claude-codeb02246,66639,894+206,772+518.30%skill 1/1; base 1/1
claude-codeb03199,31138,086+161,225+423.32%skill 1/1; base 1/1
claude-codeb04195,78336,873+158,910+430.97%skill 1/1; base 1/1
claude-codeb05155,75837,090+118,668+319.95%skill 1/1; base 1/1
claude-codeb0675,11036,448+38,662+106.07%skill 1/1; base 1/1
claude-codeb07388,91538,222+350,693+917.52%skill 1/1; base 1/1
claude-codeb08241,74274,214+167,528+225.74%skill 1/1; base 1/1
claude-codeb09301,405111,649+189,756+169.96%skill 1/1; base 1/1
claude-codeb10566,83676,588+490,248+640.11%skill 1/1; base 1/1
claude-codep0174,10871,970+2,138+2.97%skill 1/1; base 1/1
claude-codep0275,47136,937+38,534+104.32%skill 1/1; base 1/1
claude-codep03154,59373,530+81,063+110.24%skill 1/1; base 1/1
claude-codep04200,78437,363+163,421+437.39%skill 1/1; base 1/1
claude-codep05195,57237,546+158,026+420.89%skill 1/1; base 1/1
claude-codep06196,595344,194-147,599-42.88%skill 1/1; base 1/1
claude-codep07283,28338,268+245,015+640.26%skill 1/1; base 1/1
claude-codep08364,73337,552+327,181+871.27%skill 1/1; base 1/1
claude-codep0975,08236,808+38,274+103.98%skill 1/1; base 1/1
claude-codep10333,00839,344+293,664+746.40%skill 1/1; base 1/1
claude-codep11241,66774,551+167,116+224.16%skill 1/1; base 1/1
claude-codep12197,09036,928+160,162+433.71%skill 1/1; base 1/1
claude-codep13113,26535,616+77,649+218.02%skill 1/1; base 1/1
claude-codep14480,379151,806+328,573+216.44%skill 1/1; base 1/1
claude-codep1574,10435,704+38,400+107.55%skill 1/1; base 1/1
claude-codep1674,66436,017+38,647+107.30%skill 1/1; base 1/1
claude-codep17154,03036,246+117,784+324.96%skill 1/1; base 1/1
claude-codep18447,854344,795+103,059+29.89%skill 1/1; base 1/1
claude-codep19151,99435,927+116,067+323.06%skill 1/1; base 1/1
claude-codep2074,69036,898+37,792+102.42%skill 1/1; base 1/1
claude-codep21242,93436,746+206,188+561.12%skill 1/1; base 1/1
claude-codep2275,23037,108+38,122+102.73%skill 1/1; base 1/1
codexAll cases8,209,8041,661,718+6,548,086+394.06%skill 32/32; base 32/32
codexb01391,77850,076+341,702+682.37%skill 1/1; base 1/1
codexb02349,42567,545+281,880+417.32%skill 1/1; base 1/1
codexb03780,32849,205+731,123+1485.87%skill 1/1; base 1/1
codexb04162,17236,557+125,615+343.61%skill 1/1; base 1/1
codexb05326,66439,695+286,969+722.93%skill 1/1; base 1/1
codexb06136,16843,416+92,752+213.64%skill 1/1; base 1/1
codexb07324,65844,878+279,780+623.42%skill 1/1; base 1/1
codexb08144,18731,284+112,903+360.90%skill 1/1; base 1/1
codexb09370,98782,095+288,892+351.90%skill 1/1; base 1/1
codexb10302,50045,197+257,303+569.29%skill 1/1; base 1/1
codexp0141,72840,432+1,296+3.21%skill 1/1; base 1/1
codexp02240,17939,816+200,363+503.22%skill 1/1; base 1/1
codexp03186,14254,187+131,955+243.52%skill 1/1; base 1/1
codexp04473,03965,784+407,255+619.08%skill 1/1; base 1/1
codexp05303,49539,316+264,179+671.94%skill 1/1; base 1/1
codexp06153,33152,274+101,057+193.32%skill 1/1; base 1/1
codexp07242,29764,786+177,511+274.00%skill 1/1; base 1/1
codexp08262,57564,945+197,630+304.30%skill 1/1; base 1/1
codexp09158,58339,150+119,433+305.07%skill 1/1; base 1/1
codexp10478,23868,070+410,168+602.57%skill 1/1; base 1/1
codexp11275,38031,891+243,489+763.50%skill 1/1; base 1/1
codexp12182,24438,493+143,751+373.45%skill 1/1; base 1/1
codexp1397,49817,655+79,843+452.24%skill 1/1; base 1/1
codexp14357,922159,292+198,630+124.70%skill 1/1; base 1/1
codexp1541,73817,883+23,855+133.39%skill 1/1; base 1/1
codexp1653,24739,029+14,218+36.43%skill 1/1; base 1/1
codexp17358,37748,491+309,886+639.06%skill 1/1; base 1/1
codexp18347,39295,610+251,782+263.34%skill 1/1; base 1/1
codexp19161,14826,396+134,752+510.50%skill 1/1; base 1/1
codexp2050,43146,695+3,736+8.00%skill 1/1; base 1/1
codexp21256,73665,203+191,533+293.75%skill 1/1; base 1/1
codexp22199,21756,372+142,845+253.40%skill 1/1; base 1/1
ALL AGENTSDataset aggregate15,101,5663,841,257+11,260,309+293.14%skill 64/64; base 64/64

Prompt tokens include cached reads, so total tokens are prompt + completion (cached is not added twice). The Efficiency score uses (prompt - cached) + completion. Change is 100 * (with - without) / without; negative means fewer tokens. N/A comparisons include their reason in the coverage column; coverage is never estimated.

Tier Status

TierPurposeStatusEvidence
Tier 1Static validationPASSED WITH OBSERVATIONS11 validator(s); 20 finding(s)
Tier 2Semantic deduplicationPASSED2 validator(s); 0 finding(s)
Tier 3Live agent evaluationPASS2 agent(s); 32 task(s)

Findings and Observations

<details> <summary>Show detailed findings and successful checks</summary>

  • MEDIUM QUALITY/quality_correctness: No documented scripts in table format (skills/cuml/SKILL.md)

  • MEDIUM QUALITY/quality_correctness: Instructions don't mention 'run_script' (skills/cuml/SKILL.md)

  • MEDIUM QUALITY/quality_correctness: SKILL_SPEC recommended field missing: 'metadata.author' (skills/cuml/SKILL.md)

  • MEDIUM QUALITY/quality_correctness: SKILL_SPEC recommended field missing: 'metadata.tags' (skills/cuml/SKILL.md)

  • MEDIUM QUALITY/quality_discoverability: Skill name very short: 'cuml' (skills/cuml/SKILL.md)

  • 15 additional finding(s) are available in the full evaluation artifacts.

</details>

Scoring Methodology

<details> <summary>Show dimension definitions, source signals, and thresholds</summary>

DimensionQuestionScored signals
SecurityIs it safe to use?security (100%)
CorrectnessIs the answer correct?accuracy (100%)
DiscoverabilityWas the right skill loaded when needed?skill_execution (100%)
EffectivenessDid the skill help complete the task?goal_accuracy (50%) + behavior_check (50%)
EfficiencyDid it avoid wasted tool calls and token usage?skill_efficiency (50%) + token_efficiency (50%)
  • Dimension bands: PASS at 50% or above; NEUTRAL from 40% to below 50%; FAIL below 40%.

  • Overall Tier 3 lift: PASS at +5 points or more; FAIL at -10 points or less; values between those bands are NEUTRAL.

  • Overall verdict: PASS only when every configured dimension passes for at least one supported agent. Lift is reported as diagnostic evidence and does not override this gate.

  • The 50% attempt pass threshold is a separate per-task gate; it is not the dimension pass threshold.

  • Effectiveness is the equal-weight mean of goal completion (goal_accuracy) and expected workflow adherence (behavior_check).

  • Efficiency is 50% tool-call productivity (the backward-compatible skill_efficiency wire id) and 50% token_efficiency. Positive-case skill routing is scored under Discoverability, not Efficiency; a negative case without a routing target is N/A. N/A sources are omitted, remaining weights are renormalized, and the dimension is marked partial.

Signals present in this run:

  • security (Security): unsafe operations, secret leakage, and unauthorized access.

  • skill_execution (Skill Execution): whether the expected skill was selected, decoys were avoided, and the workflow executed.

  • skill_efficiency (Tool Productivity): tool-call productivity (legacy wire id; routing is scored under Discoverability).

  • accuracy (Accuracy): final-answer correctness against the reference answer.

  • goal_accuracy (Goal Accuracy): whether the user's goal was achieved.

  • behavior_check (Behavior Check): whether the expected workflow behavior was followed.

  • token_efficiency (Token Efficiency): actual uncached prompt plus completion usage (50% of Efficiency).

</details>

Freshness

Regenerate this benchmark when the skill, evaluation dataset, target agent/model, evaluator version, environment, or scoring policy changes.

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs Python

Security

What our scanner noticed· Medium risk

  • Large base64-encoded blobs
  • Instructions that use the network
  • Scripts that your agent may run

This skill includes scripts that your agent may run. Read them before you use it.

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
NVIDIA
Publisher
NVIDIA (Official)
Source
NVIDIA/skills · skills/cuml · commit fce3cca
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE-APACHE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by NVIDIA or NVIDIA.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download cuml.zip