dmlc/xgboost
A C++ gradient-boosted tree library for local and distributed tabular learning
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
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.
You need generative LLM inference or a turnkey prediction server with built-in network routing, authentication, and monitoring.
Comparison vs. Top LLMs & Inference Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| xgboost ★ | 29.1k | +43 | C++ | Apache-2.0 | A C++ gradient-boosted tree library for local and distributed tabular learning |
| LightGBM | 19k | +35 | C++ | MIT | C++ gradient-boosted trees for tabular prediction and ranking |
| tensorflow | 201.7k | +4 | C++ | Apache-2.0 | C++-backed ML framework for building models and embedding inference |
| ggml | 16.3k | +97 | C++ | MIT | Embeddable 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.
curl -sL https://repoforai.com/repo/dmlc/xgboost.md
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?
How should I budget CPU, RAM, or VRAM?
Can we use and self-host XGBoost commercially?
How should I choose between XGBoost, LightGBM, and CatBoost?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
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