lightgbm-org /LightGBM

A fast, distributed, high performance gradient boosting (GBT, GBDT, GBRT, GBM or MART) framework based on decision tree algorithms, used for ranking, classification and many other machine learning tasks.

★ 18,983⑂ 4,109👁 416⑃ 3,802● 3,707▤ 35
C++MITCreated 2016-08-05lightgbm.readthedocs.io/en/latest/
下载:v4.7.0v4.7.0 ↓4.7.02026-07-18
+6
日增长
18,983
stars
4,109
forks
416
watchers
3,802
prs
3,707
issues
35
releases

README

[!NOTE]
 This project moved from Microsoft/LightGBM to lightgbm-org/LightGBM in March 2026.
 This repository is still the official LightGBM source code, managed by the same maintainers (including the creator of LightGBM).
 For details, see https://github.com/lightgbm-org/LightGBM/issues/7187

Light Gradient Boosting Machine
===============================




















LightGBM is a gradient boosting framework that uses tree based learning algorithms. It is designed to be distributed and efficient with the following advantages:

- Faster training speed and higher efficiency.
- Lower memory usage.
- Better accuracy.
- Support of parallel, distributed, and GPU learning.
- Capable of handling large-scale data.

For further details, please refer to Features.

Benefiting from these advantages, LightGBM is being widely-used in many winning solutions of machine learning competitions.

Comparison experiments on public datasets show that LightGBM can outperform existing boosting frameworks on both efficiency and accuracy, with significantly lower memory consumption. What's more, distributed learning experiments show that LightGBM can achieve a linear speed-up by using multiple machines for training in specific settings.

Get Started and Documentation
-----------------------------

Our primary documentation is at https://lightgbm.readthedocs.io/ and is generated from this repository. If you are new to LightGBM, follow the installation instructions on that site.

Next you may want to read:

- Examples showing command line usage of common tasks.
- Features and algorithms supported by LightGBM.
- Parameters is an exhaustive list of customization you can make.
- Distributed Learning and GPU Learning can speed up computation.
- FLAML provides automated tuning for LightGBM (code examples).
- Optuna Hyperparameter Tuner provides automated tuning for LightGBM hyperparameters (code examples).

Documentation for contributors:

- How we update readthedocs.io.
- Check out the Development Guide.

News
----

Please refer to changelogs at GitHub releases page.

External (Unofficial) Repositories
----------------------------------

Projects listed here offer alternative ways to use LightGBM.
They are not maintained or officially endorsed by the LightGBM development team.

JPMML (Java PMML converter): https://github.com/jpmml/jpmml-lightgbm

Nyoka (Python PMML converter): https://github.com/SoftwareAG/nyoka

Treelite (model compiler for efficient deployment): https://github.com/dmlc/treelite

lleaves (LLVM-based model compiler for efficient inference): https://github.com/siboehm/lleaves

Hummingbird (model compiler into tensor computations): https://github.com/microsoft/hummingbird

GBNet (use LightGBM as a PyTorch Module): https://github.com/mthorrell/gbnet

cuML Forest Inference Library (GPU-accelerated inference): https://github.com/rapidsai/cuml

nvForest (GPU-accelerated inference): https://github.com/rapidsai/nvforest

daal4py (Intel CPU-accelerated inference):

Top issues

Latest release

v4.7.0 v4.7.0 2026-07-18
Highlights

The Python package now supports polars inputs, thanks to narwhals.
Thanks to @borchero for the main implementation and to everyone who contributed design work, especially on https://github.com/lightgbm-org/LightGBM/issues/6204 (@maxzw @detrin @jmoralez @lcrmorin @Ic3fr0g @MarcoGorelli @kylebarron @vyasr).

Significantly improved GPU support including the first ROCm builds (https://github.com/lightgbm-org/LightGBM/pull/6086) and multi-GPU support for NVIDIA GPUs via NCCL (https://github.com/lightgbm-org/LightGBM/pull/6138). (@jeffdaily @shiyu1994 @StrikerRUS)

Improvements to

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON