界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

sklearn-accel

sklearn-accel

【开发与工程】Zero-code-change acceleration for scikit-learn, UMAP, and HDBSCAN.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: sklearn-accel description: "Zero-code-change acceleration for scikit-learn, UMAP, and HDBSCAN." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

sklearn-accel

Use this sub-skill when existing scikit-learn, UMAP, or HDBSCAN code should run through cuml.accel without rewriting the workflow to direct cuML APIs.

Route here when

  • you need CLI, notebook, environment-variable, or programmatic activation
  • you need to confirm proxying, fallback, logging, or profiling
  • you need to explain compatibility-driven CPU fallback or result differences

Keep out

  • direct cuML estimator rewrites and GPU-native tuning -> ../python-estimators/SKILL.md
  • Dask or multi-GPU workflow changes -> ../distributed-dask/SKILL.md
  • generic scikit-learn advice that is not tied to cuml.accel

Core rules

  • activate before importing sklearn, umap, or hdbscan
  • use python -m cuml.accel for scripts, modules, or inline commands
  • use %load_ext cuml.accel in notebooks before library imports
  • use CUML_ACCEL_ENABLED=1 only when you do not control the app entrypoint
  • use cuml.accel.install(disable_uvm=False, log_level=None) for programmatic activation
  • use cuml.accel.enabled(), cuml.accel.is_proxy(), and cuml.accel.profile() to check behavior
  • rely on logs and profiler output to confirm GPU versus CPU execution; is_proxy() alone only proves proxy activation

What belongs here

  • CLI forwarding and profiling flags from python -m cuml.accel
  • notebook and IPython activation, log-level, and profiler magics
  • fallback compatibility by estimator family, input type, parameter, and dependency version
  • expected numerical differences and when to compare metrics instead of fitted attributes

References

  • references/compatibility-and-profiling.md
  • references/troubleshooting.md
  • scripts/cuml_accel_smoke.py
我的收藏