How to Work with Data Exceeding VRAM in the Polars GPU Engine

AI-generated summary of reporting by NVIDIA Developer Blog. Read the original for the full story.

Why it matters

Data engineers can now process datasets larger than GPU memory in Polars without rewriting pipelines, using UVM spilling or experimental multi-GPU streaming.

Read this as

Polars is a popular tool for crunching large tables of data quickly, and NVIDIA offers a version of it that runs on graphics cards (GPUs) instead of ordinary processors. GPUs have small memory pools, which caused crashes on big datasets. Two new options fix this: one lets the GPU borrow the computer's main memory when full, and an experimental second option splits work across several GPUs. In tests, a 3-terabyte benchmark finished all 22 queries in seconds.

Teams in quant finance, algorithmic trading and fraud detection using Polars on NVIDIA GPUs can now handle datasets bigger than a single GPU's memory. Unified Virtual Memory spills data into system RAM with virtually no code changes, though data migration adds some performance cost. An experimental multi-GPU streaming executor targets hundreds of gigabytes to terabytes, using Dask schedulers to parallelise work. Default configurations already enable UVM, so most users get larger-than-VRAM support with no action; the streaming option carries experimental-status risk.

The Polars GPU engine (backed by cuDF) now supports Unified Virtual Memory, creating a unified address space between host RAM and VRAM so out-of-memory errors are avoided via spilling, with tunable RAPIDS Memory Manager (RMM) settings reducing migration overhead. An experimental streaming executor rewrites Polars' optimised internal representation (IR) graph for batched execution, partitioning it across workers with Dask synchronous (single-GPU) and distributed (multi-GPU) schedulers, plus parameters for join strategies and partition sizes. On PDS-H at 3 TB scale, all 22 queries completed in seconds. Limitations: streaming is experimental, and UVM incurs a performance penalty from host-device data movement.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Polars GPU engine NVIDIA cuDF Unified Virtual Memory RAPIDS Memory Manager Dask PDS-H benchmark GTC Paris

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading