← Back to Leaderboard
Llightgbm-org

lightgbm-org/LightGBM

C++ gradient-boosted trees for tabular prediction and ranking

AI Framework
Engineering Health (Methodology)
A+ · 94/100
Maintenance Activity
● Updated yesterday
Latest Release
v4.7.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption25/25
Release Cadence14/20
License Clarity20/20
GPU
Total Stars
★ 19,049
24h Growth
+5
7d Growth
+35
Forks
4,119

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

lightgbm-org/LightGBM Star History (2020-01-12 - 2026-12-03) ALL-TIME STAR HISTORY (2020-01 – 2026-12) +9.3k in 2517d · avg +4/day 19.6k 14k 8.4k 2020-01-12: ★ 9,7002020-06-13: ★ 10,5232020-11-14: ★ 11,2192021-04-17: ★ 11,8902021-09-18: ★ 12,4372022-02-19: ★ 12,9842022-07-23: ★ 13,5312022-12-24: ★ 14,0462023-05-27: ★ 14,6072023-10-28: ★ 15,1882024-03-30: ★ 15,6602024-08-31: ★ 16,2212025-02-01: ★ 16,6612025-07-05: ★ 17,1432025-12-06: ★ 17,7292026-05-09: ★ 18,2222026-12-03: ★ 19,049 ★ 19k 2020-01 2023-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

LightGBM is a native C++ gradient-boosted tree engine. The core lives under src/ and include/, with CMakeLists.txt as the native build entry point. python-package/ and R-package/ provide language-level integration, while examples/ covers command-line workflows. The scikit-learn estimator interface gives Python applications an integration point without making Python the training engine.

Training fits successive trees to improve the ensemble; prediction evaluates the fitted ensemble. CPU, GPU, and distributed learning are execution choices for training, not application-serving protocols. Despite the llm-inference taxonomy label, LightGBM is a classical machine-learning library, not an LLM runtime or a standalone model server.

Key Capabilities & Differentiators

LightGBM supports classification and ranking with boosted decision trees, including LambdaRank for ranking tasks. Version 4.6.0 added query-level bagging for LambdaRank, so sampling can use the query group rather than the individual row as its unit. The same release added NVIDIA Blackwell support on the CUDA path and linear-tree support for device=gpu; those are distinct backend-specific changes.

For Python pipelines, v4.5.0 added feature_names_in_ to the scikit-learn estimators, and v4.7.0 added Polars inputs through Narwhals. Direct Polars support can simplify the handoff from feature preparation to training, but it does not by itself establish zero-copy ingestion or GPU-resident preprocessing. Parallel and distributed learning extend the training options without guaranteeing a speedup for a particular dataset.

Trade-offs & Limitations

Compare LightGBM with other GBDT implementations on the same data splits, task metric, and hardware. Measure training time, peak memory, and prediction cost separately: a faster training backend does not necessarily make predictions faster. For ranking, preserve query grouping in the evaluation so the comparison measures the intended task rather than a row-wise proxy.

CPU is the simplest baseline; GPU adds build and hardware compatibility checks, while distributed training adds worker coordination and communication. Neither is worth adopting without a measured gain at the target workload size. There is also a concrete migration boundary: v4.5.0 removed C++ HDFS support, so jobs that depended on direct HDFS access need a separate data-loading or staging path.

Hardware & Deployment Guide

For a first deployment, choose the Python or R package for in-process integration, or the CLI for batch workflows, and establish a CPU baseline. Source builds use CMake and a C++ toolchain; build-python.sh and build_r.R are present for package builds. The MIT-licensed engine can run locally or on infrastructure you operate without a hosted inference API.

For GPU training, choose the backend and verify that the build and target hardware support it before migrating jobs. Version 4.6.0 added Python 3.13 support and updated the CUDA architecture configuration for Blackwell; v4.7.0 is the milestone for Polars inputs. Size from representative runs: measure peak RAM and training time on CPU, peak VRAM on GPU, and scaling across workers before committing to a distributed configuration.

Native core: C++ tree-boosting implementation with a CMake build and Python, R, and CLI interfaces.
Training modes: CPU, parallel, distributed, and GPU learning for tree ensembles.
Ranking: LambdaRank gained bagging by query in v4.6.0.
GPU compatibility: v4.6.0 added NVIDIA Blackwell support on the CUDA path and linear-tree support for device=gpu.
Python interoperability: v4.7.0 added Polars input support through Narwhals.
Data integration boundary: v4.5.0 removed HDFS support from the C++ implementation.
Best For

Teams building tabular classification or ranking models that want a native engine, Python or R integration, and the option to test GPU or distributed training when CPU becomes a bottleneck.

Skip If

You need LLM token generation, a turnkey model-serving endpoint, or direct HDFS access in the current C++ implementation.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Comparison vs. Top LLMs & Inference Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
LightGBM ★19k+35C++MITC++ gradient-boosted trees for tabular prediction and ranking
xgboost29.1k+43C++Apache-2.0A C++ gradient-boosted tree library for local and distributed tabular learning
tensorflow201.7k+4C++Apache-2.0C++-backed ML framework for building models and embedding inference
ggml16.3k+97C++MITEmbeddable C/C++ tensor runtime for quantized inference across hardware backends

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/lightgbm-org/LightGBM.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

lightgbm-org/LightGBM Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about LightGBM

How should I integrate LightGBM into an existing pipeline?

Use the Python or R package to embed LightGBM in an application or modeling pipeline, or use the CLI for command-line workflows. These are interfaces to a native C++ tree-boosting engine, not clients for a hosted prediction API.

Do I need a GPU, and how much VRAM should I budget?

No. Start with CPU training and measure wall-clock time and peak RAM on a representative dataset. If training time is a bottleneck, test the appropriate GPU build on your actual hardware and measure VRAM as well. There is no single VRAM requirement to size against.

Can we self-host LightGBM in a commercial product?

Yes. The MIT license permits commercial use and self-hosting. If you redistribute LightGBM, retain the required copyright and license notices, and review the terms of any other components you ship.

How should I compare LightGBM with another GBDT library?

Compare it with your current GBDT implementation on the same data splits, quality metric, and hardware. Measure peak memory, training time, and prediction cost separately. If ranking is central to the workload, include LightGBM’s LambdaRank support in the evaluation rather than relying on classification benchmarks.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining lightgbm-org/LightGBM? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature lightgbm-org/LightGBM on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare