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.
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
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.
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.
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.