← Back to Leaderboard
Xdmlc

dmlc/xgboost

A C++ gradient-boosted tree library for local and distributed tabular learning

AI Framework
Engineering Health (Methodology)
A+ · 97/100
Maintenance Activity
● Updated 2d ago
Latest Release
v3.4.2
Commercial License Check
Apache-2.0 · Commercial Friendly

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

Maintenance35/35
Fork Adoption25/25
Release Cadence17/20
License Clarity20/20
API
Total Stars
★ 29,054
24h Growth
+3
7d Growth
+43
Forks
9,001

GitHub Star History

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

dmlc/xgboost Star History (2020-01-12 - 2026-12-03) ALL-TIME STAR HISTORY (2020-01 – 2026-12) +12k in 2517d · avg +5/day 29.7k 22.6k 15.4k 2020-01-12: ★ 17,0702020-06-13: ★ 18,2142020-11-14: ★ 19,1872021-04-17: ★ 19,9862021-09-18: ★ 20,7362022-02-19: ★ 21,4442022-07-23: ★ 22,2642022-12-24: ★ 22,8852023-05-27: ★ 23,5592023-10-28: ★ 24,3392024-03-30: ★ 24,9822024-08-31: ★ 25,6022025-02-01: ★ 26,1662025-07-05: ★ 26,7732025-12-06: ★ 27,4582026-05-09: ★ 28,2082026-12-03: ★ 29,054 ★ 29.1k 2020-01 2023-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

XGBoost is a C++ library for parallel gradient-boosted decision trees, not an LLM inference framework. The repository separates the core implementation in src/ and headers in include/ from the Python, R, and JVM package trees. CMakeLists.txt is the native build entry point. Applications integrate through a language binding, fit a boosted tree ensemble, and run predictions with that ensemble.

The core also supports distributed execution, with Dask and Spark/PySpark among the named environments. The plugin/ directory shows that extension code has a place in the source tree, but does not by itself establish a stable third-party plugin ABI. The practical integration boundary is the library API; network serving is a separate concern.

Key Capabilities & Differentiators

XGBoost trains and runs ensembles of boosted decision trees for structured-data prediction, including classification and regression workloads. Parallel tree boosting can run on a single machine or in distributed environments such as Dask and Spark/PySpark. These execution options let teams retain the same model family as training requirements grow, but do not imply identical setup or performance across environments.

Version v3.4.1 fixed JVM batch prediction for SparseVector features and model slicing involving a category container. For teams that use these paths, the fixes identify two distinct tests worth adding: verify sparse batch results in the deployed JVM binding, and test model slicing with categorical features if the application uses it. The release notes do not quantify throughput or memory use.

Trade-offs & Limitations

XGBoost is a natural candidate when boosted trees fit the data and you want to train and serve within an existing application stack. LightGBM and CatBoost are direct alternatives to benchmark, not grounds for a universal winner. Compare validation quality under matched splits and tuning budgets, then measure training time, peak memory, and prediction behavior on the intended runtime.

Single-machine execution avoids cluster coordination; distributed execution is worth evaluating when a representative workload exceeds what one host can handle within the training window. The cost is more infrastructure to configure and operate. Embedding the library also leaves HTTP routing, authentication, and request monitoring to the surrounding application. Apache-2.0 permits commercial use, subject to its terms when redistributing.

Hardware & Deployment Guide

Start with the package for the target language and validate it against the actual runtime. A single-machine deployment can embed training or prediction in the application without a hosted model API. If building the native core from source, plan for a C++ toolchain and CMake. For Dask or Spark/PySpark, provision the chosen environment and check package compatibility on the processes that execute the workload.

The v3.4.2 notes identify Python 3.11 support as the only change from v3.4.1. Pin and test the selected package, especially if training and prediction run in different environments. Size training CPU and memory against representative data and settings; size prediction separately against the trained ensemble, expected batch size, and concurrency.

Model family: Parallel gradient-boosted decision trees for structured-data prediction, not an LLM runtime.
Code layout: C++ implementation in src/, headers in include/, and native build configuration in CMakeLists.txt.
Language integration: Separate Python, R, and JVM package trees support use across multiple application stacks.
Execution scope: Local operation and distributed environments including Dask and Spark/PySpark.
Release details: v3.4.1 fixes JVM SparseVector batch prediction and model slicing involving a category container; v3.4.2 lists Python 3.11 support as its change from v3.4.1.
Delivery and licensing: Apache-2.0 library for in-process integration; application owners supply any network serving layer.
Best For

Teams training boosted-tree models on tabular data and embedding predictions in a Python, R, or JVM stack, with distributed training available when justified by workload size.

Skip If

You need generative LLM inference or a turnkey prediction server with built-in network routing, authentication, and monitoring.

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

Comparison vs. Top LLMs & Inference Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
xgboost ★29.1k+43C++Apache-2.0A C++ gradient-boosted tree library for local and distributed tabular learning
LightGBM19k+35C++MITC++ gradient-boosted trees for tabular prediction and ranking
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/dmlc/xgboost.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.

dmlc/xgboost Star History on RepoForAI

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

Frequently Asked Questions about xgboost

How should I integrate XGBoost into an existing application?

Choose the binding that matches your application, such as Python, R, or the JVM packages, and validate feature handling in both training and prediction. XGBoost is an embeddable GBDT library; if clients need an HTTP endpoint, provide that service layer yourself.

How should I budget CPU, RAM, or VRAM?

There is no fixed RAM or VRAM requirement established here. Size training with representative row counts, feature widths, and training settings; measure prediction separately with the resulting ensemble at your intended batch size and concurrency. Do not assume a particular GPU or CUDA configuration is required or supported by every package.

Can we use and self-host XGBoost commercially?

Yes. Apache-2.0 permits commercial use and self-hosting. When redistributing software, review the applicable license, notice, and modification-marking obligations. Review separately the terms for other components and datasets you ship.

How should I choose between XGBoost, LightGBM, and CatBoost?

Compare XGBoost with LightGBM and CatBoost on the same data splits, with comparable tuning budgets and preprocessing rules. Measure predictive quality, training time, peak memory, and prediction behavior on your deployment target. If JVM embedding or a specific distributed runner is mandatory, verify that integration before ranking models by accuracy alone.

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 dmlc/xgboost? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature dmlc/xgboost 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