Skip to content

Releases

v0.2.0 — Exact float64 Precision & Universal py3-none Wheels

Choose a tag to compare

@1orgar 1orgar released this 26 Nov 16:04

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 / Exp link functions to exact double (float64).
  • FastBooster.predict() now returns dtype=np.float64 by default — visually and numerically identical to lightgbm.Booster.predict() (MaxDiff <= 1.2e-15 on V-QuickScorer and 0.00 bit-identical on CompactTree).
  • Added optional dtype=np.float32 parameter when compact 32-bit output arrays are desired.

2. Single Universal py3-none Wheel per OS / CPU Architecture

  • Replaced nanobind CPython extension with a pure extern "C" shared library (liblgbm_boost_c) + ctypes (wheel.py-api = "py3").
  • Only 1 precompiled .whl per OS/CPU architecture is needed across all Python 3.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.4x speedup on num_leaves=31, 3.8x–4.6x on num_leaves=63, 3.8x–4.0x on num_leaves=127.
  • Apple Silicon arm64: 4.5x–4.9x speedup on num_leaves=31, 2.8x–3.6x on num_leaves=63, 2.2x–2.3x on num_leaves=127.

v0.1.2 — Precompiled x86_64 C++ SIMD Wheels for OL8 / OL9 (cp39–cp314)

Choose a tag to compare

@1orgar 1orgar released this 26 Nov 14:35

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.whl

v0.1.1 — Oracle Linux 8 & 9 (ol8/ol9) x86_64 RPM & WHL Packages + Python 3.9 Support

Choose a tag to compare

@1orgar 1orgar released this 26 Nov 14:04

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_64 packages:
    • python39-lgbm-boost-0.1.1-1.el8.x86_64.rpm
    • python3.11-lgbm-boost-0.1.1-1.el8.x86_64.rpm
    • python3.12-lgbm-boost-0.1.1-1.el8.x86_64.rpm
    • manylinux_2_28_x86_64.whl wheels for cp39, cp310, cp311, cp312, cp313
  • Oracle Linux 9 (ol9) x86_64 packages:
    • 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.rpm
    • python3.12-lgbm-boost-0.1.1-1.el9.x86_64.rpm
    • manylinux_2_34_x86_64.whl wheels for cp39, cp311, cp312
  • GCC 8+ AVX-512 portability (Abs512, HorizontalMax512, HorizontalMin512) and numpy>=1.21 compatibility with distro-packaged python3-numpy.

v0.1.0 — Initial Release: High-Throughput SIMD Batch Scorer for LightGBM

Choose a tag to compare

@1orgar 1orgar released this 26 Nov 13:47

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 <= 64 leaves using L1d-sized 64-tree blocks, branchless monobound threshold narrowing, hardware AVX512CD vplzcntd/vplzcntq + {1to16} embedded broadcast predicates on AVX-512, and IEEE-754 float32-exponent parallel tzcnt on AVX2.
  • Branchless Compact Tree Traversal (CompactTree): 16-byte aligned BFS nodes with unrolled root evaluation and 8/16-row SIMD gathers for deep trees (> 64 leaves, up to 32,768 leaves).
  • Exact float64 -> float32 Split Parity: Downward threshold rounding via std::nextafterf eliminates boundary split flips (max_abs_diff ~ 1e-7 vs stock LightGBM) with full static resolution of MissingType::None, MissingType::Zero, MissingType::NaN, and default_left.
  • Zero-Copy pandas.DataFrame & numpy.ndarray Batch Streaming: 2D cache tiling (RowTile=128 × TreeBlock=64) with per-column DataFrame streaming (no full-matrix float64 allocation), fused vectorized Sigmoid / Softmax / Exp, and a zero-dependency C++17 lock-free atomic thread pool.
  • LightGBM Fork Kit (fork_integration/): Ready-to-vendor fast_scorer module and LGBM_BoosterPredictForMat cache 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"