Supercharge Tree-Based Model Inference with Forest Inference Library in NVIDIA cuML

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

Why it matters

NVIDIA's rebuilt Forest Inference Library in cuML 25.04 lets teams serve XGBoost, LightGBM and scikit-learn forest models far faster without changing their training workflows.

Read this as

Many predictions about tabular data, like loan defaults or ad clicks, use tree ensembles, models that combine many decision trees. NVIDIA rebuilt its Forest Inference Library inside cuML 25.04, a software package for accelerated data science, so these trained models run on graphics cards or ordinary CPUs. It now tunes itself for each batch of data and ran up to 882 times faster than the standard scikit-learn approach. This matters for anyone whose machine-learning predictions are slowed by expensive computer time.

NVIDIA's cuML 25.04 update rewrites the Forest Inference Library so trained tree models from XGBoost, LightGBM or scikit-learn can be served on a GPU or CPU, with the library auto-tuning for each batch size. NVIDIA claims a median 147x speedup over native scikit-learn on an AMD EPYC 9654P, peaking at 882x, and 1.16x median gains over its prior version on an H100. Teams doing high-volume scoring could replace large CPU fleets with one GPU; a minor caveat is slight regressions on some shallow-tree configurations.

cuML 25.04's Forest Inference Library uses a redesigned C++ backend with batched GPU or CPU inference, OpenMP CPU-only builds, and Python runtime device selection via a context manager. A new .optimize() call empirically selects layout (depth_first default, layered or breadth_first alternatives) and chunk sizes; nodes are stored at minimal byte widths with cache-line alignment via a new align_bytes hyperparameter. New APIs .predict_per_tree and .apply expose per-tree predictions and leaf IDs, enabling tree-weighted ensembling, prediction intervals, and leaf-overlap similarity. Benchmarks: 75% of configurations beat cuML 25.02 (median 1.16x, max 4.1x) on H100 and Xeon 8480CL; versus scikit-learn on EPYC 9654P, median 147x, max 882x.

Read the original

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

Key terms

cuML 25.04 Forest Inference Library H100 XGBoost LightGBM Triton Inference Server Treelite

Was this summary useful?

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

Related reading