Repository navigation
Releases
v0.2.0 — Exact float64 Precision & Universal py3-none Wheels
What's Changed in v0.2.0
1. Exact IEEE-754 float64 Precision (~1e-15 Parity with Booster.predict)
- Upgraded split thresholds, leaf values, tile buffers, accumulators, and
Sigmoid/Softmax/Explink functions to exactdouble(float64). FastBooster.predict()now returnsdtype=np.float64by default — visually and numerically identical tolightgbm.Booster.predict()(MaxDiff <= 1.2e-15onV-QuickScorerand0.00bit-identical onCompactTree).- Added optional
dtype=np.float32parameter when compact 32-bit output arrays are desired.
2. Single Universal py3-none Wheel per OS / CPU Architecture
- Replaced
nanobindCPython extension with a pureextern "C"shared library (liblgbm_boost_c) +ctypes(wheel.py-api = "py3"). - Only 1 precompiled
.whlper OS/CPU architecture is needed across all Python3.9–3.15+versions (verified out-of-the-box on clean Oracle Linux 8 & Oracle Linux 9 across Python 3.9, 3.11, and 3.12 with--only-binary).
3. float64 SIMD Benchmarks (1,000 trees, 100 features)
- Linux
x86_64(AVX-512):5.6x–6.4xspeedup onnum_leaves=31,3.8x–4.6xonnum_leaves=63,3.8x–4.0xonnum_leaves=127. - Apple Silicon
arm64:4.5x–4.9xspeedup onnum_leaves=31,2.8x–3.6xonnum_leaves=63,2.2x–2.3xonnum_leaves=127.
v0.1.2 — Precompiled x86_64 C++ SIMD Wheels for OL8 / OL9 (cp39–cp314)
lgbm-boost v0.1.2
Publishes precompiled C++ SIMD binary wheels (AVX-512 + AVX2 + Scalar with automatic runtime CPUID dispatch) built against manylinux_2_17_x86_64.manylinux2014_x86_64 (glibc >= 2.17) across Python 3.9, 3.10, 3.11, 3.12, 3.13, 3.14, verified with zero-compiler --only-binary=lgbm-boost installation on clean Oracle Linux 8 (ol8) and Oracle Linux 9 (ol9) environments (even with stock OL8 pip 20.2 without upgrading pip or installing gcc/cmake).
Zero-Build Installation on OL8 / OL9 & Any Linux/macOS/Windows Server
# Directly from PyPI (downloads precompiled C++ .whl, zero compilation):
pip install lgbm-boost
# Or offline from a GitHub Release .whl asset:
pip install ./lgbm_boost-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whlv0.1.1 — Oracle Linux 8 & 9 (ol8/ol9) x86_64 RPM & WHL Packages + Python 3.9 Support
lgbm-boost v0.1.1
Adds native x86_64 RPM (.el8.x86_64.rpm, .el9.x86_64.rpm) and Python wheel (.whl) builds for Oracle Linux 8 (ol8) and Oracle Linux 9 (ol9), expands Python compatibility down to Python 3.9 (default system /usr/bin/python3 on OL9 and python39 on OL8), and attaches all binary packages directly to GitHub Release assets.
Added in v0.1.1
- Oracle Linux 8 (
ol8)x86_64packages:python39-lgbm-boost-0.1.1-1.el8.x86_64.rpmpython3.11-lgbm-boost-0.1.1-1.el8.x86_64.rpmpython3.12-lgbm-boost-0.1.1-1.el8.x86_64.rpmmanylinux_2_28_x86_64.whlwheels forcp39,cp310,cp311,cp312,cp313
- Oracle Linux 9 (
ol9)x86_64packages:python3-lgbm-boost-0.1.1-1.el9.x86_64.rpm(Python 3.9 default system Python)python3.11-lgbm-boost-0.1.1-1.el9.x86_64.rpmpython3.12-lgbm-boost-0.1.1-1.el9.x86_64.rpmmanylinux_2_34_x86_64.whlwheels forcp39,cp311,cp312
- GCC 8+ AVX-512 portability (
Abs512,HorizontalMax512,HorizontalMin512) andnumpy>=1.21compatibility with distro-packagedpython3-numpy.
v0.1.0 — Initial Release: High-Throughput SIMD Batch Scorer for LightGBM
lgbm-boost v0.1.0
Initial public release of lgbm-boost — a high-throughput C++17 SIMD batch inference engine for LightGBM decision tree ensembles (x86_64 AVX-512 / AVX2 + cross-platform Scalar).
Highlights
- Vectorized QuickScorer (
V-QuickScorer,QS32&QS64): 16-row register-blocked bitmask evaluation for trees with<= 64leaves using L1d-sized 64-tree blocks, branchless monobound threshold narrowing, hardwareAVX512CDvplzcntd/vplzcntq+{1to16}embedded broadcast predicates onAVX-512, and IEEE-754 float32-exponent paralleltzcntonAVX2. - Branchless Compact Tree Traversal (
CompactTree): 16-byte aligned BFS nodes with unrolled root evaluation and 8/16-row SIMD gathers for deep trees (> 64leaves, up to32,768leaves). - Exact
float64 -> float32Split Parity: Downward threshold rounding viastd::nextafterfeliminates boundary split flips (max_abs_diff ~ 1e-7vs stock LightGBM) with full static resolution ofMissingType::None,MissingType::Zero,MissingType::NaN, anddefault_left. - Zero-Copy
pandas.DataFrame&numpy.ndarrayBatch Streaming: 2D cache tiling (RowTile=128 × TreeBlock=64) with per-column DataFrame streaming (no full-matrixfloat64allocation), fused vectorizedSigmoid/Softmax/Exp, and a zero-dependency C++17 lock-free atomic thread pool. - LightGBM Fork Kit (
fork_integration/): Ready-to-vendorfast_scorermodule andLGBM_BoosterPredictForMatcache adapter for custom LightGBM forks.
Performance Summary (1,000 trees × 100 features vs stock LightGBM 4.7.0)
- Linux
x86_64(AVX-512,num_leaves = 31): 7.0x – 7.7x faster (max_abs_diff <= 1.6e-7) - Linux
x86_64(AVX-512,num_leaves = 63): 3.8x – 4.9x faster - Apple Silicon
arm64(Scalar,num_leaves = 31 / 63 / 127): 2.3x – 5.5x faster
Installation
pip install lgbm-boost
# or directly from GitHub:
pip install "git+https://github.com/1orgar/lgbm-boost.git@v0.1.0"