# Repository Briefing: dmlc/xgboost
> Source: https://repoforai.com/repo/dmlc/xgboost (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/dmlc/xgboost
- **Official Docs / Website**: https://xgboost.readthedocs.io/
- **Category**: LLMs & Inference (大模型与推理微调)
- **Primary Language**: C++
- **License**: Apache-2.0
- **Engineering Health**: A+ (97/100 · Maintenance 35/35 · Adoption 25/25 · Releases 17/20 · License 20/20)
- **Latest Release**: v3.4.2 (2026-09-15) — https://github.com/dmlc/xgboost/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: API
- **Momentum**: 29,054 ★ total (+3 24h / +43 7d) · 9,001 forks
- **Topics**: `gbdt`, `gbrt`, `gbm`, `distributed-systems`, `xgboost`, `machine-learning`
- **When to Use**: 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.

## Overview
```text
### 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.
```

## Key Capabilities
```text
- 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.
```

## Quick Start / Clone
```bash
git clone --depth 1 https://github.com/dmlc/xgboost.git
cd xgboost
```
