Reducing CUDA Binary Size to Distribute cuML on PyPI

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

Why it matters

NVIDIA cut the cuML binary by ~30% (690MB to 490MB), so GPU-accelerated ML can now be installed with pip instead of Conda, and the same template techniques apply to other CUDA C++ libraries.

Read this as

NVIDIA's cuML, a GPU-powered machine learning library, can now be installed with a simple 'pip' command from the Python package store, because its files were previously too large to host there. Engineers shrank the main file from about 690 MB to 490 MB. The article explains the programming tricks used, which other developers of GPU software can copy.

Starting with the 25.10 release, NVIDIA's cuML is installable from PyPI via pip (cuml-cu12 or cuml-cu13), eliminating Conda setup friction and letting companies mirror wheels internally. This was only possible because NVIDIA worked with the Python Software Foundation after shrinking the CUDA 12 library ~30%. Teams building CUDA C++ libraries like RAFT and cuVS gain reusable size-reduction techniques, though runtime performance tradeoffs exist.

NVIDIA reduced the CUDA 12 libcuml DSO from ~690 MB to 490 MB (~30%), enabling PyPI wheel distribution. Techniques: separate kernel definitions from declarations so each kernel compiles in exactly one translation unit (Whole Compilation mode otherwise duplicates every kernel per launching TU); expose template parameters explicitly in headers instead of implicit instantiation; convert template arguments to runtime arguments in source files. Tradeoffs include possible runtime performance loss from added kernel branching.

Read the original

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

Key terms

cuML PyPI CUDA RAFT cuVS RAPIDS

Was this summary useful?

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

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.