Skip to content

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

Latest

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.