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.
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
Samsung is testing a feature that changes the angle of photos you’ve already taken
Samsung’s new Recompose lets users change photo angles after shooting, potentially reducing the need for multiple shots and improving post-capture editing workflows for photographers and casual users alike.
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.