RAPIDS: the complete overview
What NVIDIA RAPIDS is, how it runs pandas, Polars, scikit-learn, NetworkX and Spark code on GPUs without code changes, where it fits next to Spark, one data pipeline timed on CPU and GPU in our lab, what the labs need on OpenShift, and the three hands-on labs in this series.
Most data work is not model training. It is reading files, filtering rows, joining tables, computing aggregates and writing the result somewhere, and it runs in pandas or Spark on CPUs. In pandas it runs on one core. When a dataset grows from a million rows to a hundred million, the job that took a minute takes an hour, and the data scientist waits for it several times a day. RAPIDS is NVIDIA's answer: a family of open-source libraries that run the same work on the GPU, behind the same Python and SQL interfaces people already use.
This overview explains what RAPIDS is, how its zero-code-change accelerators work, where it fits next to Apache Spark, what a GPU did to one data pipeline on our own lab hardware, what the labs need on OpenShift, and what the three labs in this series cover.
What RAPIDS is
RAPIDS began in 2018 as NVIDIA's open-source suite for GPU data science. The code is Apache 2.0 licensed and now lives in the NVIDIA organisation on GitHub, where the old rapidsai repositories redirect. NVIDIA groups the libraries under the name CUDA-X Data Science and documents them together as its accelerated data science libraries, but the packages, the conda channel and the environment names still say RAPIDS, and so does everyone who uses them.
The design has three layers. At the bottom, data sits in GPU memory in the Apache Arrow columnar format, so a column of a hundred million integers is one contiguous block that thousands of GPU cores can work on at once. In the middle, C++ libraries such as libcudf implement the operations as CUDA kernels. On top, Python packages expose those kernels through APIs that copy the CPU libraries they replace, and accelerators that make the CPU libraries themselves call the GPU.
| Library | What it does | The CPU library it mirrors |
|---|---|---|
| cuDF | DataFrames: read CSV, Parquet, ORC and JSON, filter, join, group, string and date operations, window functions | pandas; cuDF is also the engine behind the Polars GPU mode and the Spark plugin |
| cuML | Classic machine learning: linear and logistic regression, k-means, DBSCAN, random forests, PCA, t-SNE, nearest neighbours, UMAP, HDBSCAN | scikit-learn, umap-learn, hdbscan |
| cuGraph | Graph analytics: PageRank, betweenness centrality, Louvain communities, shortest paths | NetworkX |
| cuVS | Vector search and clustering, including the CAGRA and IVF indexes that vector databases such as Milvus use for their GPU indexes | FAISS-style libraries |
| cuSpatial | Geospatial joins, distances and trajectories | GeoPandas-style operations |
| cuCIM | Image processing for medical and satellite imagery | scikit-image |
| Dask-CUDA and dask-cudf | Spreads cuDF and cuML across several GPUs and nodes | Dask |
| RMM, RAFT and KvikIO | The plumbing: GPU memory pools, shared algorithm primitives, and direct file-to-GPU I/O | Nothing; they sit underneath the others |
| XGBoost | Gradient-boosted trees with a GPU trainer. A separate project that RAPIDS tests with its libraries and that reads cuDF DataFrames directly | XGBoost itself |
A few things are not in that list on purpose. cuxfilter, the dashboarding library, was retired after release 26.06. NeMo Curator, which cleans and deduplicates text for LLM training, is built on cuDF and Dask but belongs to the NeMo series. And the plugin for Apache Spark has its own section below.
Releases are numbered by year and month and arrive every two months. The current line is 26.10, released on 8 October 2026 with a cuDF patch release on 20 October. Its requirements:
- Python 3.11 to 3.14. Release 26.12 drops 3.11, as 26.04 dropped 3.10.
- CUDA 12.2 to 12.9 with an NVIDIA driver from the 535 series or newer, or CUDA 13.0 to 13.3 with a driver from the 580 series or newer. Packages come in
-cu12and-cu13variants that must match the toolkit's major version. - GPU: Volta or newer for the CUDA 12 builds, Turing or newer for the CUDA 13 builds. Pascal cards were dropped in 24.02, so a GTX 1080 is out, and 16 GB of GPU memory is the sensible minimum for real datasets.
- Operating system: Linux with glibc 2.28 or newer, which means Red Hat Enterprise Linux 8 and later, on x86_64 or arm64. Windows only through WSL2, with one GPU.
Installing is a one-liner once those are in place: a conda environment from the rapidsai channel, a pip install --extra-index-url=https://pypi.nvidia.com "cudf-cu13==26.10.*", or a container. The rapidsai/base and rapidsai/notebooks images on Docker Hub and NGC carry tags such as 26.10-cuda13-py3.12, and the notebooks image starts JupyterLab with everything installed. Organisations that want a supported, long-lived branch get RAPIDS inside NVIDIA AI Enterprise, licensed per GPU, which our NVIDIA AI Enterprise series covers.
The same code, a GPU engine underneath
The most important change in RAPIDS over the last two years is that you no longer have to rewrite code to use it. Each library has an accelerator mode that intercepts the CPU library and sends supported operations to the GPU, falling back to the original implementation for anything it cannot handle.
| You write | You add | What happens |
|---|---|---|
| pandas | %load_ext cudf.pandas in a notebook, or python -m cudf.pandas script.py |
Every pandas object becomes a proxy. Supported operations run in cuDF; the rest run in pandas after a copy to host memory |
| Polars | pip install polars[gpu], then q.collect(engine="gpu") |
The lazy query plan runs on cuDF; a plan the GPU cannot run falls back to the Polars CPU engine. pl.GPUEngine(raise_on_fail=True) refuses to fall back, which is what you want in a benchmark. Still labelled Open Beta |
| scikit-learn, UMAP, HDBSCAN | python -m cuml.accel script.py, or %load_ext cuml.accel |
Listed estimators train and predict in cuML; others stay on the CPU. Model quality is comparable but not bit-identical, so compare scores, not coefficients |
| NetworkX | NX_CUGRAPH_AUTOCONFIG=True in the environment |
Supported algorithms run on cuGraph. The documentation's example is betweenness centrality on the cit-Patents graph: 7 minutes 41 seconds on the CPU, 5.3 seconds on the GPU |
| Spark SQL and DataFrames | spark.plugins=com.nvidia.spark.SQLPlugin and a GPU per executor |
The plugin swaps supported physical operators for GPU versions, one operator at a time, and leaves the rest on the CPU |
The native APIs are still there for people who want control: import cudf gives a DataFrame with the same methods as pandas plus GPU-specific options, and cuml, cugraph and cuvs expose algorithms that have no CPU equivalent. Lab 1 uses both styles and shows when each is worth it.
The accelerators are honest about their limits, and so should you be when you plan a project:
- Small data is slower on a GPU. Moving data to the device costs more than the work saves below roughly ten to a hundred thousand rows, depending on the operation. The win starts at millions of rows and gigabytes.
- Fallbacks copy. Every operation that falls back moves the data to host memory and back. One unsupported call inside a loop can erase the gain, so the profilers that show which operations ran where are the first thing to learn.
- Memory is the ceiling. A single GPU holds between 16 GB on an A2 and 141 GB on an H200. cuDF needs the working set and its intermediate results to fit, which is why the multi-GPU and streaming options exist.
- Results can differ. GPU joins do not preserve pandas's row order, and parallel floating point adds in a different order. Sort before you compare, and compare model scores rather than fitted parameters.
- Versions matter. Since release 26.08, cuDF requires pandas 3, CuPy 14 and NumPy 2. The scikit-learn accelerator is tested with scikit-learn 1.6 to 1.9, umap-learn 0.5.7 to 0.5.12 and hdbscan 0.8.39 to 0.8.44, and warns outside those ranges. The pandas accelerator is tested with NumPy, Matplotlib, Plotly, Seaborn, scikit-learn, SciPy, PyTorch, TensorFlow and XGBoost, and does not work with joblib.
Where RAPIDS fits next to Spark
Spark is the engine most organisations already run their large batch pipelines on, and RAPIDS does not replace it. The two meet in three places, and there is one job neither of them should do.
| Situation | What to use |
|---|---|
| The data fits in one GPU's memory, which in practice means Parquet files up to tens of gigabytes, and one person is iterating on it | cuDF through cudf.pandas or the Polars GPU engine, on a workstation or in a notebook pod with one GPU. This is where a day of waiting becomes an hour |
| Hundreds of gigabytes, a Python team, no Spark estate | Dask-CUDA with dask-cudf across several GPUs, or the Polars GPU engine's Ray and Dask modes, which stream through data larger than one GPU |
| An existing Spark estate and pipelines measured in terabytes | Keep Spark. Add the NVIDIA cuDF plugin for Apache Spark so the SQL and DataFrame stages run on GPUs with no code changes. This is the path for data engineering teams |
| Streaming | Not RAPIDS's job. Events go through Kafka and a stream processor; RAPIDS accelerates the batch work and the model training that follow |
The Spark plugin was known for years as the RAPIDS Accelerator for Apache Spark. NVIDIA has renamed it the cuDF plugin for Apache Spark and is retiring the RAPIDS name for it, although the artefacts are still rapids-4-spark_2.12-26.08.1.jar and rapids-4-spark_2.13-26.08.1.jar, with -cuda13 variants. The current release is 26.08.1. It supports Spark 3.3 and 3.4 with Scala 2.12, Spark 3.5 with Scala 2.12 or 2.13, and Spark 4.0, 4.1 and 4.2 with Scala 2.13, on Volta through Blackwell data-centre GPUs with CUDA 12 or 13. Each executor gets one GPU and several tasks share it. The configuration that turns it on is short:
spark.plugins=com.nvidia.spark.SQLPlugin
spark.executor.resource.gpu.amount=1
spark.task.resource.gpu.amount=0.125
spark.executor.resource.gpu.discoveryScript=./getGpusResources.sh
spark.executor.resource.gpu.vendor=nvidia.com
spark.rapids.sql.explain=NOT_ON_GPU
The task amount is one divided by the executor's cores, so eight cores share one GPU here. The discovery script and vendor settings are for YARN and Kubernetes, where Spark has to find the device. The last line logs every operator that stayed on the CPU, which is how you find out why a job did not speed up: Python UDFs, unsupported data types and some expressions still run on the CPU, and the plugin moves data between the two as needed. Before touching a cluster, the plugin's qualification tool reads the event logs of your existing CPU jobs and estimates which ones would benefit; the companion profiling tool explains a GPU run afterwards.
On OpenShift, a Spark job with the plugin is a container image built from an NVIDIA CUDA base with Spark, the plugin jar and the discovery script added, submitted either with spark-submit --master k8s:// or as a SparkApplication through a Spark operator. Lab 2 builds that image and runs it on our cluster.
One pipeline, CPU and GPU, measured
The outcome this series promises is a before-and-after comparison for one data pipeline, so here is the first one, run on our lab server for this overview. The pipeline is the kind of job every bank runs nightly: a year of card transactions, cleaned and summarised per account and month, joined to the account master, then rolled up per branch and segment with the top branches ranked.
tx = pd.read_parquet("transactions.parquet") # 50 million rows, 7 columns
acc = pd.read_parquet("accounts.parquet") # 5 million accounts
tx = tx[(tx["status"] == "posted") & (tx["amount"] > 0)]
tx["month"] = tx["ts"].dt.year * 100 + tx["ts"].dt.month
monthly = tx.groupby(["account_id", "month"], as_index=False).agg(
spend=("amount", "sum"), transactions=("tx_id", "count")
)
enriched = monthly.merge(acc, on="account_id", how="inner")
branches = enriched.groupby(["branch_id", "segment", "month"], as_index=False).agg(
spend=("spend", "sum"), accounts=("account_id", "nunique")
)
top = branches.sort_values(["month", "spend"], ascending=[True, False])
top = top.groupby("month").head(5)
The script is pandas, start to finish; it does not import cuDF. We ran it on the CPU as python pipeline.py, then three times on the GPU as python -m cudf.pandas pipeline.py. The data is synthetic, generated with a fixed seed, so nothing real was involved, and every run produced the same 31,200 result rows and the same total spend to the cent.
| CPU run | GPU run | |
|---|---|---|
| Hardware | An Intel Xeon Gold 5420+ server with 1 TB of RAM; pandas uses one core for most operations | NVIDIA A2, 16 GB, a 60 W entry-level data-centre GPU in the same server |
| Software | Python 3.12, pandas 3.0.6 | The same, under cudf.pandas from cuDF 26.10.00, CUDA 13 driver 580 |
| Stage | CPU, pandas | GPU, first run | GPU, repeat run | GPU repeat vs CPU |
|---|---|---|---|---|
| Read the two Parquet files (1.3 GB) | 5.13 s | 1.30 s | 1.30 s | 3.9x faster |
| Filter posted transactions, derive month and channel flag | 16.47 s | 0.32 s | 0.29 s | 57x faster |
| Group 46.5 million rows by account and month | 29.24 s | 1.29 s | 1.27 s | 23x faster |
| Join 32.4 million monthly rows to 5 million accounts | 1.40 s | 0.32 s | 0.31 s | 4.5x faster |
| Group by branch, segment and month with a distinct count | 8.40 s | 11.58 s | 2.86 s | 2.9x faster |
| Sort and rank the 31,200 result rows | 0.01 s | 0.14 s | 0.07 s | 7x slower |
| Whole pipeline | 60.68 s | 14.94 s | 6.10 s | 9.9x faster |
Four things are worth saying about the numbers.
- The first GPU run is not the number to quote. It took 14.9 seconds because the roll-up stage took 11.6 seconds the first time. While it ran, the CUDA driver was compiling kernels for this GPU model and writing them to its compute cache on disk; the two runs that followed reused them and took 6.1 and 6.2 seconds. Warm up before you time anything.
- Small steps get slower. The final sort and rank works on 31,200 rows and took 0.07 seconds on the GPU against 0.01 on the CPU. Below a few hundred thousand rows the transfer costs more than the work, exactly as the documentation says.
- This is a floor, not a ceiling. The A2 is NVIDIA's entry-level data-centre GPU; an L40S has four times its memory bandwidth and an H100 more than ten times, and the gap widens with data size. The GPU time also includes reading 1.3 GB of Parquet straight into GPU memory, with nothing copied by hand.
- pandas on one core is the honest comparison for a notebook, not the fastest CPU option. Lab 1 adds Polars on all 56 cores of the same server to this table, so you can see where the GPU still wins and where it does not.
What the labs need on OpenShift
A RAPIDS job on OpenShift is an ordinary pod that asks for a GPU. Everything else is the platform's job, and it is the same platform the NVIDIA AI Enterprise and Triton series need:
- A GPU worker. One node with one supported GPU is enough to start. The NVIDIA GPU Operator's current line, 26.7, supports OpenShift 4.18 to 4.22 on Red Hat Enterprise Linux CoreOS and lists the A2, A10, A30, A100, L4, L40S, H100, H200 and B200; workstation cards such as the RTX 4000 Ada are not on its list, which is why the labs use a data-centre card.
- Node Feature Discovery from the Red Hat catalogue, which labels nodes with the PCI vendor ID of their GPU, and the NVIDIA GPU Operator from the certified catalogue, which reads one
ClusterPolicyresource and installs the driver, the container toolkit, the device plugin that advertisesnvidia.com/gpu, and the DCGM exporter that feeds GPU metrics into OpenShift monitoring. - The pod spec:
resources.limits.nvidia.com/gpu: 1, an image such asrapidsai/notebooks:26.10-cuda13-py3.12, and shared memory if Dask is involved. Nothing else is GPU-specific. - A place for data scientists to work. OpenShift AI gives each project workbenches, and a custom workbench image built from the RAPIDS notebooks image makes the accelerators available in them. Its pipelines run the same containers on a schedule. Our OpenShift AI series covers that platform.
- Queueing and sharing. Kueue queues GPU jobs when the cards are busy. The device plugin's time-slicing lets several notebooks share one GPU for interactive work, and MIG partitions an A30, A100 or H100 into isolated slices.
- Scale-out. The Dask Kubernetes operator starts a
DaskClusterof GPU workers from a notebook; a Spark operator runs the cuDF plugin for Spark asSparkApplicationresources.
The environment the series is built on:
| Component | What we have |
|---|---|
| OpenShift | 4.22, a three-node compact cluster. Its catalogue carries Node Feature Discovery, the GPU Operator 26.7.2, OpenShift AI 3.5, Kueue 1.4 and the Stackable Spark operator 26.7 |
| GPU | An NVIDIA A2 with 16 GB, the card the measurement above ran on, with driver 580 and CUDA 13 |
| RAPIDS | 26.10 (cuDF 26.10.00), Python 3.12, pandas 3.0, XGBoost 3.4 |
| Data | Synthetic transaction data generated for the labs, kept as Parquet files on S3-compatible object storage |
The cluster had no GPU node when this overview was written, so the measurement above ran on the lab server that holds the A2. The three labs run on OpenShift once the card is attached to a worker, and each lab names the versions it was tested with.
Where we would use it
The use cases are the ones in our data pipeline series, with the clock turned down:
- Banks: feature pipelines for fraud and credit models over hundreds of millions of transactions, rerun daily instead of weekly; anti-money-laundering network analysis with cuGraph on the transaction graph; backtesting with XGBoost on GPUs.
- Government: tax and customs analytics that join declarations, payments and registers at national scale; census and geospatial work with cuSpatial; nightly batch windows that finish before the office opens.
- Defence and security: log and sensor analytics that must run on premises, where one GPU server replaces a rack of CPU nodes and the data never leaves the building.
- Feeding AI: cleaning and deduplicating documents and tables before fine-tuning or indexing, and GPU vector indexes with cuVS for the vector databases behind retrieval.
The three labs
Each lab ends with a number: a CPU time next to a GPU time for a job you can show.
Lab 1. cuDF
The pipeline from this overview, taken apart and run properly.
- Running RAPIDS 26.10 in a container with a GPU, and the same environment with pip and conda
cudf.pandasagainst nativecudf: when each is worth it, and the profiler that shows which operations fell back- Reading Parquet and CSV straight into GPU memory, and what the file layout does to speed
- The pipeline stage by stage, with pandas on one core, Polars on all cores and cuDF on the GPU in one table
- GPU memory: pool allocators, managed memory, and what happens when the data does not fit
- The Polars GPU engine, and a first Dask-CUDA cluster across two GPUs
Lab 2. cuDF plugin for Apache Spark
A Spark job on GPUs in OpenShift, the way a data engineering team would run it.
- Building the Spark image from a CUDA base with the plugin jar and discovery script, and pushing it to the cluster's registry
- Installing a Spark operator and submitting a
SparkApplicationwith one GPU per executor, then the same job withspark-submit - Reading the
NOT_ON_GPUexplain output and fixing the operators that stayed on the CPU - Running the qualification tool on CPU event logs to predict the gain before buying GPUs
- Tuning: tasks per GPU, concurrent GPU tasks, pinned memory, and Parquet reads from S3
- The same pipeline as Lab 1 in Spark SQL, CPU against GPU
Lab 3. cuML
A classic model trained on the features Lab 1 produced.
- XGBoost on GPU with
device="cuda", timed against the CPU trainer on the same data, with identical evaluation metrics - A random forest and logistic regression through
cuml.accel, with the scikit-learn code unchanged, and how to compare model quality fairly - Clustering accounts with UMAP and HDBSCAN on the GPU
- Hyperparameter search that finishes in an afternoon
- Saving the model and handing it to model serving in the OpenShift AI series
How to use this series
Lab 1 needs one machine with a supported NVIDIA GPU and Docker or Podman; a workstation card works for it, even though it is not supported on OpenShift. Labs 2 and 3 assume an OpenShift cluster with a GPU worker as described above. Every command is run on our lab before it is published, and each lab names the RAPIDS, OpenShift and GPU Operator versions it was tested with.
If you are sizing GPUs for analytics rather than for language models, or deciding whether to accelerate a Spark estate, this is the series to read first. Our AI platforms team builds the GPU platform and our AI data practice builds the pipelines on it. Talk to us if you want the measurement above repeated on your data.