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
+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
#3679Avoiding Exception "Check failed: (best_split_info.right_count) > (0) at ..." with a regression task56 comments · 2020-12-25#2302Feature Requests & Voting Hub49 comments · 2019-08-01#1003BUG in GPU histogram48 comments · 2017-10-20#2793lightgbm.basic.LightGBMError: Bug in GPU histogram! split 11937: 12, smaller_leaf: 10245, larger_leaf: 170439 comments · 2020-02-21#4074Dask tests randomly fail with socket error code 54 or 10431 comments · 2021-03-15#4946Check failed: (best_split_info.left_count) > (0)30 comments · 2022-01-13#5390[ci] [dask] CI jobs failing with Dask 2022.7.129 comments · 2022-07-26#6599[R-package] [gpu] Cmake version reported to be low when compiling the R package through build_r.R in Windows27 comments · 2024-08-09
Latest release
v4.7.0 v4.7.0 2026-07-18Highlights 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