Repository navigation
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"