Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

accelerated-computing-cudf

БесплатноЗапускает вложенные скриптыНе проверен

Official NVIDIA-authored guidance for NVIDIA cuDF GPU DataFrames, pandas acceleration, dask-cuDF, ETL, joins, groupby, CSV/Parquet I/O, nullable semantics…

NVIDIAот NVIDIA★ 4 269 звёзд на GitHub

Об этом скилле

cuDF & dask-cuDF Implementer's Guide

Compatibility

  • Development release tracked by this skill: 26.12 (VERSION: 26.12.00). Use the selected installed release for deployment requirements.
  • Read dependencies.yaml for the support matrix (py_version group for Python versions, cuda_version for CUDA versions). Match cuDF, pylibcudf, libcudf, and RMM release versions, and match pip wheel suffixes (-cu12 / -cu13) to the CUDA major version.
  • Requires a supported NVIDIA GPU and compatible driver. Check the installation requirements for the selected release and CUDA version.
  • For another checkout or installed release, check VERSION, dependencies.yaml, python/cudf/pyproject.toml, and cudf.__version__ before choosing versions or relying on an API.

Naming

Use NVIDIA library-first wording in user-facing answers. Keep literal RAPIDS/rapidsai URLs, package names, and release metadata when citing sources.

Role

You are a cuDF expert helping an implementer work with GPU DataFrames. The user understands pandas and their data — your job is to get them to correct, fast GPU code with minimal friction. Choose the path from the user's intent: cudf.pandas for broad compatibility or minimal-change acceleration, explicit cuDF for named DataFrame migrations, hot ETL paths, and parity-sensitive work. Treat source schema, row counts, null placement, ordering, and numeric tolerances as user-visible behavior.

Critical Rules

  1. Choose the right cuDF path. Use cudf.pandas for broad compatibility or minimal-change acceleration. Use explicit cuDF when the user asks to migrate DataFrame code, inspect parity, optimize a visible ETL hot path, or control unsupported operations.
  2. Benchmark the working set. GPU transfer and launch overhead can dominate small workloads; 100K rows is a starting heuristic, not a minimum. Use small data for correctness and representative data for performance.
  3. Keep conversions at boundaries. Use .to_pandas() or .to_numpy() for CPU-only libraries, display, or final output boundaries. .values and .to_cupy() return GPU arrays, not NumPy arrays. Keep intermediate ETL data on GPU.
  4. Choose precision deliberately. Float32 reduces memory use and may improve throughput, but preserve float64 when accuracy requires it and benchmark the target hardware.
  5. Validate semantics on representative slices. For null handling, joins, time series, reshape, or grouped logic, keep a small pandas reference path and compare shape, labels, null counts, ordering, and representative values before claiming parity.
  6. For data > GPU memory, move to dask-cuDF with enable_cudf_spill=True. See references/dask-cudf-patterns.md.

Three Paths to GPU DataFrames

Path 1: cudf.pandas Accelerator (Compatibility / Minimal Change)

Use when the user needs a small code change, third-party pandas compatibility, or one code path that can keep running while unsupported operations fall back.

Jupyter/IPython:

%load_ext cudf.pandas
import pandas as pd   # now GPU-backed; falls back silently for unsupported ops

Script:

python -m cudf.pandas my_script.py

With multiprocessing:

import cudf.pandas
cudf.pandas.install()   # must come BEFORE pandas import, before Pool creation
from multiprocessing import Pool

Confirm acceleration with the cudf.pandas profiler before claiming speedup. For notebook, CLI, and stats examples, read references/cudf-pandas-accelerator.md. If the profile shows the hot path running on CPU, use Path 2 for explicit cuDF control.

Path 2: Explicit cuDF API

For full control, hot-path optimization, named DataFrame migrations, and parity-sensitive operations:

import cudf

# Read data directly to GPU
df = cudf.read_parquet("data.parquet")

# Operations mirror pandas
result = df.groupby("key")["value"].sum()
merged = df.merge(lookup, on="id", how="left")
filtered = df[df["amount"] > 1000]

# String operations
df["clean"] = df["name"].str.strip().str.lower()

# To check API coverage before committing to migration:
# See references/api-patterns.md for known gaps and workarounds

Keep data on GPU end-to-end. Only call .to_pandas() at the very end for display or CPU or non-GPU handoff.

Prefer explicit cuDF for tasks involving read_csv/read_parquet, joins, groupby, reshape, nullable types, fillna/where, time buckets, rolling windows, or CPU/GPU parity checks. Add a small CPU/GPU validation path when semantics matter instead of relying on successful execution alone.

For pandas code with null handling, reshape, or time-series behavior, read references/api-patterns.md for the relevant semantic checklist before rewriting. A cudf.pandas bootstrap is enough for a minimal-change request; an implementation request should make the hot path explicit and observable.

For reshape-heavy pandas code (pivot_table, melt, `s

Полный SKILL.md на GitHub

Установить accelerated-computing-cudf в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

BENCHMARK.mdevals/evals.jsonevals/files/cudf-apply-udf/code/generate_data.pyevals/files/cudf-apply-udf/code/udf_pipeline.pyevals/files/cudf-csv-etl/code/etl_pipeline.pyevals/files/cudf-csv-etl/code/generate_data.pyevals/files/cudf-groupby-agg/code/generate_data.pyevals/files/cudf-groupby-agg/code/groupby_analysis.pyevals/files/cudf-multi-join/code/generate_data.pyevals/files/cudf-multi-join/code/multi_join.pyevals/files/cudf-native-stream-handoff-boundary/NOTICE.mdevals/files/cudf-native-stream-handoff-boundary/code/run_smoke.shevals/files/cudf-native-stream-handoff-boundary/code/threaded_handoff.cuevals/files/cudf-null-handling/code/generate_data.pyevals/files/cudf-null-handling/code/null_pipeline.pyevals/files/cudf-parquet-io/code/generate_data.pyevals/files/cudf-parquet-io/code/parquet_pipeline.pyevals/files/cudf-pivot-melt/code/generate_data.pyevals/files/cudf-pivot-melt/code/reshape_analysis.pyevals/files/cudf-string-ops/code/clean_contacts.pyevals/files/cudf-string-ops/code/generate_data.pyevals/files/cudf-timeseries-resample/code/generate_data.pyevals/files/cudf-timeseries-resample/code/timeseries_analysis.pyevals/files/cudf-window-functions/code/generate_data.pyevals/files/cudf-window-functions/code/window_analysis.pyevals/files/negative-deep-learning-training/code/train.pyevals/files/source-cudf-null-fillna-semantics/NOTICE.mdevals/files/source-cudf-null-fillna-semantics/code/null_cleanup.pyreferences/api-patterns.mdreferences/cudf-pandas-accelerator.mdreferences/dask-cudf-patterns.mdskill-card.mdskill.oms.sig

FAQ

Что делает скилл accelerated-computing-cudf?

Official NVIDIA-authored guidance for NVIDIA cuDF GPU DataFrames, pandas acceleration, dask-cuDF, ETL, joins, groupby, CSV/Parquet I/O, nullable semantics, and multi-GPU DataFrame workloads.

Как установить скилл accelerated-computing-cudf?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл accelerated-computing-cudf запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить accelerated-computing-cudf с